From bbbd543f078c7d2ce385a61c0e64beec824a4541 Mon Sep 17 00:00:00 2001 From: Shahid Hussain Khan Date: Fri, 31 May 2024 17:35:42 +0100 Subject: [PATCH] CP-2189 Update SDK names for admin and monitors modules --- .../test/test_account_group.py | 52 -- .../test/test_account_group_detail.py | 79 --- .../test/test_account_group_info.py | 55 -- .../test/test_account_group_request.py | 53 -- .../test/test_account_group_role.py | 56 -- .../test/test_account_groups.py | 63 -- thousandeyes-sdk-admin/test/test_agent.py | 62 -- .../test/test_agent_base.py | 53 -- .../test/test_audit_user_events.py | 73 --- thousandeyes-sdk-admin/test/test_base_role.py | 53 -- .../test/test_cloud_enterprise_agent_type.py | 33 - .../test/test_cluster_member.py | 64 -- .../test/test_created_account_group.py | 76 --- .../test/test_created_user.py | 79 --- .../test/test_enterprise_agent.py | 91 --- .../test/test_enterprise_agent_data.py | 79 --- .../test/test_enterprise_agent_ipv6_policy.py | 33 - .../test/test_enterprise_agent_state.py | 33 - thousandeyes-sdk-admin/test/test_error.py | 55 -- .../test/test_error_detail.py | 52 -- .../test/test_error_detail_code.py | 33 - thousandeyes-sdk-admin/test/test_expand.py | 33 - .../test/test_extended_user.py | 58 -- .../test/test_interface_ip_mapping.py | 52 -- thousandeyes-sdk-admin/test/test_link.py | 59 -- .../test/test_pagination_links.py | 77 --- .../test/test_permission.py | 54 -- .../test/test_permissions.py | 61 -- thousandeyes-sdk-admin/test/test_resource.py | 52 -- thousandeyes-sdk-admin/test/test_role.py | 54 -- .../test/test_role_detail.py | 64 -- .../test/test_role_request_body.py | 52 -- thousandeyes-sdk-admin/test/test_roles.py | 63 -- .../test/test_self_links.py | 59 -- .../test/test_simple_agent.py | 60 -- .../test/test_unauthorized_error.py | 52 -- thousandeyes-sdk-admin/test/test_user.py | 57 -- .../test/test_user_account_group.py | 58 -- .../test/test_user_account_group_role.py | 52 -- .../test/test_user_detail.py | 80 --- .../test/test_user_event.py | 62 -- .../test/test_user_request.py | 59 -- thousandeyes-sdk-admin/test/test_users.py | 63 -- .../test/test_validation_error.py | 61 -- .../test/test_validation_error_item.py | 53 -- .../.openapi-generator-ignore | 0 .../.openapi-generator/FILES | 51 +- .../.openapi-generator/VERSION | 0 .../README.md | 4 +- .../docs/AccountGroup.md | 0 .../docs/AccountGroupDetail.md | 0 .../docs/AccountGroupInfo.md | 0 .../docs/AccountGroupRequest.md | 0 .../docs/AccountGroupRole.md | 0 .../docs/AccountGroups.md | 0 .../docs/AccountGroupsApi.md | 10 +- .../docs/Agent.md | 0 .../docs/AgentBase.md | 0 .../docs/AuditUserEvents.md | 0 .../docs/BaseRole.md | 0 .../docs/CloudEnterpriseAgentType.md | 0 .../docs/ClusterMember.md | 0 .../docs/CreatedAccountGroup.md | 0 .../docs/CreatedUser.md | 0 .../docs/EnterpriseAgent.md | 0 .../docs/EnterpriseAgentData.md | 0 .../docs/EnterpriseAgentIpv6Policy.md | 0 .../docs/EnterpriseAgentState.md | 0 .../docs/Error.md | 0 .../docs/ErrorDetail.md | 0 .../docs/ErrorDetailCode.md | 0 .../docs/Expand.md | 0 .../docs/ExtendedUser.md | 0 .../docs/InterfaceIpMapping.md | 0 .../docs/Link.md | 0 .../docs/PaginationLinks.md | 0 .../docs/Permission.md | 0 .../docs/Permissions.md | 0 .../docs/PermissionsApi.md | 2 +- .../docs/Resource.md | 0 .../docs/Role.md | 0 .../docs/RoleDetail.md | 0 .../docs/RoleRequestBody.md | 0 .../docs/Roles.md | 0 .../docs/RolesApi.md | 10 +- .../docs/SelfLinks.md | 0 .../docs/SimpleAgent.md | 0 .../docs/UnauthorizedError.md | 0 .../docs/User.md | 0 .../docs/UserAccountGroup.md | 0 .../docs/UserAccountGroupRole.md | 0 .../docs/UserDetail.md | 0 .../docs/UserEvent.md | 0 .../docs/UserEventsApi.md | 2 +- .../docs/UserRequest.md | 0 .../docs/Users.md | 0 .../docs/UsersApi.md | 10 +- .../docs/ValidationError.md | 0 .../docs/ValidationErrorItem.md | 2 +- .../pyproject.toml | 2 +- .../setup.cfg | 0 .../src/thousandeyes_sdk/admin/__init__.py | 2 +- .../thousandeyes_sdk/admin/api/__init__.py | 0 .../admin/api/account_groups_api.py | 7 +- .../admin/api/permissions_api.py | 3 +- .../thousandeyes_sdk/admin/api/roles_api.py | 7 +- .../admin/api/user_events_api.py | 3 +- .../thousandeyes_sdk/admin/api/users_api.py | 7 +- .../thousandeyes_sdk/admin/models/__init__.py | 2 +- .../admin/models/account_group.py | 5 +- .../admin/models/account_group_detail.py | 5 +- .../admin/models/account_group_info.py | 5 +- .../admin/models/account_group_request.py | 5 +- .../admin/models/account_group_role.py | 5 +- .../admin/models/account_groups.py | 5 +- .../thousandeyes_sdk/admin/models/agent.py | 5 +- .../admin/models/agent_base.py | 5 +- .../admin/models/audit_user_events.py | 5 +- .../admin/models/base_role.py | 5 +- .../models/cloud_enterprise_agent_type.py | 2 +- .../admin/models/cluster_member.py | 5 +- .../admin/models/created_account_group.py | 5 +- .../admin/models/created_user.py | 5 +- .../admin/models/enterprise_agent.py | 5 +- .../admin/models/enterprise_agent_data.py | 5 +- .../models/enterprise_agent_ipv6_policy.py | 2 +- .../admin/models/enterprise_agent_state.py | 2 +- .../thousandeyes_sdk/admin/models/error.py | 5 +- .../admin/models/error_detail.py | 5 +- .../admin/models/error_detail_code.py | 2 +- .../thousandeyes_sdk/admin/models/expand.py | 2 +- .../admin/models/extended_user.py | 5 +- .../admin/models/interface_ip_mapping.py | 5 +- .../src/thousandeyes_sdk/admin/models/link.py | 5 +- .../admin/models/pagination_links.py | 5 +- .../admin/models/permission.py | 5 +- .../admin/models/permissions.py | 5 +- .../thousandeyes_sdk/admin/models/resource.py | 5 +- .../src/thousandeyes_sdk/admin/models/role.py | 5 +- .../admin/models/role_detail.py | 5 +- .../admin/models/role_request_body.py | 5 +- .../thousandeyes_sdk/admin/models/roles.py | 5 +- .../admin/models/self_links.py | 5 +- .../admin/models/simple_agent.py | 5 +- .../admin/models/unauthorized_error.py | 5 +- .../src/thousandeyes_sdk/admin/models/user.py | 5 +- .../admin/models/user_account_group.py | 5 +- .../admin/models/user_account_group_role.py | 5 +- .../admin/models/user_detail.py | 5 +- .../admin/models/user_event.py | 5 +- .../admin/models/user_request.py | 5 +- .../thousandeyes_sdk/admin/models/users.py | 5 +- .../admin/models/validation_error.py | 5 +- .../admin/models/validation_error_item.py | 9 +- .../src/thousandeyes_sdk/admin/py.typed | 0 .../test/__init__.py | 0 .../test/test_account_groups_api.py | 591 ++++++++++++++++++ .../test/test_permissions_api.py | 68 ++ .../test/test_roles_api.py | 201 ++++++ .../test/test_user_events_api.py | 103 +++ .../test/test_users_api.py | 345 ++++++++++ .../test/test_utils.py | 16 + .../.openapi-generator-ignore | 0 .../.openapi-generator/FILES | 27 + .../.openapi-generator/VERSION | 0 .../README.md | 12 +- .../docs/Error.md | 2 +- .../docs/Link.md | 2 +- .../docs/ListBGPMonitorsApi.md | 14 +- .../docs/Monitor.md | 2 +- .../docs/MonitorType.md | 0 .../docs/Monitors.md | 2 +- .../docs/SelfLinks.md | 2 +- .../docs/UnauthorizedError.md | 2 +- .../pyproject.toml | 2 +- .../setup.cfg | 0 .../bgp_monitors}/__init__.py | 18 +- .../bgp_monitors/api/__init__.py | 5 + .../api/list_bgp_monitors_api.py | 11 +- .../bgp_monitors}/models/__init__.py | 16 +- .../bgp_monitors}/models/error.py | 5 +- .../bgp_monitors}/models/link.py | 5 +- .../bgp_monitors}/models/monitor.py | 7 +- .../bgp_monitors}/models/monitor_type.py | 2 +- .../bgp_monitors}/models/monitors.py | 9 +- .../bgp_monitors}/models/self_links.py | 7 +- .../models/unauthorized_error.py | 5 +- .../thousandeyes_sdk/bgp_monitors}/py.typed | 0 .../test/__init__.py | 0 .../test/test_list_bgp_monitors_api.py | 72 +++ .../test/test_utils.py | 16 + .../.openapi-generator/FILES | 32 - .../thousandeyes_sdk/monitors/api/__init__.py | 5 - thousandeyes-sdk-monitors/test/test_error.py | 55 -- thousandeyes-sdk-monitors/test/test_link.py | 59 -- .../test/test_monitor.py | 56 -- .../test/test_monitor_type.py | 33 - .../test/test_monitors.py | 69 -- .../test/test_self_links.py | 59 -- .../test/test_unauthorized_error.py | 52 -- 200 files changed, 1688 insertions(+), 3261 deletions(-) delete mode 100644 thousandeyes-sdk-admin/test/test_account_group.py delete mode 100644 thousandeyes-sdk-admin/test/test_account_group_detail.py delete mode 100644 thousandeyes-sdk-admin/test/test_account_group_info.py delete mode 100644 thousandeyes-sdk-admin/test/test_account_group_request.py delete mode 100644 thousandeyes-sdk-admin/test/test_account_group_role.py delete mode 100644 thousandeyes-sdk-admin/test/test_account_groups.py delete mode 100644 thousandeyes-sdk-admin/test/test_agent.py delete mode 100644 thousandeyes-sdk-admin/test/test_agent_base.py delete mode 100644 thousandeyes-sdk-admin/test/test_audit_user_events.py delete mode 100644 thousandeyes-sdk-admin/test/test_base_role.py delete mode 100644 thousandeyes-sdk-admin/test/test_cloud_enterprise_agent_type.py delete mode 100644 thousandeyes-sdk-admin/test/test_cluster_member.py delete mode 100644 thousandeyes-sdk-admin/test/test_created_account_group.py delete mode 100644 thousandeyes-sdk-admin/test/test_created_user.py delete mode 100644 thousandeyes-sdk-admin/test/test_enterprise_agent.py delete mode 100644 thousandeyes-sdk-admin/test/test_enterprise_agent_data.py delete mode 100644 thousandeyes-sdk-admin/test/test_enterprise_agent_ipv6_policy.py delete mode 100644 thousandeyes-sdk-admin/test/test_enterprise_agent_state.py delete mode 100644 thousandeyes-sdk-admin/test/test_error.py delete mode 100644 thousandeyes-sdk-admin/test/test_error_detail.py delete mode 100644 thousandeyes-sdk-admin/test/test_error_detail_code.py delete mode 100644 thousandeyes-sdk-admin/test/test_expand.py delete mode 100644 thousandeyes-sdk-admin/test/test_extended_user.py delete mode 100644 thousandeyes-sdk-admin/test/test_interface_ip_mapping.py delete mode 100644 thousandeyes-sdk-admin/test/test_link.py delete mode 100644 thousandeyes-sdk-admin/test/test_pagination_links.py delete mode 100644 thousandeyes-sdk-admin/test/test_permission.py delete mode 100644 thousandeyes-sdk-admin/test/test_permissions.py delete mode 100644 thousandeyes-sdk-admin/test/test_resource.py delete mode 100644 thousandeyes-sdk-admin/test/test_role.py delete mode 100644 thousandeyes-sdk-admin/test/test_role_detail.py delete mode 100644 thousandeyes-sdk-admin/test/test_role_request_body.py delete mode 100644 thousandeyes-sdk-admin/test/test_roles.py delete mode 100644 thousandeyes-sdk-admin/test/test_self_links.py delete mode 100644 thousandeyes-sdk-admin/test/test_simple_agent.py delete mode 100644 thousandeyes-sdk-admin/test/test_unauthorized_error.py delete mode 100644 thousandeyes-sdk-admin/test/test_user.py delete mode 100644 thousandeyes-sdk-admin/test/test_user_account_group.py delete mode 100644 thousandeyes-sdk-admin/test/test_user_account_group_role.py delete mode 100644 thousandeyes-sdk-admin/test/test_user_detail.py delete mode 100644 thousandeyes-sdk-admin/test/test_user_event.py delete mode 100644 thousandeyes-sdk-admin/test/test_user_request.py delete mode 100644 thousandeyes-sdk-admin/test/test_users.py delete mode 100644 thousandeyes-sdk-admin/test/test_validation_error.py delete mode 100644 thousandeyes-sdk-admin/test/test_validation_error_item.py rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/.openapi-generator-ignore (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/.openapi-generator/FILES (75%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/.openapi-generator/VERSION (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/README.md (99%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/AccountGroup.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/AccountGroupDetail.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/AccountGroupInfo.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/AccountGroupRequest.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/AccountGroupRole.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/AccountGroups.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/AccountGroupsApi.md (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Agent.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/AgentBase.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/AuditUserEvents.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/BaseRole.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/CloudEnterpriseAgentType.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/ClusterMember.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/CreatedAccountGroup.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/CreatedUser.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/EnterpriseAgent.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/EnterpriseAgentData.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/EnterpriseAgentIpv6Policy.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/EnterpriseAgentState.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Error.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/ErrorDetail.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/ErrorDetailCode.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Expand.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/ExtendedUser.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/InterfaceIpMapping.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Link.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/PaginationLinks.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Permission.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Permissions.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/PermissionsApi.md (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Resource.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Role.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/RoleDetail.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/RoleRequestBody.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Roles.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/RolesApi.md (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/SelfLinks.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/SimpleAgent.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/UnauthorizedError.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/User.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/UserAccountGroup.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/UserAccountGroupRole.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/UserDetail.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/UserEvent.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/UserEventsApi.md (98%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/UserRequest.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/Users.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/UsersApi.md (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/ValidationError.md (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/docs/ValidationErrorItem.md (94%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/pyproject.toml (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/setup.cfg (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/__init__.py (98%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/api/__init__.py (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/api/account_groups_api.py (99%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/api/permissions_api.py (99%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/api/roles_api.py (99%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/api/user_events_api.py (99%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/api/users_api.py (99%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/__init__.py (98%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/account_group.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/account_group_detail.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/account_group_info.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/account_group_request.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/account_group_role.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/account_groups.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/agent.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/agent_base.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/audit_user_events.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/base_role.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/cloud_enterprise_agent_type.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/cluster_member.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/created_account_group.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/created_user.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/enterprise_agent.py (98%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/enterprise_agent_data.py (98%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/enterprise_agent_ipv6_policy.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/enterprise_agent_state.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/error.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/error_detail.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/error_detail_code.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/expand.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/extended_user.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/interface_ip_mapping.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/link.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/pagination_links.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/permission.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/permissions.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/resource.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/role.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/role_detail.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/role_request_body.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/roles.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/self_links.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/simple_agent.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/unauthorized_error.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/user.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/user_account_group.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/user_account_group_role.py (95%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/user_detail.py (97%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/user_event.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/user_request.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/users.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/validation_error.py (96%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/models/validation_error_item.py (92%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/src/thousandeyes_sdk/admin/py.typed (100%) rename {thousandeyes-sdk-admin => thousandeyes-sdk-administrative}/test/__init__.py (100%) create mode 100644 thousandeyes-sdk-administrative/test/test_account_groups_api.py create mode 100644 thousandeyes-sdk-administrative/test/test_permissions_api.py create mode 100644 thousandeyes-sdk-administrative/test/test_roles_api.py create mode 100644 thousandeyes-sdk-administrative/test/test_user_events_api.py create mode 100644 thousandeyes-sdk-administrative/test/test_users_api.py create mode 100644 thousandeyes-sdk-administrative/test/test_utils.py rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/.openapi-generator-ignore (100%) create mode 100644 thousandeyes-sdk-bgp-monitors/.openapi-generator/FILES rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/.openapi-generator/VERSION (100%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/README.md (94%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/docs/Error.md (95%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/docs/Link.md (96%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/docs/ListBGPMonitorsApi.md (87%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/docs/Monitor.md (94%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/docs/MonitorType.md (100%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/docs/Monitors.md (92%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/docs/SelfLinks.md (92%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/docs/UnauthorizedError.md (91%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/pyproject.toml (98%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/setup.cfg (100%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/__init__.py (64%) create mode 100644 thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/__init__.py rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/api/list_bgp_monitors_api.py (97%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/models/__init__.py (66%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/models/error.py (96%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/models/link.py (96%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/models/monitor.py (94%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/models/monitor_type.py (96%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/models/monitors.py (92%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/models/self_links.py (93%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/models/unauthorized_error.py (95%) rename {thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors => thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors}/py.typed (100%) rename {thousandeyes-sdk-monitors => thousandeyes-sdk-bgp-monitors}/test/__init__.py (100%) create mode 100644 thousandeyes-sdk-bgp-monitors/test/test_list_bgp_monitors_api.py create mode 100644 thousandeyes-sdk-bgp-monitors/test/test_utils.py delete mode 100644 thousandeyes-sdk-monitors/.openapi-generator/FILES delete mode 100644 thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/api/__init__.py delete mode 100644 thousandeyes-sdk-monitors/test/test_error.py delete mode 100644 thousandeyes-sdk-monitors/test/test_link.py delete mode 100644 thousandeyes-sdk-monitors/test/test_monitor.py delete mode 100644 thousandeyes-sdk-monitors/test/test_monitor_type.py delete mode 100644 thousandeyes-sdk-monitors/test/test_monitors.py delete mode 100644 thousandeyes-sdk-monitors/test/test_self_links.py delete mode 100644 thousandeyes-sdk-monitors/test/test_unauthorized_error.py diff --git a/thousandeyes-sdk-admin/test/test_account_group.py b/thousandeyes-sdk-admin/test/test_account_group.py deleted file mode 100644 index 1d6a024a..00000000 --- a/thousandeyes-sdk-admin/test/test_account_group.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.account_group import AccountGroup - -class TestAccountGroup(unittest.TestCase): - """AccountGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccountGroup: - """Test AccountGroup - 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 `AccountGroup` - """ - model = AccountGroup() - if include_optional: - return AccountGroup( - aid = '1234', - account_group_name = 'Account A' - ) - else: - return AccountGroup( - ) - """ - - def testAccountGroup(self): - """Test AccountGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_account_group_detail.py b/thousandeyes-sdk-admin/test/test_account_group_detail.py deleted file mode 100644 index f6ad8566..00000000 --- a/thousandeyes-sdk-admin/test/test_account_group_detail.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.account_group_detail import AccountGroupDetail - -class TestAccountGroupDetail(unittest.TestCase): - """AccountGroupDetail unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccountGroupDetail: - """Test AccountGroupDetail - 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 `AccountGroupDetail` - """ - model = AccountGroupDetail() - if include_optional: - return AccountGroupDetail( - aid = '1234', - account_group_name = 'Account A', - is_current_account_group = True, - is_default_account_group = True, - organization_name = '', - users = [ - thousandeyes_sdk.admin.models.user_account_group.UserAccountGroup( - name = 'User X', - email = 'userx@thousandeyes.com', - uid = '235', - last_login = '2022-07-17T22:00:54Z', - date_registered = '2022-07-17T22:00:54Z', - roles = [ - thousandeyes_sdk.admin.models.role.Role() - ], ) - ], - links = thousandeyes_sdk.admin.models.self_links.SelfLinks( - self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ), - agents = [ - null - ] - ) - else: - return AccountGroupDetail( - ) - """ - - def testAccountGroupDetail(self): - """Test AccountGroupDetail""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_account_group_info.py b/thousandeyes-sdk-admin/test/test_account_group_info.py deleted file mode 100644 index c80a1a69..00000000 --- a/thousandeyes-sdk-admin/test/test_account_group_info.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.account_group_info import AccountGroupInfo - -class TestAccountGroupInfo(unittest.TestCase): - """AccountGroupInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccountGroupInfo: - """Test AccountGroupInfo - 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 `AccountGroupInfo` - """ - model = AccountGroupInfo() - if include_optional: - return AccountGroupInfo( - aid = '1234', - account_group_name = 'Account A', - is_current_account_group = True, - is_default_account_group = True, - organization_name = '' - ) - else: - return AccountGroupInfo( - ) - """ - - def testAccountGroupInfo(self): - """Test AccountGroupInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_account_group_request.py b/thousandeyes-sdk-admin/test/test_account_group_request.py deleted file mode 100644 index dcba9713..00000000 --- a/thousandeyes-sdk-admin/test/test_account_group_request.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.account_group_request import AccountGroupRequest - -class TestAccountGroupRequest(unittest.TestCase): - """AccountGroupRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccountGroupRequest: - """Test AccountGroupRequest - 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 `AccountGroupRequest` - """ - model = AccountGroupRequest() - if include_optional: - return AccountGroupRequest( - account_group_name = 'My testing account group', - agents = ["105","719"] - ) - else: - return AccountGroupRequest( - account_group_name = 'My testing account group', - ) - """ - - def testAccountGroupRequest(self): - """Test AccountGroupRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_account_group_role.py b/thousandeyes-sdk-admin/test/test_account_group_role.py deleted file mode 100644 index 12a6015e..00000000 --- a/thousandeyes-sdk-admin/test/test_account_group_role.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.account_group_role import AccountGroupRole - -class TestAccountGroupRole(unittest.TestCase): - """AccountGroupRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccountGroupRole: - """Test AccountGroupRole - 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 `AccountGroupRole` - """ - model = AccountGroupRole() - if include_optional: - return AccountGroupRole( - account_group = thousandeyes_sdk.admin.models.account_group.AccountGroup( - aid = '1234', - account_group_name = 'Account A', ), - roles = [ - thousandeyes_sdk.admin.models.role.Role() - ] - ) - else: - return AccountGroupRole( - ) - """ - - def testAccountGroupRole(self): - """Test AccountGroupRole""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_account_groups.py b/thousandeyes-sdk-admin/test/test_account_groups.py deleted file mode 100644 index 71453d3e..00000000 --- a/thousandeyes-sdk-admin/test/test_account_groups.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.account_groups import AccountGroups - -class TestAccountGroups(unittest.TestCase): - """AccountGroups unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccountGroups: - """Test AccountGroups - 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 `AccountGroups` - """ - model = AccountGroups() - if include_optional: - return AccountGroups( - account_groups = [ - null - ], - links = thousandeyes_sdk.admin.models.self_links.SelfLinks( - self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ) - ) - else: - return AccountGroups( - ) - """ - - def testAccountGroups(self): - """Test AccountGroups""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_agent.py b/thousandeyes-sdk-admin/test/test_agent.py deleted file mode 100644 index 1f711ad4..00000000 --- a/thousandeyes-sdk-admin/test/test_agent.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.agent import Agent - -class TestAgent(unittest.TestCase): - """Agent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Agent: - """Test Agent - 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 `Agent` - """ - model = Agent() - if include_optional: - return Agent( - ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"], - public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"], - network = 'AT&T Services, Inc. (AS 7018)', - agent_id = '281474976710706', - agent_name = 'thousandeyes-stg-va-254', - location = 'San Francisco Bay Area', - country_id = 'US', - enabled = True, - prefix = '99.128.0.0/11', - verify_ssl_certificates = True, - agent_type = 'enterprise-cluster' - ) - else: - return Agent( - agent_type = 'enterprise-cluster', - ) - """ - - def testAgent(self): - """Test Agent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_agent_base.py b/thousandeyes-sdk-admin/test/test_agent_base.py deleted file mode 100644 index b89d1541..00000000 --- a/thousandeyes-sdk-admin/test/test_agent_base.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.agent_base import AgentBase - -class TestAgentBase(unittest.TestCase): - """AgentBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentBase: - """Test AgentBase - 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 `AgentBase` - """ - model = AgentBase() - if include_optional: - return AgentBase( - ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"], - public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"], - network = 'AT&T Services, Inc. (AS 7018)' - ) - else: - return AgentBase( - ) - """ - - def testAgentBase(self): - """Test AgentBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_audit_user_events.py b/thousandeyes-sdk-admin/test/test_audit_user_events.py deleted file mode 100644 index 172fac0f..00000000 --- a/thousandeyes-sdk-admin/test/test_audit_user_events.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.audit_user_events import AuditUserEvents - -class TestAuditUserEvents(unittest.TestCase): - """AuditUserEvents unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuditUserEvents: - """Test AuditUserEvents - 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 `AuditUserEvents` - """ - model = AuditUserEvents() - if include_optional: - return AuditUserEvents( - audit_events = [{"accountGroupName":"API Sandbox","aid":"1234","date":"2020-07-17T21:54:54Z","event":"Report created.","ipAddress":"99.128.0.0/11","uid":"1234","user":"API Sandbox User (noreply@thousandeyes.com)","resources":[{"name":"My New report","type":"reportTitle"},{"name":"Other Report","type":"testName"}]},{"accountGroupName":"API Sandbox","aid":"1234","date":"2020-07-17T22:00:54Z","event":"Login failed.","ipAddress":"99.128.0.0/11","uid":"1234","user":"API Sandbox User (noreply@thousandeyes.com)"}], - start_date = '2022-07-17T22:00:54Z', - end_date = '2022-07-18T22:00:54Z', - links = thousandeyes_sdk.admin.models.pagination_links.PaginationLinks( - previous = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), - next = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), - self = , ) - ) - else: - return AuditUserEvents( - ) - """ - - def testAuditUserEvents(self): - """Test AuditUserEvents""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_base_role.py b/thousandeyes-sdk-admin/test/test_base_role.py deleted file mode 100644 index fb9000ca..00000000 --- a/thousandeyes-sdk-admin/test/test_base_role.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.base_role import BaseRole - -class TestBaseRole(unittest.TestCase): - """BaseRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseRole: - """Test BaseRole - 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 `BaseRole` - """ - model = BaseRole() - if include_optional: - return BaseRole( - name = 'Organization Admin', - role_id = '35', - is_builtin = True - ) - else: - return BaseRole( - ) - """ - - def testBaseRole(self): - """Test BaseRole""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_cloud_enterprise_agent_type.py b/thousandeyes-sdk-admin/test/test_cloud_enterprise_agent_type.py deleted file mode 100644 index 63e155d8..00000000 --- a/thousandeyes-sdk-admin/test/test_cloud_enterprise_agent_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType - -class TestCloudEnterpriseAgentType(unittest.TestCase): - """CloudEnterpriseAgentType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCloudEnterpriseAgentType(self): - """Test CloudEnterpriseAgentType""" - # inst = CloudEnterpriseAgentType() - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_cluster_member.py b/thousandeyes-sdk-admin/test/test_cluster_member.py deleted file mode 100644 index 7bc4e7bb..00000000 --- a/thousandeyes-sdk-admin/test/test_cluster_member.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.cluster_member import ClusterMember - -class TestClusterMember(unittest.TestCase): - """ClusterMember unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ClusterMember: - """Test ClusterMember - 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 `ClusterMember` - """ - model = ClusterMember() - if include_optional: - return ClusterMember( - ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"], - public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"], - network = 'AT&T Services, Inc. (AS 7018)', - member_id = '10', - name = 'Cluster member name', - error_details = [ - thousandeyes_sdk.admin.models.error_detail.ErrorDetail( - code = 'agent-version-outdated', - description = 'Agent Version 0.1.1 (latest: 1.0.0)', ) - ], - last_seen = '2022-07-17T22:00:54Z', - agent_state = 'online', - target_for_tests = '1.1.1.1', - utilization = 25 - ) - else: - return ClusterMember( - ) - """ - - def testClusterMember(self): - """Test ClusterMember""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_created_account_group.py b/thousandeyes-sdk-admin/test/test_created_account_group.py deleted file mode 100644 index 2e68adc2..00000000 --- a/thousandeyes-sdk-admin/test/test_created_account_group.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.created_account_group import CreatedAccountGroup - -class TestCreatedAccountGroup(unittest.TestCase): - """CreatedAccountGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreatedAccountGroup: - """Test CreatedAccountGroup - 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 `CreatedAccountGroup` - """ - model = CreatedAccountGroup() - if include_optional: - return CreatedAccountGroup( - aid = '1234', - account_group_name = 'Account A', - is_current_account_group = True, - is_default_account_group = True, - organization_name = '', - users = [ - thousandeyes_sdk.admin.models.user_account_group.UserAccountGroup( - name = 'User X', - email = 'userx@thousandeyes.com', - uid = '235', - last_login = '2022-07-17T22:00:54Z', - date_registered = '2022-07-17T22:00:54Z', - roles = [ - thousandeyes_sdk.admin.models.role.Role() - ], ) - ], - links = thousandeyes_sdk.admin.models.self_links.SelfLinks( - self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ) - ) - else: - return CreatedAccountGroup( - ) - """ - - def testCreatedAccountGroup(self): - """Test CreatedAccountGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_created_user.py b/thousandeyes-sdk-admin/test/test_created_user.py deleted file mode 100644 index 48cef355..00000000 --- a/thousandeyes-sdk-admin/test/test_created_user.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.created_user import CreatedUser - -class TestCreatedUser(unittest.TestCase): - """CreatedUser unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreatedUser: - """Test CreatedUser - 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 `CreatedUser` - """ - model = CreatedUser() - if include_optional: - return CreatedUser( - name = 'User X', - email = 'userx@thousandeyes.com', - uid = '245', - date_registered = '2020-07-17T22:00:54Z', - login_account_group = thousandeyes_sdk.admin.models.account_group.AccountGroup( - aid = '1234', - account_group_name = 'Account A', ), - account_group_roles = [ - thousandeyes_sdk.admin.models.account_group_role.AccountGroupRole( - account_group = thousandeyes_sdk.admin.models.account_group.AccountGroup( - aid = '1234', - account_group_name = 'Account A', ), - roles = [ - thousandeyes_sdk.admin.models.role.Role() - ], ) - ], - all_account_group_roles = [ - thousandeyes_sdk.admin.models.role.Role() - ], - links = thousandeyes_sdk.admin.models.self_links.SelfLinks( - self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ) - ) - else: - return CreatedUser( - ) - """ - - def testCreatedUser(self): - """Test CreatedUser""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_enterprise_agent.py b/thousandeyes-sdk-admin/test/test_enterprise_agent.py deleted file mode 100644 index 1eb456bb..00000000 --- a/thousandeyes-sdk-admin/test/test_enterprise_agent.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.enterprise_agent import EnterpriseAgent - -class TestEnterpriseAgent(unittest.TestCase): - """EnterpriseAgent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EnterpriseAgent: - """Test EnterpriseAgent - 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 `EnterpriseAgent` - """ - model = EnterpriseAgent() - if include_optional: - return EnterpriseAgent( - agent_type = 'enterprise-cluster', - ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"], - public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"], - network = 'AT&T Services, Inc. (AS 7018)', - agent_id = '281474976710706', - agent_name = 'thousandeyes-stg-va-254', - location = 'San Francisco Bay Area', - country_id = 'US', - enabled = True, - prefix = '99.128.0.0/11', - verify_ssl_certificates = True, - cluster_members = [ - null - ], - utilization = 25, - account_groups = [ - thousandeyes_sdk.admin.models.account_group.AccountGroup( - aid = '1234', - account_group_name = 'Account A', ) - ], - ipv6_policy = 'force-ipv4', - error_details = [ - thousandeyes_sdk.admin.models.error_detail.ErrorDetail( - code = 'agent-version-outdated', - description = 'Agent Version 0.1.1 (latest: 1.0.0)', ) - ], - hostname = 'thousandeyes.com', - last_seen = '2022-07-17T22:00:54Z', - agent_state = 'online', - keep_browser_cache = True, - created_date = '2022-07-17T22:00:54Z', - target_for_tests = '1.1.1.1', - local_resolution_prefixes = [ - '10.2.3.3/24' - ], - interface_ip_mappings = [ - thousandeyes_sdk.admin.models.interface_ip_mapping.InterfaceIpMapping( - interface_name = 'wlp4s0', - ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"], ) - ] - ) - else: - return EnterpriseAgent( - agent_type = 'enterprise-cluster', - ) - """ - - def testEnterpriseAgent(self): - """Test EnterpriseAgent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_enterprise_agent_data.py b/thousandeyes-sdk-admin/test/test_enterprise_agent_data.py deleted file mode 100644 index 8e9ed8eb..00000000 --- a/thousandeyes-sdk-admin/test/test_enterprise_agent_data.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.enterprise_agent_data import EnterpriseAgentData - -class TestEnterpriseAgentData(unittest.TestCase): - """EnterpriseAgentData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EnterpriseAgentData: - """Test EnterpriseAgentData - 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 `EnterpriseAgentData` - """ - model = EnterpriseAgentData() - if include_optional: - return EnterpriseAgentData( - cluster_members = [ - null - ], - utilization = 25, - account_groups = [ - thousandeyes_sdk.admin.models.account_group.AccountGroup( - aid = '1234', - account_group_name = 'Account A', ) - ], - ipv6_policy = 'force-ipv4', - error_details = [ - thousandeyes_sdk.admin.models.error_detail.ErrorDetail( - code = 'agent-version-outdated', - description = 'Agent Version 0.1.1 (latest: 1.0.0)', ) - ], - hostname = 'thousandeyes.com', - last_seen = '2022-07-17T22:00:54Z', - agent_state = 'online', - keep_browser_cache = True, - created_date = '2022-07-17T22:00:54Z', - target_for_tests = '1.1.1.1', - local_resolution_prefixes = [ - '10.2.3.3/24' - ], - interface_ip_mappings = [ - thousandeyes_sdk.admin.models.interface_ip_mapping.InterfaceIpMapping( - interface_name = 'wlp4s0', - ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"], ) - ] - ) - else: - return EnterpriseAgentData( - ) - """ - - def testEnterpriseAgentData(self): - """Test EnterpriseAgentData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_enterprise_agent_ipv6_policy.py b/thousandeyes-sdk-admin/test/test_enterprise_agent_ipv6_policy.py deleted file mode 100644 index 9bbc42b4..00000000 --- a/thousandeyes-sdk-admin/test/test_enterprise_agent_ipv6_policy.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy - -class TestEnterpriseAgentIpv6Policy(unittest.TestCase): - """EnterpriseAgentIpv6Policy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEnterpriseAgentIpv6Policy(self): - """Test EnterpriseAgentIpv6Policy""" - # inst = EnterpriseAgentIpv6Policy() - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_enterprise_agent_state.py b/thousandeyes-sdk-admin/test/test_enterprise_agent_state.py deleted file mode 100644 index 33717b15..00000000 --- a/thousandeyes-sdk-admin/test/test_enterprise_agent_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.enterprise_agent_state import EnterpriseAgentState - -class TestEnterpriseAgentState(unittest.TestCase): - """EnterpriseAgentState unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEnterpriseAgentState(self): - """Test EnterpriseAgentState""" - # inst = EnterpriseAgentState() - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_error.py b/thousandeyes-sdk-admin/test/test_error.py deleted file mode 100644 index c269eefd..00000000 --- a/thousandeyes-sdk-admin/test/test_error.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.error import Error - -class TestError(unittest.TestCase): - """Error unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Error: - """Test Error - 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 `Error` - """ - model = Error() - if include_optional: - return Error( - type = '', - title = '', - status = 56, - detail = '', - instance = '' - ) - else: - return Error( - ) - """ - - def testError(self): - """Test Error""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_error_detail.py b/thousandeyes-sdk-admin/test/test_error_detail.py deleted file mode 100644 index ef88d11f..00000000 --- a/thousandeyes-sdk-admin/test/test_error_detail.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.error_detail import ErrorDetail - -class TestErrorDetail(unittest.TestCase): - """ErrorDetail unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ErrorDetail: - """Test ErrorDetail - 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 `ErrorDetail` - """ - model = ErrorDetail() - if include_optional: - return ErrorDetail( - code = 'agent-version-outdated', - description = 'Agent Version 0.1.1 (latest: 1.0.0)' - ) - else: - return ErrorDetail( - ) - """ - - def testErrorDetail(self): - """Test ErrorDetail""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_error_detail_code.py b/thousandeyes-sdk-admin/test/test_error_detail_code.py deleted file mode 100644 index e60690c8..00000000 --- a/thousandeyes-sdk-admin/test/test_error_detail_code.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.error_detail_code import ErrorDetailCode - -class TestErrorDetailCode(unittest.TestCase): - """ErrorDetailCode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorDetailCode(self): - """Test ErrorDetailCode""" - # inst = ErrorDetailCode() - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_expand.py b/thousandeyes-sdk-admin/test/test_expand.py deleted file mode 100644 index 22e0902e..00000000 --- a/thousandeyes-sdk-admin/test/test_expand.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.expand import Expand - -class TestExpand(unittest.TestCase): - """Expand unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExpand(self): - """Test Expand""" - # inst = Expand() - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_extended_user.py b/thousandeyes-sdk-admin/test/test_extended_user.py deleted file mode 100644 index 89507f16..00000000 --- a/thousandeyes-sdk-admin/test/test_extended_user.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.extended_user import ExtendedUser - -class TestExtendedUser(unittest.TestCase): - """ExtendedUser unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtendedUser: - """Test ExtendedUser - 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 `ExtendedUser` - """ - model = ExtendedUser() - if include_optional: - return ExtendedUser( - name = 'User X', - email = 'userx@thousandeyes.com', - uid = '245', - date_registered = '2020-07-17T22:00:54Z', - login_account_group = thousandeyes_sdk.admin.models.account_group.AccountGroup( - aid = '1234', - account_group_name = 'Account A', ), - last_login = '2022-07-17T22:00:54Z' - ) - else: - return ExtendedUser( - ) - """ - - def testExtendedUser(self): - """Test ExtendedUser""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_interface_ip_mapping.py b/thousandeyes-sdk-admin/test/test_interface_ip_mapping.py deleted file mode 100644 index 4b56c9ab..00000000 --- a/thousandeyes-sdk-admin/test/test_interface_ip_mapping.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.interface_ip_mapping import InterfaceIpMapping - -class TestInterfaceIpMapping(unittest.TestCase): - """InterfaceIpMapping unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InterfaceIpMapping: - """Test InterfaceIpMapping - 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 `InterfaceIpMapping` - """ - model = InterfaceIpMapping() - if include_optional: - return InterfaceIpMapping( - interface_name = 'wlp4s0', - ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"] - ) - else: - return InterfaceIpMapping( - ) - """ - - def testInterfaceIpMapping(self): - """Test InterfaceIpMapping""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_link.py b/thousandeyes-sdk-admin/test/test_link.py deleted file mode 100644 index 0595d989..00000000 --- a/thousandeyes-sdk-admin/test/test_link.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.link import Link - -class TestLink(unittest.TestCase): - """Link unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Link: - """Test Link - 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 `Link` - """ - model = Link() - if include_optional: - return Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '' - ) - else: - return Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - ) - """ - - def testLink(self): - """Test Link""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_pagination_links.py b/thousandeyes-sdk-admin/test/test_pagination_links.py deleted file mode 100644 index fdb2cceb..00000000 --- a/thousandeyes-sdk-admin/test/test_pagination_links.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.pagination_links import PaginationLinks - -class TestPaginationLinks(unittest.TestCase): - """PaginationLinks unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PaginationLinks: - """Test PaginationLinks - 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 `PaginationLinks` - """ - model = PaginationLinks() - if include_optional: - return PaginationLinks( - previous = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), - next = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), - var_self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ) - ) - else: - return PaginationLinks( - ) - """ - - def testPaginationLinks(self): - """Test PaginationLinks""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_permission.py b/thousandeyes-sdk-admin/test/test_permission.py deleted file mode 100644 index f921b3e2..00000000 --- a/thousandeyes-sdk-admin/test/test_permission.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.permission import Permission - -class TestPermission(unittest.TestCase): - """Permission unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Permission: - """Test Permission - 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 `Permission` - """ - model = Permission() - if include_optional: - return Permission( - label = 'View reports', - permission_id = '56', - is_management_permission = True, - permission = 'REPORT_SNAPSHOTS_READ' - ) - else: - return Permission( - ) - """ - - def testPermission(self): - """Test Permission""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_permissions.py b/thousandeyes-sdk-admin/test/test_permissions.py deleted file mode 100644 index 98cbf1f3..00000000 --- a/thousandeyes-sdk-admin/test/test_permissions.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.permissions import Permissions - -class TestPermissions(unittest.TestCase): - """Permissions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Permissions: - """Test Permissions - 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 `Permissions` - """ - model = Permissions() - if include_optional: - return Permissions( - permissions = [{"label":"View reports","permissionId":1,"isManagementPermission":true,"permission":"REPORT_READ"},{"label":"View snapshots","permissionId":51,"isManagementPermission":false,"permission":"REPORT_SNAPSHOTS_READ"}], - links = thousandeyes_sdk.admin.models.self_links.SelfLinks( - self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ) - ) - else: - return Permissions( - ) - """ - - def testPermissions(self): - """Test Permissions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_resource.py b/thousandeyes-sdk-admin/test/test_resource.py deleted file mode 100644 index 12085ae2..00000000 --- a/thousandeyes-sdk-admin/test/test_resource.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.resource import Resource - -class TestResource(unittest.TestCase): - """Resource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Resource: - """Test Resource - 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 `Resource` - """ - model = Resource() - if include_optional: - return Resource( - type = '', - name = '' - ) - else: - return Resource( - ) - """ - - def testResource(self): - """Test Resource""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_role.py b/thousandeyes-sdk-admin/test/test_role.py deleted file mode 100644 index 0b7e5fc9..00000000 --- a/thousandeyes-sdk-admin/test/test_role.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.role import Role - -class TestRole(unittest.TestCase): - """Role unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Role: - """Test Role - 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 `Role` - """ - model = Role() - if include_optional: - return Role( - name = 'Organization Admin', - role_id = '35', - is_builtin = True, - has_management_permissions = True - ) - else: - return Role( - ) - """ - - def testRole(self): - """Test Role""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_role_detail.py b/thousandeyes-sdk-admin/test/test_role_detail.py deleted file mode 100644 index 98b3b6b9..00000000 --- a/thousandeyes-sdk-admin/test/test_role_detail.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.role_detail import RoleDetail - -class TestRoleDetail(unittest.TestCase): - """RoleDetail unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RoleDetail: - """Test RoleDetail - 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 `RoleDetail` - """ - model = RoleDetail() - if include_optional: - return RoleDetail( - name = 'Organization Admin', - role_id = '35', - is_builtin = True, - permissions = [{"label":"View reports","permissionId":1,"isManagementPermission":true,"permission":"REPORT_READ"},{"label":"View snapshots","permissionId":51,"isManagementPermission":false,"permission":"REPORT_SNAPSHOTS_READ"}], - links = thousandeyes_sdk.admin.models.self_links.SelfLinks( - self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ) - ) - else: - return RoleDetail( - ) - """ - - def testRoleDetail(self): - """Test RoleDetail""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_role_request_body.py b/thousandeyes-sdk-admin/test/test_role_request_body.py deleted file mode 100644 index d194ff09..00000000 --- a/thousandeyes-sdk-admin/test/test_role_request_body.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.role_request_body import RoleRequestBody - -class TestRoleRequestBody(unittest.TestCase): - """RoleRequestBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RoleRequestBody: - """Test RoleRequestBody - 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 `RoleRequestBody` - """ - model = RoleRequestBody() - if include_optional: - return RoleRequestBody( - name = 'Organization Admin', - permissions = ["56","315"] - ) - else: - return RoleRequestBody( - ) - """ - - def testRoleRequestBody(self): - """Test RoleRequestBody""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_roles.py b/thousandeyes-sdk-admin/test/test_roles.py deleted file mode 100644 index de3c1603..00000000 --- a/thousandeyes-sdk-admin/test/test_roles.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.roles import Roles - -class TestRoles(unittest.TestCase): - """Roles unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Roles: - """Test Roles - 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 `Roles` - """ - model = Roles() - if include_optional: - return Roles( - roles = [ - thousandeyes_sdk.admin.models.role.Role() - ], - links = thousandeyes_sdk.admin.models.self_links.SelfLinks( - self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ) - ) - else: - return Roles( - ) - """ - - def testRoles(self): - """Test Roles""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_self_links.py b/thousandeyes-sdk-admin/test/test_self_links.py deleted file mode 100644 index 8588ac93..00000000 --- a/thousandeyes-sdk-admin/test/test_self_links.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.self_links import SelfLinks - -class TestSelfLinks(unittest.TestCase): - """SelfLinks unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelfLinks: - """Test SelfLinks - 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 `SelfLinks` - """ - model = SelfLinks() - if include_optional: - return SelfLinks( - var_self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ) - ) - else: - return SelfLinks( - ) - """ - - def testSelfLinks(self): - """Test SelfLinks""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_simple_agent.py b/thousandeyes-sdk-admin/test/test_simple_agent.py deleted file mode 100644 index 546b3cae..00000000 --- a/thousandeyes-sdk-admin/test/test_simple_agent.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.simple_agent import SimpleAgent - -class TestSimpleAgent(unittest.TestCase): - """SimpleAgent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimpleAgent: - """Test SimpleAgent - 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 `SimpleAgent` - """ - model = SimpleAgent() - if include_optional: - return SimpleAgent( - ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"], - public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"], - network = 'AT&T Services, Inc. (AS 7018)', - agent_id = '281474976710706', - agent_name = 'thousandeyes-stg-va-254', - location = 'San Francisco Bay Area', - country_id = 'US', - enabled = True, - prefix = '99.128.0.0/11', - verify_ssl_certificates = True - ) - else: - return SimpleAgent( - ) - """ - - def testSimpleAgent(self): - """Test SimpleAgent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_unauthorized_error.py b/thousandeyes-sdk-admin/test/test_unauthorized_error.py deleted file mode 100644 index 081fd76f..00000000 --- a/thousandeyes-sdk-admin/test/test_unauthorized_error.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.unauthorized_error import UnauthorizedError - -class TestUnauthorizedError(unittest.TestCase): - """UnauthorizedError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UnauthorizedError: - """Test UnauthorizedError - 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 `UnauthorizedError` - """ - model = UnauthorizedError() - if include_optional: - return UnauthorizedError( - error = 'invalid_token', - error_description = 'Invalid access token' - ) - else: - return UnauthorizedError( - ) - """ - - def testUnauthorizedError(self): - """Test UnauthorizedError""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_user.py b/thousandeyes-sdk-admin/test/test_user.py deleted file mode 100644 index 45b938b4..00000000 --- a/thousandeyes-sdk-admin/test/test_user.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.user import User - -class TestUser(unittest.TestCase): - """User unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> User: - """Test User - 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 `User` - """ - model = User() - if include_optional: - return User( - name = 'User X', - email = 'userx@thousandeyes.com', - uid = '245', - date_registered = '2020-07-17T22:00:54Z', - login_account_group = thousandeyes_sdk.admin.models.account_group.AccountGroup( - aid = '1234', - account_group_name = 'Account A', ) - ) - else: - return User( - ) - """ - - def testUser(self): - """Test User""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_user_account_group.py b/thousandeyes-sdk-admin/test/test_user_account_group.py deleted file mode 100644 index 089ccfbb..00000000 --- a/thousandeyes-sdk-admin/test/test_user_account_group.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.user_account_group import UserAccountGroup - -class TestUserAccountGroup(unittest.TestCase): - """UserAccountGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserAccountGroup: - """Test UserAccountGroup - 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 `UserAccountGroup` - """ - model = UserAccountGroup() - if include_optional: - return UserAccountGroup( - name = 'User X', - email = 'userx@thousandeyes.com', - uid = '235', - last_login = '2022-07-17T22:00:54Z', - date_registered = '2022-07-17T22:00:54Z', - roles = [ - thousandeyes_sdk.admin.models.role.Role() - ] - ) - else: - return UserAccountGroup( - ) - """ - - def testUserAccountGroup(self): - """Test UserAccountGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_user_account_group_role.py b/thousandeyes-sdk-admin/test/test_user_account_group_role.py deleted file mode 100644 index 373109b3..00000000 --- a/thousandeyes-sdk-admin/test/test_user_account_group_role.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.user_account_group_role import UserAccountGroupRole - -class TestUserAccountGroupRole(unittest.TestCase): - """UserAccountGroupRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserAccountGroupRole: - """Test UserAccountGroupRole - 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 `UserAccountGroupRole` - """ - model = UserAccountGroupRole() - if include_optional: - return UserAccountGroupRole( - account_group_id = '315', - role_ids = ["57","1140"] - ) - else: - return UserAccountGroupRole( - ) - """ - - def testUserAccountGroupRole(self): - """Test UserAccountGroupRole""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_user_detail.py b/thousandeyes-sdk-admin/test/test_user_detail.py deleted file mode 100644 index 76108e81..00000000 --- a/thousandeyes-sdk-admin/test/test_user_detail.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.user_detail import UserDetail - -class TestUserDetail(unittest.TestCase): - """UserDetail unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserDetail: - """Test UserDetail - 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 `UserDetail` - """ - model = UserDetail() - if include_optional: - return UserDetail( - name = 'User X', - email = 'userx@thousandeyes.com', - uid = '245', - date_registered = '2020-07-17T22:00:54Z', - login_account_group = thousandeyes_sdk.admin.models.account_group.AccountGroup( - aid = '1234', - account_group_name = 'Account A', ), - last_login = '2022-07-17T22:00:54Z', - account_group_roles = [ - thousandeyes_sdk.admin.models.account_group_role.AccountGroupRole( - account_group = thousandeyes_sdk.admin.models.account_group.AccountGroup( - aid = '1234', - account_group_name = 'Account A', ), - roles = [ - thousandeyes_sdk.admin.models.role.Role() - ], ) - ], - all_account_group_roles = [ - thousandeyes_sdk.admin.models.role.Role() - ], - links = thousandeyes_sdk.admin.models.self_links.SelfLinks( - self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ) - ) - else: - return UserDetail( - ) - """ - - def testUserDetail(self): - """Test UserDetail""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_user_event.py b/thousandeyes-sdk-admin/test/test_user_event.py deleted file mode 100644 index 3342c66d..00000000 --- a/thousandeyes-sdk-admin/test/test_user_event.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.user_event import UserEvent - -class TestUserEvent(unittest.TestCase): - """UserEvent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserEvent: - """Test UserEvent - 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 `UserEvent` - """ - model = UserEvent() - if include_optional: - return UserEvent( - aid = '1234', - account_group_name = 'Account A', - var_date = '2020-07-17T22:00:54Z', - event = 'Login failed.', - ip_address = '99.128.0.0/11', - uid = '245', - user = 'API Sandbox User (noreply@thousandeyes.com)', - resources = [ - thousandeyes_sdk.admin.models.resource.Resource( - type = '', - name = '', ) - ] - ) - else: - return UserEvent( - ) - """ - - def testUserEvent(self): - """Test UserEvent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_user_request.py b/thousandeyes-sdk-admin/test/test_user_request.py deleted file mode 100644 index df6d039e..00000000 --- a/thousandeyes-sdk-admin/test/test_user_request.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.user_request import UserRequest - -class TestUserRequest(unittest.TestCase): - """UserRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserRequest: - """Test UserRequest - 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 `UserRequest` - """ - model = UserRequest() - if include_optional: - return UserRequest( - name = 'User X', - email = 'userx@thousandeyes.com', - login_account_group_id = '691', - account_group_roles = [ - thousandeyes_sdk.admin.models.user_account_group_role.UserAccountGroupRole( - account_group_id = '315', - role_ids = ["57","1140"], ) - ], - all_account_group_role_ids = ["57","1140"] - ) - else: - return UserRequest( - ) - """ - - def testUserRequest(self): - """Test UserRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_users.py b/thousandeyes-sdk-admin/test/test_users.py deleted file mode 100644 index 5e3e0da0..00000000 --- a/thousandeyes-sdk-admin/test/test_users.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.users import Users - -class TestUsers(unittest.TestCase): - """Users unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Users: - """Test Users - 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 `Users` - """ - model = Users() - if include_optional: - return Users( - users = [ - null - ], - links = thousandeyes_sdk.admin.models.self_links.SelfLinks( - self = thousandeyes_sdk.admin.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ) - ) - else: - return Users( - ) - """ - - def testUsers(self): - """Test Users""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_validation_error.py b/thousandeyes-sdk-admin/test/test_validation_error.py deleted file mode 100644 index d2331d6f..00000000 --- a/thousandeyes-sdk-admin/test/test_validation_error.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.validation_error import ValidationError - -class TestValidationError(unittest.TestCase): - """ValidationError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ValidationError: - """Test ValidationError - 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 `ValidationError` - """ - model = ValidationError() - if include_optional: - return ValidationError( - type = '', - title = '', - status = 56, - detail = '', - instance = '', - errors = [ - thousandeyes_sdk.admin.models.validation_error_item.ValidationErrorItem( - code = '', - field = 56, - message = '', ) - ] - ) - else: - return ValidationError( - ) - """ - - def testValidationError(self): - """Test ValidationError""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/test/test_validation_error_item.py b/thousandeyes-sdk-admin/test/test_validation_error_item.py deleted file mode 100644 index f00ca805..00000000 --- a/thousandeyes-sdk-admin/test/test_validation_error_item.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Administrative API - - ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - - 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.admin.models.validation_error_item import ValidationErrorItem - -class TestValidationErrorItem(unittest.TestCase): - """ValidationErrorItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ValidationErrorItem: - """Test ValidationErrorItem - 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 `ValidationErrorItem` - """ - model = ValidationErrorItem() - if include_optional: - return ValidationErrorItem( - code = '', - var_field = 56, - message = '' - ) - else: - return ValidationErrorItem( - ) - """ - - def testValidationErrorItem(self): - """Test ValidationErrorItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-admin/.openapi-generator-ignore b/thousandeyes-sdk-administrative/.openapi-generator-ignore similarity index 100% rename from thousandeyes-sdk-admin/.openapi-generator-ignore rename to thousandeyes-sdk-administrative/.openapi-generator-ignore diff --git a/thousandeyes-sdk-admin/.openapi-generator/FILES b/thousandeyes-sdk-administrative/.openapi-generator/FILES similarity index 75% rename from thousandeyes-sdk-admin/.openapi-generator/FILES rename to thousandeyes-sdk-administrative/.openapi-generator/FILES index 0cf22296..d47fcc6c 100644 --- a/thousandeyes-sdk-admin/.openapi-generator/FILES +++ b/thousandeyes-sdk-administrative/.openapi-generator/FILES @@ -107,48 +107,9 @@ src/thousandeyes_sdk/admin/models/validation_error.py src/thousandeyes_sdk/admin/models/validation_error_item.py src/thousandeyes_sdk/admin/py.typed test/__init__.py -test/test_account_group.py -test/test_account_group_detail.py -test/test_account_group_info.py -test/test_account_group_request.py -test/test_account_group_role.py -test/test_account_groups.py -test/test_agent.py -test/test_agent_base.py -test/test_audit_user_events.py -test/test_base_role.py -test/test_cloud_enterprise_agent_type.py -test/test_cluster_member.py -test/test_created_account_group.py -test/test_created_user.py -test/test_enterprise_agent.py -test/test_enterprise_agent_data.py -test/test_enterprise_agent_ipv6_policy.py -test/test_enterprise_agent_state.py -test/test_error.py -test/test_error_detail.py -test/test_error_detail_code.py -test/test_expand.py -test/test_extended_user.py -test/test_interface_ip_mapping.py -test/test_link.py -test/test_pagination_links.py -test/test_permission.py -test/test_permissions.py -test/test_resource.py -test/test_role.py -test/test_role_detail.py -test/test_role_request_body.py -test/test_roles.py -test/test_self_links.py -test/test_simple_agent.py -test/test_unauthorized_error.py -test/test_user.py -test/test_user_account_group.py -test/test_user_account_group_role.py -test/test_user_detail.py -test/test_user_event.py -test/test_user_request.py -test/test_users.py -test/test_validation_error.py -test/test_validation_error_item.py +test/test_account_groups_api.py +test/test_permissions_api.py +test/test_roles_api.py +test/test_user_events_api.py +test/test_users_api.py +test/test_utils.py diff --git a/thousandeyes-sdk-admin/.openapi-generator/VERSION b/thousandeyes-sdk-administrative/.openapi-generator/VERSION similarity index 100% rename from thousandeyes-sdk-admin/.openapi-generator/VERSION rename to thousandeyes-sdk-administrative/.openapi-generator/VERSION diff --git a/thousandeyes-sdk-admin/README.md b/thousandeyes-sdk-administrative/README.md similarity index 99% rename from thousandeyes-sdk-admin/README.md rename to thousandeyes-sdk-administrative/README.md index b179f4dc..4c50d977 100644 --- a/thousandeyes-sdk-admin/README.md +++ b/thousandeyes-sdk-administrative/README.md @@ -1,4 +1,4 @@ -# thousandeyes-sdk-admin +# thousandeyes-sdk-administrative ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: @@ -13,7 +13,7 @@ This API provides the following endpoints that define the operations to manage y This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.4 +- API version: 7.0.6 - Package version: 1.0.0 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-admin/docs/AccountGroup.md b/thousandeyes-sdk-administrative/docs/AccountGroup.md similarity index 100% rename from thousandeyes-sdk-admin/docs/AccountGroup.md rename to thousandeyes-sdk-administrative/docs/AccountGroup.md diff --git a/thousandeyes-sdk-admin/docs/AccountGroupDetail.md b/thousandeyes-sdk-administrative/docs/AccountGroupDetail.md similarity index 100% rename from thousandeyes-sdk-admin/docs/AccountGroupDetail.md rename to thousandeyes-sdk-administrative/docs/AccountGroupDetail.md diff --git a/thousandeyes-sdk-admin/docs/AccountGroupInfo.md b/thousandeyes-sdk-administrative/docs/AccountGroupInfo.md similarity index 100% rename from thousandeyes-sdk-admin/docs/AccountGroupInfo.md rename to thousandeyes-sdk-administrative/docs/AccountGroupInfo.md diff --git a/thousandeyes-sdk-admin/docs/AccountGroupRequest.md b/thousandeyes-sdk-administrative/docs/AccountGroupRequest.md similarity index 100% rename from thousandeyes-sdk-admin/docs/AccountGroupRequest.md rename to thousandeyes-sdk-administrative/docs/AccountGroupRequest.md diff --git a/thousandeyes-sdk-admin/docs/AccountGroupRole.md b/thousandeyes-sdk-administrative/docs/AccountGroupRole.md similarity index 100% rename from thousandeyes-sdk-admin/docs/AccountGroupRole.md rename to thousandeyes-sdk-administrative/docs/AccountGroupRole.md diff --git a/thousandeyes-sdk-admin/docs/AccountGroups.md b/thousandeyes-sdk-administrative/docs/AccountGroups.md similarity index 100% rename from thousandeyes-sdk-admin/docs/AccountGroups.md rename to thousandeyes-sdk-administrative/docs/AccountGroups.md diff --git a/thousandeyes-sdk-admin/docs/AccountGroupsApi.md b/thousandeyes-sdk-administrative/docs/AccountGroupsApi.md similarity index 97% rename from thousandeyes-sdk-admin/docs/AccountGroupsApi.md rename to thousandeyes-sdk-administrative/docs/AccountGroupsApi.md index 54e306f2..7027ac5b 100644 --- a/thousandeyes-sdk-admin/docs/AccountGroupsApi.md +++ b/thousandeyes-sdk-administrative/docs/AccountGroupsApi.md @@ -83,7 +83,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details @@ -164,7 +164,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/problem+json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -251,7 +251,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details @@ -335,7 +335,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details @@ -425,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details diff --git a/thousandeyes-sdk-admin/docs/Agent.md b/thousandeyes-sdk-administrative/docs/Agent.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Agent.md rename to thousandeyes-sdk-administrative/docs/Agent.md diff --git a/thousandeyes-sdk-admin/docs/AgentBase.md b/thousandeyes-sdk-administrative/docs/AgentBase.md similarity index 100% rename from thousandeyes-sdk-admin/docs/AgentBase.md rename to thousandeyes-sdk-administrative/docs/AgentBase.md diff --git a/thousandeyes-sdk-admin/docs/AuditUserEvents.md b/thousandeyes-sdk-administrative/docs/AuditUserEvents.md similarity index 100% rename from thousandeyes-sdk-admin/docs/AuditUserEvents.md rename to thousandeyes-sdk-administrative/docs/AuditUserEvents.md diff --git a/thousandeyes-sdk-admin/docs/BaseRole.md b/thousandeyes-sdk-administrative/docs/BaseRole.md similarity index 100% rename from thousandeyes-sdk-admin/docs/BaseRole.md rename to thousandeyes-sdk-administrative/docs/BaseRole.md diff --git a/thousandeyes-sdk-admin/docs/CloudEnterpriseAgentType.md b/thousandeyes-sdk-administrative/docs/CloudEnterpriseAgentType.md similarity index 100% rename from thousandeyes-sdk-admin/docs/CloudEnterpriseAgentType.md rename to thousandeyes-sdk-administrative/docs/CloudEnterpriseAgentType.md diff --git a/thousandeyes-sdk-admin/docs/ClusterMember.md b/thousandeyes-sdk-administrative/docs/ClusterMember.md similarity index 100% rename from thousandeyes-sdk-admin/docs/ClusterMember.md rename to thousandeyes-sdk-administrative/docs/ClusterMember.md diff --git a/thousandeyes-sdk-admin/docs/CreatedAccountGroup.md b/thousandeyes-sdk-administrative/docs/CreatedAccountGroup.md similarity index 100% rename from thousandeyes-sdk-admin/docs/CreatedAccountGroup.md rename to thousandeyes-sdk-administrative/docs/CreatedAccountGroup.md diff --git a/thousandeyes-sdk-admin/docs/CreatedUser.md b/thousandeyes-sdk-administrative/docs/CreatedUser.md similarity index 100% rename from thousandeyes-sdk-admin/docs/CreatedUser.md rename to thousandeyes-sdk-administrative/docs/CreatedUser.md diff --git a/thousandeyes-sdk-admin/docs/EnterpriseAgent.md b/thousandeyes-sdk-administrative/docs/EnterpriseAgent.md similarity index 100% rename from thousandeyes-sdk-admin/docs/EnterpriseAgent.md rename to thousandeyes-sdk-administrative/docs/EnterpriseAgent.md diff --git a/thousandeyes-sdk-admin/docs/EnterpriseAgentData.md b/thousandeyes-sdk-administrative/docs/EnterpriseAgentData.md similarity index 100% rename from thousandeyes-sdk-admin/docs/EnterpriseAgentData.md rename to thousandeyes-sdk-administrative/docs/EnterpriseAgentData.md diff --git a/thousandeyes-sdk-admin/docs/EnterpriseAgentIpv6Policy.md b/thousandeyes-sdk-administrative/docs/EnterpriseAgentIpv6Policy.md similarity index 100% rename from thousandeyes-sdk-admin/docs/EnterpriseAgentIpv6Policy.md rename to thousandeyes-sdk-administrative/docs/EnterpriseAgentIpv6Policy.md diff --git a/thousandeyes-sdk-admin/docs/EnterpriseAgentState.md b/thousandeyes-sdk-administrative/docs/EnterpriseAgentState.md similarity index 100% rename from thousandeyes-sdk-admin/docs/EnterpriseAgentState.md rename to thousandeyes-sdk-administrative/docs/EnterpriseAgentState.md diff --git a/thousandeyes-sdk-admin/docs/Error.md b/thousandeyes-sdk-administrative/docs/Error.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Error.md rename to thousandeyes-sdk-administrative/docs/Error.md diff --git a/thousandeyes-sdk-admin/docs/ErrorDetail.md b/thousandeyes-sdk-administrative/docs/ErrorDetail.md similarity index 100% rename from thousandeyes-sdk-admin/docs/ErrorDetail.md rename to thousandeyes-sdk-administrative/docs/ErrorDetail.md diff --git a/thousandeyes-sdk-admin/docs/ErrorDetailCode.md b/thousandeyes-sdk-administrative/docs/ErrorDetailCode.md similarity index 100% rename from thousandeyes-sdk-admin/docs/ErrorDetailCode.md rename to thousandeyes-sdk-administrative/docs/ErrorDetailCode.md diff --git a/thousandeyes-sdk-admin/docs/Expand.md b/thousandeyes-sdk-administrative/docs/Expand.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Expand.md rename to thousandeyes-sdk-administrative/docs/Expand.md diff --git a/thousandeyes-sdk-admin/docs/ExtendedUser.md b/thousandeyes-sdk-administrative/docs/ExtendedUser.md similarity index 100% rename from thousandeyes-sdk-admin/docs/ExtendedUser.md rename to thousandeyes-sdk-administrative/docs/ExtendedUser.md diff --git a/thousandeyes-sdk-admin/docs/InterfaceIpMapping.md b/thousandeyes-sdk-administrative/docs/InterfaceIpMapping.md similarity index 100% rename from thousandeyes-sdk-admin/docs/InterfaceIpMapping.md rename to thousandeyes-sdk-administrative/docs/InterfaceIpMapping.md diff --git a/thousandeyes-sdk-admin/docs/Link.md b/thousandeyes-sdk-administrative/docs/Link.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Link.md rename to thousandeyes-sdk-administrative/docs/Link.md diff --git a/thousandeyes-sdk-admin/docs/PaginationLinks.md b/thousandeyes-sdk-administrative/docs/PaginationLinks.md similarity index 100% rename from thousandeyes-sdk-admin/docs/PaginationLinks.md rename to thousandeyes-sdk-administrative/docs/PaginationLinks.md diff --git a/thousandeyes-sdk-admin/docs/Permission.md b/thousandeyes-sdk-administrative/docs/Permission.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Permission.md rename to thousandeyes-sdk-administrative/docs/Permission.md diff --git a/thousandeyes-sdk-admin/docs/Permissions.md b/thousandeyes-sdk-administrative/docs/Permissions.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Permissions.md rename to thousandeyes-sdk-administrative/docs/Permissions.md diff --git a/thousandeyes-sdk-admin/docs/PermissionsApi.md b/thousandeyes-sdk-administrative/docs/PermissionsApi.md similarity index 97% rename from thousandeyes-sdk-admin/docs/PermissionsApi.md rename to thousandeyes-sdk-administrative/docs/PermissionsApi.md index 29d4ec06..9429bab3 100644 --- a/thousandeyes-sdk-admin/docs/PermissionsApi.md +++ b/thousandeyes-sdk-administrative/docs/PermissionsApi.md @@ -75,7 +75,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details diff --git a/thousandeyes-sdk-admin/docs/Resource.md b/thousandeyes-sdk-administrative/docs/Resource.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Resource.md rename to thousandeyes-sdk-administrative/docs/Resource.md diff --git a/thousandeyes-sdk-admin/docs/Role.md b/thousandeyes-sdk-administrative/docs/Role.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Role.md rename to thousandeyes-sdk-administrative/docs/Role.md diff --git a/thousandeyes-sdk-admin/docs/RoleDetail.md b/thousandeyes-sdk-administrative/docs/RoleDetail.md similarity index 100% rename from thousandeyes-sdk-admin/docs/RoleDetail.md rename to thousandeyes-sdk-administrative/docs/RoleDetail.md diff --git a/thousandeyes-sdk-admin/docs/RoleRequestBody.md b/thousandeyes-sdk-administrative/docs/RoleRequestBody.md similarity index 100% rename from thousandeyes-sdk-admin/docs/RoleRequestBody.md rename to thousandeyes-sdk-administrative/docs/RoleRequestBody.md diff --git a/thousandeyes-sdk-admin/docs/Roles.md b/thousandeyes-sdk-administrative/docs/Roles.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Roles.md rename to thousandeyes-sdk-administrative/docs/Roles.md diff --git a/thousandeyes-sdk-admin/docs/RolesApi.md b/thousandeyes-sdk-administrative/docs/RolesApi.md similarity index 97% rename from thousandeyes-sdk-admin/docs/RolesApi.md rename to thousandeyes-sdk-administrative/docs/RolesApi.md index ce34f1f0..1fdaac51 100644 --- a/thousandeyes-sdk-admin/docs/RolesApi.md +++ b/thousandeyes-sdk-administrative/docs/RolesApi.md @@ -82,7 +82,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details @@ -165,7 +165,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/problem+json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -251,7 +251,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details @@ -335,7 +335,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details @@ -424,7 +424,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details diff --git a/thousandeyes-sdk-admin/docs/SelfLinks.md b/thousandeyes-sdk-administrative/docs/SelfLinks.md similarity index 100% rename from thousandeyes-sdk-admin/docs/SelfLinks.md rename to thousandeyes-sdk-administrative/docs/SelfLinks.md diff --git a/thousandeyes-sdk-admin/docs/SimpleAgent.md b/thousandeyes-sdk-administrative/docs/SimpleAgent.md similarity index 100% rename from thousandeyes-sdk-admin/docs/SimpleAgent.md rename to thousandeyes-sdk-administrative/docs/SimpleAgent.md diff --git a/thousandeyes-sdk-admin/docs/UnauthorizedError.md b/thousandeyes-sdk-administrative/docs/UnauthorizedError.md similarity index 100% rename from thousandeyes-sdk-admin/docs/UnauthorizedError.md rename to thousandeyes-sdk-administrative/docs/UnauthorizedError.md diff --git a/thousandeyes-sdk-admin/docs/User.md b/thousandeyes-sdk-administrative/docs/User.md similarity index 100% rename from thousandeyes-sdk-admin/docs/User.md rename to thousandeyes-sdk-administrative/docs/User.md diff --git a/thousandeyes-sdk-admin/docs/UserAccountGroup.md b/thousandeyes-sdk-administrative/docs/UserAccountGroup.md similarity index 100% rename from thousandeyes-sdk-admin/docs/UserAccountGroup.md rename to thousandeyes-sdk-administrative/docs/UserAccountGroup.md diff --git a/thousandeyes-sdk-admin/docs/UserAccountGroupRole.md b/thousandeyes-sdk-administrative/docs/UserAccountGroupRole.md similarity index 100% rename from thousandeyes-sdk-admin/docs/UserAccountGroupRole.md rename to thousandeyes-sdk-administrative/docs/UserAccountGroupRole.md diff --git a/thousandeyes-sdk-admin/docs/UserDetail.md b/thousandeyes-sdk-administrative/docs/UserDetail.md similarity index 100% rename from thousandeyes-sdk-admin/docs/UserDetail.md rename to thousandeyes-sdk-administrative/docs/UserDetail.md diff --git a/thousandeyes-sdk-admin/docs/UserEvent.md b/thousandeyes-sdk-administrative/docs/UserEvent.md similarity index 100% rename from thousandeyes-sdk-admin/docs/UserEvent.md rename to thousandeyes-sdk-administrative/docs/UserEvent.md diff --git a/thousandeyes-sdk-admin/docs/UserEventsApi.md b/thousandeyes-sdk-administrative/docs/UserEventsApi.md similarity index 98% rename from thousandeyes-sdk-admin/docs/UserEventsApi.md rename to thousandeyes-sdk-administrative/docs/UserEventsApi.md index 6ddaf32f..e0b042c0 100644 --- a/thousandeyes-sdk-admin/docs/UserEventsApi.md +++ b/thousandeyes-sdk-administrative/docs/UserEventsApi.md @@ -85,7 +85,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details diff --git a/thousandeyes-sdk-admin/docs/UserRequest.md b/thousandeyes-sdk-administrative/docs/UserRequest.md similarity index 100% rename from thousandeyes-sdk-admin/docs/UserRequest.md rename to thousandeyes-sdk-administrative/docs/UserRequest.md diff --git a/thousandeyes-sdk-admin/docs/Users.md b/thousandeyes-sdk-administrative/docs/Users.md similarity index 100% rename from thousandeyes-sdk-admin/docs/Users.md rename to thousandeyes-sdk-administrative/docs/Users.md diff --git a/thousandeyes-sdk-admin/docs/UsersApi.md b/thousandeyes-sdk-administrative/docs/UsersApi.md similarity index 97% rename from thousandeyes-sdk-admin/docs/UsersApi.md rename to thousandeyes-sdk-administrative/docs/UsersApi.md index 2662da48..5ec584a6 100644 --- a/thousandeyes-sdk-admin/docs/UsersApi.md +++ b/thousandeyes-sdk-administrative/docs/UsersApi.md @@ -82,7 +82,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details @@ -165,7 +165,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/problem+json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -251,7 +251,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details @@ -335,7 +335,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details @@ -424,7 +424,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details diff --git a/thousandeyes-sdk-admin/docs/ValidationError.md b/thousandeyes-sdk-administrative/docs/ValidationError.md similarity index 100% rename from thousandeyes-sdk-admin/docs/ValidationError.md rename to thousandeyes-sdk-administrative/docs/ValidationError.md diff --git a/thousandeyes-sdk-admin/docs/ValidationErrorItem.md b/thousandeyes-sdk-administrative/docs/ValidationErrorItem.md similarity index 94% rename from thousandeyes-sdk-admin/docs/ValidationErrorItem.md rename to thousandeyes-sdk-administrative/docs/ValidationErrorItem.md index 10862154..dd105e40 100644 --- a/thousandeyes-sdk-admin/docs/ValidationErrorItem.md +++ b/thousandeyes-sdk-administrative/docs/ValidationErrorItem.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **str** | (Optional) A unique error type/code that can be referenced in the documentation for further details. | [optional] -**var_field** | **int** | Identifies the field that triggered this particular error. | [optional] +**var_field** | **str** | Identifies the field that triggered this particular error. | [optional] **message** | **str** | A short, human-readable summary of the error. | [optional] ## Example diff --git a/thousandeyes-sdk-admin/pyproject.toml b/thousandeyes-sdk-administrative/pyproject.toml similarity index 97% rename from thousandeyes-sdk-admin/pyproject.toml rename to thousandeyes-sdk-administrative/pyproject.toml index 90e8b087..4e7fef3c 100644 --- a/thousandeyes-sdk-admin/pyproject.toml +++ b/thousandeyes-sdk-administrative/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "thousandeyes-sdk-admin" +name = "thousandeyes-sdk-administrative" version = "1.0.0" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } diff --git a/thousandeyes-sdk-admin/setup.cfg b/thousandeyes-sdk-administrative/setup.cfg similarity index 100% rename from thousandeyes-sdk-admin/setup.cfg rename to thousandeyes-sdk-administrative/setup.cfg diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/__init__.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/__init__.py similarity index 98% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/__init__.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/__init__.py index 45321afe..784d925f 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/__init__.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/__init__.py @@ -7,7 +7,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/__init__.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/__init__.py similarity index 100% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/__init__.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/__init__.py diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/account_groups_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/account_groups_api.py similarity index 99% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/account_groups_api.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/account_groups_api.py index 5de7d2f7..8662047d 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/account_groups_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/account_groups_api.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -314,6 +314,7 @@ class AccountGroupsApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) @@ -605,6 +606,7 @@ class AccountGroupsApi: # set the HTTP header `Accept` _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/json', 'application/problem+json' ] ) @@ -902,6 +904,7 @@ class AccountGroupsApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) @@ -1183,6 +1186,7 @@ class AccountGroupsApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) @@ -1495,6 +1499,7 @@ class AccountGroupsApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/permissions_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/permissions_api.py similarity index 99% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/permissions_api.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/permissions_api.py index bb095f3c..4c388d30 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/permissions_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/permissions_api.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -294,6 +294,7 @@ class PermissionsApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/roles_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/roles_api.py similarity index 99% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/roles_api.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/roles_api.py index 8b45d428..fec44580 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/roles_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/roles_api.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -311,6 +311,7 @@ class RolesApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) @@ -619,6 +620,7 @@ class RolesApi: # set the HTTP header `Accept` _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/json', 'application/problem+json' ] ) @@ -915,6 +917,7 @@ class RolesApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) @@ -1196,6 +1199,7 @@ class RolesApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) @@ -1507,6 +1511,7 @@ class RolesApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/user_events_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/user_events_api.py similarity index 99% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/user_events_api.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/user_events_api.py index 28804b3d..bca0b76c 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/user_events_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/user_events_api.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -398,6 +398,7 @@ class UserEventsApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/users_api.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/users_api.py similarity index 99% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/users_api.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/users_api.py index a548088d..8a96d709 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/api/users_api.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/api/users_api.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -312,6 +312,7 @@ class UsersApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) @@ -620,6 +621,7 @@ class UsersApi: # set the HTTP header `Accept` _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/json', 'application/problem+json' ] ) @@ -916,6 +918,7 @@ class UsersApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) @@ -1197,6 +1200,7 @@ class UsersApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) @@ -1508,6 +1512,7 @@ class UsersApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/__init__.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/__init__.py similarity index 98% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/__init__.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/__init__.py index 101ffc90..727bdd19 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/__init__.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/__init__.py @@ -6,7 +6,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group.py index a2d1eb21..230ad6ec 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,6 +34,7 @@ class AccountGroup(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class AccountGroup(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_detail.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_detail.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_detail.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_detail.py index 8b333016..5471b8da 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_detail.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_detail.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -43,6 +43,7 @@ class AccountGroupDetail(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -53,7 +54,7 @@ class AccountGroupDetail(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_info.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_info.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_info.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_info.py index c207292a..85f0febc 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_info.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_info.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,6 +37,7 @@ class AccountGroupInfo(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -47,7 +48,7 @@ class AccountGroupInfo(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_request.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_request.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_request.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_request.py index 765ee1f5..c0144026 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_request.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_request.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,6 +34,7 @@ class AccountGroupRequest(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class AccountGroupRequest(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_role.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_role.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_role.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_role.py index fd158e32..2a9ce27d 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_group_role.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_group_role.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,6 +36,7 @@ class AccountGroupRole(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -46,7 +47,7 @@ class AccountGroupRole(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_groups.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_groups.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_groups.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_groups.py index 7875ca41..df725422 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/account_groups.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/account_groups.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,6 +36,7 @@ class AccountGroups(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -46,7 +47,7 @@ class AccountGroups(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/agent.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/agent.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/agent.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/agent.py index f32342a5..2d478529 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/agent.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/agent.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -44,6 +44,7 @@ class Agent(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -54,7 +55,7 @@ class Agent(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/agent_base.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/agent_base.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/agent_base.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/agent_base.py index 65efaeb8..d62e0ece 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/agent_base.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/agent_base.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,6 +35,7 @@ class AgentBase(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -45,7 +46,7 @@ class AgentBase(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/audit_user_events.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/audit_user_events.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/audit_user_events.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/audit_user_events.py index 6048dcef..b2e6ec72 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/audit_user_events.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/audit_user_events.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,6 +39,7 @@ class AuditUserEvents(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -49,7 +50,7 @@ class AuditUserEvents(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/base_role.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/base_role.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/base_role.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/base_role.py index 58d2304f..1b10da70 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/base_role.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/base_role.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,6 +35,7 @@ class BaseRole(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -45,7 +46,7 @@ class BaseRole(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/cloud_enterprise_agent_type.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/cloud_enterprise_agent_type.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/cloud_enterprise_agent_type.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/cloud_enterprise_agent_type.py index 1c4cf0b6..cf35f086 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/cloud_enterprise_agent_type.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/cloud_enterprise_agent_type.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/cluster_member.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/cluster_member.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/cluster_member.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/cluster_member.py index 6e7bc610..9ef75a00 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/cluster_member.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/cluster_member.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -45,6 +45,7 @@ class ClusterMember(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -55,7 +56,7 @@ class ClusterMember(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/created_account_group.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/created_account_group.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/created_account_group.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/created_account_group.py index f64f0a28..056a51c3 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/created_account_group.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/created_account_group.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -41,6 +41,7 @@ class CreatedAccountGroup(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -51,7 +52,7 @@ class CreatedAccountGroup(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/created_user.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/created_user.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/created_user.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/created_user.py index fc0a1ad1..7f1467dd 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/created_user.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/created_user.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -45,6 +45,7 @@ class CreatedUser(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -55,7 +56,7 @@ class CreatedUser(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent.py similarity index 98% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent.py index ee8b0eb9..a33f97f6 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -64,6 +64,7 @@ class EnterpriseAgent(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -74,7 +75,7 @@ class EnterpriseAgent(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent_data.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent_data.py similarity index 98% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent_data.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent_data.py index e0648182..bf73d135 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent_data.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent_data.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -52,6 +52,7 @@ class EnterpriseAgentData(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -62,7 +63,7 @@ class EnterpriseAgentData(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent_ipv6_policy.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent_ipv6_policy.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent_ipv6_policy.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent_ipv6_policy.py index 0a152560..d9340676 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent_ipv6_policy.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent_ipv6_policy.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent_state.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent_state.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent_state.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent_state.py index 5566b6a5..440eb537 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/enterprise_agent_state.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/enterprise_agent_state.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/error.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/error.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/error.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/error.py index 5410980a..de648f47 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/error.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/error.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,6 +37,7 @@ class Error(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -47,7 +48,7 @@ class Error(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/error_detail.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/error_detail.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/error_detail.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/error_detail.py index 439b2ffd..35fe13cc 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/error_detail.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/error_detail.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,6 +35,7 @@ class ErrorDetail(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -45,7 +46,7 @@ class ErrorDetail(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/error_detail_code.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/error_detail_code.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/error_detail_code.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/error_detail_code.py index b448f052..c83b62b6 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/error_detail_code.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/error_detail_code.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/expand.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/expand.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/expand.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/expand.py index e3bd3b46..f3ecf72f 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/expand.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/expand.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/extended_user.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/extended_user.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/extended_user.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/extended_user.py index 5e95030f..3f614ce2 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/extended_user.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/extended_user.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,6 +40,7 @@ class ExtendedUser(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -50,7 +51,7 @@ class ExtendedUser(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/interface_ip_mapping.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/interface_ip_mapping.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/interface_ip_mapping.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/interface_ip_mapping.py index f71d32ce..a0639eed 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/interface_ip_mapping.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/interface_ip_mapping.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,6 +34,7 @@ class InterfaceIpMapping(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class InterfaceIpMapping(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/link.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/link.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/link.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/link.py index 3bdba0db..f68172dc 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/link.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/link.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,6 +40,7 @@ class Link(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -50,7 +51,7 @@ class Link(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/pagination_links.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/pagination_links.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/pagination_links.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/pagination_links.py index 062da1fe..a09731e7 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/pagination_links.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/pagination_links.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,6 +36,7 @@ class PaginationLinks(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -46,7 +47,7 @@ class PaginationLinks(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/permission.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/permission.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/permission.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/permission.py index 47c537ae..c3efb418 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/permission.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/permission.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,6 +36,7 @@ class Permission(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -46,7 +47,7 @@ class Permission(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/permissions.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/permissions.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/permissions.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/permissions.py index 9629dbad..d7659097 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/permissions.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/permissions.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,6 +36,7 @@ class Permissions(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -46,7 +47,7 @@ class Permissions(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/resource.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/resource.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/resource.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/resource.py index ea35b9ed..3d67f531 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/resource.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/resource.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,6 +34,7 @@ class Resource(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class Resource(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/role.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/role.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/role.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/role.py index ddc9c467..436cc33f 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/role.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/role.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,6 +36,7 @@ class Role(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -46,7 +47,7 @@ class Role(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/role_detail.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/role_detail.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/role_detail.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/role_detail.py index a1701776..ac484fca 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/role_detail.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/role_detail.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,6 +39,7 @@ class RoleDetail(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -49,7 +50,7 @@ class RoleDetail(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/role_request_body.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/role_request_body.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/role_request_body.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/role_request_body.py index 704b6361..ad252985 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/role_request_body.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/role_request_body.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,6 +34,7 @@ class RoleRequestBody(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class RoleRequestBody(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/roles.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/roles.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/roles.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/roles.py index 4198ec3a..8df58088 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/roles.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/roles.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,6 +36,7 @@ class Roles(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -46,7 +47,7 @@ class Roles(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/self_links.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/self_links.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/self_links.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/self_links.py index 4a46d9d8..d1617d50 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/self_links.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/self_links.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,6 +34,7 @@ class SelfLinks(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class SelfLinks(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/simple_agent.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/simple_agent.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/simple_agent.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/simple_agent.py index 570709e4..89d76c0a 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/simple_agent.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/simple_agent.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,6 +42,7 @@ class SimpleAgent(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -52,7 +53,7 @@ class SimpleAgent(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/unauthorized_error.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/unauthorized_error.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/unauthorized_error.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/unauthorized_error.py index 6c587ce4..b5721cc9 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/unauthorized_error.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/unauthorized_error.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,6 +34,7 @@ class UnauthorizedError(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class UnauthorizedError(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user.py index 659fd5bf..1f2b5a72 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,6 +39,7 @@ class User(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -49,7 +50,7 @@ class User(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_account_group.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_account_group.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_account_group.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_account_group.py index ebe90f2d..97563bf5 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_account_group.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_account_group.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,6 +40,7 @@ class UserAccountGroup(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -50,7 +51,7 @@ class UserAccountGroup(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_account_group_role.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_account_group_role.py similarity index 95% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_account_group_role.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_account_group_role.py index 1303c88f..0d248f41 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_account_group_role.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_account_group_role.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,6 +34,7 @@ class UserAccountGroupRole(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class UserAccountGroupRole(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_detail.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_detail.py similarity index 97% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_detail.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_detail.py index b22ae001..cc24ea97 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_detail.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_detail.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -46,6 +46,7 @@ class UserDetail(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -56,7 +57,7 @@ class UserDetail(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_event.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_event.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_event.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_event.py index 579471b1..2b7c1840 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_event.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_event.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,6 +42,7 @@ class UserEvent(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -52,7 +53,7 @@ class UserEvent(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_request.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_request.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_request.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_request.py index f620e0b2..b3c702be 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/user_request.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/user_request.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,6 +38,7 @@ class UserRequest(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -48,7 +49,7 @@ class UserRequest(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/users.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/users.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/users.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/users.py index 157d2e14..124654da 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/users.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/users.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,6 +36,7 @@ class Users(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -46,7 +47,7 @@ class Users(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/validation_error.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/validation_error.py similarity index 96% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/validation_error.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/validation_error.py index c90eaa86..72089630 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/validation_error.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/validation_error.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,6 +39,7 @@ class ValidationError(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -49,7 +50,7 @@ class ValidationError(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/validation_error_item.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/validation_error_item.py similarity index 92% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/validation_error_item.py rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/validation_error_item.py index fba231d6..0080a6fe 100644 --- a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/models/validation_error_item.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/models/validation_error_item.py @@ -5,7 +5,7 @@ ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import pprint import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class ValidationErrorItem(BaseModel): ValidationErrorItem """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="(Optional) A unique error type/code that can be referenced in the documentation for further details.") - var_field: Optional[StrictInt] = Field(default=None, description="Identifies the field that triggered this particular error.", alias="field") + var_field: Optional[StrictStr] = Field(default=None, description="Identifies the field that triggered this particular error.", alias="field") message: Optional[StrictStr] = Field(default=None, description="A short, human-readable summary of the error.") __properties: ClassVar[List[str]] = ["code", "field", "message"] @@ -35,6 +35,7 @@ class ValidationErrorItem(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -45,7 +46,7 @@ class ValidationErrorItem(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/py.typed b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/py.typed similarity index 100% rename from thousandeyes-sdk-admin/src/thousandeyes_sdk/admin/py.typed rename to thousandeyes-sdk-administrative/src/thousandeyes_sdk/admin/py.typed diff --git a/thousandeyes-sdk-admin/test/__init__.py b/thousandeyes-sdk-administrative/test/__init__.py similarity index 100% rename from thousandeyes-sdk-admin/test/__init__.py rename to thousandeyes-sdk-administrative/test/__init__.py diff --git a/thousandeyes-sdk-administrative/test/test_account_groups_api.py b/thousandeyes-sdk-administrative/test/test_account_groups_api.py new file mode 100644 index 00000000..3b42863a --- /dev/null +++ b/thousandeyes-sdk-administrative/test/test_account_groups_api.py @@ -0,0 +1,591 @@ +# coding: utf-8 + +""" + Administrative API + + ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). + + The version of the OpenAPI document: 7.0.6 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import json +import unittest +import thousandeyes_sdk.admin.models + +from .test_utils import assert_constructed_model_matches_example_json +from thousandeyes_sdk.admin.api.account_groups_api import AccountGroupsApi + + +class TestAccountGroupsApi(unittest.TestCase): + """AccountGroupsApi unit test stubs""" + + def setUp(self) -> None: + self.api = AccountGroupsApi() + + def tearDown(self) -> None: + pass + + def test_create_account_group_models_validation(self) -> None: + """Test case for create_account_group request and response models""" + request_body_json = """ + { + "accountGroupName" : "My testing account group", + "agents" : [ "105", "719" ] + }""" + + request_loaded_json = json.loads(request_body_json) + request_from_json = thousandeyes_sdk.admin.models.AccountGroupRequest.from_json(request_body_json) + assert_constructed_model_matches_example_json(request_from_json, request_loaded_json) + + response_body_json = """ + { + "isCurrentAccountGroup" : true, + "organizationName" : "organizationName", + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "accountGroupName" : "Account A", + "isDefaultAccountGroup" : true, + "aid" : "1234", + "users" : [ { + "uid" : "235", + "lastLogin" : "2022-07-17T22:00:54Z", + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2022-07-17T22:00:54Z" + }, { + "uid" : "235", + "lastLogin" : "2022-07-17T22:00:54Z", + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2022-07-17T22:00:54Z" + } ] + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.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, + "organizationName" : "organizationName", + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "accountGroupName" : "Account A", + "isDefaultAccountGroup" : true, + "aid" : "1234", + "users" : [ { + "uid" : "235", + "lastLogin" : "2022-07-17T22:00:54Z", + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2022-07-17T22:00:54Z" + }, { + "uid" : "235", + "lastLogin" : "2022-07-17T22:00:54Z", + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2022-07-17T22:00:54Z" + } ], + "agents" : [ { + "localResolutionPrefixes" : [ "10.2.3.3/24", "10.2.3.3/24" ], + "agentId" : "281474976710706", + "agentType" : "enterprise-cluster", + "ipv6Policy" : "force-ipv4", + "prefix" : "99.128.0.0/11", + "agentName" : "thousandeyes-stg-va-254", + "utilization" : 25, + "countryId" : "US", + "enabled" : true, + "network" : "AT&T Services, Inc. (AS 7018)", + "clusterMembers" : [ { + "lastSeen" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "name" : "Cluster member name", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "utilization" : 25, + "network" : "AT&T Services, Inc. (AS 7018)", + "memberId" : "10", + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + }, { + "lastSeen" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "name" : "Cluster member name", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "utilization" : 25, + "network" : "AT&T Services, Inc. (AS 7018)", + "memberId" : "10", + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + } ], + "hostname" : "thousandeyes.com", + "lastSeen" : "2022-07-17T22:00:54Z", + "createdDate" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "keepBrowserCache" : true, + "interfaceIpMappings" : [ { + "ipAddresses" : [ "73.252.207.219", "2601:646:300:3ae0::b977" ], + "interfaceName" : "wlp4s0" + }, { + "ipAddresses" : [ "73.252.207.219", "2601:646:300:3ae0::b977" ], + "interfaceName" : "wlp4s0" + } ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "location" : "San Francisco Bay Area", + "accountGroups" : [ { + "accountGroupName" : "Account A", + "aid" : "1234" + }, { + "accountGroupName" : "Account A", + "aid" : "1234" + } ], + "verifySslCertificates" : true, + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + }, { + "localResolutionPrefixes" : [ "10.2.3.3/24", "10.2.3.3/24" ], + "agentId" : "281474976710706", + "agentType" : "enterprise-cluster", + "ipv6Policy" : "force-ipv4", + "prefix" : "99.128.0.0/11", + "agentName" : "thousandeyes-stg-va-254", + "utilization" : 25, + "countryId" : "US", + "enabled" : true, + "network" : "AT&T Services, Inc. (AS 7018)", + "clusterMembers" : [ { + "lastSeen" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "name" : "Cluster member name", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "utilization" : 25, + "network" : "AT&T Services, Inc. (AS 7018)", + "memberId" : "10", + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + }, { + "lastSeen" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "name" : "Cluster member name", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "utilization" : 25, + "network" : "AT&T Services, Inc. (AS 7018)", + "memberId" : "10", + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + } ], + "hostname" : "thousandeyes.com", + "lastSeen" : "2022-07-17T22:00:54Z", + "createdDate" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "keepBrowserCache" : true, + "interfaceIpMappings" : [ { + "ipAddresses" : [ "73.252.207.219", "2601:646:300:3ae0::b977" ], + "interfaceName" : "wlp4s0" + }, { + "ipAddresses" : [ "73.252.207.219", "2601:646:300:3ae0::b977" ], + "interfaceName" : "wlp4s0" + } ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "location" : "San Francisco Bay Area", + "accountGroups" : [ { + "accountGroupName" : "Account A", + "aid" : "1234" + }, { + "accountGroupName" : "Account A", + "aid" : "1234" + } ], + "verifySslCertificates" : true, + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + } ] + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.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" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "accountGroups" : [ { + "isCurrentAccountGroup" : true, + "organizationName" : "organizationName", + "accountGroupName" : "Account A", + "isDefaultAccountGroup" : true, + "aid" : "1234" + }, { + "isCurrentAccountGroup" : true, + "organizationName" : "organizationName", + "accountGroupName" : "Account A", + "isDefaultAccountGroup" : true, + "aid" : "1234" + } ] + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.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""" + request_body_json = """ + { + "accountGroupName" : "My testing account group", + "agents" : [ "105", "719" ] + }""" + + request_loaded_json = json.loads(request_body_json) + request_from_json = thousandeyes_sdk.admin.models.AccountGroupRequest.from_json(request_body_json) + assert_constructed_model_matches_example_json(request_from_json, request_loaded_json) + + response_body_json = """ + { + "isCurrentAccountGroup" : true, + "organizationName" : "organizationName", + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "accountGroupName" : "Account A", + "isDefaultAccountGroup" : true, + "aid" : "1234", + "users" : [ { + "uid" : "235", + "lastLogin" : "2022-07-17T22:00:54Z", + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2022-07-17T22:00:54Z" + }, { + "uid" : "235", + "lastLogin" : "2022-07-17T22:00:54Z", + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2022-07-17T22:00:54Z" + } ], + "agents" : [ { + "localResolutionPrefixes" : [ "10.2.3.3/24", "10.2.3.3/24" ], + "agentId" : "281474976710706", + "agentType" : "enterprise-cluster", + "ipv6Policy" : "force-ipv4", + "prefix" : "99.128.0.0/11", + "agentName" : "thousandeyes-stg-va-254", + "utilization" : 25, + "countryId" : "US", + "enabled" : true, + "network" : "AT&T Services, Inc. (AS 7018)", + "clusterMembers" : [ { + "lastSeen" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "name" : "Cluster member name", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "utilization" : 25, + "network" : "AT&T Services, Inc. (AS 7018)", + "memberId" : "10", + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + }, { + "lastSeen" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "name" : "Cluster member name", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "utilization" : 25, + "network" : "AT&T Services, Inc. (AS 7018)", + "memberId" : "10", + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + } ], + "hostname" : "thousandeyes.com", + "lastSeen" : "2022-07-17T22:00:54Z", + "createdDate" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "keepBrowserCache" : true, + "interfaceIpMappings" : [ { + "ipAddresses" : [ "73.252.207.219", "2601:646:300:3ae0::b977" ], + "interfaceName" : "wlp4s0" + }, { + "ipAddresses" : [ "73.252.207.219", "2601:646:300:3ae0::b977" ], + "interfaceName" : "wlp4s0" + } ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "location" : "San Francisco Bay Area", + "accountGroups" : [ { + "accountGroupName" : "Account A", + "aid" : "1234" + }, { + "accountGroupName" : "Account A", + "aid" : "1234" + } ], + "verifySslCertificates" : true, + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + }, { + "localResolutionPrefixes" : [ "10.2.3.3/24", "10.2.3.3/24" ], + "agentId" : "281474976710706", + "agentType" : "enterprise-cluster", + "ipv6Policy" : "force-ipv4", + "prefix" : "99.128.0.0/11", + "agentName" : "thousandeyes-stg-va-254", + "utilization" : 25, + "countryId" : "US", + "enabled" : true, + "network" : "AT&T Services, Inc. (AS 7018)", + "clusterMembers" : [ { + "lastSeen" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "name" : "Cluster member name", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "utilization" : 25, + "network" : "AT&T Services, Inc. (AS 7018)", + "memberId" : "10", + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + }, { + "lastSeen" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "name" : "Cluster member name", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "utilization" : 25, + "network" : "AT&T Services, Inc. (AS 7018)", + "memberId" : "10", + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + } ], + "hostname" : "thousandeyes.com", + "lastSeen" : "2022-07-17T22:00:54Z", + "createdDate" : "2022-07-17T22:00:54Z", + "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], + "keepBrowserCache" : true, + "interfaceIpMappings" : [ { + "ipAddresses" : [ "73.252.207.219", "2601:646:300:3ae0::b977" ], + "interfaceName" : "wlp4s0" + }, { + "ipAddresses" : [ "73.252.207.219", "2601:646:300:3ae0::b977" ], + "interfaceName" : "wlp4s0" + } ], + "agentState" : "online", + "targetForTests" : "1.1.1.1", + "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], + "location" : "San Francisco Bay Area", + "accountGroups" : [ { + "accountGroupName" : "Account A", + "aid" : "1234" + }, { + "accountGroupName" : "Account A", + "aid" : "1234" + } ], + "verifySslCertificates" : true, + "errorDetails" : [ { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + }, { + "code" : "agent-version-outdated", + "description" : "Agent Version 0.1.1 (latest: 1.0.0)" + } ] + } ] + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.models.AccountGroupDetail.from_json(response_body_json) + assert_constructed_model_matches_example_json(response_from_json, response_loaded_json) + + +if __name__ == '__main__': + unittest.main() diff --git a/thousandeyes-sdk-administrative/test/test_permissions_api.py b/thousandeyes-sdk-administrative/test/test_permissions_api.py new file mode 100644 index 00000000..bcdb3aea --- /dev/null +++ b/thousandeyes-sdk-administrative/test/test_permissions_api.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Administrative API + + ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). + + The version of the OpenAPI document: 7.0.6 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import json +import unittest +import thousandeyes_sdk.admin.models + +from .test_utils import assert_constructed_model_matches_example_json +from thousandeyes_sdk.admin.api.permissions_api import PermissionsApi + + +class TestPermissionsApi(unittest.TestCase): + """PermissionsApi unit test stubs""" + + def setUp(self) -> None: + self.api = PermissionsApi() + + def tearDown(self) -> None: + pass + + def test_get_permissions_models_validation(self) -> None: + """Test case for get_permissions request and response models""" + + response_body_json = """ + { + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "permissions" : [ { + "label" : "View reports", + "permissionId" : "1", + "isManagementPermission" : true, + "permission" : "REPORT_READ" + }, { + "label" : "View snapshots", + "permissionId" : "51", + "isManagementPermission" : false, + "permission" : "REPORT_SNAPSHOTS_READ" + } ] + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.models.Permissions.from_json(response_body_json) + assert_constructed_model_matches_example_json(response_from_json, response_loaded_json) + + +if __name__ == '__main__': + unittest.main() diff --git a/thousandeyes-sdk-administrative/test/test_roles_api.py b/thousandeyes-sdk-administrative/test/test_roles_api.py new file mode 100644 index 00000000..fadcdc93 --- /dev/null +++ b/thousandeyes-sdk-administrative/test/test_roles_api.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Administrative API + + ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). + + The version of the OpenAPI document: 7.0.6 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import json +import unittest +import thousandeyes_sdk.admin.models + +from .test_utils import assert_constructed_model_matches_example_json +from thousandeyes_sdk.admin.api.roles_api import RolesApi + + +class TestRolesApi(unittest.TestCase): + """RolesApi unit test stubs""" + + def setUp(self) -> None: + self.api = RolesApi() + + def tearDown(self) -> None: + pass + + def test_create_role_models_validation(self) -> None: + """Test case for create_role request and response models""" + request_body_json = """ + { + "permissions" : [ "56", "315" ], + "name" : "Organization Admin" + }""" + + request_loaded_json = json.loads(request_body_json) + request_from_json = thousandeyes_sdk.admin.models.RoleRequestBody.from_json(request_body_json) + assert_constructed_model_matches_example_json(request_from_json, request_loaded_json) + + response_body_json = """ + { + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "roleId" : "35", + "permissions" : [ { + "label" : "View reports", + "permissionId" : "1", + "isManagementPermission" : true, + "permission" : "REPORT_READ" + }, { + "label" : "View snapshots", + "permissionId" : "51", + "isManagementPermission" : false, + "permission" : "REPORT_SNAPSHOTS_READ" + } ], + "name" : "Organization Admin", + "isBuiltin" : true + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.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" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "roleId" : "35", + "permissions" : [ { + "label" : "View reports", + "permissionId" : "1", + "isManagementPermission" : true, + "permission" : "REPORT_READ" + }, { + "label" : "View snapshots", + "permissionId" : "51", + "isManagementPermission" : false, + "permission" : "REPORT_SNAPSHOTS_READ" + } ], + "name" : "Organization Admin", + "isBuiltin" : true + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.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" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ] + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.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""" + request_body_json = """ + { + "permissions" : [ "56", "315" ], + "name" : "Organization Admin" + }""" + + request_loaded_json = json.loads(request_body_json) + request_from_json = thousandeyes_sdk.admin.models.RoleRequestBody.from_json(request_body_json) + assert_constructed_model_matches_example_json(request_from_json, request_loaded_json) + + response_body_json = """ + { + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "roleId" : "35", + "permissions" : [ { + "label" : "View reports", + "permissionId" : "1", + "isManagementPermission" : true, + "permission" : "REPORT_READ" + }, { + "label" : "View snapshots", + "permissionId" : "51", + "isManagementPermission" : false, + "permission" : "REPORT_SNAPSHOTS_READ" + } ], + "name" : "Organization Admin", + "isBuiltin" : true + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.models.RoleDetail.from_json(response_body_json) + assert_constructed_model_matches_example_json(response_from_json, response_loaded_json) + + +if __name__ == '__main__': + unittest.main() diff --git a/thousandeyes-sdk-administrative/test/test_user_events_api.py b/thousandeyes-sdk-administrative/test/test_user_events_api.py new file mode 100644 index 00000000..0b5a3780 --- /dev/null +++ b/thousandeyes-sdk-administrative/test/test_user_events_api.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Administrative API + + ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). + + The version of the OpenAPI document: 7.0.6 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import json +import unittest +import thousandeyes_sdk.admin.models + +from .test_utils import assert_constructed_model_matches_example_json +from thousandeyes_sdk.admin.api.user_events_api import UserEventsApi + + +class TestUserEventsApi(unittest.TestCase): + """UserEventsApi unit test stubs""" + + def setUp(self) -> None: + self.api = UserEventsApi() + + def tearDown(self) -> None: + pass + + 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", + "_links" : { + "next" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + }, + "previous" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + }, + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "auditEvents" : [ { + "accountGroupName" : "API Sandbox", + "aid" : "1234", + "date" : "2020-07-17T21:54:54Z", + "event" : "Report created.", + "ipAddress" : "99.128.0.0/11", + "uid" : "1234", + "user" : "API Sandbox User (noreply@thousandeyes.com)", + "resources" : [ { + "name" : "My New report", + "type" : "reportTitle" + }, { + "name" : "Other Report", + "type" : "testName" + } ] + }, { + "accountGroupName" : "API Sandbox", + "aid" : "1234", + "date" : "2020-07-17T22:00:54Z", + "event" : "Login failed.", + "ipAddress" : "99.128.0.0/11", + "uid" : "1234", + "user" : "API Sandbox User (noreply@thousandeyes.com)" + } ], + "startDate" : "2022-07-17T22:00:54Z" + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.models.AuditUserEvents.from_json(response_body_json) + assert_constructed_model_matches_example_json(response_from_json, response_loaded_json) + + +if __name__ == '__main__': + unittest.main() diff --git a/thousandeyes-sdk-administrative/test/test_users_api.py b/thousandeyes-sdk-administrative/test/test_users_api.py new file mode 100644 index 00000000..91a11e0d --- /dev/null +++ b/thousandeyes-sdk-administrative/test/test_users_api.py @@ -0,0 +1,345 @@ +# coding: utf-8 + +""" + Administrative API + + ## Overview Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following endpoints that define the operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). + + The version of the OpenAPI document: 7.0.6 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import json +import unittest +import thousandeyes_sdk.admin.models + +from .test_utils import assert_constructed_model_matches_example_json +from thousandeyes_sdk.admin.api.users_api import UsersApi + + +class TestUsersApi(unittest.TestCase): + """UsersApi unit test stubs""" + + def setUp(self) -> None: + self.api = UsersApi() + + def tearDown(self) -> None: + pass + + def test_create_user_models_validation(self) -> None: + """Test case for create_user request and response models""" + request_body_json = """ + { + "loginAccountGroupId" : "691", + "accountGroupRoles" : [ { + "roleIds" : [ "57", "1140" ], + "accountGroupId" : "315" + }, { + "roleIds" : [ "57", "1140" ], + "accountGroupId" : "315" + } ], + "name" : "User X", + "allAccountGroupRoleIds" : [ "57", "1140" ], + "email" : "userx@thousandeyes.com" + }""" + + request_loaded_json = json.loads(request_body_json) + request_from_json = thousandeyes_sdk.admin.models.UserRequest.from_json(request_body_json) + assert_constructed_model_matches_example_json(request_from_json, request_loaded_json) + + response_body_json = """ + { + "loginAccountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + }, + "uid" : "245", + "allAccountGroupRoles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "accountGroupRoles" : [ { + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "accountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + } + }, { + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "accountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + } + } ], + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2020-07-17T22:00:54Z" + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.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_user_models_validation(self) -> None: + """Test case for get_user request and response models""" + + response_body_json = """ + { + "loginAccountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + }, + "uid" : "245", + "lastLogin" : "2022-07-17T22:00:54Z", + "allAccountGroupRoles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "accountGroupRoles" : [ { + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "accountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + } + }, { + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "accountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + } + } ], + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2020-07-17T22:00:54Z" + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.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" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "users" : [ { + "loginAccountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + }, + "uid" : "245", + "lastLogin" : "2022-07-17T22:00:54Z", + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2020-07-17T22:00:54Z" + }, { + "loginAccountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + }, + "uid" : "245", + "lastLogin" : "2022-07-17T22:00:54Z", + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2020-07-17T22:00:54Z" + } ] + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.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""" + request_body_json = """ + { + "loginAccountGroupId" : "691", + "accountGroupRoles" : [ { + "roleIds" : [ "57", "1140" ], + "accountGroupId" : "315" + }, { + "roleIds" : [ "57", "1140" ], + "accountGroupId" : "315" + } ], + "name" : "User X", + "allAccountGroupRoleIds" : [ "57", "1140" ], + "email" : "userx@thousandeyes.com" + }""" + + request_loaded_json = json.loads(request_body_json) + request_from_json = thousandeyes_sdk.admin.models.UserRequest.from_json(request_body_json) + assert_constructed_model_matches_example_json(request_from_json, request_loaded_json) + + response_body_json = """ + { + "loginAccountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + }, + "uid" : "245", + "lastLogin" : "2022-07-17T22:00:54Z", + "allAccountGroupRoles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "accountGroupRoles" : [ { + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "accountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + } + }, { + "roles" : [ { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + }, { + "roleId" : "35", + "name" : "Organization Admin", + "isBuiltin" : true, + "hasManagementPermissions" : true + } ], + "accountGroup" : { + "accountGroupName" : "Account A", + "aid" : "1234" + } + } ], + "name" : "User X", + "email" : "userx@thousandeyes.com", + "dateRegistered" : "2020-07-17T22:00:54Z" + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.admin.models.UserDetail.from_json(response_body_json) + assert_constructed_model_matches_example_json(response_from_json, response_loaded_json) + + +if __name__ == '__main__': + unittest.main() diff --git a/thousandeyes-sdk-administrative/test/test_utils.py b/thousandeyes-sdk-administrative/test/test_utils.py new file mode 100644 index 00000000..930528d9 --- /dev/null +++ b/thousandeyes-sdk-administrative/test/test_utils.py @@ -0,0 +1,16 @@ +# coding: utf-8 + +import json +import unittest + +from pydantic import BaseModel + + +def assert_constructed_model_matches_example_json(model: BaseModel, loaded_json: dict): + test_case = unittest.TestCase() + test_case.maxDiff = None + test_case.assertIsNotNone(model) + constructed_json = json.loads(model.to_json()) + sorted_loaded_json = json.dumps(loaded_json, sort_keys=True) + sorted_constructed_json = json.dumps(constructed_json, sort_keys=True) + test_case.assertEqual(sorted_loaded_json, sorted_constructed_json) diff --git a/thousandeyes-sdk-monitors/.openapi-generator-ignore b/thousandeyes-sdk-bgp-monitors/.openapi-generator-ignore similarity index 100% rename from thousandeyes-sdk-monitors/.openapi-generator-ignore rename to thousandeyes-sdk-bgp-monitors/.openapi-generator-ignore diff --git a/thousandeyes-sdk-bgp-monitors/.openapi-generator/FILES b/thousandeyes-sdk-bgp-monitors/.openapi-generator/FILES new file mode 100644 index 00000000..7e5275f8 --- /dev/null +++ b/thousandeyes-sdk-bgp-monitors/.openapi-generator/FILES @@ -0,0 +1,27 @@ +.openapi-generator-ignore +README.md +docs/Error.md +docs/Link.md +docs/ListBGPMonitorsApi.md +docs/Monitor.md +docs/MonitorType.md +docs/Monitors.md +docs/SelfLinks.md +docs/UnauthorizedError.md +pyproject.toml +setup.cfg +src/thousandeyes_sdk/bgp_monitors/__init__.py +src/thousandeyes_sdk/bgp_monitors/api/__init__.py +src/thousandeyes_sdk/bgp_monitors/api/list_bgp_monitors_api.py +src/thousandeyes_sdk/bgp_monitors/models/__init__.py +src/thousandeyes_sdk/bgp_monitors/models/error.py +src/thousandeyes_sdk/bgp_monitors/models/link.py +src/thousandeyes_sdk/bgp_monitors/models/monitor.py +src/thousandeyes_sdk/bgp_monitors/models/monitor_type.py +src/thousandeyes_sdk/bgp_monitors/models/monitors.py +src/thousandeyes_sdk/bgp_monitors/models/self_links.py +src/thousandeyes_sdk/bgp_monitors/models/unauthorized_error.py +src/thousandeyes_sdk/bgp_monitors/py.typed +test/__init__.py +test/test_list_bgp_monitors_api.py +test/test_utils.py diff --git a/thousandeyes-sdk-monitors/.openapi-generator/VERSION b/thousandeyes-sdk-bgp-monitors/.openapi-generator/VERSION similarity index 100% rename from thousandeyes-sdk-monitors/.openapi-generator/VERSION rename to thousandeyes-sdk-bgp-monitors/.openapi-generator/VERSION diff --git a/thousandeyes-sdk-monitors/README.md b/thousandeyes-sdk-bgp-monitors/README.md similarity index 94% rename from thousandeyes-sdk-monitors/README.md rename to thousandeyes-sdk-bgp-monitors/README.md index a87207cf..4216e44d 100644 --- a/thousandeyes-sdk-monitors/README.md +++ b/thousandeyes-sdk-bgp-monitors/README.md @@ -1,4 +1,4 @@ -# thousandeyes-sdk-monitors +# thousandeyes-sdk-bgp-monitors Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. @@ -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.4 +- API version: 7.0.6 - Package version: 1.0.0 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -30,7 +30,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git Then import the package: ```python -import thousandeyes_sdk.monitors +import thousandeyes_sdk.bgp_monitors ``` ### Setuptools @@ -44,7 +44,7 @@ python setup.py install --user Then import the package: ```python -import thousandeyes_sdk.monitors +import thousandeyes_sdk.bgp_monitors ``` ### Tests @@ -58,7 +58,7 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python import thousandeyes_sdk.client -import thousandeyes_sdk.monitors +import thousandeyes_sdk.bgp_monitors from thousandeyes_sdk.client.exceptions import ApiException from pprint import pprint @@ -82,7 +82,7 @@ configuration = thousandeyes_sdk.client.Configuration( # Enter a context with an instance of the API client with thousandeyes_sdk.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = thousandeyes_sdk.monitors.ListBGPMonitorsApi(api_client) + api_instance = thousandeyes_sdk.bgp_monitors.ListBGPMonitorsApi(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) try: diff --git a/thousandeyes-sdk-monitors/docs/Error.md b/thousandeyes-sdk-bgp-monitors/docs/Error.md similarity index 95% rename from thousandeyes-sdk-monitors/docs/Error.md rename to thousandeyes-sdk-bgp-monitors/docs/Error.md index 8fd31fbd..4c5d99c7 100644 --- a/thousandeyes-sdk-monitors/docs/Error.md +++ b/thousandeyes-sdk-bgp-monitors/docs/Error.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from thousandeyes_sdk.monitors.models.error import Error +from thousandeyes_sdk.bgp_monitors.models.error import Error # TODO update the JSON string below json = "{}" diff --git a/thousandeyes-sdk-monitors/docs/Link.md b/thousandeyes-sdk-bgp-monitors/docs/Link.md similarity index 96% rename from thousandeyes-sdk-monitors/docs/Link.md rename to thousandeyes-sdk-bgp-monitors/docs/Link.md index 66f4adef..7823e521 100644 --- a/thousandeyes-sdk-monitors/docs/Link.md +++ b/thousandeyes-sdk-bgp-monitors/docs/Link.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from thousandeyes_sdk.monitors.models.link import Link +from thousandeyes_sdk.bgp_monitors.models.link import Link # TODO update the JSON string below json = "{}" diff --git a/thousandeyes-sdk-monitors/docs/ListBGPMonitorsApi.md b/thousandeyes-sdk-bgp-monitors/docs/ListBGPMonitorsApi.md similarity index 87% rename from thousandeyes-sdk-monitors/docs/ListBGPMonitorsApi.md rename to thousandeyes-sdk-bgp-monitors/docs/ListBGPMonitorsApi.md index fb4c6651..7ad34a02 100644 --- a/thousandeyes-sdk-monitors/docs/ListBGPMonitorsApi.md +++ b/thousandeyes-sdk-bgp-monitors/docs/ListBGPMonitorsApi.md @@ -1,4 +1,4 @@ -# thousandeyes_sdk.monitors.ListBGPMonitorsApi +# thousandeyes_sdk.bgp_monitors.ListBGPMonitorsApi All URIs are relative to *https://api.thousandeyes.com* @@ -19,9 +19,9 @@ Retrieves a list of BGP monitors available to your account in ThousandEyes, incl * Bearer Authentication (BearerAuth): ```python -import thousandeyes_sdk.monitors -from thousandeyes_sdk.monitors.models.monitors import Monitors -from thousandeyes_sdk.monitors.rest import ApiException +import thousandeyes_sdk.bgp_monitors +from thousandeyes_sdk.bgp_monitors.models.monitors import Monitors +from thousandeyes_sdk.bgp_monitors.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://api.thousandeyes.com @@ -41,9 +41,9 @@ configuration = thousandeyes_sdk.client.Configuration( ) # Enter a context with an instance of the API client -with thousandeyes_sdk.monitors.ApiClient(configuration) as api_client: +with thousandeyes_sdk.bgp_monitors.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = thousandeyes_sdk.monitors.ListBGPMonitorsApi(api_client) + api_instance = thousandeyes_sdk.bgp_monitors.ListBGPMonitorsApi(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) try: @@ -75,7 +75,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json, application/problem+json + - **Accept**: application/hal+json, application/json, application/problem+json ### HTTP response details diff --git a/thousandeyes-sdk-monitors/docs/Monitor.md b/thousandeyes-sdk-bgp-monitors/docs/Monitor.md similarity index 94% rename from thousandeyes-sdk-monitors/docs/Monitor.md rename to thousandeyes-sdk-bgp-monitors/docs/Monitor.md index a975d9da..04b6eade 100644 --- a/thousandeyes-sdk-monitors/docs/Monitor.md +++ b/thousandeyes-sdk-bgp-monitors/docs/Monitor.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from thousandeyes_sdk.monitors.models.monitor import Monitor +from thousandeyes_sdk.bgp_monitors.models.monitor import Monitor # TODO update the JSON string below json = "{}" diff --git a/thousandeyes-sdk-monitors/docs/MonitorType.md b/thousandeyes-sdk-bgp-monitors/docs/MonitorType.md similarity index 100% rename from thousandeyes-sdk-monitors/docs/MonitorType.md rename to thousandeyes-sdk-bgp-monitors/docs/MonitorType.md diff --git a/thousandeyes-sdk-monitors/docs/Monitors.md b/thousandeyes-sdk-bgp-monitors/docs/Monitors.md similarity index 92% rename from thousandeyes-sdk-monitors/docs/Monitors.md rename to thousandeyes-sdk-bgp-monitors/docs/Monitors.md index e4c1c6b7..441cf768 100644 --- a/thousandeyes-sdk-monitors/docs/Monitors.md +++ b/thousandeyes-sdk-bgp-monitors/docs/Monitors.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from thousandeyes_sdk.monitors.models.monitors import Monitors +from thousandeyes_sdk.bgp_monitors.models.monitors import Monitors # TODO update the JSON string below json = "{}" diff --git a/thousandeyes-sdk-monitors/docs/SelfLinks.md b/thousandeyes-sdk-bgp-monitors/docs/SelfLinks.md similarity index 92% rename from thousandeyes-sdk-monitors/docs/SelfLinks.md rename to thousandeyes-sdk-bgp-monitors/docs/SelfLinks.md index 424c76ac..17afe991 100644 --- a/thousandeyes-sdk-monitors/docs/SelfLinks.md +++ b/thousandeyes-sdk-bgp-monitors/docs/SelfLinks.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from thousandeyes_sdk.monitors.models.self_links import SelfLinks +from thousandeyes_sdk.bgp_monitors.models.self_links import SelfLinks # TODO update the JSON string below json = "{}" diff --git a/thousandeyes-sdk-monitors/docs/UnauthorizedError.md b/thousandeyes-sdk-bgp-monitors/docs/UnauthorizedError.md similarity index 91% rename from thousandeyes-sdk-monitors/docs/UnauthorizedError.md rename to thousandeyes-sdk-bgp-monitors/docs/UnauthorizedError.md index c1ae518b..e50e8c43 100644 --- a/thousandeyes-sdk-monitors/docs/UnauthorizedError.md +++ b/thousandeyes-sdk-bgp-monitors/docs/UnauthorizedError.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from thousandeyes_sdk.monitors.models.unauthorized_error import UnauthorizedError +from thousandeyes_sdk.bgp_monitors.models.unauthorized_error import UnauthorizedError # TODO update the JSON string below json = "{}" diff --git a/thousandeyes-sdk-monitors/pyproject.toml b/thousandeyes-sdk-bgp-monitors/pyproject.toml similarity index 98% rename from thousandeyes-sdk-monitors/pyproject.toml rename to thousandeyes-sdk-bgp-monitors/pyproject.toml index 77ab5802..df35aa9f 100644 --- a/thousandeyes-sdk-monitors/pyproject.toml +++ b/thousandeyes-sdk-bgp-monitors/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "thousandeyes-sdk-monitors" +name = "thousandeyes-sdk-bgp-monitors" version = "1.0.0" authors = [ { name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" } diff --git a/thousandeyes-sdk-monitors/setup.cfg b/thousandeyes-sdk-bgp-monitors/setup.cfg similarity index 100% rename from thousandeyes-sdk-monitors/setup.cfg rename to thousandeyes-sdk-bgp-monitors/setup.cfg diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/__init__.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/__init__.py similarity index 64% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/__init__.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/__init__.py index 959c5f79..598113a4 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/__init__.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/__init__.py @@ -7,7 +7,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,14 +17,14 @@ __version__ = "1.0.0" # import apis into sdk package -from thousandeyes_sdk.monitors.api.list_bgp_monitors_api import ListBGPMonitorsApi +from thousandeyes_sdk.bgp_monitors.api.list_bgp_monitors_api import ListBGPMonitorsApi # import models into sdk package -from thousandeyes_sdk.monitors.models.error import Error -from thousandeyes_sdk.monitors.models.link import Link -from thousandeyes_sdk.monitors.models.monitor import Monitor -from thousandeyes_sdk.monitors.models.monitor_type import MonitorType -from thousandeyes_sdk.monitors.models.monitors import Monitors -from thousandeyes_sdk.monitors.models.self_links import SelfLinks -from thousandeyes_sdk.monitors.models.unauthorized_error import UnauthorizedError +from thousandeyes_sdk.bgp_monitors.models.error import Error +from thousandeyes_sdk.bgp_monitors.models.link import Link +from thousandeyes_sdk.bgp_monitors.models.monitor import Monitor +from thousandeyes_sdk.bgp_monitors.models.monitor_type import MonitorType +from thousandeyes_sdk.bgp_monitors.models.monitors import Monitors +from thousandeyes_sdk.bgp_monitors.models.self_links import SelfLinks +from thousandeyes_sdk.bgp_monitors.models.unauthorized_error import UnauthorizedError diff --git a/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/__init__.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/__init__.py new file mode 100644 index 00000000..36c92d39 --- /dev/null +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/__init__.py @@ -0,0 +1,5 @@ +# flake8: noqa + +# import apis into api package +from thousandeyes_sdk.bgp_monitors.api.list_bgp_monitors_api import ListBGPMonitorsApi + diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/api/list_bgp_monitors_api.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/list_bgp_monitors_api.py similarity index 97% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/api/list_bgp_monitors_api.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/list_bgp_monitors_api.py index 99566d7d..3ed8d56f 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/api/list_bgp_monitors_api.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/api/list_bgp_monitors_api.py @@ -5,7 +5,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,12 +16,12 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -import thousandeyes_sdk.monitors.models +import thousandeyes_sdk.bgp_monitors.models from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from thousandeyes_sdk.monitors.models.monitors import Monitors +from thousandeyes_sdk.bgp_monitors.models.monitors import Monitors from thousandeyes_sdk.client.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.client.api_response import ApiResponse @@ -110,7 +110,7 @@ class ListBGPMonitorsApi: return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - models=thousandeyes_sdk.monitors.models, + models=thousandeyes_sdk.bgp_monitors.models, ).data @@ -183,7 +183,7 @@ class ListBGPMonitorsApi: return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - models=thousandeyes_sdk.monitors.models, + models=thousandeyes_sdk.bgp_monitors.models, ) @@ -291,6 +291,7 @@ class ListBGPMonitorsApi: _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/hal+json', + 'application/json', 'application/problem+json' ] ) diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/__init__.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/__init__.py similarity index 66% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/__init__.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/__init__.py index 0ba75cd2..5c776c86 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/__init__.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/__init__.py @@ -6,7 +6,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ # import models into model package -from thousandeyes_sdk.monitors.models.error import Error -from thousandeyes_sdk.monitors.models.link import Link -from thousandeyes_sdk.monitors.models.monitor import Monitor -from thousandeyes_sdk.monitors.models.monitor_type import MonitorType -from thousandeyes_sdk.monitors.models.monitors import Monitors -from thousandeyes_sdk.monitors.models.self_links import SelfLinks -from thousandeyes_sdk.monitors.models.unauthorized_error import UnauthorizedError +from thousandeyes_sdk.bgp_monitors.models.error import Error +from thousandeyes_sdk.bgp_monitors.models.link import Link +from thousandeyes_sdk.bgp_monitors.models.monitor import Monitor +from thousandeyes_sdk.bgp_monitors.models.monitor_type import MonitorType +from thousandeyes_sdk.bgp_monitors.models.monitors import Monitors +from thousandeyes_sdk.bgp_monitors.models.self_links import SelfLinks +from thousandeyes_sdk.bgp_monitors.models.unauthorized_error import UnauthorizedError diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/error.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/error.py similarity index 96% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/error.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/error.py index efe49d43..9a483afc 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/error.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/error.py @@ -5,7 +5,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,6 +37,7 @@ class Error(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -47,7 +48,7 @@ class Error(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/link.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/link.py similarity index 96% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/link.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/link.py index 6c7b245c..5f8cf578 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/link.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/link.py @@ -5,7 +5,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,6 +40,7 @@ class Link(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -50,7 +51,7 @@ class Link(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/monitor.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/monitor.py similarity index 94% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/monitor.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/monitor.py index 07abbbd7..055bc175 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/monitor.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/monitor.py @@ -5,7 +5,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from thousandeyes_sdk.monitors.models.monitor_type import MonitorType +from thousandeyes_sdk.bgp_monitors.models.monitor_type import MonitorType from typing import Optional, Set from typing_extensions import Self @@ -39,6 +39,7 @@ class Monitor(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -49,7 +50,7 @@ class Monitor(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/monitor_type.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/monitor_type.py similarity index 96% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/monitor_type.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/monitor_type.py index ddad38df..e02e4f75 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/monitor_type.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/monitor_type.py @@ -5,7 +5,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/monitors.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/monitors.py similarity index 92% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/monitors.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/monitors.py index d85fd238..e9b919fa 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/monitors.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/monitors.py @@ -5,7 +5,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ import json from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from thousandeyes_sdk.monitors.models.monitor import Monitor -from thousandeyes_sdk.monitors.models.self_links import SelfLinks +from thousandeyes_sdk.bgp_monitors.models.monitor import Monitor +from thousandeyes_sdk.bgp_monitors.models.self_links import SelfLinks from typing import Optional, Set from typing_extensions import Self @@ -36,6 +36,7 @@ class Monitors(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -46,7 +47,7 @@ class Monitors(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/self_links.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/self_links.py similarity index 93% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/self_links.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/self_links.py index 9406db42..e6638982 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/self_links.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/self_links.py @@ -5,7 +5,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from thousandeyes_sdk.monitors.models.link import Link +from thousandeyes_sdk.bgp_monitors.models.link import Link from typing import Optional, Set from typing_extensions import Self @@ -34,6 +34,7 @@ class SelfLinks(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class SelfLinks(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/unauthorized_error.py b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/unauthorized_error.py similarity index 95% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/unauthorized_error.py rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/unauthorized_error.py index 4b7c2d8d..3f9397a2 100644 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/models/unauthorized_error.py +++ b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/models/unauthorized_error.py @@ -5,7 +5,7 @@ Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - The version of the OpenAPI document: 7.0.4 + The version of the OpenAPI document: 7.0.6 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,6 +34,7 @@ class UnauthorizedError(BaseModel): populate_by_name=True, validate_assignment=True, protected_namespaces=(), + extra="allow", ) @@ -44,7 +45,7 @@ class UnauthorizedError(BaseModel): 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 json.dumps(self.to_dict()) + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/py.typed b/thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/py.typed similarity index 100% rename from thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/py.typed rename to thousandeyes-sdk-bgp-monitors/src/thousandeyes_sdk/bgp_monitors/py.typed diff --git a/thousandeyes-sdk-monitors/test/__init__.py b/thousandeyes-sdk-bgp-monitors/test/__init__.py similarity index 100% rename from thousandeyes-sdk-monitors/test/__init__.py rename to thousandeyes-sdk-bgp-monitors/test/__init__.py diff --git a/thousandeyes-sdk-bgp-monitors/test/test_list_bgp_monitors_api.py b/thousandeyes-sdk-bgp-monitors/test/test_list_bgp_monitors_api.py new file mode 100644 index 00000000..5644b394 --- /dev/null +++ b/thousandeyes-sdk-bgp-monitors/test/test_list_bgp_monitors_api.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + BGP Monitors API + + Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). + + The version of the OpenAPI document: 7.0.6 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import json +import unittest +import thousandeyes_sdk.bgp_monitors.models + +from .test_utils import assert_constructed_model_matches_example_json +from thousandeyes_sdk.bgp_monitors.api.list_bgp_monitors_api import ListBGPMonitorsApi + + +class TestListBGPMonitorsApi(unittest.TestCase): + """ListBGPMonitorsApi unit test stubs""" + + def setUp(self) -> None: + self.api = ListBGPMonitorsApi() + + def tearDown(self) -> None: + pass + + def test_get_bgp_monitors_models_validation(self) -> None: + """Test case for get_bgp_monitors request and response models""" + + response_body_json = """ + { + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "monitors" : [ { + "monitorType" : "public", + "monitorId" : "1234", + "monitorName" : "Seattle, WA", + "ipAddress" : "4.69.184.193", + "countryId" : "GB", + "network" : "Level 3 Communications, Inc. (AS 3356)" + }, { + "monitorType" : "public", + "monitorId" : "1234", + "monitorName" : "Seattle, WA", + "ipAddress" : "4.69.184.193", + "countryId" : "GB", + "network" : "Level 3 Communications, Inc. (AS 3356)" + } ] + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.bgp_monitors.models.Monitors.from_json(response_body_json) + assert_constructed_model_matches_example_json(response_from_json, response_loaded_json) + + +if __name__ == '__main__': + unittest.main() diff --git a/thousandeyes-sdk-bgp-monitors/test/test_utils.py b/thousandeyes-sdk-bgp-monitors/test/test_utils.py new file mode 100644 index 00000000..930528d9 --- /dev/null +++ b/thousandeyes-sdk-bgp-monitors/test/test_utils.py @@ -0,0 +1,16 @@ +# coding: utf-8 + +import json +import unittest + +from pydantic import BaseModel + + +def assert_constructed_model_matches_example_json(model: BaseModel, loaded_json: dict): + test_case = unittest.TestCase() + test_case.maxDiff = None + test_case.assertIsNotNone(model) + constructed_json = json.loads(model.to_json()) + sorted_loaded_json = json.dumps(loaded_json, sort_keys=True) + sorted_constructed_json = json.dumps(constructed_json, sort_keys=True) + test_case.assertEqual(sorted_loaded_json, sorted_constructed_json) diff --git a/thousandeyes-sdk-monitors/.openapi-generator/FILES b/thousandeyes-sdk-monitors/.openapi-generator/FILES deleted file mode 100644 index 4526cefe..00000000 --- a/thousandeyes-sdk-monitors/.openapi-generator/FILES +++ /dev/null @@ -1,32 +0,0 @@ -.openapi-generator-ignore -README.md -docs/Error.md -docs/Link.md -docs/ListBGPMonitorsApi.md -docs/Monitor.md -docs/MonitorType.md -docs/Monitors.md -docs/SelfLinks.md -docs/UnauthorizedError.md -pyproject.toml -setup.cfg -src/thousandeyes_sdk/monitors/__init__.py -src/thousandeyes_sdk/monitors/api/__init__.py -src/thousandeyes_sdk/monitors/api/list_bgp_monitors_api.py -src/thousandeyes_sdk/monitors/models/__init__.py -src/thousandeyes_sdk/monitors/models/error.py -src/thousandeyes_sdk/monitors/models/link.py -src/thousandeyes_sdk/monitors/models/monitor.py -src/thousandeyes_sdk/monitors/models/monitor_type.py -src/thousandeyes_sdk/monitors/models/monitors.py -src/thousandeyes_sdk/monitors/models/self_links.py -src/thousandeyes_sdk/monitors/models/unauthorized_error.py -src/thousandeyes_sdk/monitors/py.typed -test/__init__.py -test/test_error.py -test/test_link.py -test/test_monitor.py -test/test_monitor_type.py -test/test_monitors.py -test/test_self_links.py -test/test_unauthorized_error.py diff --git a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/api/__init__.py b/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/api/__init__.py deleted file mode 100644 index dda3cb77..00000000 --- a/thousandeyes-sdk-monitors/src/thousandeyes_sdk/monitors/api/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# flake8: noqa - -# import apis into api package -from thousandeyes_sdk.monitors.api.list_bgp_monitors_api import ListBGPMonitorsApi - diff --git a/thousandeyes-sdk-monitors/test/test_error.py b/thousandeyes-sdk-monitors/test/test_error.py deleted file mode 100644 index 75af1472..00000000 --- a/thousandeyes-sdk-monitors/test/test_error.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - BGP Monitors API - - Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - - 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.monitors.models.error import Error - -class TestError(unittest.TestCase): - """Error unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Error: - """Test Error - 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 `Error` - """ - model = Error() - if include_optional: - return Error( - type = '', - title = '', - status = 56, - detail = '', - instance = '' - ) - else: - return Error( - ) - """ - - def testError(self): - """Test Error""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-monitors/test/test_link.py b/thousandeyes-sdk-monitors/test/test_link.py deleted file mode 100644 index 1f279d02..00000000 --- a/thousandeyes-sdk-monitors/test/test_link.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - BGP Monitors API - - Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - - 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.monitors.models.link import Link - -class TestLink(unittest.TestCase): - """Link unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Link: - """Test Link - 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 `Link` - """ - model = Link() - if include_optional: - return Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '' - ) - else: - return Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - ) - """ - - def testLink(self): - """Test Link""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-monitors/test/test_monitor.py b/thousandeyes-sdk-monitors/test/test_monitor.py deleted file mode 100644 index 222f881c..00000000 --- a/thousandeyes-sdk-monitors/test/test_monitor.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - BGP Monitors API - - Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - - 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.monitors.models.monitor import Monitor - -class TestMonitor(unittest.TestCase): - """Monitor unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Monitor: - """Test Monitor - 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 `Monitor` - """ - model = Monitor() - if include_optional: - return Monitor( - country_id = 'GB', - monitor_id = '1234', - ip_address = '4.69.184.193', - network = 'Level 3 Communications, Inc. (AS 3356)', - monitor_type = 'public', - monitor_name = 'Seattle, WA' - ) - else: - return Monitor( - ) - """ - - def testMonitor(self): - """Test Monitor""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-monitors/test/test_monitor_type.py b/thousandeyes-sdk-monitors/test/test_monitor_type.py deleted file mode 100644 index a641988d..00000000 --- a/thousandeyes-sdk-monitors/test/test_monitor_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - BGP Monitors API - - Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - - 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.monitors.models.monitor_type import MonitorType - -class TestMonitorType(unittest.TestCase): - """MonitorType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMonitorType(self): - """Test MonitorType""" - # inst = MonitorType() - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-monitors/test/test_monitors.py b/thousandeyes-sdk-monitors/test/test_monitors.py deleted file mode 100644 index c1e998e1..00000000 --- a/thousandeyes-sdk-monitors/test/test_monitors.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - BGP Monitors API - - Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - - 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.monitors.models.monitors import Monitors - -class TestMonitors(unittest.TestCase): - """Monitors unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Monitors: - """Test Monitors - 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 `Monitors` - """ - model = Monitors() - if include_optional: - return Monitors( - monitors = [ - thousandeyes_sdk.monitors.models.monitor.Monitor( - country_id = 'GB', - monitor_id = '1234', - ip_address = '4.69.184.193', - network = 'Level 3 Communications, Inc. (AS 3356)', - monitor_type = 'public', - monitor_name = 'Seattle, WA', ) - ], - links = thousandeyes_sdk.monitors.models.self_links.SelfLinks( - self = thousandeyes_sdk.monitors.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ), ) - ) - else: - return Monitors( - ) - """ - - def testMonitors(self): - """Test Monitors""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-monitors/test/test_self_links.py b/thousandeyes-sdk-monitors/test/test_self_links.py deleted file mode 100644 index 6c9f0bb5..00000000 --- a/thousandeyes-sdk-monitors/test/test_self_links.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - BGP Monitors API - - Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - - 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.monitors.models.self_links import SelfLinks - -class TestSelfLinks(unittest.TestCase): - """SelfLinks unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelfLinks: - """Test SelfLinks - 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 `SelfLinks` - """ - model = SelfLinks() - if include_optional: - return SelfLinks( - var_self = thousandeyes_sdk.monitors.models.link.Link( - href = 'https://api.thousandeyes.com/v7/link/to/resource/id', - templated = True, - type = '', - deprecation = '', - name = '', - profile = '', - title = '', - hreflang = '', ) - ) - else: - return SelfLinks( - ) - """ - - def testSelfLinks(self): - """Test SelfLinks""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/thousandeyes-sdk-monitors/test/test_unauthorized_error.py b/thousandeyes-sdk-monitors/test/test_unauthorized_error.py deleted file mode 100644 index ec44e4d9..00000000 --- a/thousandeyes-sdk-monitors/test/test_unauthorized_error.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - BGP Monitors API - - Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. When you specify a service URL in a test, layered BGP tests automatically track reachability and path changes for any relevant prefix. When you use an IP address as the target for a test, the ThousandEyes platform monitors the relevant internet-routed prefix. You can also create specific BGP monitoring for a prefix, and can alert on hijacks and leaks. For more information about monitors, see [Inside-Out BGP Visibility](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/bgp-tests/inside-out-bgp-visibility). - - 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.monitors.models.unauthorized_error import UnauthorizedError - -class TestUnauthorizedError(unittest.TestCase): - """UnauthorizedError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UnauthorizedError: - """Test UnauthorizedError - 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 `UnauthorizedError` - """ - model = UnauthorizedError() - if include_optional: - return UnauthorizedError( - error = 'invalid_token', - error_description = 'Invalid access token' - ) - else: - return UnauthorizedError( - ) - """ - - def testUnauthorizedError(self): - """Test UnauthorizedError""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main()