CP-2126 Refactor HTTP client into shared package

This commit is contained in:
Jack Browne 2024-05-17 14:23:23 +01:00
parent ec2a48f18d
commit 87bf6578ea
220 changed files with 978 additions and 984 deletions

View File

View File

@ -1,83 +1,4 @@
.gitignore
README.md README.md
admin/__init__.py
admin/api/__init__.py
admin/api/account_groups_api.py
admin/api/permissions_api.py
admin/api/roles_api.py
admin/api/user_events_api.py
admin/api/users_api.py
admin/api_client.py
admin/api_response.py
admin/configuration.py
admin/exceptions.py
admin/models/__init__.py
admin/models/account_group.py
admin/models/account_group1.py
admin/models/account_group_detail.py
admin/models/account_group_id.py
admin/models/account_group_request_body.py
admin/models/account_group_roles.py
admin/models/account_group_roles_account_group_roles_inner.py
admin/models/account_group_roles_request_body_inner.py
admin/models/account_groups.py
admin/models/agent.py
admin/models/agent_base.py
admin/models/all_account_group_roles.py
admin/models/base_role.py
admin/models/cloud_enterprise_agent_type.py
admin/models/cluster_member.py
admin/models/create_account_group201_response.py
admin/models/create_role201_response.py
admin/models/create_user201_response.py
admin/models/created_user.py
admin/models/enterprise_agent.py
admin/models/enterprise_agent_data.py
admin/models/enterprise_agent_ipv6_policy.py
admin/models/enterprise_agent_state.py
admin/models/enterprise_agents.py
admin/models/error.py
admin/models/error_detail.py
admin/models/error_detail_code.py
admin/models/expand.py
admin/models/extended_user.py
admin/models/get_account_group200_response.py
admin/models/get_account_groups200_response.py
admin/models/get_permissions200_response.py
admin/models/get_roles200_response.py
admin/models/get_user200_response.py
admin/models/get_user_events200_response.py
admin/models/get_users200_response.py
admin/models/interface_ip_mapping.py
admin/models/link.py
admin/models/login_account_group.py
admin/models/new_account_group_response.py
admin/models/pagination_links.py
admin/models/pagination_links_links.py
admin/models/permission.py
admin/models/permissions.py
admin/models/query_window.py
admin/models/role.py
admin/models/role_detail.py
admin/models/role_request_body.py
admin/models/roles.py
admin/models/self_links.py
admin/models/self_links_links.py
admin/models/simple_agent.py
admin/models/unauthorized_error.py
admin/models/user.py
admin/models/user_account_group.py
admin/models/user_account_groups.py
admin/models/user_detail.py
admin/models/user_event.py
admin/models/user_event_all_of_resources_inner.py
admin/models/user_events.py
admin/models/user_request_body.py
admin/models/users.py
admin/models/validation_error.py
admin/models/validation_error_all_of_errors.py
admin/py.typed
admin/rest.py
docs/AccountGroup.md docs/AccountGroup.md
docs/AccountGroup1.md docs/AccountGroup1.md
docs/AccountGroupDetail.md docs/AccountGroupDetail.md
@ -148,10 +69,80 @@ docs/UsersApi.md
docs/ValidationError.md docs/ValidationError.md
docs/ValidationErrorAllOfErrors.md docs/ValidationErrorAllOfErrors.md
pyproject.toml pyproject.toml
requirements.txt
setup.cfg setup.cfg
setup.py src/thousandeyes_sdk/admin/__init__.py
test-requirements.txt src/thousandeyes_sdk/admin/api/__init__.py
src/thousandeyes_sdk/admin/api/account_groups_api.py
src/thousandeyes_sdk/admin/api/permissions_api.py
src/thousandeyes_sdk/admin/api/roles_api.py
src/thousandeyes_sdk/admin/api/user_events_api.py
src/thousandeyes_sdk/admin/api/users_api.py
src/thousandeyes_sdk/admin/models/__init__.py
src/thousandeyes_sdk/admin/models/account_group.py
src/thousandeyes_sdk/admin/models/account_group1.py
src/thousandeyes_sdk/admin/models/account_group_detail.py
src/thousandeyes_sdk/admin/models/account_group_id.py
src/thousandeyes_sdk/admin/models/account_group_request_body.py
src/thousandeyes_sdk/admin/models/account_group_roles.py
src/thousandeyes_sdk/admin/models/account_group_roles_account_group_roles_inner.py
src/thousandeyes_sdk/admin/models/account_group_roles_request_body_inner.py
src/thousandeyes_sdk/admin/models/account_groups.py
src/thousandeyes_sdk/admin/models/agent.py
src/thousandeyes_sdk/admin/models/agent_base.py
src/thousandeyes_sdk/admin/models/all_account_group_roles.py
src/thousandeyes_sdk/admin/models/base_role.py
src/thousandeyes_sdk/admin/models/cloud_enterprise_agent_type.py
src/thousandeyes_sdk/admin/models/cluster_member.py
src/thousandeyes_sdk/admin/models/create_account_group201_response.py
src/thousandeyes_sdk/admin/models/create_role201_response.py
src/thousandeyes_sdk/admin/models/create_user201_response.py
src/thousandeyes_sdk/admin/models/created_user.py
src/thousandeyes_sdk/admin/models/enterprise_agent.py
src/thousandeyes_sdk/admin/models/enterprise_agent_data.py
src/thousandeyes_sdk/admin/models/enterprise_agent_ipv6_policy.py
src/thousandeyes_sdk/admin/models/enterprise_agent_state.py
src/thousandeyes_sdk/admin/models/enterprise_agents.py
src/thousandeyes_sdk/admin/models/error.py
src/thousandeyes_sdk/admin/models/error_detail.py
src/thousandeyes_sdk/admin/models/error_detail_code.py
src/thousandeyes_sdk/admin/models/expand.py
src/thousandeyes_sdk/admin/models/extended_user.py
src/thousandeyes_sdk/admin/models/get_account_group200_response.py
src/thousandeyes_sdk/admin/models/get_account_groups200_response.py
src/thousandeyes_sdk/admin/models/get_permissions200_response.py
src/thousandeyes_sdk/admin/models/get_roles200_response.py
src/thousandeyes_sdk/admin/models/get_user200_response.py
src/thousandeyes_sdk/admin/models/get_user_events200_response.py
src/thousandeyes_sdk/admin/models/get_users200_response.py
src/thousandeyes_sdk/admin/models/interface_ip_mapping.py
src/thousandeyes_sdk/admin/models/link.py
src/thousandeyes_sdk/admin/models/login_account_group.py
src/thousandeyes_sdk/admin/models/new_account_group_response.py
src/thousandeyes_sdk/admin/models/pagination_links.py
src/thousandeyes_sdk/admin/models/pagination_links_links.py
src/thousandeyes_sdk/admin/models/permission.py
src/thousandeyes_sdk/admin/models/permissions.py
src/thousandeyes_sdk/admin/models/query_window.py
src/thousandeyes_sdk/admin/models/role.py
src/thousandeyes_sdk/admin/models/role_detail.py
src/thousandeyes_sdk/admin/models/role_request_body.py
src/thousandeyes_sdk/admin/models/roles.py
src/thousandeyes_sdk/admin/models/self_links.py
src/thousandeyes_sdk/admin/models/self_links_links.py
src/thousandeyes_sdk/admin/models/simple_agent.py
src/thousandeyes_sdk/admin/models/unauthorized_error.py
src/thousandeyes_sdk/admin/models/user.py
src/thousandeyes_sdk/admin/models/user_account_group.py
src/thousandeyes_sdk/admin/models/user_account_groups.py
src/thousandeyes_sdk/admin/models/user_detail.py
src/thousandeyes_sdk/admin/models/user_event.py
src/thousandeyes_sdk/admin/models/user_event_all_of_resources_inner.py
src/thousandeyes_sdk/admin/models/user_events.py
src/thousandeyes_sdk/admin/models/user_request_body.py
src/thousandeyes_sdk/admin/models/users.py
src/thousandeyes_sdk/admin/models/validation_error.py
src/thousandeyes_sdk/admin/models/validation_error_all_of_errors.py
src/thousandeyes_sdk/admin/py.typed
test/__init__.py test/__init__.py
test/test_account_group.py test/test_account_group.py
test/test_account_group1.py test/test_account_group1.py

