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
The table of contents is too big for display.
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.103
- API version: 7.0.104
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_create_account_group_models_validation(self) -> None:
request_from_json = thousandeyes_sdk.administrative.models.AccountGroupRequest.from_json(request_body_json)
assert_constructed_model_matches_example_json(request_from_json, request_loaded_json)


response_body_json = """
{
"isCurrentAccountGroup" : true,
Expand Down Expand Up @@ -101,14 +102,17 @@ def test_create_account_group_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.CreatedAccountGroup.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_delete_account_group_models_validation(self) -> None:
"""Test case for delete_account_group request and response models"""



def test_get_account_group_models_validation(self) -> None:
"""Test case for get_account_group request and response models"""


response_body_json = """
{
"isCurrentAccountGroup" : true,
Expand Down Expand Up @@ -477,10 +481,12 @@ def test_get_account_group_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.AccountGroupDetail.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_get_account_groups_models_validation(self) -> None:
"""Test case for get_account_groups request and response models"""


response_body_json = """
{
"_links" : {
Expand Down Expand Up @@ -515,6 +521,7 @@ def test_get_account_groups_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.AccountGroups.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_update_account_group_models_validation(self) -> None:
"""Test case for update_account_group request and response models"""
Expand All @@ -529,6 +536,7 @@ def test_update_account_group_models_validation(self) -> None:
request_from_json = thousandeyes_sdk.administrative.models.AccountGroupRequest.from_json(request_body_json)
assert_constructed_model_matches_example_json(request_from_json, request_loaded_json)


response_body_json = """
{
"isCurrentAccountGroup" : true,
Expand Down Expand Up @@ -897,6 +905,7 @@ def test_update_account_group_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.AccountGroupDetail.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)



if __name__ == '__main__':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def tearDown(self) -> None:
def test_get_permissions_models_validation(self) -> None:
"""Test case for get_permissions request and response models"""


response_body_json = """
{
"_links" : {
Expand Down Expand Up @@ -61,6 +62,7 @@ def test_get_permissions_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.Permissions.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)



if __name__ == '__main__':
Expand Down
9 changes: 9 additions & 0 deletions thousandeyes-sdk-administrative/test/test_roles_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_create_role_models_validation(self) -> None:
request_from_json = thousandeyes_sdk.administrative.models.RoleRequestBody.from_json(request_body_json)
assert_constructed_model_matches_example_json(request_from_json, request_loaded_json)


response_body_json = """
{
"_links" : {
Expand Down Expand Up @@ -74,14 +75,17 @@ def test_create_role_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.RoleDetail.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_delete_role_models_validation(self) -> None:
"""Test case for delete_role request and response models"""



def test_get_role_models_validation(self) -> None:
"""Test case for get_role request and response models"""


response_body_json = """
{
"_links" : {
Expand Down Expand Up @@ -115,10 +119,12 @@ def test_get_role_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.RoleDetail.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_get_roles_models_validation(self) -> None:
"""Test case for get_roles request and response models"""


response_body_json = """
{
"_links" : {
Expand Down Expand Up @@ -149,6 +155,7 @@ def test_get_roles_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.Roles.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_update_role_models_validation(self) -> None:
"""Test case for update_role request and response models"""
Expand All @@ -163,6 +170,7 @@ def test_update_role_models_validation(self) -> None:
request_from_json = thousandeyes_sdk.administrative.models.RoleRequestBody.from_json(request_body_json)
assert_constructed_model_matches_example_json(request_from_json, request_loaded_json)


response_body_json = """
{
"_links" : {
Expand Down Expand Up @@ -196,6 +204,7 @@ def test_update_role_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.RoleDetail.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)



if __name__ == '__main__':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def tearDown(self) -> None:
def test_get_user_events_models_validation(self) -> None:
"""Test case for get_user_events request and response models"""


response_body_json = """
{
"endDate" : "2022-07-18T22:00:54Z",
Expand Down Expand Up @@ -96,6 +97,7 @@ def test_get_user_events_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.AuditUserEvents.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)



if __name__ == '__main__':
Expand Down
11 changes: 11 additions & 0 deletions thousandeyes-sdk-administrative/test/test_users_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def test_create_user_models_validation(self) -> None:
request_from_json = thousandeyes_sdk.administrative.models.UserRequest.from_json(request_body_json)
assert_constructed_model_matches_example_json(request_from_json, request_loaded_json)


response_body_json = """
{
"loginAccountGroup" : {
Expand Down Expand Up @@ -121,14 +122,17 @@ def test_create_user_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.CreatedUser.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_delete_user_models_validation(self) -> None:
"""Test case for delete_user request and response models"""



def test_get_current_user_models_validation(self) -> None:
"""Test case for get_current_user request and response models"""


response_body_json = """
{
"loginAccountGroup" : {
Expand Down Expand Up @@ -201,10 +205,12 @@ def test_get_current_user_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.UserDetail.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_get_user_models_validation(self) -> None:
"""Test case for get_user request and response models"""


response_body_json = """
{
"loginAccountGroup" : {
Expand Down Expand Up @@ -277,10 +283,12 @@ def test_get_user_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.UserDetail.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_get_users_models_validation(self) -> None:
"""Test case for get_users request and response models"""


response_body_json = """
{
"_links" : {
Expand Down Expand Up @@ -321,6 +329,7 @@ def test_get_users_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.Users.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_update_user_models_validation(self) -> None:
"""Test case for update_user request and response models"""
Expand All @@ -344,6 +353,7 @@ def test_update_user_models_validation(self) -> None:
request_from_json = thousandeyes_sdk.administrative.models.UserRequest.from_json(request_body_json)
assert_constructed_model_matches_example_json(request_from_json, request_loaded_json)


response_body_json = """
{
"loginAccountGroup" : {
Expand Down Expand Up @@ -416,6 +426,7 @@ def test_update_user_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.administrative.models.UserDetail.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)



if __name__ == '__main__':
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.103
- API version: 7.0.104
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
6 changes: 4 additions & 2 deletions thousandeyes-sdk-agents/docs/CloudAndEnterpriseAgentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client:
aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional)
expand = ["cluster-member"] # List[AgentListExpand] | Optional parameter, off by default. Indicates which agent sub-resource to expand. For example, if you wish to expand the `clusterMembers` sub-resource, pass the `?expand=cluster-member` query. (optional)
agent_types = ["enterprise"] # List[CloudEnterpriseAgentType] | Specifies the type of agent to request. (optional)
labels = ['[\"myCustomLabeledAgent\"]'] # List[str] | Specifies the labels of the agents to request. (optional)
tag_keys = ['tag_keys_example'] # List[str] | Specifies which tag keys to request from the agents. (optional)
labels = ["myCustomLabeledAgent"] # List[str] | Specifies the labels of the agents to request. (optional)
tag_keys = [
'myCustomTagKeyForAgent'
] # List[str] | Specifies which tag keys to request from the agents. (optional)

try:
# List Cloud and Enterprise Agents
Expand Down
2 changes: 2 additions & 0 deletions thousandeyes-sdk-agents/test/test_agent_proxies_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def tearDown(self) -> None:
def test_get_agents_proxies_models_validation(self) -> None:
"""Test case for get_agents_proxies request and response models"""


response_body_json = """
{
"_links" : {
Expand Down Expand Up @@ -75,6 +76,7 @@ def test_get_agents_proxies_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.agents.models.AgentProxies.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)



if __name__ == '__main__':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def tearDown(self) -> None:
def test_get_agents_notification_rule_models_validation(self) -> None:
"""Test case for get_agents_notification_rule request and response models"""


response_body_json = """
{
"isDefault" : false,
Expand Down Expand Up @@ -142,10 +143,12 @@ def test_get_agents_notification_rule_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.agents.models.NotificationRuleDetail.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_get_agents_notification_rules_models_validation(self) -> None:
"""Test case for get_agents_notification_rules request and response models"""


response_body_json = """
{
"agentAlertRules" : [ {
Expand Down Expand Up @@ -178,6 +181,7 @@ def test_get_agents_notification_rules_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.agents.models.ListNotificationRulesResponse.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)



if __name__ == '__main__':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ def tearDown(self) -> None:
def test_delete_agent_models_validation(self) -> None:
"""Test case for delete_agent request and response models"""



def test_get_agent_models_validation(self) -> None:
"""Test case for get_agent request and response models"""


response_body_json = """
{
"agentId" : "281474976710706",
Expand Down Expand Up @@ -153,10 +155,12 @@ def test_get_agent_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.agents.models.AgentDetails.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_get_agents_models_validation(self) -> None:
"""Test case for get_agents request and response models"""


response_body_json = """
{
"_links" : {
Expand Down Expand Up @@ -219,6 +223,7 @@ def test_get_agents_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.agents.models.CloudEnterpriseAgents.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)


def test_update_agent_models_validation(self) -> None:
"""Test case for update_agent request and response models"""
Expand All @@ -239,6 +244,7 @@ def test_update_agent_models_validation(self) -> None:
request_from_json = thousandeyes_sdk.agents.models.AgentRequest.from_json(request_body_json)
assert_constructed_model_matches_example_json(request_from_json, request_loaded_json)


response_body_json = """
{
"agentId" : "281474976710706",
Expand Down Expand Up @@ -357,6 +363,7 @@ def test_update_agent_models_validation(self) -> None:
response_loaded_json = json.loads(response_body_json)
response_from_json = thousandeyes_sdk.agents.models.AgentDetails.from_json(response_body_json)
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)



if __name__ == '__main__':
Expand Down
Loading
Loading