thousandeyes-sdk-python/thousandeyes-sdk-endpoint-agents/test/test_agent_search_request.py
Jack Browne 92b9a0126c
CP-2126 Refactor HTTP client into shared package (#5)
* CP-2126 Refactor HTTP client into shared package

* CP-2126 Regenerate Python SDK
2024-05-23 11:57:23 +01:00

93 lines
3.3 KiB
Python

# 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).
The version of the OpenAPI document: 7.0.4
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from thousandeyes_sdk.endpoint_agents.models.agent_search_request import AgentSearchRequest
class TestAgentSearchRequest(unittest.TestCase):
"""AgentSearchRequest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AgentSearchRequest:
"""Test AgentSearchRequest
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `AgentSearchRequest`
"""
model = AgentSearchRequest()
if include_optional:
return AgentSearchRequest(
search_filters = thousandeyes_sdk.endpoint_agents.models.agent_search_filters.AgentSearchFilters(
id = [
'5d0764ac-7e42-4ec8-a0d4-39fc53edccba'
],
agent_name = [
'myagent-1234'
],
computer_name = [
'DESKTOP-45AE8'
],
username = ["picard"],
platform = [
'mac'
],
os_version = [
'Version 10.15.2'
],
location_country_iso = [
'FR'
],
location_subdivision1_code = [
'ENG'
],
location_city = [
'Paris'
],
license_type = [
'essentials'
], ),
threshold_filter = thousandeyes_sdk.endpoint_agents.models.agent_threshold_filters.AgentThresholdFilters(
filters = [
thousandeyes_sdk.endpoint_agents.models.agent_threshold_filter.AgentThresholdFilter(
name = 'last-seen-ms',
value = 1.337,
operator = 'gte', )
],
conditional_operator = 'and', ),
search_sort = [
thousandeyes_sdk.endpoint_agents.models.agent_search_sort.AgentSearchSort(
sort = 'platform',
order = 'desc', )
]
)
else:
return AgentSearchRequest(
)
"""
def testAgentSearchRequest(self):
"""Test AgentSearchRequest"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()