View File

@ -1 +1 @@
7.5.0 7.6.0-SNAPSHOT

View File

@ -1,4 +1,4 @@
# admin # thousandeyes-sdk-admin
## Overview ## Overview
Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. 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: This API provides the following endpoints that define the operations to manage your organization:
@ -15,7 +15,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
- API version: 7.0.0 - API version: 7.0.0
- Package version: 1.0.0 - Package version: 1.0.0
- Generator version: 7.5.0 - Generator version: 7.6.0-SNAPSHOT
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
## Requirements. ## Requirements.
@ -34,7 +34,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
Then import the package: Then import the package:
```python ```python
import admin import thousandeyes_sdk.admin
``` ```
### Setuptools ### Setuptools
@ -48,7 +48,7 @@ python setup.py install --user
Then import the package: Then import the package:
```python ```python
import admin import thousandeyes_sdk.admin
``` ```
### Tests ### Tests
@ -61,13 +61,14 @@ Please follow the [installation procedure](#installation--usage) and then run th
```python ```python
import admin import thousandeyes_sdk.client
from admin.rest import ApiException import thousandeyes_sdk.admin
from thousandeyes_sdk.client.exceptions import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -77,17 +78,17 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.client.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.AccountGroupsApi(api_client) api_instance = thousandeyes_sdk.admin.AccountGroupsApi(api_client)
account_group_request_body = admin.AccountGroupRequestBody() # AccountGroupRequestBody | account_group_request_body = thousandeyes_sdk.admin.AccountGroupRequestBody() # AccountGroupRequestBody |
expand = [admin.Expand()] # List[Expand] | Optional parameter that specifies whether or not account group related resources should be expanded. By default, no expansion takes place if the query parameter is not passed. For example, to expand the `users` resource, pass the `?expand=user` query. (optional) expand = [thousandeyes_sdk.admin.Expand()] # List[Expand] | Optional parameter that specifies whether or not account group related resources should be expanded. By default, no expansion takes place if the query parameter is not passed. For example, to expand the `users` resource, pass the `?expand=user` query. (optional)
try: try:
# Create account group # Create account group

View File

@ -1,101 +0,0 @@
# coding: utf-8
# flake8: noqa
"""
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.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
__version__ = "1.0.0"
# import apis into sdk package
from admin.api.account_groups_api import AccountGroupsApi
from admin.api.permissions_api import PermissionsApi
from admin.api.roles_api import RolesApi
from admin.api.user_events_api import UserEventsApi
from admin.api.users_api import UsersApi
# import ApiClient
from admin.api_response import ApiResponse
from admin.api_client import ApiClient
from admin.configuration import Configuration
from admin.exceptions import OpenApiException
from admin.exceptions import ApiTypeError
from admin.exceptions import ApiValueError
from admin.exceptions import ApiKeyError
from admin.exceptions import ApiAttributeError
from admin.exceptions import ApiException
# import models into sdk package
from admin.models.account_group import AccountGroup
from admin.models.account_group1 import AccountGroup1
from admin.models.account_group_detail import AccountGroupDetail
from admin.models.account_group_id import AccountGroupId
from admin.models.account_group_request_body import AccountGroupRequestBody
from admin.models.account_group_roles import AccountGroupRoles
from admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner
from admin.models.account_group_roles_request_body_inner import AccountGroupRolesRequestBodyInner
from admin.models.account_groups import AccountGroups
from admin.models.agent import Agent
from admin.models.agent_base import AgentBase
from admin.models.all_account_group_roles import AllAccountGroupRoles
from admin.models.base_role import BaseRole
from admin.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType
from admin.models.cluster_member import ClusterMember
from admin.models.create_account_group201_response import CreateAccountGroup201Response
from admin.models.create_role201_response import CreateRole201Response
from admin.models.create_user201_response import CreateUser201Response
from admin.models.created_user import CreatedUser
from admin.models.enterprise_agent import EnterpriseAgent
from admin.models.enterprise_agent_data import EnterpriseAgentData
from admin.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy
from admin.models.enterprise_agent_state import EnterpriseAgentState
from admin.models.enterprise_agents import EnterpriseAgents
from admin.models.error import Error
from admin.models.error_detail import ErrorDetail
from admin.models.error_detail_code import ErrorDetailCode
from admin.models.expand import Expand
from admin.models.extended_user import ExtendedUser
from admin.models.get_account_group200_response import GetAccountGroup200Response
from admin.models.get_account_groups200_response import GetAccountGroups200Response
from admin.models.get_permissions200_response import GetPermissions200Response
from admin.models.get_roles200_response import GetRoles200Response
from admin.models.get_user200_response import GetUser200Response
from admin.models.get_user_events200_response import GetUserEvents200Response
from admin.models.get_users200_response import GetUsers200Response
from admin.models.interface_ip_mapping import InterfaceIpMapping
from admin.models.link import Link
from admin.models.login_account_group import LoginAccountGroup
from admin.models.new_account_group_response import NewAccountGroupResponse
from admin.models.pagination_links import PaginationLinks
from admin.models.pagination_links_links import PaginationLinksLinks
from admin.models.permission import Permission
from admin.models.permissions import Permissions
from admin.models.query_window import QueryWindow
from admin.models.role import Role
from admin.models.role_detail import RoleDetail
from admin.models.role_request_body import RoleRequestBody
from admin.models.roles import Roles
from admin.models.self_links import SelfLinks
from admin.models.self_links_links import SelfLinksLinks
from admin.models.simple_agent import SimpleAgent
from admin.models.unauthorized_error import UnauthorizedError
from admin.models.user import User
from admin.models.user_account_group import UserAccountGroup
from admin.models.user_account_groups import UserAccountGroups
from admin.models.user_detail import UserDetail
from admin.models.user_event import UserEvent
from admin.models.user_event_all_of_resources_inner import UserEventAllOfResourcesInner
from admin.models.user_events import UserEvents
from admin.models.user_request_body import UserRequestBody
from admin.models.users import Users
from admin.models.validation_error import ValidationError
from admin.models.validation_error_all_of_errors import ValidationErrorAllOfErrors

View File

@ -1,9 +0,0 @@
# flake8: noqa
# import apis into api package
from admin.api.account_groups_api import AccountGroupsApi
from admin.api.permissions_api import PermissionsApi
from admin.api.roles_api import RolesApi
from admin.api.user_events_api import UserEventsApi
from admin.api.users_api import UsersApi

View File

@ -1,80 +0,0 @@
# coding: utf-8
# flake8: noqa
"""
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.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
# import models into model package
from admin.models.account_group import AccountGroup
from admin.models.account_group1 import AccountGroup1
from admin.models.account_group_detail import AccountGroupDetail
from admin.models.account_group_id import AccountGroupId
from admin.models.account_group_request_body import AccountGroupRequestBody
from admin.models.account_group_roles import AccountGroupRoles
from admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner
from admin.models.account_group_roles_request_body_inner import AccountGroupRolesRequestBodyInner
from admin.models.account_groups import AccountGroups
from admin.models.agent import Agent
from admin.models.agent_base import AgentBase
from admin.models.all_account_group_roles import AllAccountGroupRoles
from admin.models.base_role import BaseRole
from admin.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType
from admin.models.cluster_member import ClusterMember
from admin.models.create_account_group201_response import CreateAccountGroup201Response
from admin.models.create_role201_response import CreateRole201Response
from admin.models.create_user201_response import CreateUser201Response
from admin.models.created_user import CreatedUser
from admin.models.enterprise_agent import EnterpriseAgent
from admin.models.enterprise_agent_data import EnterpriseAgentData
from admin.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy
from admin.models.enterprise_agent_state import EnterpriseAgentState
from admin.models.enterprise_agents import EnterpriseAgents
from admin.models.error import Error
from admin.models.error_detail import ErrorDetail
from admin.models.error_detail_code import ErrorDetailCode
from admin.models.expand import Expand
from admin.models.extended_user import ExtendedUser
from admin.models.get_account_group200_response import GetAccountGroup200Response
from admin.models.get_account_groups200_response import GetAccountGroups200Response
from admin.models.get_permissions200_response import GetPermissions200Response
from admin.models.get_roles200_response import GetRoles200Response
from admin.models.get_user200_response import GetUser200Response
from admin.models.get_user_events200_response import GetUserEvents200Response
from admin.models.get_users200_response import GetUsers200Response
from admin.models.interface_ip_mapping import InterfaceIpMapping
from admin.models.link import Link
from admin.models.login_account_group import LoginAccountGroup
from admin.models.new_account_group_response import NewAccountGroupResponse
from admin.models.pagination_links import PaginationLinks
from admin.models.pagination_links_links import PaginationLinksLinks
from admin.models.permission import Permission
from admin.models.permissions import Permissions
from admin.models.query_window import QueryWindow
from admin.models.role import Role
from admin.models.role_detail import RoleDetail
from admin.models.role_request_body import RoleRequestBody
from admin.models.roles import Roles
from admin.models.self_links import SelfLinks
from admin.models.self_links_links import SelfLinksLinks
from admin.models.simple_agent import SimpleAgent
from admin.models.unauthorized_error import UnauthorizedError
from admin.models.user import User
from admin.models.user_account_group import UserAccountGroup
from admin.models.user_account_groups import UserAccountGroups
from admin.models.user_detail import UserDetail
from admin.models.user_event import UserEvent
from admin.models.user_event_all_of_resources_inner import UserEventAllOfResourcesInner
from admin.models.user_events import UserEvents
from admin.models.user_request_body import UserRequestBody
from admin.models.users import Users
from admin.models.validation_error import ValidationError
from admin.models.validation_error_all_of_errors import ValidationErrorAllOfErrors

View File

@ -14,7 +14,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.account_group import AccountGroup from thousandeyes_sdk.admin.models.account_group import AccountGroup
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.account_group1 import AccountGroup1 from thousandeyes_sdk.admin.models.account_group1 import AccountGroup1
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -16,7 +16,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.account_group_detail import AccountGroupDetail from thousandeyes_sdk.admin.models.account_group_detail import AccountGroupDetail
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.account_group_id import AccountGroupId from thousandeyes_sdk.admin.models.account_group_id import AccountGroupId
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.account_group_request_body import AccountGroupRequestBody from thousandeyes_sdk.admin.models.account_group_request_body import AccountGroupRequestBody
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.account_group_roles import AccountGroupRoles from thousandeyes_sdk.admin.models.account_group_roles import AccountGroupRoles
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner from thousandeyes_sdk.admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.account_group_roles_request_body_inner import AccountGroupRolesRequestBodyInner from thousandeyes_sdk.admin.models.account_group_roles_request_body_inner import AccountGroupRolesRequestBodyInner
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.account_groups import AccountGroups from thousandeyes_sdk.admin.models.account_groups import AccountGroups
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -1,4 +1,4 @@
# admin.AccountGroupsApi # thousandeyes_sdk.admin.AccountGroupsApi
All URIs are relative to *https://api.thousandeyes.com* All URIs are relative to *https://api.thousandeyes.com*
@ -23,16 +23,16 @@ Creates a new account group. This operation requires the `Edit all account group
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.account_group_request_body import AccountGroupRequestBody from thousandeyes_sdk.admin.models.account_group_request_body import AccountGroupRequestBody
from admin.models.create_account_group201_response import CreateAccountGroup201Response from thousandeyes_sdk.admin.models.create_account_group201_response import CreateAccountGroup201Response
from admin.models.expand import Expand from thousandeyes_sdk.admin.models.expand import Expand
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -42,16 +42,16 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.AccountGroupsApi(api_client) api_instance = thousandeyes_sdk.admin.AccountGroupsApi(api_client)
account_group_request_body = admin.AccountGroupRequestBody() # AccountGroupRequestBody | account_group_request_body = thousandeyes_sdk.admin.AccountGroupRequestBody() # AccountGroupRequestBody |
expand = [admin.Expand()] # List[Expand] | Optional parameter that specifies whether or not account group related resources should be expanded. By default, no expansion takes place if the query parameter is not passed. For example, to expand the `users` resource, pass the `?expand=user` query. (optional) expand = [thousandeyes_sdk.admin.Expand()] # List[Expand] | Optional parameter that specifies whether or not account group related resources should be expanded. By default, no expansion takes place if the query parameter is not passed. For example, to expand the `users` resource, pass the `?expand=user` query. (optional)
try: try:
# Create account group # Create account group
@ -111,13 +111,13 @@ Deletes an account group using its ID. This operation requires the following per
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -127,14 +127,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.AccountGroupsApi(api_client) api_instance = thousandeyes_sdk.admin.AccountGroupsApi(api_client)
id = '1234' # str | Identifier for the account group. id = '1234' # str | Identifier for the account group.
try: try:
@ -192,15 +192,15 @@ Retrieves detailed information about an account group using its ID. This operat
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.expand import Expand from thousandeyes_sdk.admin.models.expand import Expand
from admin.models.get_account_group200_response import GetAccountGroup200Response from thousandeyes_sdk.admin.models.get_account_group200_response import GetAccountGroup200Response
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -210,16 +210,16 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.AccountGroupsApi(api_client) api_instance = thousandeyes_sdk.admin.AccountGroupsApi(api_client)
id = '1234' # str | Identifier for the account group. id = '1234' # str | Identifier for the account group.
expand = [admin.Expand()] # List[Expand] | Optional parameter that specifies whether or not account group related resources should be expanded. By default, no expansion takes place if the query parameter is not passed. For example, to expand the `users` resource, pass the `?expand=user` query. (optional) expand = [thousandeyes_sdk.admin.Expand()] # List[Expand] | Optional parameter that specifies whether or not account group related resources should be expanded. By default, no expansion takes place if the query parameter is not passed. For example, to expand the `users` resource, pass the `?expand=user` query. (optional)
try: try:
# Retrieve account group # Retrieve account group
@ -279,14 +279,14 @@ Retrieves a list of account groups available to the current user.
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.get_account_groups200_response import GetAccountGroups200Response from thousandeyes_sdk.admin.models.get_account_groups200_response import GetAccountGroups200Response
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -296,14 +296,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.AccountGroupsApi(api_client) api_instance = thousandeyes_sdk.admin.AccountGroupsApi(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) 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: try:
@ -363,16 +363,16 @@ Updates an account group using its ID. You can modify the account groups name
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.account_group_request_body import AccountGroupRequestBody from thousandeyes_sdk.admin.models.account_group_request_body import AccountGroupRequestBody
from admin.models.expand import Expand from thousandeyes_sdk.admin.models.expand import Expand
from admin.models.get_account_group200_response import GetAccountGroup200Response from thousandeyes_sdk.admin.models.get_account_group200_response import GetAccountGroup200Response
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -382,17 +382,17 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.AccountGroupsApi(api_client) api_instance = thousandeyes_sdk.admin.AccountGroupsApi(api_client)
id = '1234' # str | Identifier for the account group. id = '1234' # str | Identifier for the account group.
account_group_request_body = admin.AccountGroupRequestBody() # AccountGroupRequestBody | account_group_request_body = thousandeyes_sdk.admin.AccountGroupRequestBody() # AccountGroupRequestBody |
expand = [admin.Expand()] # List[Expand] | Optional parameter that specifies whether or not account group related resources should be expanded. By default, no expansion takes place if the query parameter is not passed. For example, to expand the `users` resource, pass the `?expand=user` query. (optional) expand = [thousandeyes_sdk.admin.Expand()] # List[Expand] | Optional parameter that specifies whether or not account group related resources should be expanded. By default, no expansion takes place if the query parameter is not passed. For example, to expand the `users` resource, pass the `?expand=user` query. (optional)
try: try:
# Update account group # Update account group

View File

@ -20,7 +20,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.agent import Agent from thousandeyes_sdk.admin.models.agent import Agent
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.agent_base import AgentBase from thousandeyes_sdk.admin.models.agent_base import AgentBase
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.all_account_group_roles import AllAccountGroupRoles from thousandeyes_sdk.admin.models.all_account_group_roles import AllAccountGroupRoles
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.base_role import BaseRole from thousandeyes_sdk.admin.models.base_role import BaseRole
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -19,7 +19,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.cluster_member import ClusterMember from thousandeyes_sdk.admin.models.cluster_member import ClusterMember
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -16,7 +16,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.create_account_group201_response import CreateAccountGroup201Response from thousandeyes_sdk.admin.models.create_account_group201_response import CreateAccountGroup201Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -14,7 +14,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.create_role201_response import CreateRole201Response from thousandeyes_sdk.admin.models.create_role201_response import CreateRole201Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -17,7 +17,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.create_user201_response import CreateUser201Response from thousandeyes_sdk.admin.models.create_user201_response import CreateUser201Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -16,7 +16,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.created_user import CreatedUser from thousandeyes_sdk.admin.models.created_user import CreatedUser
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -33,7 +33,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.enterprise_agent import EnterpriseAgent from thousandeyes_sdk.admin.models.enterprise_agent import EnterpriseAgent
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -22,7 +22,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.enterprise_agent_data import EnterpriseAgentData from thousandeyes_sdk.admin.models.enterprise_agent_data import EnterpriseAgentData
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.enterprise_agents import EnterpriseAgents from thousandeyes_sdk.admin.models.enterprise_agents import EnterpriseAgents
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -14,7 +14,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.error import Error from thousandeyes_sdk.admin.models.error import Error
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.error_detail import ErrorDetail from thousandeyes_sdk.admin.models.error_detail import ErrorDetail
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.extended_user import ExtendedUser from thousandeyes_sdk.admin.models.extended_user import ExtendedUser
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -17,7 +17,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.get_account_group200_response import GetAccountGroup200Response from thousandeyes_sdk.admin.models.get_account_group200_response import GetAccountGroup200Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.get_account_groups200_response import GetAccountGroups200Response from thousandeyes_sdk.admin.models.get_account_groups200_response import GetAccountGroups200Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.get_permissions200_response import GetPermissions200Response from thousandeyes_sdk.admin.models.get_permissions200_response import GetPermissions200Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.get_roles200_response import GetRoles200Response from thousandeyes_sdk.admin.models.get_roles200_response import GetRoles200Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -18,7 +18,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.get_user200_response import GetUser200Response from thousandeyes_sdk.admin.models.get_user200_response import GetUser200Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.get_user_events200_response import GetUserEvents200Response from thousandeyes_sdk.admin.models.get_user_events200_response import GetUserEvents200Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.get_users200_response import GetUsers200Response from thousandeyes_sdk.admin.models.get_users200_response import GetUsers200Response
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.interface_ip_mapping import InterfaceIpMapping from thousandeyes_sdk.admin.models.interface_ip_mapping import InterfaceIpMapping
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -18,7 +18,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.link import Link from thousandeyes_sdk.admin.models.link import Link
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.login_account_group import LoginAccountGroup from thousandeyes_sdk.admin.models.login_account_group import LoginAccountGroup
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.new_account_group_response import NewAccountGroupResponse from thousandeyes_sdk.admin.models.new_account_group_response import NewAccountGroupResponse
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.pagination_links import PaginationLinks from thousandeyes_sdk.admin.models.pagination_links import PaginationLinks
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.pagination_links_links import PaginationLinksLinks from thousandeyes_sdk.admin.models.pagination_links_links import PaginationLinksLinks
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.permission import Permission from thousandeyes_sdk.admin.models.permission import Permission
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.permissions import Permissions from thousandeyes_sdk.admin.models.permissions import Permissions
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -1,4 +1,4 @@
# admin.PermissionsApi # thousandeyes_sdk.admin.PermissionsApi
All URIs are relative to *https://api.thousandeyes.com* All URIs are relative to *https://api.thousandeyes.com*
@ -19,14 +19,14 @@ Users must be in a role assigned management permissions to access this endpoint.
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.get_permissions200_response import GetPermissions200Response from thousandeyes_sdk.admin.models.get_permissions200_response import GetPermissions200Response
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -36,14 +36,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.PermissionsApi(api_client) api_instance = thousandeyes_sdk.admin.PermissionsApi(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) 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: try:

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.query_window import QueryWindow from thousandeyes_sdk.admin.models.query_window import QueryWindow
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.role import Role from thousandeyes_sdk.admin.models.role import Role
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.role_detail import RoleDetail from thousandeyes_sdk.admin.models.role_detail import RoleDetail
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.role_request_body import RoleRequestBody from thousandeyes_sdk.admin.models.role_request_body import RoleRequestBody
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.roles import Roles from thousandeyes_sdk.admin.models.roles import Roles
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -1,4 +1,4 @@
# admin.RolesApi # thousandeyes_sdk.admin.RolesApi
All URIs are relative to *https://api.thousandeyes.com* All URIs are relative to *https://api.thousandeyes.com*
@ -23,15 +23,15 @@ Creates a new role.
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.create_role201_response import CreateRole201Response from thousandeyes_sdk.admin.models.create_role201_response import CreateRole201Response
from admin.models.role_request_body import RoleRequestBody from thousandeyes_sdk.admin.models.role_request_body import RoleRequestBody
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -41,15 +41,15 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.RolesApi(api_client) api_instance = thousandeyes_sdk.admin.RolesApi(api_client)
role_request_body = admin.RoleRequestBody() # RoleRequestBody | role_request_body = thousandeyes_sdk.admin.RoleRequestBody() # RoleRequestBody |
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) 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: try:
@ -110,13 +110,13 @@ Deletes a role using its ID. The user needs appropriate permissions to successfu
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -126,14 +126,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.RolesApi(api_client) api_instance = thousandeyes_sdk.admin.RolesApi(api_client)
id = '23' # str | The ID of the desired role. id = '23' # str | The ID of the desired role.
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) 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)
@ -193,14 +193,14 @@ Returns detailed information about a role using its ID.
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.create_role201_response import CreateRole201Response from thousandeyes_sdk.admin.models.create_role201_response import CreateRole201Response
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -210,14 +210,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.RolesApi(api_client) api_instance = thousandeyes_sdk.admin.RolesApi(api_client)
id = '23' # str | The ID of the desired role. id = '23' # str | The ID of the desired role.
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) 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)
@ -279,14 +279,14 @@ Retrieves a list of defined roles visible to the current user.
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.get_roles200_response import GetRoles200Response from thousandeyes_sdk.admin.models.get_roles200_response import GetRoles200Response
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -296,14 +296,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.RolesApi(api_client) api_instance = thousandeyes_sdk.admin.RolesApi(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) 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: try:
@ -363,15 +363,15 @@ Updates a user-defined role using its ID. When updating a role, the following a
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.create_role201_response import CreateRole201Response from thousandeyes_sdk.admin.models.create_role201_response import CreateRole201Response
from admin.models.role_request_body import RoleRequestBody from thousandeyes_sdk.admin.models.role_request_body import RoleRequestBody
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -381,16 +381,16 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.RolesApi(api_client) api_instance = thousandeyes_sdk.admin.RolesApi(api_client)
id = '23' # str | The ID of the desired role. id = '23' # str | The ID of the desired role.
role_request_body = admin.RoleRequestBody() # RoleRequestBody | role_request_body = thousandeyes_sdk.admin.RoleRequestBody() # RoleRequestBody |
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) 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: try:

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.self_links import SelfLinks from thousandeyes_sdk.admin.models.self_links import SelfLinks
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.self_links_links import SelfLinksLinks from thousandeyes_sdk.admin.models.self_links_links import SelfLinksLinks
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -19,7 +19,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.simple_agent import SimpleAgent from thousandeyes_sdk.admin.models.simple_agent import SimpleAgent
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.unauthorized_error import UnauthorizedError from thousandeyes_sdk.admin.models.unauthorized_error import UnauthorizedError
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -14,7 +14,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.user import User from thousandeyes_sdk.admin.models.user import User
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.user_account_group import UserAccountGroup from thousandeyes_sdk.admin.models.user_account_group import UserAccountGroup
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.user_account_groups import UserAccountGroups from thousandeyes_sdk.admin.models.user_account_groups import UserAccountGroups
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -17,7 +17,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.user_detail import UserDetail from thousandeyes_sdk.admin.models.user_detail import UserDetail
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -17,7 +17,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.user_event import UserEvent from thousandeyes_sdk.admin.models.user_event import UserEvent
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.user_event_all_of_resources_inner import UserEventAllOfResourcesInner from thousandeyes_sdk.admin.models.user_event_all_of_resources_inner import UserEventAllOfResourcesInner
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.user_events import UserEvents from thousandeyes_sdk.admin.models.user_events import UserEvents
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -1,4 +1,4 @@
# admin.UserEventsApi # thousandeyes_sdk.admin.UserEventsApi
All URIs are relative to *https://api.thousandeyes.com* All URIs are relative to *https://api.thousandeyes.com*
@ -19,14 +19,14 @@ Returns a list of activity log events in the current account group. If `useAll
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.get_user_events200_response import GetUserEvents200Response from thousandeyes_sdk.admin.models.get_user_events200_response import GetUserEvents200Response
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -36,14 +36,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.UserEventsApi(api_client) api_instance = thousandeyes_sdk.admin.UserEventsApi(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) 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)
use_all_permitted_aids = False # bool | Set to `true` to load data from all accounts the user has access to. (optional) (default to False) use_all_permitted_aids = False # bool | Set to `true` to load data from all accounts the user has access to. (optional) (default to False)
window = '12h' # str | A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`. (optional) window = '12h' # str | A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`. (optional)

