Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion thousandeyes-sdk-administrative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This API provides the following operations to manage your organization:

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 7.0.75
- API version: 7.0.76
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
2 changes: 1 addition & 1 deletion thousandeyes-sdk-agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Manage Cloud and Enterprise Agents available to your account in ThousandEyes.

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 7.0.75
- API version: 7.0.76
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
2 changes: 1 addition & 1 deletion thousandeyes-sdk-alerts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ For more information about the alerts, see [Alerts](https://docs.thousandeyes.co

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 7.0.75
- API version: 7.0.76
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
2 changes: 1 addition & 1 deletion thousandeyes-sdk-bgp-monitors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ For more information about monitors, see [Inside-Out BGP Visibility](https://doc

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 7.0.75
- API version: 7.0.76
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
2 changes: 1 addition & 1 deletion thousandeyes-sdk-credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For more information about credentials, see [Working With Secure Credentials](ht

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 7.0.75
- API version: 7.0.76
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
2 changes: 1 addition & 1 deletion thousandeyes-sdk-dashboards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Manage ThousandEyes Dashboards.

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 7.0.75
- API version: 7.0.76
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
2 changes: 1 addition & 1 deletion thousandeyes-sdk-emulation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To access Emulation API operations, the following permissions are required:

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 7.0.75
- API version: 7.0.76
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
6 changes: 6 additions & 0 deletions thousandeyes-sdk-endpoint-agents/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ docs/AgentThresholdFilters.md
docs/AgentTransfer.md
docs/AgentTransferRequest.md
docs/AgentTransferStatus.md
docs/BatteryLevel.md
docs/BatteryMetrics.md
docs/BrowserType.md
docs/BulkAgentTransferRequest.md
docs/BulkAgentTransferResponse.md
docs/CellularProfile.md
docs/ConditionalOperator.md
docs/ConnectionString.md
docs/EndpointAgent.md
Expand Down Expand Up @@ -69,9 +72,12 @@ src/thousandeyes_sdk/endpoint_agents/models/agent_threshold_filters.py
src/thousandeyes_sdk/endpoint_agents/models/agent_transfer.py
src/thousandeyes_sdk/endpoint_agents/models/agent_transfer_request.py
src/thousandeyes_sdk/endpoint_agents/models/agent_transfer_status.py
src/thousandeyes_sdk/endpoint_agents/models/battery_level.py
src/thousandeyes_sdk/endpoint_agents/models/battery_metrics.py
src/thousandeyes_sdk/endpoint_agents/models/browser_type.py
src/thousandeyes_sdk/endpoint_agents/models/bulk_agent_transfer_request.py
src/thousandeyes_sdk/endpoint_agents/models/bulk_agent_transfer_response.py
src/thousandeyes_sdk/endpoint_agents/models/cellular_profile.py
src/thousandeyes_sdk/endpoint_agents/models/conditional_operator.py
src/thousandeyes_sdk/endpoint_agents/models/connection_string.py
src/thousandeyes_sdk/endpoint_agents/models/endpoint_agent.py
Expand Down
5 changes: 4 additions & 1 deletion thousandeyes-sdk-endpoint-agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ For more information about Endpoint Agents, see [Endpoint Agents](https://docs.t

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 7.0.75
- API version: 7.0.76
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down Expand Up @@ -122,9 +122,12 @@ Class | Method | HTTP request | Description
- [AgentTransfer](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/AgentTransfer.md)
- [AgentTransferRequest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/AgentTransferRequest.md)
- [AgentTransferStatus](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/AgentTransferStatus.md)
- [BatteryLevel](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/BatteryLevel.md)
- [BatteryMetrics](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/BatteryMetrics.md)
- [BrowserType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/BrowserType.md)
- [BulkAgentTransferRequest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/BulkAgentTransferRequest.md)
- [BulkAgentTransferResponse](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/BulkAgentTransferResponse.md)
- [CellularProfile](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/CellularProfile.md)
- [ConditionalOperator](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/ConditionalOperator.md)
- [ConnectionString](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/ConnectionString.md)
- [EndpointAgent](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-agents/docs/EndpointAgent.md)
Expand Down
12 changes: 12 additions & 0 deletions thousandeyes-sdk-endpoint-agents/docs/BatteryLevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BatteryLevel

Battery level indicator.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


31 changes: 31 additions & 0 deletions thousandeyes-sdk-endpoint-agents/docs/BatteryMetrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# BatteryMetrics

Battery metrics for the endpoint agent.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**battery_level** | [**BatteryLevel**](BatteryLevel.md) | |
**battery_level_normalized_percent** | **float** | Battery level as a normalized percentage (0-1). |

## Example

```python
from thousandeyes_sdk.endpoint_agents.models.battery_metrics import BatteryMetrics

# TODO update the JSON string below
json = "{}"
# create an instance of BatteryMetrics from a JSON string
battery_metrics_instance = BatteryMetrics.from_json(json)
# print the JSON string representation of the object
print(BatteryMetrics.to_json())

# convert the object into a dict
battery_metrics_dict = battery_metrics_instance.to_dict()
# create an instance of BatteryMetrics from a dict
battery_metrics_from_dict = BatteryMetrics.from_dict(battery_metrics_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


39 changes: 39 additions & 0 deletions thousandeyes-sdk-endpoint-agents/docs/CellularProfile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# CellularProfile

Cellular network profile information for a mobile endpoint agent.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**carrier_name** | **str** | Carrier name | [optional]
**network_gen** | **str** | Cellular network generation. | [optional]
**network_subtype** | **str** | A real network subtype. It may be different from an advertised network type. | [optional]
**advertised_network_gen** | **str** | Cellular network generation. | [optional]
**advertised_network_subtype** | **str** | Advertised Network subtype | [optional]
**rssi** | **float** | Received Signal Strength Indicator in dBm. Values are always negative. | [optional]
**rsrp** | **float** | Reference Signal Received Power in dBm. Values are always negative. | [optional]
**rscp** | **float** | Received Signal Code Power in dBm. Values are always negative or zero. | [optional]
**rsrq** | **float** | Reference Signal Received Quality in dBm. Values are always negative. | [optional]
**sinr** | **float** | Signal to Interference and Noise Ratio in dBm. It can be negative or positive. | [optional]

## Example

```python
from thousandeyes_sdk.endpoint_agents.models.cellular_profile import CellularProfile

# TODO update the JSON string below
json = "{}"
# create an instance of CellularProfile from a JSON string
cellular_profile_instance = CellularProfile.from_json(json)
# print the JSON string representation of the object
print(CellularProfile.to_json())

# convert the object into a dict
cellular_profile_dict = cellular_profile_instance.to_dict()
# create an instance of CellularProfile from a dict
cellular_profile_from_dict = CellularProfile.from_dict(cellular_profile_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions thousandeyes-sdk-endpoint-agents/docs/EndpointAgent.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Name | Type | Description | Notes
**license_type** | [**AgentLicenseType**](AgentLicenseType.md) | | [optional]
**tcp_driver_available** | **bool** | Status of TCP test support on the agent. | [optional] [readonly]
**npcap_version** | **str** | For Windows agents, the version of the NPCAP driver that the agent has loaded. | [optional] [readonly]
**battery_metrics** | [**BatteryMetrics**](BatteryMetrics.md) | | [optional]
**cellular_profile** | [**CellularProfile**](CellularProfile.md) | | [optional]
**links** | [**SelfLinks**](SelfLinks.md) | | [optional]

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@
from thousandeyes_sdk.endpoint_agents.models.agent_transfer import AgentTransfer
from thousandeyes_sdk.endpoint_agents.models.agent_transfer_request import AgentTransferRequest
from thousandeyes_sdk.endpoint_agents.models.agent_transfer_status import AgentTransferStatus
from thousandeyes_sdk.endpoint_agents.models.battery_level import BatteryLevel
from thousandeyes_sdk.endpoint_agents.models.battery_metrics import BatteryMetrics
from thousandeyes_sdk.endpoint_agents.models.browser_type import BrowserType
from thousandeyes_sdk.endpoint_agents.models.bulk_agent_transfer_request import BulkAgentTransferRequest
from thousandeyes_sdk.endpoint_agents.models.bulk_agent_transfer_response import BulkAgentTransferResponse
from thousandeyes_sdk.endpoint_agents.models.cellular_profile import CellularProfile
from thousandeyes_sdk.endpoint_agents.models.conditional_operator import ConditionalOperator
from thousandeyes_sdk.endpoint_agents.models.connection_string import ConnectionString
from thousandeyes_sdk.endpoint_agents.models.endpoint_agent import EndpointAgent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
from thousandeyes_sdk.endpoint_agents.models.agent_transfer import AgentTransfer
from thousandeyes_sdk.endpoint_agents.models.agent_transfer_request import AgentTransferRequest
from thousandeyes_sdk.endpoint_agents.models.agent_transfer_status import AgentTransferStatus
from thousandeyes_sdk.endpoint_agents.models.battery_level import BatteryLevel
from thousandeyes_sdk.endpoint_agents.models.battery_metrics import BatteryMetrics
from thousandeyes_sdk.endpoint_agents.models.browser_type import BrowserType
from thousandeyes_sdk.endpoint_agents.models.bulk_agent_transfer_request import BulkAgentTransferRequest
from thousandeyes_sdk.endpoint_agents.models.bulk_agent_transfer_response import BulkAgentTransferResponse
from thousandeyes_sdk.endpoint_agents.models.cellular_profile import CellularProfile
from thousandeyes_sdk.endpoint_agents.models.conditional_operator import ConditionalOperator
from thousandeyes_sdk.endpoint_agents.models.connection_string import ConnectionString
from thousandeyes_sdk.endpoint_agents.models.endpoint_agent import EndpointAgent
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# coding: utf-8

"""
Endpoint Agents API

Manage ThousandEyes Endpoint Agents using this API. For more information about Endpoint Agents, see [Endpoint Agents](https://docs.thousandeyes.com/product-documentation/global-vantage-points/endpoint-agents).

Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class BatteryLevel(str, Enum):
"""
Battery level indicator.
"""

"""
allowed enum values
"""
HIGH = 'high'
MEDIUM = 'medium'
LOW = 'low'
UNKNOWN = 'unknown'

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of BatteryLevel from a JSON string"""
return cls(json.loads(json_str))

@classmethod
def _missing_(cls, value):
"""Handle unknown values"""
return cls.UNKNOWN

Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# coding: utf-8

"""
Endpoint Agents API

Manage ThousandEyes Endpoint Agents using this API. For more information about Endpoint Agents, see [Endpoint Agents](https://docs.thousandeyes.com/product-documentation/global-vantage-points/endpoint-agents).

Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import pprint
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Union
from typing_extensions import Annotated
from thousandeyes_sdk.endpoint_agents.models.battery_level import BatteryLevel
from typing import Optional, Set
from typing_extensions import Self

class BatteryMetrics(BaseModel):
"""
Battery metrics for the endpoint agent.
""" # noqa: E501
battery_level: BatteryLevel = Field(alias="batteryLevel")
battery_level_normalized_percent: Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]] = Field(description="Battery level as a normalized percentage (0-1).", alias="batteryLevelNormalizedPercent")
__properties: ClassVar[List[str]] = ["batteryLevel", "batteryLevelNormalizedPercent"]

model_config = ConfigDict(
populate_by_name=True,
validate_assignment=True,
protected_namespaces=(),
extra="allow",
)


def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.model_dump(by_alias=True))

def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True)

@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
"""Create an instance of BatteryMetrics from a JSON string"""
return cls.from_dict(json.loads(json_str))

def to_dict(self) -> Dict[str, Any]:
"""Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic's
`self.model_dump(by_alias=True)`:

* `None` is only added to the output dict for nullable fields that
were set at model initialization. Other fields with value `None`
are ignored.
"""
excluded_fields: Set[str] = set([
])

_dict = self.model_dump(
by_alias=True,
exclude=excluded_fields,
exclude_none=True,
)
return _dict

@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"""Create an instance of BatteryMetrics from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({
"batteryLevel": obj.get("batteryLevel"),
"batteryLevelNormalizedPercent": obj.get("batteryLevelNormalizedPercent")
})
return _obj


Loading