diff --git a/thousandeyes-sdk-administrative/README.md b/thousandeyes-sdk-administrative/README.md index e8716fe6..db1ce405 100644 --- a/thousandeyes-sdk-administrative/README.md +++ b/thousandeyes-sdk-administrative/README.md @@ -18,7 +18,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-administrative/pyproject.toml b/thousandeyes-sdk-administrative/pyproject.toml index 02bab173..a6fcc095 100644 --- a/thousandeyes-sdk-administrative/pyproject.toml +++ b/thousandeyes-sdk-administrative/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-administrative" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Administrative API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Administrative API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/account_groups_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/account_groups_api.py index b6f0afaa..923d8a0a 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/account_groups_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/account_groups_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.administrative.models @@ -30,7 +31,6 @@ from thousandeyes_sdk.administrative.models.expand import Expand from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AccountGroupsApi: @@ -43,7 +43,7 @@ class AccountGroupsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-administrative")) self.api_client = api_client diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/permissions_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/permissions_api.py index 3fb6958a..15a69fe0 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/permissions_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/permissions_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.administrative.models @@ -26,7 +27,6 @@ from thousandeyes_sdk.administrative.models.permissions import Permissions from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class PermissionsApi: @@ -39,7 +39,7 @@ class PermissionsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-administrative")) self.api_client = api_client diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/roles_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/roles_api.py index bfad6d08..c8cddd6c 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/roles_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/roles_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.administrative.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.administrative.models.roles import Roles from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class RolesApi: @@ -41,7 +41,7 @@ class RolesApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-administrative")) self.api_client = api_client diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/user_events_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/user_events_api.py index 1119d19e..88703fb6 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/user_events_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/user_events_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.administrative.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.administrative.models.audit_user_events import AuditUserEv from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class UserEventsApi: @@ -40,7 +40,7 @@ class UserEventsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-administrative")) self.api_client = api_client diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/users_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/users_api.py index 624c2b76..7a5d2d98 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/users_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/api/users_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.administrative.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.administrative.models.users import Users from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class UsersApi: @@ -42,7 +42,7 @@ class UsersApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-administrative")) self.api_client = api_client diff --git a/thousandeyes-sdk-agents/README.md b/thousandeyes-sdk-agents/README.md index edb473a1..f5a3da08 100644 --- a/thousandeyes-sdk-agents/README.md +++ b/thousandeyes-sdk-agents/README.md @@ -11,7 +11,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-agents/pyproject.toml b/thousandeyes-sdk-agents/pyproject.toml index 9d93d8e2..503865c1 100644 --- a/thousandeyes-sdk-agents/pyproject.toml +++ b/thousandeyes-sdk-agents/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-agents" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Agents API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Agents API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/cloud_and_enterprise_agent_notification_rules_api.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/cloud_and_enterprise_agent_notification_rules_api.py index 7a236531..baf0ca33 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/cloud_and_enterprise_agent_notification_rules_api.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/cloud_and_enterprise_agent_notification_rules_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.agents.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.agents.models.notification_rule_detail import Notification from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class CloudAndEnterpriseAgentNotificationRulesApi: @@ -40,7 +40,7 @@ class CloudAndEnterpriseAgentNotificationRulesApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-agents")) self.api_client = api_client diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/cloud_and_enterprise_agents_api.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/cloud_and_enterprise_agents_api.py index e9fdce0a..71260218 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/cloud_and_enterprise_agents_api.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/cloud_and_enterprise_agents_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.agents.models @@ -31,7 +32,6 @@ from thousandeyes_sdk.agents.models.cloud_enterprise_agents import CloudEnterpri from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class CloudAndEnterpriseAgentsApi: @@ -44,7 +44,7 @@ class CloudAndEnterpriseAgentsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-agents")) self.api_client = api_client diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/enterprise_agent_cluster_api.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/enterprise_agent_cluster_api.py index 946b476c..b1ca814b 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/enterprise_agent_cluster_api.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/enterprise_agent_cluster_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.agents.models @@ -30,7 +31,6 @@ from thousandeyes_sdk.agents.models.cloud_enterprise_agents import CloudEnterpri from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class EnterpriseAgentClusterApi: @@ -43,7 +43,7 @@ class EnterpriseAgentClusterApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-agents")) self.api_client = api_client diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/proxies_api.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/proxies_api.py index a8ff4b59..35cd95a9 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/proxies_api.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/api/proxies_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.agents.models @@ -26,7 +27,6 @@ from thousandeyes_sdk.agents.models.agent_proxies import AgentProxies from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class ProxiesApi: @@ -39,7 +39,7 @@ class ProxiesApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-agents")) self.api_client = api_client diff --git a/thousandeyes-sdk-alerts/README.md b/thousandeyes-sdk-alerts/README.md index ff6aca92..a80b5d2d 100644 --- a/thousandeyes-sdk-alerts/README.md +++ b/thousandeyes-sdk-alerts/README.md @@ -18,7 +18,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-alerts/pyproject.toml b/thousandeyes-sdk-alerts/pyproject.toml index 7f5d82a7..b7b3d230 100644 --- a/thousandeyes-sdk-alerts/pyproject.toml +++ b/thousandeyes-sdk-alerts/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-alerts" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Alerts API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Alerts API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alert_rules_api.py b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alert_rules_api.py index f9636710..d9279388 100644 --- a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alert_rules_api.py +++ b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alert_rules_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.alerts.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.alerts.models.rules import Rules from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AlertRulesApi: @@ -42,7 +42,7 @@ class AlertRulesApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-alerts")) self.api_client = api_client diff --git a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alert_suppression_windows_api.py b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alert_suppression_windows_api.py index d3cf2ae3..b465a9a1 100644 --- a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alert_suppression_windows_api.py +++ b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alert_suppression_windows_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.alerts.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.alerts.models.expand import Expand from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AlertSuppressionWindowsApi: @@ -42,7 +42,7 @@ class AlertSuppressionWindowsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-alerts")) self.api_client = api_client diff --git a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alerts_api.py b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alerts_api.py index eeafeff2..6b44edb0 100644 --- a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alerts_api.py +++ b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/api/alerts_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.alerts.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.alerts.models.alerts import Alerts from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AlertsApi: @@ -41,7 +41,7 @@ class AlertsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-alerts")) self.api_client = api_client diff --git a/thousandeyes-sdk-bgp-monitors/README.md b/thousandeyes-sdk-bgp-monitors/README.md index f1be68d5..1e5b647c 100644 --- a/thousandeyes-sdk-bgp-monitors/README.md +++ b/thousandeyes-sdk-bgp-monitors/README.md @@ -15,7 +15,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-bgp-monitors/pyproject.toml b/thousandeyes-sdk-bgp-monitors/pyproject.toml index f9df4919..55be3395 100644 --- a/thousandeyes-sdk-bgp-monitors/pyproject.toml +++ b/thousandeyes-sdk-bgp-monitors/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-bgp-monitors" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "BGP Monitors API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK BGP Monitors API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/list_bgp_monitors_api.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/list_bgp_monitors_api.py index d6a99248..5bffffae 100644 --- a/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/list_bgp_monitors_api.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/list_bgp_monitors_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.bgp_monitors.models @@ -26,7 +27,6 @@ from thousandeyes_sdk.bgp_monitors.models.monitors import Monitors from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class ListBGPMonitorsApi: @@ -39,7 +39,7 @@ class ListBGPMonitorsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-bgp-monitors")) self.api_client = api_client diff --git a/thousandeyes-sdk-credentials/README.md b/thousandeyes-sdk-credentials/README.md index e89c04c8..a90e7294 100644 --- a/thousandeyes-sdk-credentials/README.md +++ b/thousandeyes-sdk-credentials/README.md @@ -19,7 +19,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-credentials/pyproject.toml b/thousandeyes-sdk-credentials/pyproject.toml index 31c87528..f4bcedc7 100644 --- a/thousandeyes-sdk-credentials/pyproject.toml +++ b/thousandeyes-sdk-credentials/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-credentials" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Credentials API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Credentials API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-credentials/src/thousandeyes_sdk/credentials/api/credentials_api.py b/thousandeyes-sdk-credentials/src/thousandeyes_sdk/credentials/api/credentials_api.py index c5340b0e..587db3b3 100644 --- a/thousandeyes-sdk-credentials/src/thousandeyes_sdk/credentials/api/credentials_api.py +++ b/thousandeyes-sdk-credentials/src/thousandeyes_sdk/credentials/api/credentials_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.credentials.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.credentials.models.credentials import Credentials from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class CredentialsApi: @@ -42,7 +42,7 @@ class CredentialsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-credentials")) self.api_client = api_client diff --git a/thousandeyes-sdk-dashboards/README.md b/thousandeyes-sdk-dashboards/README.md index 88bc8bcc..5ce0204e 100644 --- a/thousandeyes-sdk-dashboards/README.md +++ b/thousandeyes-sdk-dashboards/README.md @@ -9,7 +9,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-dashboards/pyproject.toml b/thousandeyes-sdk-dashboards/pyproject.toml index baffe28f..e8afb913 100644 --- a/thousandeyes-sdk-dashboards/pyproject.toml +++ b/thousandeyes-sdk-dashboards/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-dashboards" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Dashboards API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Dashboards API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboard_snapshots_api.py b/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboard_snapshots_api.py index 2cdecc7a..d3dd66c1 100644 --- a/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboard_snapshots_api.py +++ b/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboard_snapshots_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.dashboards.models @@ -31,7 +32,6 @@ from thousandeyes_sdk.dashboards.models.update_snapshot_expiration_date_api_requ from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DashboardSnapshotsApi: @@ -44,7 +44,7 @@ class DashboardSnapshotsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-dashboards")) self.api_client = api_client diff --git a/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboards_api.py b/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboards_api.py index 1a006f0d..9c2472ed 100644 --- a/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboards_api.py +++ b/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboards_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.dashboards.models @@ -30,7 +31,6 @@ from thousandeyes_sdk.dashboards.models.dashboard_order import DashboardOrder from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DashboardsApi: @@ -43,7 +43,7 @@ class DashboardsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-dashboards")) self.api_client = api_client diff --git a/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboards_filters_api.py b/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboards_filters_api.py index 07f11c32..0f695408 100644 --- a/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboards_filters_api.py +++ b/thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/api/dashboards_filters_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.dashboards.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.dashboards.models.api_context_filters_response import ApiC from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DashboardsFiltersApi: @@ -41,7 +41,7 @@ class DashboardsFiltersApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-dashboards")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-agents/README.md b/thousandeyes-sdk-endpoint-agents/README.md index 36a42b83..cb1055ab 100644 --- a/thousandeyes-sdk-endpoint-agents/README.md +++ b/thousandeyes-sdk-endpoint-agents/README.md @@ -11,7 +11,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-endpoint-agents/pyproject.toml b/thousandeyes-sdk-endpoint-agents/pyproject.toml index 98bedc75..dfff0464 100644 --- a/thousandeyes-sdk-endpoint-agents/pyproject.toml +++ b/thousandeyes-sdk-endpoint-agents/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-endpoint-agents" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Endpoint Agents API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Endpoint Agents API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/administrative_endpoints_api.py b/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/administrative_endpoints_api.py index a81f896e..eb85a7a5 100644 --- a/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/administrative_endpoints_api.py +++ b/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/administrative_endpoints_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_agents.models @@ -26,7 +27,6 @@ from thousandeyes_sdk.endpoint_agents.models.connection_string import Connection from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AdministrativeEndpointsApi: @@ -39,7 +39,7 @@ class AdministrativeEndpointsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-agents")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/manage_agents_api.py b/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/manage_agents_api.py index f4147f8e..ab88f2c2 100644 --- a/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/manage_agents_api.py +++ b/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/manage_agents_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_agents.models @@ -31,7 +32,6 @@ from thousandeyes_sdk.endpoint_agents.models.list_endpoint_agents_response impor from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class ManageAgentsApi: @@ -44,7 +44,7 @@ class ManageAgentsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-agents")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/transfer_api.py b/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/transfer_api.py index eed099af..72e812e6 100644 --- a/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/transfer_api.py +++ b/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/api/transfer_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_agents.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.endpoint_agents.models.bulk_agent_transfer_response import from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class TransferApi: @@ -41,7 +41,7 @@ class TransferApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-agents")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-instant-tests/README.md b/thousandeyes-sdk-endpoint-instant-tests/README.md index d55c18fd..3d097b1a 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/README.md +++ b/thousandeyes-sdk-endpoint-instant-tests/README.md @@ -19,7 +19,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-endpoint-instant-tests/pyproject.toml b/thousandeyes-sdk-endpoint-instant-tests/pyproject.toml index 5de1e33a..9ee11012 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/pyproject.toml +++ b/thousandeyes-sdk-endpoint-instant-tests/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-endpoint-instant-tests" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Endpoint Instant Scheduled Tests API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Endpoint Instant Scheduled Tests API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/agent_to_server_instant_scheduled_test_api.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/agent_to_server_instant_scheduled_test_api.py index 750a8fc1..142bc39d 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/agent_to_server_instant_scheduled_test_api.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/agent_to_server_instant_scheduled_test_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_instant_tests.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_agent_to_server_tes from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AgentToServerInstantScheduledTestApi: @@ -40,7 +40,7 @@ class AgentToServerInstantScheduledTestApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/http_server_instant_scheduled_test_api.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/http_server_instant_scheduled_test_api.py index 5739f685..d470b73a 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/http_server_instant_scheduled_test_api.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/http_server_instant_scheduled_test_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_instant_tests.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_http_server_test im from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class HttpServerInstantScheduledTestApi: @@ -40,7 +40,7 @@ class HttpServerInstantScheduledTestApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/run_existing_test_api.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/run_existing_test_api.py index 22befe05..475d52a2 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/run_existing_test_api.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/api/run_existing_test_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_instant_tests.models @@ -25,7 +26,6 @@ from typing_extensions import Annotated from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class RunExistingTestApi: @@ -38,7 +38,7 @@ class RunExistingTestApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-labels/README.md b/thousandeyes-sdk-endpoint-labels/README.md index 69aa6f4b..a4a6a9c6 100644 --- a/thousandeyes-sdk-endpoint-labels/README.md +++ b/thousandeyes-sdk-endpoint-labels/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-endpoint-labels/pyproject.toml b/thousandeyes-sdk-endpoint-labels/pyproject.toml index a5d3d6cc..e1156fd9 100644 --- a/thousandeyes-sdk-endpoint-labels/pyproject.toml +++ b/thousandeyes-sdk-endpoint-labels/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-endpoint-labels" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Endpoint Agent Labels API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Endpoint Agent Labels API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-endpoint-labels/src/thousandeyes_sdk/endpoint_labels/api/manage_labels_api.py b/thousandeyes-sdk-endpoint-labels/src/thousandeyes_sdk/endpoint_labels/api/manage_labels_api.py index f3d7b38a..cbc8992e 100644 --- a/thousandeyes-sdk-endpoint-labels/src/thousandeyes_sdk/endpoint_labels/api/manage_labels_api.py +++ b/thousandeyes-sdk-endpoint-labels/src/thousandeyes_sdk/endpoint_labels/api/manage_labels_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_labels.models @@ -30,7 +31,6 @@ from thousandeyes_sdk.endpoint_labels.models.labels import Labels from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class ManageLabelsApi: @@ -43,7 +43,7 @@ class ManageLabelsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-labels")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-test-results/README.md b/thousandeyes-sdk-endpoint-test-results/README.md index e744a433..3e7277d1 100644 --- a/thousandeyes-sdk-endpoint-test-results/README.md +++ b/thousandeyes-sdk-endpoint-test-results/README.md @@ -9,7 +9,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-endpoint-test-results/pyproject.toml b/thousandeyes-sdk-endpoint-test-results/pyproject.toml index 171aa998..73701ce4 100644 --- a/thousandeyes-sdk-endpoint-test-results/pyproject.toml +++ b/thousandeyes-sdk-endpoint-test-results/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-endpoint-test-results" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Endpoint Test Results API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Endpoint Test Results API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/local_network_tests_results_api.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/local_network_tests_results_api.py index 8124a664..4a253e8b 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/local_network_tests_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/local_network_tests_results_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_test_results.models @@ -30,7 +31,6 @@ from thousandeyes_sdk.endpoint_test_results.models.local_network_topology_result from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class LocalNetworkTestsResultsApi: @@ -43,7 +43,7 @@ class LocalNetworkTestsResultsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_dynamic_tests_results_api.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_dynamic_tests_results_api.py index 308c3977..62e81410 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_dynamic_tests_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_dynamic_tests_results_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_test_results.models @@ -30,7 +31,6 @@ from thousandeyes_sdk.endpoint_test_results.models.path_vis_dynamic_test_results from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class NetworkDynamicTestsResultsApi: @@ -43,7 +43,7 @@ class NetworkDynamicTestsResultsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_scheduled_tests_results_api.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_scheduled_tests_results_api.py index 2979e2da..c44f2b90 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_scheduled_tests_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_scheduled_tests_results_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_test_results.models @@ -32,7 +33,6 @@ from thousandeyes_sdk.endpoint_test_results.models.tests_data_rounds_search impo from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class NetworkScheduledTestsResultsApi: @@ -45,7 +45,7 @@ class NetworkScheduledTestsResultsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/real_user_tests_results_api.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/real_user_tests_results_api.py index 0748522d..d6f0efde 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/real_user_tests_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/real_user_tests_results_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_test_results.models @@ -33,7 +34,6 @@ from thousandeyes_sdk.endpoint_test_results.models.real_user_test_page_results i from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class RealUserTestsResultsApi: @@ -46,7 +46,7 @@ class RealUserTestsResultsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/web_http_server_scheduled_test_results_api.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/web_http_server_scheduled_test_results_api.py index b0718a16..7b4f950d 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/web_http_server_scheduled_test_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/web_http_server_scheduled_test_results_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_test_results.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.endpoint_test_results.models.http_test_results import Http from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class WebHTTPServerScheduledTestResultsApi: @@ -41,7 +41,7 @@ class WebHTTPServerScheduledTestResultsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-tests/README.md b/thousandeyes-sdk-endpoint-tests/README.md index 57815926..ab0114b1 100644 --- a/thousandeyes-sdk-endpoint-tests/README.md +++ b/thousandeyes-sdk-endpoint-tests/README.md @@ -11,7 +11,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-endpoint-tests/pyproject.toml b/thousandeyes-sdk-endpoint-tests/pyproject.toml index 28cf8944..d7a527c3 100644 --- a/thousandeyes-sdk-endpoint-tests/pyproject.toml +++ b/thousandeyes-sdk-endpoint-tests/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-endpoint-tests" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Endpoint Tests API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Endpoint Tests API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/dynamic_tests_agent_to_server_api.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/dynamic_tests_agent_to_server_api.py index 04eda33c..835d852f 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/dynamic_tests_agent_to_server_api.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/dynamic_tests_agent_to_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.endpoint_tests.models.endpoint_dynamic_test_update import from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DynamicTestsAgentToServerApi: @@ -42,7 +42,7 @@ class DynamicTestsAgentToServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/list_endpoint_scheduled_tests_api.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/list_endpoint_scheduled_tests_api.py index 551bd4b7..fa2d907c 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/list_endpoint_scheduled_tests_api.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/list_endpoint_scheduled_tests_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_tests.models @@ -26,7 +27,6 @@ from thousandeyes_sdk.endpoint_tests.models.endpoint_tests import EndpointTests from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class ListEndpointScheduledTestsApi: @@ -39,7 +39,7 @@ class ListEndpointScheduledTestsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/scheduled_tests_agent_to_server_api.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/scheduled_tests_agent_to_server_api.py index 951f4c3c..67a2f46e 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/scheduled_tests_agent_to_server_api.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/scheduled_tests_agent_to_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.endpoint_tests.models.endpoint_network_test_update import from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class ScheduledTestsAgentToServerApi: @@ -42,7 +42,7 @@ class ScheduledTestsAgentToServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/scheduled_tests_http_server_api.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/scheduled_tests_http_server_api.py index 75a798bb..a5f159ad 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/scheduled_tests_http_server_api.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/api/scheduled_tests_http_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.endpoint_tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.endpoint_tests.models.endpoint_http_test_update import End from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class ScheduledTestsHTTPServerApi: @@ -42,7 +42,7 @@ class ScheduledTestsHTTPServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-endpoint-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/README.md b/thousandeyes-sdk-instant-tests/README.md index 403ac8c8..d24caf84 100644 --- a/thousandeyes-sdk-instant-tests/README.md +++ b/thousandeyes-sdk-instant-tests/README.md @@ -14,7 +14,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-instant-tests/pyproject.toml b/thousandeyes-sdk-instant-tests/pyproject.toml index e5a85a9d..970f7585 100644 --- a/thousandeyes-sdk-instant-tests/pyproject.toml +++ b/thousandeyes-sdk-instant-tests/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-instant-tests" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Instant Tests API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Instant Tests API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/agent_to_agent_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/agent_to_agent_api.py index dae7f973..50f251a9 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/agent_to_agent_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/agent_to_agent_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.expand import Expand from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AgentToAgentApi: @@ -41,7 +41,7 @@ class AgentToAgentApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/agent_to_server_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/agent_to_server_api.py index f8bcf481..6d72080d 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/agent_to_server_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/agent_to_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.expand import Expand from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AgentToServerApi: @@ -41,7 +41,7 @@ class AgentToServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/api_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/api_api.py index 84f40c73..aa8afbca 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/api_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/api_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.expand import Expand from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class APIApi: @@ -41,7 +41,7 @@ class APIApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_security_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_security_api.py index be1991ba..26f7f0b1 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_security_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_security_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.expand import Expand from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DNSSecurityApi: @@ -41,7 +41,7 @@ class DNSSecurityApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_server_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_server_api.py index a78d6f30..4f066a4d 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_server_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.expand import Expand from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DNSServerApi: @@ -41,7 +41,7 @@ class DNSServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_trace_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_trace_api.py index e7292138..971edffa 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_trace_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/dns_trace_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.expand import Expand from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DNSTraceApi: @@ -41,7 +41,7 @@ class DNSTraceApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/ftp_server_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/ftp_server_api.py index e99d50bd..6826d03a 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/ftp_server_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/ftp_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.server_instant_test_request import Se from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class FTPServerApi: @@ -41,7 +41,7 @@ class FTPServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/http_page_load_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/http_page_load_api.py index 65dcb993..19ac016f 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/http_page_load_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/http_page_load_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.page_load_instant_test_request import from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class HTTPPageLoadApi: @@ -41,7 +41,7 @@ class HTTPPageLoadApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/http_server_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/http_server_api.py index 9708c118..e392b87e 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/http_server_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/http_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.http_server_instant_test_request impo from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class HTTPServerApi: @@ -41,7 +41,7 @@ class HTTPServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/run_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/run_api.py index 172c25ee..f473031e 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/run_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/run_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -25,7 +26,6 @@ from typing_extensions import Annotated from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class RunApi: @@ -38,7 +38,7 @@ class RunApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/sip_server_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/sip_server_api.py index 65cf3f01..3328c901 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/sip_server_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/sip_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_response impo from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class SIPServerApi: @@ -41,7 +41,7 @@ class SIPServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/voice_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/voice_api.py index 3acb5bb1..74a053df 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/voice_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/voice_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.voice_instant_test_request import Voi from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class VoiceApi: @@ -41,7 +41,7 @@ class VoiceApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/web_transaction_api.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/web_transaction_api.py index 866a4aad..128f9deb 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/web_transaction_api.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/api/web_transaction_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.instant_tests.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test_request from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class WebTransactionApi: @@ -41,7 +41,7 @@ class WebTransactionApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-internet-insights/README.md b/thousandeyes-sdk-internet-insights/README.md index e2effe98..e5f046a6 100644 --- a/thousandeyes-sdk-internet-insights/README.md +++ b/thousandeyes-sdk-internet-insights/README.md @@ -20,7 +20,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-internet-insights/pyproject.toml b/thousandeyes-sdk-internet-insights/pyproject.toml index b3099aa5..5dd7ab36 100644 --- a/thousandeyes-sdk-internet-insights/pyproject.toml +++ b/thousandeyes-sdk-internet-insights/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-internet-insights" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Internet Insights API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Internet Insights API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-internet-insights/src/thousandeyes_sdk/internet_insights/api/catalog_providers_api.py b/thousandeyes-sdk-internet-insights/src/thousandeyes_sdk/internet_insights/api/catalog_providers_api.py index b226f93c..6adeee6a 100644 --- a/thousandeyes-sdk-internet-insights/src/thousandeyes_sdk/internet_insights/api/catalog_providers_api.py +++ b/thousandeyes-sdk-internet-insights/src/thousandeyes_sdk/internet_insights/api/catalog_providers_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.internet_insights.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.internet_insights.models.api_catalog_provider_response imp from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class CatalogProvidersApi: @@ -41,7 +41,7 @@ class CatalogProvidersApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-internet-insights")) self.api_client = api_client diff --git a/thousandeyes-sdk-internet-insights/src/thousandeyes_sdk/internet_insights/api/outages_api_public_api.py b/thousandeyes-sdk-internet-insights/src/thousandeyes_sdk/internet_insights/api/outages_api_public_api.py index cc69215a..1a758060 100644 --- a/thousandeyes-sdk-internet-insights/src/thousandeyes_sdk/internet_insights/api/outages_api_public_api.py +++ b/thousandeyes-sdk-internet-insights/src/thousandeyes_sdk/internet_insights/api/outages_api_public_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.internet_insights.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.internet_insights.models.api_outages_response import ApiOu from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class OutagesAPIPublicApi: @@ -42,7 +42,7 @@ class OutagesAPIPublicApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-internet-insights")) self.api_client = api_client diff --git a/thousandeyes-sdk-labels/README.md b/thousandeyes-sdk-labels/README.md index 01a1a997..331b1006 100644 --- a/thousandeyes-sdk-labels/README.md +++ b/thousandeyes-sdk-labels/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-labels/pyproject.toml b/thousandeyes-sdk-labels/pyproject.toml index a5831ed9..d7d26586 100644 --- a/thousandeyes-sdk-labels/pyproject.toml +++ b/thousandeyes-sdk-labels/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-labels" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Labels API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Labels API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/agent_api.py b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/agent_api.py index 7e81e74e..86a9e07e 100644 --- a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/agent_api.py +++ b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/agent_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.labels.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.labels.models.labels import Labels from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AgentApi: @@ -41,7 +41,7 @@ class AgentApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-labels")) self.api_client = api_client diff --git a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/all_labels_api.py b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/all_labels_api.py index e674718a..b8659e29 100644 --- a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/all_labels_api.py +++ b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/all_labels_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.labels.models @@ -26,7 +27,6 @@ from thousandeyes_sdk.labels.models.labels import Labels from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AllLabelsApi: @@ -39,7 +39,7 @@ class AllLabelsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-labels")) self.api_client = api_client diff --git a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/dashboard_api.py b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/dashboard_api.py index 3aa3ca97..9e6061b9 100644 --- a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/dashboard_api.py +++ b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/dashboard_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.labels.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.labels.models.labels import Labels from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DashboardApi: @@ -41,7 +41,7 @@ class DashboardApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-labels")) self.api_client = api_client diff --git a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/endpoint_test_api.py b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/endpoint_test_api.py index 285f995f..c87f5ba6 100644 --- a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/endpoint_test_api.py +++ b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/endpoint_test_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.labels.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.labels.models.labels import Labels from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class EndpointTestApi: @@ -41,7 +41,7 @@ class EndpointTestApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-labels")) self.api_client = api_client diff --git a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/test_api.py b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/test_api.py index 920a2f5f..7ad98ef2 100644 --- a/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/test_api.py +++ b/thousandeyes-sdk-labels/src/thousandeyes_sdk/labels/api/test_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.labels.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.labels.models.labels import Labels from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class TestApi: @@ -41,7 +41,7 @@ class TestApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-labels")) self.api_client = api_client diff --git a/thousandeyes-sdk-snapshots/README.md b/thousandeyes-sdk-snapshots/README.md index dd7d3a4b..65c3a7ca 100644 --- a/thousandeyes-sdk-snapshots/README.md +++ b/thousandeyes-sdk-snapshots/README.md @@ -9,7 +9,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-snapshots/pyproject.toml b/thousandeyes-sdk-snapshots/pyproject.toml index fe550819..d2542f3f 100644 --- a/thousandeyes-sdk-snapshots/pyproject.toml +++ b/thousandeyes-sdk-snapshots/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-snapshots" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Test Snapshots API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Test Snapshots API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-snapshots/src/thousandeyes_sdk/snapshots/api/create_test_snapshot_api.py b/thousandeyes-sdk-snapshots/src/thousandeyes_sdk/snapshots/api/create_test_snapshot_api.py index 279a47f2..a08a44ef 100644 --- a/thousandeyes-sdk-snapshots/src/thousandeyes_sdk/snapshots/api/create_test_snapshot_api.py +++ b/thousandeyes-sdk-snapshots/src/thousandeyes_sdk/snapshots/api/create_test_snapshot_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.snapshots.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.snapshots.models.snapshot_response import SnapshotResponse from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class CreateTestSnapshotApi: @@ -40,7 +40,7 @@ class CreateTestSnapshotApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-snapshots")) self.api_client = api_client diff --git a/thousandeyes-sdk-streaming/README.md b/thousandeyes-sdk-streaming/README.md index f6f553b3..0d4f3ab9 100644 --- a/thousandeyes-sdk-streaming/README.md +++ b/thousandeyes-sdk-streaming/README.md @@ -21,7 +21,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-streaming/pyproject.toml b/thousandeyes-sdk-streaming/pyproject.toml index fd84c7a2..2221df66 100644 --- a/thousandeyes-sdk-streaming/pyproject.toml +++ b/thousandeyes-sdk-streaming/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-streaming" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "ThousandEyes for OpenTelemetry API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK ThousandEyes for OpenTelemetry API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/api/streaming_api.py b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/api/streaming_api.py index 889dcd52..da6ec628 100644 --- a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/api/streaming_api.py +++ b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/api/streaming_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.streaming.models @@ -30,7 +31,6 @@ from thousandeyes_sdk.streaming.models.stream_type import StreamType from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class StreamingApi: @@ -43,7 +43,7 @@ class StreamingApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-streaming")) self.api_client = api_client diff --git a/thousandeyes-sdk-tags/README.md b/thousandeyes-sdk-tags/README.md index 04b95db7..8d76c5c4 100644 --- a/thousandeyes-sdk-tags/README.md +++ b/thousandeyes-sdk-tags/README.md @@ -22,7 +22,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-tags/pyproject.toml b/thousandeyes-sdk-tags/pyproject.toml index 497b8e78..b398962c 100644 --- a/thousandeyes-sdk-tags/pyproject.toml +++ b/thousandeyes-sdk-tags/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-tags" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Tags API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Tags API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-tags/src/thousandeyes_sdk/tags/api/tag_assignment_api.py b/thousandeyes-sdk-tags/src/thousandeyes_sdk/tags/api/tag_assignment_api.py index 5e161aa8..f47eabdc 100644 --- a/thousandeyes-sdk-tags/src/thousandeyes_sdk/tags/api/tag_assignment_api.py +++ b/thousandeyes-sdk-tags/src/thousandeyes_sdk/tags/api/tag_assignment_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tags.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.tags.models.tag_assignment import TagAssignment from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class TagAssignmentApi: @@ -40,7 +40,7 @@ class TagAssignmentApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tags")) self.api_client = api_client diff --git a/thousandeyes-sdk-tags/src/thousandeyes_sdk/tags/api/tags_api.py b/thousandeyes-sdk-tags/src/thousandeyes_sdk/tags/api/tags_api.py index a1f04e26..3bd192be 100644 --- a/thousandeyes-sdk-tags/src/thousandeyes_sdk/tags/api/tags_api.py +++ b/thousandeyes-sdk-tags/src/thousandeyes_sdk/tags/api/tags_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tags.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.tags.models.tag_info import TagInfo from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class TagsApi: @@ -41,7 +41,7 @@ class TagsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tags")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/README.md b/thousandeyes-sdk-test-results/README.md index cf2ad648..79ca9832 100644 --- a/thousandeyes-sdk-test-results/README.md +++ b/thousandeyes-sdk-test-results/README.md @@ -9,7 +9,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-test-results/pyproject.toml b/thousandeyes-sdk-test-results/pyproject.toml index d8257ae3..e4382520 100644 --- a/thousandeyes-sdk-test-results/pyproject.toml +++ b/thousandeyes-sdk-test-results/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-test-results" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Test Results API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Test Results API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/api_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/api_test_metrics_api.py index 37da89ed..225d5cc0 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/api_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/api_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.test_results.models.api_test_results import ApiTestResults from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class APITestMetricsApi: @@ -41,7 +41,7 @@ class APITestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dns_server_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dns_server_test_metrics_api.py index 4f83756d..bfc405f8 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dns_server_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dns_server_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.test_results.models.dns_server_test_results import DnsServ from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DNSServerTestMetricsApi: @@ -40,7 +40,7 @@ class DNSServerTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dns_trace_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dns_trace_test_metrics_api.py index ec659c7c..05eebf0e 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dns_trace_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dns_trace_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.test_results.models.dns_trace_test_results import DnsTrace from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DNSTraceTestMetricsApi: @@ -40,7 +40,7 @@ class DNSTraceTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dnssec_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dnssec_test_metrics_api.py index 3a5e8001..7277e337 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dnssec_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/dnssec_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.test_results.models.dnssec_test_results import DnssecTestR from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DNSSECTestMetricsApi: @@ -40,7 +40,7 @@ class DNSSECTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_bgp_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_bgp_test_metrics_api.py index 4373ea44..1b8849e0 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_bgp_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_bgp_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.test_results.models.bgp_test_route_information_results imp from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class NetworkBGPTestMetricsApi: @@ -41,7 +41,7 @@ class NetworkBGPTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_test_metrics_api.py index 30a01cd5..289d3a7e 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -31,7 +32,6 @@ from thousandeyes_sdk.test_results.models.test_direction import TestDirection from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class NetworkTestMetricsApi: @@ -44,7 +44,7 @@ class NetworkTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_rtp_server_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_rtp_server_test_metrics_api.py index 19913a57..942c9cbb 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_rtp_server_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_rtp_server_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.test_results.models.rtp_stream_test_results import RtpStre from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class VoiceRTPServerTestMetricsApi: @@ -40,7 +40,7 @@ class VoiceRTPServerTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_sip_server_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_sip_server_test_metrics_api.py index 927b9ae9..ee9891f6 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_sip_server_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_sip_server_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.test_results.models.sip_server_test_results import SipServ from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class VoiceSIPServerTestMetricsApi: @@ -40,7 +40,7 @@ class VoiceSIPServerTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_ftp_server_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_ftp_server_test_metrics_api.py index 86602165..2bcacc30 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_ftp_server_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_ftp_server_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.test_results.models.ftp_server_test_results import FtpServ from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class WebFTPServerTestMetricsApi: @@ -40,7 +40,7 @@ class WebFTPServerTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_http_server_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_http_server_test_metrics_api.py index 2f249f48..8c28b4d3 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_http_server_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_http_server_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.test_results.models.http_test_results import HttpTestResul from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class WebHTTPServerTestMetricsApi: @@ -41,7 +41,7 @@ class WebHTTPServerTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_page_load_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_page_load_test_metrics_api.py index 12e1fd85..5c99c0e4 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_page_load_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_page_load_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -28,7 +29,6 @@ from thousandeyes_sdk.test_results.models.page_load_test_results import PageLoad from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class WebPageLoadTestMetricsApi: @@ -41,7 +41,7 @@ class WebPageLoadTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_transactions_test_metrics_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_transactions_test_metrics_api.py index e72264eb..35309ab6 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_transactions_test_metrics_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_transactions_test_metrics_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.test_results.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.test_results.models.web_transaction_test_results import We from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class WebTransactionsTestMetricsApi: @@ -42,7 +42,7 @@ class WebTransactionsTestMetricsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-test-results")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/README.md b/thousandeyes-sdk-tests/README.md index cecfbd71..3dc74a44 100644 --- a/thousandeyes-sdk-tests/README.md +++ b/thousandeyes-sdk-tests/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-tests/pyproject.toml b/thousandeyes-sdk-tests/pyproject.toml index 5000626d..05fe08a4 100644 --- a/thousandeyes-sdk-tests/pyproject.toml +++ b/thousandeyes-sdk-tests/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-tests" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Tests API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Tests API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_agent_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_agent_api.py index 06e9a6e6..59bdea06 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_agent_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_agent_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_agent_to_agent_test import UpdateAgent from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AgentToAgentApi: @@ -42,7 +42,7 @@ class AgentToAgentApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_server_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_server_api.py index fe9a289d..4ddfb8dc 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_server_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_agent_to_server_test import UpdateAgen from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AgentToServerApi: @@ -42,7 +42,7 @@ class AgentToServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/all_test_types_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/all_test_types_api.py index 7204f1c3..5c7d0217 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/all_test_types_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/all_test_types_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -26,7 +27,6 @@ from thousandeyes_sdk.tests.models.tests import Tests from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class AllTestTypesApi: @@ -39,7 +39,7 @@ class AllTestTypesApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/api_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/api_api.py index 57aced1b..7ba8afdf 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/api_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/api_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_api_test import UpdateApiTest from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class APIApi: @@ -42,7 +42,7 @@ class APIApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/bgp_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/bgp_api.py index ce94f0d3..aa69ec83 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/bgp_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/bgp_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -30,7 +31,6 @@ from thousandeyes_sdk.tests.models.update_bgp_test_request import UpdateBgpTestR from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class BGPApi: @@ -43,7 +43,7 @@ class BGPApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_server_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_server_api.py index 46024237..7a2931c7 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_server_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_dns_server_test import UpdateDnsServer from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DNSServerApi: @@ -42,7 +42,7 @@ class DNSServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_trace_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_trace_api.py index 14346e3e..9d23bfba 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_trace_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_trace_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_dns_trace_test import UpdateDnsTraceTe from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DNSTraceApi: @@ -42,7 +42,7 @@ class DNSTraceApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dnssec_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dnssec_api.py index b4781544..aac95cea 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dnssec_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dnssec_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_dns_sec_test import UpdateDnsSecTest from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class DNSSECApi: @@ -42,7 +42,7 @@ class DNSSECApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/ftp_server_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/ftp_server_api.py index 5abc8872..6142dfe5 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/ftp_server_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/ftp_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_ftp_server_test import UpdateFtpServer from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class FTPServerApi: @@ -42,7 +42,7 @@ class FTPServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/http_server_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/http_server_api.py index bf26a441..0b9cf07d 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/http_server_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/http_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_http_server_test import UpdateHttpServ from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class HTTPServerApi: @@ -42,7 +42,7 @@ class HTTPServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/page_load_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/page_load_api.py index db783847..533260cd 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/page_load_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/page_load_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_page_load_test import UpdatePageLoadTe from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class PageLoadApi: @@ -42,7 +42,7 @@ class PageLoadApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/path_visualization_interface_groups_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/path_visualization_interface_groups_api.py index 150dd19f..ecad806d 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/path_visualization_interface_groups_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/path_visualization_interface_groups_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -27,7 +28,6 @@ from thousandeyes_sdk.tests.models.interface_groups import InterfaceGroups from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class PathVisualizationInterfaceGroupsApi: @@ -40,7 +40,7 @@ class PathVisualizationInterfaceGroupsApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/sip_server_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/sip_server_api.py index 5689da7e..d8ce2b8f 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/sip_server_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/sip_server_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.update_sip_server_test import UpdateSipServer from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class SIPServerApi: @@ -42,7 +42,7 @@ class SIPServerApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/voice_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/voice_api.py index 3bdc5a0c..eb814626 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/voice_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/voice_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.voice_tests import VoiceTests from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class VoiceApi: @@ -42,7 +42,7 @@ class VoiceApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/web_transaction_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/web_transaction_api.py index 7cea66ba..abcd005c 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/web_transaction_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/web_transaction_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.tests.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.tests.models.web_transaction_tests import WebTransactionTe from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class WebTransactionApi: @@ -42,7 +42,7 @@ class WebTransactionApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-tests")) self.api_client = api_client diff --git a/thousandeyes-sdk-usage/README.md b/thousandeyes-sdk-usage/README.md index 4b27492a..3194517c 100644 --- a/thousandeyes-sdk-usage/README.md +++ b/thousandeyes-sdk-usage/README.md @@ -23,7 +23,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage ### pip install diff --git a/thousandeyes-sdk-usage/pyproject.toml b/thousandeyes-sdk-usage/pyproject.toml index d4ae4088..4c3e6bea 100644 --- a/thousandeyes-sdk-usage/pyproject.toml +++ b/thousandeyes-sdk-usage/pyproject.toml @@ -1,11 +1,13 @@ [project] name = "thousandeyes-sdk-usage" dynamic = ["version"] +readme = "README.md" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } ] -description = "Usage API" -license = { text = "../LICENSE" } +description = "ThousandEyes SDK Usage API" +license = { file = "LICENSE" } +requires-python = ">= 3.8" dependencies = [ "urllib3 >= 1.25.3", "python-dateutil >=2.8.2", @@ -15,7 +17,7 @@ dependencies = [ ] [tool.setuptools.dynamic] -version = {attr = "thousandeyes_sdk.core.__version__"} +version = {file = ".version"} [project.optional-dependencies] test = [ diff --git a/thousandeyes-sdk-usage/src/thousandeyes_sdk/usage/api/quotas_api.py b/thousandeyes-sdk-usage/src/thousandeyes_sdk/usage/api/quotas_api.py index 31a1732c..424081a1 100644 --- a/thousandeyes-sdk-usage/src/thousandeyes_sdk/usage/api/quotas_api.py +++ b/thousandeyes-sdk-usage/src/thousandeyes_sdk/usage/api/quotas_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.usage.models @@ -29,7 +30,6 @@ from thousandeyes_sdk.usage.models.quotas_unassign import QuotasUnassign from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class QuotasApi: @@ -42,7 +42,7 @@ class QuotasApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-usage")) self.api_client = api_client diff --git a/thousandeyes-sdk-usage/src/thousandeyes_sdk/usage/api/usage_api.py b/thousandeyes-sdk-usage/src/thousandeyes_sdk/usage/api/usage_api.py index c82a6867..00af3756 100644 --- a/thousandeyes-sdk-usage/src/thousandeyes_sdk/usage/api/usage_api.py +++ b/thousandeyes-sdk-usage/src/thousandeyes_sdk/usage/api/usage_api.py @@ -15,6 +15,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from importlib.metadata import version import thousandeyes_sdk.usage.models @@ -30,7 +31,6 @@ from thousandeyes_sdk.usage.models.usage import Usage from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.core.api_response import ApiResponse from thousandeyes_sdk.core.rest import RESTResponseType -from thousandeyes_sdk.core.version import Version class UsageApi: @@ -43,7 +43,7 @@ class UsageApi: def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() - api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(Version.get()) + api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-usage")) self.api_client = api_client