View File

@ -14,7 +14,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.user_request_body import UserRequestBody from thousandeyes_sdk.admin.models.user_request_body import UserRequestBody
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.users import Users from thousandeyes_sdk.admin.models.users import Users
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -1,4 +1,4 @@
# admin.UsersApi # thousandeyes_sdk.admin.UsersApi
All URIs are relative to *https://api.thousandeyes.com* All URIs are relative to *https://api.thousandeyes.com*
@ -23,15 +23,15 @@ Creates a new user. The following applies when creating a user: * If the user
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.create_user201_response import CreateUser201Response from thousandeyes_sdk.admin.models.create_user201_response import CreateUser201Response
from admin.models.user_request_body import UserRequestBody from thousandeyes_sdk.admin.models.user_request_body import UserRequestBody
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -41,15 +41,15 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.UsersApi(api_client) api_instance = thousandeyes_sdk.admin.UsersApi(api_client)
user_request_body = admin.UserRequestBody() # UserRequestBody | user_request_body = thousandeyes_sdk.admin.UserRequestBody() # UserRequestBody |
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) 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: try:
@ -110,13 +110,13 @@ Deletes a user using the user ID. This endpoint requires the `Edit users in all
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -126,14 +126,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.UsersApi(api_client) api_instance = thousandeyes_sdk.admin.UsersApi(api_client)
id = '1234' # str | Identifier for the user. id = '1234' # str | Identifier for the user.
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) 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)
@ -193,14 +193,14 @@ Retrieves detailed information about a user. This operation requires the `API Ac
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.get_user200_response import GetUser200Response from thousandeyes_sdk.admin.models.get_user200_response import GetUser200Response
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -210,14 +210,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.UsersApi(api_client) api_instance = thousandeyes_sdk.admin.UsersApi(api_client)
id = '1234' # str | Identifier for the user. id = '1234' # str | Identifier for the user.
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) 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)
@ -279,14 +279,14 @@ Retrieves a list of users in the organization the account group ID belongs to. T
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.get_users200_response import GetUsers200Response from thousandeyes_sdk.admin.models.get_users200_response import GetUsers200Response
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -296,14 +296,14 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.UsersApi(api_client) api_instance = thousandeyes_sdk.admin.UsersApi(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) 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: try:
@ -363,15 +363,15 @@ Updates a user using the user ID. You can update the user name, email address, a
* Bearer Authentication (BearerAuth): * Bearer Authentication (BearerAuth):
```python ```python
import admin import thousandeyes_sdk.admin
from admin.models.get_user200_response import GetUser200Response from thousandeyes_sdk.admin.models.get_user200_response import GetUser200Response
from admin.models.user_request_body import UserRequestBody from thousandeyes_sdk.admin.models.user_request_body import UserRequestBody
from admin.rest import ApiException from thousandeyes_sdk.admin.rest import ApiException
from pprint import pprint from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com # Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters. # See configuration.py for a list of all supported configuration parameters.
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
host = "https://api.thousandeyes.com" host = "https://api.thousandeyes.com"
) )
@ -381,16 +381,16 @@ configuration = admin.Configuration(
# satisfies your auth use case. # satisfies your auth use case.
# Configure Bearer authorization: BearerAuth # Configure Bearer authorization: BearerAuth
configuration = admin.Configuration( configuration = thousandeyes_sdk.client.Configuration(
access_token = os.environ["BEARER_TOKEN"] access_token = os.environ["BEARER_TOKEN"]
) )
# Enter a context with an instance of the API client # Enter a context with an instance of the API client
with admin.ApiClient(configuration) as api_client: with thousandeyes_sdk.admin.ApiClient(configuration) as api_client:
# Create an instance of the API class # Create an instance of the API class
api_instance = admin.UsersApi(api_client) api_instance = thousandeyes_sdk.admin.UsersApi(api_client)
id = '1234' # str | Identifier for the user. id = '1234' # str | Identifier for the user.
user_request_body = admin.UserRequestBody() # UserRequestBody | user_request_body = thousandeyes_sdk.admin.UserRequestBody() # UserRequestBody |
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) 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: try:

View File

@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.validation_error import ValidationError from thousandeyes_sdk.admin.models.validation_error import ValidationError
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example ## Example
```python ```python
from admin.models.validation_error_all_of_errors import ValidationErrorAllOfErrors from thousandeyes_sdk.admin.models.validation_error_all_of_errors import ValidationErrorAllOfErrors
# TODO update the JSON string below # TODO update the JSON string below
json = "{}" json = "{}"

View File

@ -1,40 +1,46 @@
[tool.poetry] [project]
name = "admin" name = "thousandeyes-sdk-admin"
version = "1.0.0" version = "1.0.0"
authors = [
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
]
description = "Administrative API" description = "Administrative API"
authors = ["ThousandEyes API Team <api-team@thousandeyes.com>"] license = { text = "../LICENSE" }
license = "NoLicense" dependencies = [
readme = "README.md" "urllib3 >= 1.25.3",
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" "python-dateutil >=2.8.2",
keywords = ["OpenAPI", "OpenAPI-Generator", "Administrative API"] "pydantic >=2",
include = ["admin/py.typed"] "typing-extensions >=4.7.1",
"thousandeyes-sdk-client==1.0.0",
[tool.poetry.dependencies] ]
python = "^3.7"
urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2"
pydantic = ">=2"
typing-extensions = ">=4.7.1"
[tool.poetry.dev-dependencies]
pytest = ">=7.2.1"
tox = ">=3.9.0"
flake8 = ">=4.0.0"
types-python-dateutil = ">=2.8.19.14"
mypy = "1.4.1"
[project.optional-dependencies]
test = [
"pytest~=7.1.3",
"pytest-cov>=2.8.1",
"pytest-randomly>=3.12.0",
"mypy>=1.4.1",
"types-python-dateutil>=2.8.19",
]
dev = [
"flake8>=4.0.0",
"mypy>=1.4.1",
"types-python-dateutil>=2.8.19",
]
[build-system] [build-system]
requires = ["setuptools"] requires = ["setuptools"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.pylint.'MESSAGES CONTROL'] [tool.pylint.'MESSAGES CONTROL']
extension-pkg-whitelist = "pydantic" extension-pkg-whitelist = "pydantic"
[tool.mypy] [tool.mypy]
files = [ files = [
"admin", "src",
#"test", # auto-generated tests #"test", # auto-generated tests
"tests", # hand-written tests "tests", # hand-written tests
] ]

View File

@ -1,5 +0,0 @@
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.25.3, < 2.1.0
pydantic >= 2
typing-extensions >= 4.7.1

View File

@ -1,49 +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.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from setuptools import setup, find_packages # noqa: H301
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "admin"
VERSION = "1.0.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
"python-dateutil",
"pydantic >= 2",
"typing-extensions >= 4.7.1",
]
setup(
name=NAME,
version=VERSION,
description="Administrative API",
author="ThousandEyes API Team",
author_email="api-team@thousandeyes.com",
url="https://github.com/thousandeyes/thousandeyes-sdk-python/admin",
keywords=["OpenAPI", "OpenAPI-Generator", "ThousandEyes", "Administrative API"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
long_description_content_type='text/markdown',
long_description="""\
## 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: * &#x60;/account-groups&#x60;: Account groups are used to divide an organization into different sections. These endpoints can be used to create, retrieve, update and delete account groups. * &#x60;/users&#x60;: Create, retrieve, update and delete users within an organization. * &#x60;/roles&#x60;: Create, retrieve and update roles for the current user. * &#x60;/permissions&#x60;: Retrieve all assignable permissions. Used in the context of modifying roles. * &#x60;/audit-user-events&#x60;: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management).
""", # noqa: E501
package_data={"admin": ["py.typed"]},
)

View File

@ -0,0 +1,91 @@
# coding: utf-8
# flake8: noqa
"""
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.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
__version__ = "1.0.0"
# import apis into sdk package
from thousandeyes_sdk.admin.api.account_groups_api import AccountGroupsApi
from thousandeyes_sdk.admin.api.permissions_api import PermissionsApi
from thousandeyes_sdk.admin.api.roles_api import RolesApi
from thousandeyes_sdk.admin.api.user_events_api import UserEventsApi
from thousandeyes_sdk.admin.api.users_api import UsersApi
# import models into sdk package
from thousandeyes_sdk.admin.models.account_group import AccountGroup
from thousandeyes_sdk.admin.models.account_group1 import AccountGroup1
from thousandeyes_sdk.admin.models.account_group_detail import AccountGroupDetail
from thousandeyes_sdk.admin.models.account_group_id import AccountGroupId
from thousandeyes_sdk.admin.models.account_group_request_body import AccountGroupRequestBody
from thousandeyes_sdk.admin.models.account_group_roles import AccountGroupRoles
from thousandeyes_sdk.admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner
from thousandeyes_sdk.admin.models.account_group_roles_request_body_inner import AccountGroupRolesRequestBodyInner
from thousandeyes_sdk.admin.models.account_groups import AccountGroups
from thousandeyes_sdk.admin.models.agent import Agent
from thousandeyes_sdk.admin.models.agent_base import AgentBase
from thousandeyes_sdk.admin.models.all_account_group_roles import AllAccountGroupRoles
from thousandeyes_sdk.admin.models.base_role import BaseRole
from thousandeyes_sdk.admin.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType
from thousandeyes_sdk.admin.models.cluster_member import ClusterMember
from thousandeyes_sdk.admin.models.create_account_group201_response import CreateAccountGroup201Response
from thousandeyes_sdk.admin.models.create_role201_response import CreateRole201Response
from thousandeyes_sdk.admin.models.create_user201_response import CreateUser201Response
from thousandeyes_sdk.admin.models.created_user import CreatedUser
from thousandeyes_sdk.admin.models.enterprise_agent import EnterpriseAgent
from thousandeyes_sdk.admin.models.enterprise_agent_data import EnterpriseAgentData
from thousandeyes_sdk.admin.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy
from thousandeyes_sdk.admin.models.enterprise_agent_state import EnterpriseAgentState
from thousandeyes_sdk.admin.models.enterprise_agents import EnterpriseAgents
from thousandeyes_sdk.admin.models.error import Error
from thousandeyes_sdk.admin.models.error_detail import ErrorDetail
from thousandeyes_sdk.admin.models.error_detail_code import ErrorDetailCode
from thousandeyes_sdk.admin.models.expand import Expand
from thousandeyes_sdk.admin.models.extended_user import ExtendedUser
from thousandeyes_sdk.admin.models.get_account_group200_response import GetAccountGroup200Response
from thousandeyes_sdk.admin.models.get_account_groups200_response import GetAccountGroups200Response
from thousandeyes_sdk.admin.models.get_permissions200_response import GetPermissions200Response
from thousandeyes_sdk.admin.models.get_roles200_response import GetRoles200Response
from thousandeyes_sdk.admin.models.get_user200_response import GetUser200Response
from thousandeyes_sdk.admin.models.get_user_events200_response import GetUserEvents200Response
from thousandeyes_sdk.admin.models.get_users200_response import GetUsers200Response
from thousandeyes_sdk.admin.models.interface_ip_mapping import InterfaceIpMapping
from thousandeyes_sdk.admin.models.link import Link
from thousandeyes_sdk.admin.models.login_account_group import LoginAccountGroup
from thousandeyes_sdk.admin.models.new_account_group_response import NewAccountGroupResponse
from thousandeyes_sdk.admin.models.pagination_links import PaginationLinks
from thousandeyes_sdk.admin.models.pagination_links_links import PaginationLinksLinks
from thousandeyes_sdk.admin.models.permission import Permission
from thousandeyes_sdk.admin.models.permissions import Permissions
from thousandeyes_sdk.admin.models.query_window import QueryWindow
from thousandeyes_sdk.admin.models.role import Role
from thousandeyes_sdk.admin.models.role_detail import RoleDetail
from thousandeyes_sdk.admin.models.role_request_body import RoleRequestBody
from thousandeyes_sdk.admin.models.roles import Roles
from thousandeyes_sdk.admin.models.self_links import SelfLinks
from thousandeyes_sdk.admin.models.self_links_links import SelfLinksLinks
from thousandeyes_sdk.admin.models.simple_agent import SimpleAgent
from thousandeyes_sdk.admin.models.unauthorized_error import UnauthorizedError
from thousandeyes_sdk.admin.models.user import User
from thousandeyes_sdk.admin.models.user_account_group import UserAccountGroup
from thousandeyes_sdk.admin.models.user_account_groups import UserAccountGroups
from thousandeyes_sdk.admin.models.user_detail import UserDetail
from thousandeyes_sdk.admin.models.user_event import UserEvent
from thousandeyes_sdk.admin.models.user_event_all_of_resources_inner import UserEventAllOfResourcesInner
from thousandeyes_sdk.admin.models.user_events import UserEvents
from thousandeyes_sdk.admin.models.user_request_body import UserRequestBody
from thousandeyes_sdk.admin.models.users import Users
from thousandeyes_sdk.admin.models.validation_error import ValidationError
from thousandeyes_sdk.admin.models.validation_error_all_of_errors import ValidationErrorAllOfErrors

View File

@ -0,0 +1,9 @@
# flake8: noqa
# import apis into api package
from thousandeyes_sdk.admin.api.account_groups_api import AccountGroupsApi
from thousandeyes_sdk.admin.api.permissions_api import PermissionsApi
from thousandeyes_sdk.admin.api.roles_api import RolesApi
from thousandeyes_sdk.admin.api.user_events_api import UserEventsApi
from thousandeyes_sdk.admin.api.users_api import UsersApi

View File

@ -16,18 +16,20 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated from typing_extensions import Annotated
import thousandeyes_sdk.admin.models
from pydantic import Field, StrictStr from pydantic import Field, StrictStr
from typing import List, Optional from typing import List, Optional
from typing_extensions import Annotated from typing_extensions import Annotated
from admin.models.account_group_request_body import AccountGroupRequestBody from thousandeyes_sdk.admin.models.account_group_request_body import AccountGroupRequestBody
from admin.models.create_account_group201_response import CreateAccountGroup201Response from thousandeyes_sdk.admin.models.create_account_group201_response import CreateAccountGroup201Response
from admin.models.expand import Expand from thousandeyes_sdk.admin.models.expand import Expand
from admin.models.get_account_group200_response import GetAccountGroup200Response from thousandeyes_sdk.admin.models.get_account_group200_response import GetAccountGroup200Response
from admin.models.get_account_groups200_response import GetAccountGroups200Response from thousandeyes_sdk.admin.models.get_account_groups200_response import GetAccountGroups200Response
from admin.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.client.api_client import ApiClient, RequestSerialized
from admin.api_response import ApiResponse from thousandeyes_sdk.client.api_response import ApiResponse
from admin.rest import RESTResponseType from thousandeyes_sdk.client.rest import RESTResponseType
class AccountGroupsApi: class AccountGroupsApi:
@ -117,6 +119,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -194,6 +197,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -421,6 +425,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -494,6 +499,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -701,6 +707,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -778,6 +785,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -992,6 +1000,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -1065,6 +1074,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -1279,6 +1289,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -1360,6 +1371,7 @@ class AccountGroupsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )

View File

@ -16,14 +16,16 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated from typing_extensions import Annotated
import thousandeyes_sdk.admin.models
from pydantic import Field, StrictStr from pydantic import Field, StrictStr
from typing import Optional from typing import Optional
from typing_extensions import Annotated from typing_extensions import Annotated
from admin.models.get_permissions200_response import GetPermissions200Response from thousandeyes_sdk.admin.models.get_permissions200_response import GetPermissions200Response
from admin.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.client.api_client import ApiClient, RequestSerialized
from admin.api_response import ApiResponse from thousandeyes_sdk.client.api_response import ApiResponse
from admin.rest import RESTResponseType from thousandeyes_sdk.client.rest import RESTResponseType
class PermissionsApi: class PermissionsApi:
@ -109,6 +111,7 @@ class PermissionsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -182,6 +185,7 @@ class PermissionsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )

View File

@ -16,16 +16,18 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated from typing_extensions import Annotated
import thousandeyes_sdk.admin.models
from pydantic import Field, StrictStr from pydantic import Field, StrictStr
from typing import Optional from typing import Optional
from typing_extensions import Annotated from typing_extensions import Annotated
from admin.models.create_role201_response import CreateRole201Response from thousandeyes_sdk.admin.models.create_role201_response import CreateRole201Response
from admin.models.get_roles200_response import GetRoles200Response from thousandeyes_sdk.admin.models.get_roles200_response import GetRoles200Response
from admin.models.role_request_body import RoleRequestBody from thousandeyes_sdk.admin.models.role_request_body import RoleRequestBody
from admin.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.client.api_client import ApiClient, RequestSerialized
from admin.api_response import ApiResponse from thousandeyes_sdk.client.api_response import ApiResponse
from admin.rest import RESTResponseType from thousandeyes_sdk.client.rest import RESTResponseType
class RolesApi: class RolesApi:
@ -115,6 +117,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -192,6 +195,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -422,6 +426,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -499,6 +504,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -715,6 +721,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -792,6 +799,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -1005,6 +1013,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -1078,6 +1087,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -1292,6 +1302,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -1373,6 +1384,7 @@ class RolesApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )

View File

@ -16,15 +16,17 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated from typing_extensions import Annotated
import thousandeyes_sdk.admin.models
from datetime import datetime from datetime import datetime
from pydantic import Field, StrictBool, StrictStr, field_validator from pydantic import Field, StrictBool, StrictStr, field_validator
from typing import Optional from typing import Optional
from typing_extensions import Annotated from typing_extensions import Annotated
from admin.models.get_user_events200_response import GetUserEvents200Response from thousandeyes_sdk.admin.models.get_user_events200_response import GetUserEvents200Response
from admin.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.client.api_client import ApiClient, RequestSerialized
from admin.api_response import ApiResponse from thousandeyes_sdk.client.api_response import ApiResponse
from admin.rest import RESTResponseType from thousandeyes_sdk.client.rest import RESTResponseType
class UserEventsApi: class UserEventsApi:
@ -130,6 +132,7 @@ class UserEventsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -223,6 +226,7 @@ class UserEventsApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )

View File

@ -16,17 +16,19 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated from typing_extensions import Annotated
import thousandeyes_sdk.admin.models
from pydantic import Field, StrictStr from pydantic import Field, StrictStr
from typing import Optional from typing import Optional
from typing_extensions import Annotated from typing_extensions import Annotated
from admin.models.create_user201_response import CreateUser201Response from thousandeyes_sdk.admin.models.create_user201_response import CreateUser201Response
from admin.models.get_user200_response import GetUser200Response from thousandeyes_sdk.admin.models.get_user200_response import GetUser200Response
from admin.models.get_users200_response import GetUsers200Response from thousandeyes_sdk.admin.models.get_users200_response import GetUsers200Response
from admin.models.user_request_body import UserRequestBody from thousandeyes_sdk.admin.models.user_request_body import UserRequestBody
from admin.api_client import ApiClient, RequestSerialized from thousandeyes_sdk.client.api_client import ApiClient, RequestSerialized
from admin.api_response import ApiResponse from thousandeyes_sdk.client.api_response import ApiResponse
from admin.rest import RESTResponseType from thousandeyes_sdk.client.rest import RESTResponseType
class UsersApi: class UsersApi:
@ -116,6 +118,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -193,6 +196,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -423,6 +427,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -500,6 +505,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -716,6 +722,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -793,6 +800,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -1006,6 +1014,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -1079,6 +1088,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )
@ -1293,6 +1303,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
).data ).data
@ -1374,6 +1385,7 @@ class UsersApi:
return self.api_client.response_deserialize( return self.api_client.response_deserialize(
response_data=response_data, response_data=response_data,
response_types_map=_response_types_map, response_types_map=_response_types_map,
models=thousandeyes_sdk.admin.models,
) )

View File

@ -0,0 +1,80 @@
# coding: utf-8
# flake8: noqa
"""
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.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
# import models into model package
from thousandeyes_sdk.admin.models.account_group import AccountGroup
from thousandeyes_sdk.admin.models.account_group1 import AccountGroup1
from thousandeyes_sdk.admin.models.account_group_detail import AccountGroupDetail
from thousandeyes_sdk.admin.models.account_group_id import AccountGroupId
from thousandeyes_sdk.admin.models.account_group_request_body import AccountGroupRequestBody
from thousandeyes_sdk.admin.models.account_group_roles import AccountGroupRoles
from thousandeyes_sdk.admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner
from thousandeyes_sdk.admin.models.account_group_roles_request_body_inner import AccountGroupRolesRequestBodyInner
from thousandeyes_sdk.admin.models.account_groups import AccountGroups
from thousandeyes_sdk.admin.models.agent import Agent
from thousandeyes_sdk.admin.models.agent_base import AgentBase
from thousandeyes_sdk.admin.models.all_account_group_roles import AllAccountGroupRoles
from thousandeyes_sdk.admin.models.base_role import BaseRole
from thousandeyes_sdk.admin.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType
from thousandeyes_sdk.admin.models.cluster_member import ClusterMember
from thousandeyes_sdk.admin.models.create_account_group201_response import CreateAccountGroup201Response
from thousandeyes_sdk.admin.models.create_role201_response import CreateRole201Response
from thousandeyes_sdk.admin.models.create_user201_response import CreateUser201Response
from thousandeyes_sdk.admin.models.created_user import CreatedUser
from thousandeyes_sdk.admin.models.enterprise_agent import EnterpriseAgent
from thousandeyes_sdk.admin.models.enterprise_agent_data import EnterpriseAgentData
from thousandeyes_sdk.admin.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy
from thousandeyes_sdk.admin.models.enterprise_agent_state import EnterpriseAgentState
from thousandeyes_sdk.admin.models.enterprise_agents import EnterpriseAgents
from thousandeyes_sdk.admin.models.error import Error
from thousandeyes_sdk.admin.models.error_detail import ErrorDetail
from thousandeyes_sdk.admin.models.error_detail_code import ErrorDetailCode
from thousandeyes_sdk.admin.models.expand import Expand
from thousandeyes_sdk.admin.models.extended_user import ExtendedUser
from thousandeyes_sdk.admin.models.get_account_group200_response import GetAccountGroup200Response
from thousandeyes_sdk.admin.models.get_account_groups200_response import GetAccountGroups200Response
from thousandeyes_sdk.admin.models.get_permissions200_response import GetPermissions200Response
from thousandeyes_sdk.admin.models.get_roles200_response import GetRoles200Response
from thousandeyes_sdk.admin.models.get_user200_response import GetUser200Response
from thousandeyes_sdk.admin.models.get_user_events200_response import GetUserEvents200Response
from thousandeyes_sdk.admin.models.get_users200_response import GetUsers200Response
from thousandeyes_sdk.admin.models.interface_ip_mapping import InterfaceIpMapping
from thousandeyes_sdk.admin.models.link import Link
from thousandeyes_sdk.admin.models.login_account_group import LoginAccountGroup
from thousandeyes_sdk.admin.models.new_account_group_response import NewAccountGroupResponse
from thousandeyes_sdk.admin.models.pagination_links import PaginationLinks
from thousandeyes_sdk.admin.models.pagination_links_links import PaginationLinksLinks
from thousandeyes_sdk.admin.models.permission import Permission
from thousandeyes_sdk.admin.models.permissions import Permissions
from thousandeyes_sdk.admin.models.query_window import QueryWindow
from thousandeyes_sdk.admin.models.role import Role
from thousandeyes_sdk.admin.models.role_detail import RoleDetail
from thousandeyes_sdk.admin.models.role_request_body import RoleRequestBody
from thousandeyes_sdk.admin.models.roles import Roles
from thousandeyes_sdk.admin.models.self_links import SelfLinks
from thousandeyes_sdk.admin.models.self_links_links import SelfLinksLinks
from thousandeyes_sdk.admin.models.simple_agent import SimpleAgent
from thousandeyes_sdk.admin.models.unauthorized_error import UnauthorizedError
from thousandeyes_sdk.admin.models.user import User
from thousandeyes_sdk.admin.models.user_account_group import UserAccountGroup
from thousandeyes_sdk.admin.models.user_account_groups import UserAccountGroups
from thousandeyes_sdk.admin.models.user_detail import UserDetail
from thousandeyes_sdk.admin.models.user_event import UserEvent
from thousandeyes_sdk.admin.models.user_event_all_of_resources_inner import UserEventAllOfResourcesInner
from thousandeyes_sdk.admin.models.user_events import UserEvents
from thousandeyes_sdk.admin.models.user_request_body import UserRequestBody
from thousandeyes_sdk.admin.models.users import Users
from thousandeyes_sdk.admin.models.validation_error import ValidationError
from thousandeyes_sdk.admin.models.validation_error_all_of_errors import ValidationErrorAllOfErrors

View File

@ -19,8 +19,8 @@ import json
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.enterprise_agent import EnterpriseAgent from thousandeyes_sdk.admin.models.enterprise_agent import EnterpriseAgent
from admin.models.user_account_group import UserAccountGroup from thousandeyes_sdk.admin.models.user_account_group import UserAccountGroup
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

View File

@ -19,7 +19,7 @@ import json
from pydantic import BaseModel, ConfigDict, Field from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner from thousandeyes_sdk.admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

View File

@ -19,8 +19,8 @@ import json
from pydantic import BaseModel, ConfigDict, Field from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.account_group1 import AccountGroup1 from thousandeyes_sdk.admin.models.account_group1 import AccountGroup1
from admin.models.role import Role from thousandeyes_sdk.admin.models.role import Role
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

View File

@ -19,7 +19,7 @@ import json
from pydantic import BaseModel, ConfigDict, Field from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.account_group import AccountGroup from thousandeyes_sdk.admin.models.account_group import AccountGroup
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

View File

@ -19,7 +19,7 @@ import json
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType from thousandeyes_sdk.admin.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

View File

@ -19,7 +19,7 @@ import json
from pydantic import BaseModel, ConfigDict, Field from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.role import Role from thousandeyes_sdk.admin.models.role import Role
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

View File

@ -20,8 +20,8 @@ import json
from datetime import datetime from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.enterprise_agent_state import EnterpriseAgentState from thousandeyes_sdk.admin.models.enterprise_agent_state import EnterpriseAgentState
from admin.models.error_detail import ErrorDetail from thousandeyes_sdk.admin.models.error_detail import ErrorDetail
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

View File

@ -19,8 +19,8 @@ import json
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.self_links_links import SelfLinksLinks from thousandeyes_sdk.admin.models.self_links_links import SelfLinksLinks
from admin.models.user_account_group import UserAccountGroup from thousandeyes_sdk.admin.models.user_account_group import UserAccountGroup
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

View File

@ -19,8 +19,8 @@ import json
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.permission import Permission from thousandeyes_sdk.admin.models.permission import Permission
from admin.models.self_links_links import SelfLinksLinks from thousandeyes_sdk.admin.models.self_links_links import SelfLinksLinks
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

View File

@ -20,10 +20,10 @@ import json
from datetime import datetime from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field, StrictStr from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional from typing import Any, ClassVar, Dict, List, Optional
from admin.models.account_group1 import AccountGroup1 from thousandeyes_sdk.admin.models.account_group1 import AccountGroup1
from admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner from thousandeyes_sdk.admin.models.account_group_roles_account_group_roles_inner import AccountGroupRolesAccountGroupRolesInner
from admin.models.role import Role from thousandeyes_sdk.admin.models.role import Role
from admin.models.self_links_links import SelfLinksLinks from thousandeyes_sdk.admin.models.self_links_links import SelfLinksLinks
from typing import Optional, Set from typing import Optional, Set
from typing_extensions import Self from typing_extensions import Self

Some files were not shown because too many files have changed in this diff Show More