diff --git a/.swagger-codegen/config.json b/.swagger-codegen/config.json index 4e93611..b02a280 100644 --- a/.swagger-codegen/config.json +++ b/.swagger-codegen/config.json @@ -3,5 +3,5 @@ "gitUserId": "wavefrontHQ", "packageName": "wavefront_api_client", "packageUrl": "https://github.com/wavefrontHQ/python-client", - "packageVersion": "2.126.1" + "packageVersion": "2.128.2" } diff --git a/.swagger-codegen/config.jsone b/.swagger-codegen/config.jsone index 5c589af..4e93611 100644 --- a/.swagger-codegen/config.jsone +++ b/.swagger-codegen/config.jsone @@ -3,5 +3,5 @@ "gitUserId": "wavefrontHQ", "packageName": "wavefront_api_client", "packageUrl": "https://github.com/wavefrontHQ/python-client", - "packageVersion": "2.124.1" + "packageVersion": "2.126.1" } diff --git a/README.md b/README.md index 80f0c85..abb1b9e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v2 -- Package version: 2.126.1 +- Package version: 2.128.2 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -82,7 +82,6 @@ Class | Method | HTTP request | Description *AccountUserAndServiceAccountApi* | [**add_account_to_roles**](docs/AccountUserAndServiceAccountApi.md#add_account_to_roles) | **POST** /api/v2/account/{id}/addRoles | Adds specific roles to the account (user or service account) *AccountUserAndServiceAccountApi* | [**add_account_to_user_groups**](docs/AccountUserAndServiceAccountApi.md#add_account_to_user_groups) | **POST** /api/v2/account/{id}/addUserGroups | Adds specific groups to the account (user or service account) *AccountUserAndServiceAccountApi* | [**add_ingestion_policy**](docs/AccountUserAndServiceAccountApi.md#add_ingestion_policy) | **POST** /api/v2/account/addingestionpolicy | Add a specific ingestion policy to multiple accounts -*AccountUserAndServiceAccountApi* | [**add_single_ingestion_policy**](docs/AccountUserAndServiceAccountApi.md#add_single_ingestion_policy) | **POST** /api/v2/account/addIngestionPolicy | Add single ingestion policy to multiple accounts *AccountUserAndServiceAccountApi* | [**create_or_update_user_account**](docs/AccountUserAndServiceAccountApi.md#create_or_update_user_account) | **POST** /api/v2/account/user | Creates or updates a user account *AccountUserAndServiceAccountApi* | [**create_service_account**](docs/AccountUserAndServiceAccountApi.md#create_service_account) | **POST** /api/v2/account/serviceaccount | Creates a service account *AccountUserAndServiceAccountApi* | [**deactivate_account**](docs/AccountUserAndServiceAccountApi.md#deactivate_account) | **POST** /api/v2/account/serviceaccount/{id}/deactivate | Deactivates the given service account @@ -101,7 +100,6 @@ Class | Method | HTTP request | Description *AccountUserAndServiceAccountApi* | [**remove_account_from_roles**](docs/AccountUserAndServiceAccountApi.md#remove_account_from_roles) | **POST** /api/v2/account/{id}/removeRoles | Removes specific roles from the account (user or service account) *AccountUserAndServiceAccountApi* | [**remove_account_from_user_groups**](docs/AccountUserAndServiceAccountApi.md#remove_account_from_user_groups) | **POST** /api/v2/account/{id}/removeUserGroups | Removes specific groups from the account (user or service account) *AccountUserAndServiceAccountApi* | [**remove_ingestion_policies**](docs/AccountUserAndServiceAccountApi.md#remove_ingestion_policies) | **POST** /api/v2/account/removeingestionpolicies | Removes ingestion policies from multiple accounts -*AccountUserAndServiceAccountApi* | [**remove_single_ingestion_policy**](docs/AccountUserAndServiceAccountApi.md#remove_single_ingestion_policy) | **POST** /api/v2/account/removeIngestionPolicy | Removes single ingestion policy from multiple accounts *AccountUserAndServiceAccountApi* | [**revoke_account_permission**](docs/AccountUserAndServiceAccountApi.md#revoke_account_permission) | **POST** /api/v2/account/{id}/revoke/{permission} | Revokes a specific permission from account (user or service account) *AccountUserAndServiceAccountApi* | [**revoke_permission_from_accounts**](docs/AccountUserAndServiceAccountApi.md#revoke_permission_from_accounts) | **POST** /api/v2/account/revoke/{permission} | Revokes a specific permission from multiple accounts (users or service accounts) *AccountUserAndServiceAccountApi* | [**update_service_account**](docs/AccountUserAndServiceAccountApi.md#update_service_account) | **PUT** /api/v2/account/serviceaccount/{id} | Updates the service account @@ -132,10 +130,13 @@ Class | Method | HTTP request | Description *AlertApi* | [**unsnooze_alert**](docs/AlertApi.md#unsnooze_alert) | **POST** /api/v2/alert/{id}/unsnooze | Unsnooze a specific alert *AlertApi* | [**update_alert**](docs/AlertApi.md#update_alert) | **PUT** /api/v2/alert/{id} | Update a specific alert *ApiTokenApi* | [**create_token**](docs/ApiTokenApi.md#create_token) | **POST** /api/v2/apitoken | Create new api token +*ApiTokenApi* | [**delete_customer_token**](docs/ApiTokenApi.md#delete_customer_token) | **PUT** /api/v2/apitoken/customertokens/revoke | Delete the specified api token for a customer *ApiTokenApi* | [**delete_token**](docs/ApiTokenApi.md#delete_token) | **DELETE** /api/v2/apitoken/{id} | Delete the specified api token *ApiTokenApi* | [**delete_token_service_account**](docs/ApiTokenApi.md#delete_token_service_account) | **DELETE** /api/v2/apitoken/serviceaccount/{id}/{token} | Delete the specified api token of the given service account *ApiTokenApi* | [**generate_token_service_account**](docs/ApiTokenApi.md#generate_token_service_account) | **POST** /api/v2/apitoken/serviceaccount/{id} | Create a new api token for the service account *ApiTokenApi* | [**get_all_tokens**](docs/ApiTokenApi.md#get_all_tokens) | **GET** /api/v2/apitoken | Get all api tokens for a user +*ApiTokenApi* | [**get_customer_token**](docs/ApiTokenApi.md#get_customer_token) | **GET** /api/v2/apitoken/customertokens/{id} | Get the specified api token for a customer +*ApiTokenApi* | [**get_customer_tokens**](docs/ApiTokenApi.md#get_customer_tokens) | **GET** /api/v2/apitoken/customertokens | Get all api tokens for a customer *ApiTokenApi* | [**get_tokens_service_account**](docs/ApiTokenApi.md#get_tokens_service_account) | **GET** /api/v2/apitoken/serviceaccount/{id} | Get all api tokens for the given service account *ApiTokenApi* | [**update_token_name**](docs/ApiTokenApi.md#update_token_name) | **PUT** /api/v2/apitoken/{id} | Update the name of the specified api token *ApiTokenApi* | [**update_token_name_service_account**](docs/ApiTokenApi.md#update_token_name_service_account) | **PUT** /api/v2/apitoken/serviceaccount/{id}/{token} | Update the name of the specified api token for the given service account @@ -268,6 +269,9 @@ Class | Method | HTTP request | Description *RoleApi* | [**revoke_permission_from_roles**](docs/RoleApi.md#revoke_permission_from_roles) | **POST** /api/v2/role/revoke/{permission} | Revokes a single permission from role(s) *RoleApi* | [**update_role**](docs/RoleApi.md#update_role) | **PUT** /api/v2/role/{id} | Update a specific role *SavedAppMapSearchApi* | [**create_saved_app_map_search**](docs/SavedAppMapSearchApi.md#create_saved_app_map_search) | **POST** /api/v2/savedappmapsearch | Create a search +*SavedAppMapSearchApi* | [**default_app_map_search**](docs/SavedAppMapSearchApi.md#default_app_map_search) | **GET** /api/v2/savedappmapsearch/defaultAppMapSearch | Get default app map search for a user +*SavedAppMapSearchApi* | [**default_app_map_search_0**](docs/SavedAppMapSearchApi.md#default_app_map_search_0) | **POST** /api/v2/savedappmapsearch/defaultAppMapSearch | Set default app map search at user level +*SavedAppMapSearchApi* | [**default_customer_app_map_search**](docs/SavedAppMapSearchApi.md#default_customer_app_map_search) | **POST** /api/v2/savedappmapsearch/defaultCustomerAppMapSearch | Set default app map search at customer level *SavedAppMapSearchApi* | [**delete_saved_app_map_search**](docs/SavedAppMapSearchApi.md#delete_saved_app_map_search) | **DELETE** /api/v2/savedappmapsearch/{id} | Delete a search *SavedAppMapSearchApi* | [**delete_saved_app_map_search_for_user**](docs/SavedAppMapSearchApi.md#delete_saved_app_map_search_for_user) | **DELETE** /api/v2/savedappmapsearch/owned/{id} | Delete a search belonging to the user *SavedAppMapSearchApi* | [**get_all_saved_app_map_searches**](docs/SavedAppMapSearchApi.md#get_all_saved_app_map_searches) | **GET** /api/v2/savedappmapsearch | Get all searches for a customer @@ -290,6 +294,9 @@ Class | Method | HTTP request | Description *SavedSearchApi* | [**get_saved_search**](docs/SavedSearchApi.md#get_saved_search) | **GET** /api/v2/savedsearch/{id} | Get a specific saved search *SavedSearchApi* | [**update_saved_search**](docs/SavedSearchApi.md#update_saved_search) | **PUT** /api/v2/savedsearch/{id} | Update a specific saved search *SavedTracesSearchApi* | [**create_saved_traces_search**](docs/SavedTracesSearchApi.md#create_saved_traces_search) | **POST** /api/v2/savedtracessearch | Create a search +*SavedTracesSearchApi* | [**default_app_map_search**](docs/SavedTracesSearchApi.md#default_app_map_search) | **POST** /api/v2/savedtracessearch/defaultTracesSearch | Set default traces search at user level +*SavedTracesSearchApi* | [**default_customer_traces_search**](docs/SavedTracesSearchApi.md#default_customer_traces_search) | **POST** /api/v2/savedtracessearch/defaultCustomerTracesSearch | Set default traces search at customer level +*SavedTracesSearchApi* | [**default_traces_search**](docs/SavedTracesSearchApi.md#default_traces_search) | **GET** /api/v2/savedtracessearch/defaultTracesSearch | Get default traces search for a user *SavedTracesSearchApi* | [**delete_saved_traces_search**](docs/SavedTracesSearchApi.md#delete_saved_traces_search) | **DELETE** /api/v2/savedtracessearch/{id} | Delete a search *SavedTracesSearchApi* | [**delete_saved_traces_search_for_user**](docs/SavedTracesSearchApi.md#delete_saved_traces_search_for_user) | **DELETE** /api/v2/savedtracessearch/owned/{id} | Delete a search belonging to the user *SavedTracesSearchApi* | [**get_all_saved_traces_searches**](docs/SavedTracesSearchApi.md#get_all_saved_traces_searches) | **GET** /api/v2/savedtracessearch | Get all searches for a customer @@ -380,6 +387,9 @@ Class | Method | HTTP request | Description *SearchApi* | [**search_tagged_source_entities**](docs/SearchApi.md#search_tagged_source_entities) | **POST** /api/v2/search/source | Search over a customer's sources *SearchApi* | [**search_tagged_source_for_facet**](docs/SearchApi.md#search_tagged_source_for_facet) | **POST** /api/v2/search/source/{facet} | Lists the values of a specific facet over the customer's sources *SearchApi* | [**search_tagged_source_for_facets**](docs/SearchApi.md#search_tagged_source_for_facets) | **POST** /api/v2/search/source/facets | Lists the values of one or more facets over the customer's sources +*SearchApi* | [**search_token_entities**](docs/SearchApi.md#search_token_entities) | **POST** /api/v2/search/token | Search over a customer's api tokens +*SearchApi* | [**search_token_for_facet**](docs/SearchApi.md#search_token_for_facet) | **POST** /api/v2/search/token/{facet} | Lists the values of a specific facet over the customer's api tokens +*SearchApi* | [**search_token_for_facets**](docs/SearchApi.md#search_token_for_facets) | **POST** /api/v2/search/token/facets | Lists the values of one or more facets over the customer's api tokens *SearchApi* | [**search_traces_map_for_facet**](docs/SearchApi.md#search_traces_map_for_facet) | **POST** /api/v2/search/savedtracessearch/{facet} | Lists the values of a specific facet over the customer's non-deleted traces searches *SearchApi* | [**search_traces_map_for_facets**](docs/SearchApi.md#search_traces_map_for_facets) | **POST** /api/v2/search/savedtracessearch/facets | Lists the values of one or more facets over the customer's non-deleted traces searches *SearchApi* | [**search_user_entities**](docs/SearchApi.md#search_user_entities) | **POST** /api/v2/search/user | Search over a customer's users @@ -436,14 +446,12 @@ Class | Method | HTTP request | Description *UserApi* | [**revoke_user_permission**](docs/UserApi.md#revoke_user_permission) | **POST** /api/v2/user/{id}/revoke | Revokes a specific permission from user or service account *UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /api/v2/user/{id} | Update user with given user groups, permissions and ingestion policy. *UserApi* | [**validate_users**](docs/UserApi.md#validate_users) | **POST** /api/v2/user/validateUsers | Returns valid users and service accounts, also invalid identifiers from the given list -*UserGroupApi* | [**add_ingestion_policy**](docs/UserGroupApi.md#add_ingestion_policy) | **POST** /api/v2/usergroup/addIngestionPolicy | Add single ingestion policy to multiple groups *UserGroupApi* | [**add_roles_to_user_group**](docs/UserGroupApi.md#add_roles_to_user_group) | **POST** /api/v2/usergroup/{id}/addRoles | Add multiple roles to a specific user group *UserGroupApi* | [**add_users_to_user_group**](docs/UserGroupApi.md#add_users_to_user_group) | **POST** /api/v2/usergroup/{id}/addUsers | Add multiple users to a specific user group *UserGroupApi* | [**create_user_group**](docs/UserGroupApi.md#create_user_group) | **POST** /api/v2/usergroup | Create a specific user group *UserGroupApi* | [**delete_user_group**](docs/UserGroupApi.md#delete_user_group) | **DELETE** /api/v2/usergroup/{id} | Delete a specific user group *UserGroupApi* | [**get_all_user_groups**](docs/UserGroupApi.md#get_all_user_groups) | **GET** /api/v2/usergroup | Get all user groups for a customer *UserGroupApi* | [**get_user_group**](docs/UserGroupApi.md#get_user_group) | **GET** /api/v2/usergroup/{id} | Get a specific user group -*UserGroupApi* | [**remove_ingestion_policy**](docs/UserGroupApi.md#remove_ingestion_policy) | **POST** /api/v2/usergroup/removeIngestionPolicy | Removes single ingestion policy from multiple groups *UserGroupApi* | [**remove_roles_from_user_group**](docs/UserGroupApi.md#remove_roles_from_user_group) | **POST** /api/v2/usergroup/{id}/removeRoles | Remove multiple roles from a specific user group *UserGroupApi* | [**remove_users_from_user_group**](docs/UserGroupApi.md#remove_users_from_user_group) | **POST** /api/v2/usergroup/{id}/removeUsers | Remove multiple users from a specific user group *UserGroupApi* | [**update_user_group**](docs/UserGroupApi.md#update_user_group) | **PUT** /api/v2/usergroup/{id} | Update a specific user group @@ -471,6 +479,7 @@ Class | Method | HTTP request | Description - [AlertSource](docs/AlertSource.md) - [Annotation](docs/Annotation.md) - [Anomaly](docs/Anomaly.md) + - [ApiTokenModel](docs/ApiTokenModel.md) - [AppDynamicsConfiguration](docs/AppDynamicsConfiguration.md) - [AppSearchFilter](docs/AppSearchFilter.md) - [AppSearchFilterValue](docs/AppSearchFilterValue.md) @@ -493,6 +502,8 @@ Class | Method | HTTP request | Description - [DashboardParameterValue](docs/DashboardParameterValue.md) - [DashboardSection](docs/DashboardSection.md) - [DashboardSectionRow](docs/DashboardSectionRow.md) + - [DefaultSavedAppMapSearch](docs/DefaultSavedAppMapSearch.md) + - [DefaultSavedTracesSearch](docs/DefaultSavedTracesSearch.md) - [DerivedMetricDefinition](docs/DerivedMetricDefinition.md) - [DynatraceConfiguration](docs/DynatraceConfiguration.md) - [EC2Configuration](docs/EC2Configuration.md) @@ -547,6 +558,7 @@ Class | Method | HTTP request | Description - [PagedAlert](docs/PagedAlert.md) - [PagedAlertWithStats](docs/PagedAlertWithStats.md) - [PagedAnomaly](docs/PagedAnomaly.md) + - [PagedApiTokenModel](docs/PagedApiTokenModel.md) - [PagedCloudIntegration](docs/PagedCloudIntegration.md) - [PagedCustomerFacingUserObject](docs/PagedCustomerFacingUserObject.md) - [PagedDashboard](docs/PagedDashboard.md) @@ -597,8 +609,11 @@ Class | Method | HTTP request | Description - [ResponseContainerAccessPolicyAction](docs/ResponseContainerAccessPolicyAction.md) - [ResponseContainerAccount](docs/ResponseContainerAccount.md) - [ResponseContainerAlert](docs/ResponseContainerAlert.md) + - [ResponseContainerApiTokenModel](docs/ResponseContainerApiTokenModel.md) - [ResponseContainerCloudIntegration](docs/ResponseContainerCloudIntegration.md) - [ResponseContainerDashboard](docs/ResponseContainerDashboard.md) + - [ResponseContainerDefaultSavedAppMapSearch](docs/ResponseContainerDefaultSavedAppMapSearch.md) + - [ResponseContainerDefaultSavedTracesSearch](docs/ResponseContainerDefaultSavedTracesSearch.md) - [ResponseContainerDerivedMetricDefinition](docs/ResponseContainerDerivedMetricDefinition.md) - [ResponseContainerEvent](docs/ResponseContainerEvent.md) - [ResponseContainerExternalLink](docs/ResponseContainerExternalLink.md) @@ -609,6 +624,7 @@ Class | Method | HTTP request | Description - [ResponseContainerIntegration](docs/ResponseContainerIntegration.md) - [ResponseContainerIntegrationStatus](docs/ResponseContainerIntegrationStatus.md) - [ResponseContainerListAccessControlListReadDTO](docs/ResponseContainerListAccessControlListReadDTO.md) + - [ResponseContainerListApiTokenModel](docs/ResponseContainerListApiTokenModel.md) - [ResponseContainerListIntegration](docs/ResponseContainerListIntegration.md) - [ResponseContainerListIntegrationManifestGroup](docs/ResponseContainerListIntegrationManifestGroup.md) - [ResponseContainerListNotificationMessages](docs/ResponseContainerListNotificationMessages.md) @@ -628,6 +644,7 @@ Class | Method | HTTP request | Description - [ResponseContainerPagedAlert](docs/ResponseContainerPagedAlert.md) - [ResponseContainerPagedAlertWithStats](docs/ResponseContainerPagedAlertWithStats.md) - [ResponseContainerPagedAnomaly](docs/ResponseContainerPagedAnomaly.md) + - [ResponseContainerPagedApiTokenModel](docs/ResponseContainerPagedApiTokenModel.md) - [ResponseContainerPagedCloudIntegration](docs/ResponseContainerPagedCloudIntegration.md) - [ResponseContainerPagedCustomerFacingUserObject](docs/ResponseContainerPagedCustomerFacingUserObject.md) - [ResponseContainerPagedDashboard](docs/ResponseContainerPagedDashboard.md) diff --git a/docs/AccountUserAndServiceAccountApi.md b/docs/AccountUserAndServiceAccountApi.md index dd8cf0a..4de9bdf 100644 --- a/docs/AccountUserAndServiceAccountApi.md +++ b/docs/AccountUserAndServiceAccountApi.md @@ -8,7 +8,6 @@ Method | HTTP request | Description [**add_account_to_roles**](AccountUserAndServiceAccountApi.md#add_account_to_roles) | **POST** /api/v2/account/{id}/addRoles | Adds specific roles to the account (user or service account) [**add_account_to_user_groups**](AccountUserAndServiceAccountApi.md#add_account_to_user_groups) | **POST** /api/v2/account/{id}/addUserGroups | Adds specific groups to the account (user or service account) [**add_ingestion_policy**](AccountUserAndServiceAccountApi.md#add_ingestion_policy) | **POST** /api/v2/account/addingestionpolicy | Add a specific ingestion policy to multiple accounts -[**add_single_ingestion_policy**](AccountUserAndServiceAccountApi.md#add_single_ingestion_policy) | **POST** /api/v2/account/addIngestionPolicy | Add single ingestion policy to multiple accounts [**create_or_update_user_account**](AccountUserAndServiceAccountApi.md#create_or_update_user_account) | **POST** /api/v2/account/user | Creates or updates a user account [**create_service_account**](AccountUserAndServiceAccountApi.md#create_service_account) | **POST** /api/v2/account/serviceaccount | Creates a service account [**deactivate_account**](AccountUserAndServiceAccountApi.md#deactivate_account) | **POST** /api/v2/account/serviceaccount/{id}/deactivate | Deactivates the given service account @@ -27,7 +26,6 @@ Method | HTTP request | Description [**remove_account_from_roles**](AccountUserAndServiceAccountApi.md#remove_account_from_roles) | **POST** /api/v2/account/{id}/removeRoles | Removes specific roles from the account (user or service account) [**remove_account_from_user_groups**](AccountUserAndServiceAccountApi.md#remove_account_from_user_groups) | **POST** /api/v2/account/{id}/removeUserGroups | Removes specific groups from the account (user or service account) [**remove_ingestion_policies**](AccountUserAndServiceAccountApi.md#remove_ingestion_policies) | **POST** /api/v2/account/removeingestionpolicies | Removes ingestion policies from multiple accounts -[**remove_single_ingestion_policy**](AccountUserAndServiceAccountApi.md#remove_single_ingestion_policy) | **POST** /api/v2/account/removeIngestionPolicy | Removes single ingestion policy from multiple accounts [**revoke_account_permission**](AccountUserAndServiceAccountApi.md#revoke_account_permission) | **POST** /api/v2/account/{id}/revoke/{permission} | Revokes a specific permission from account (user or service account) [**revoke_permission_from_accounts**](AccountUserAndServiceAccountApi.md#revoke_permission_from_accounts) | **POST** /api/v2/account/revoke/{permission} | Revokes a specific permission from multiple accounts (users or service accounts) [**update_service_account**](AccountUserAndServiceAccountApi.md#update_service_account) | **PUT** /api/v2/account/serviceaccount/{id} | Updates the service account @@ -255,60 +253,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **add_single_ingestion_policy** -> ResponseContainerUserDTO add_single_ingestion_policy(body=body) - -Add single ingestion policy to multiple accounts - - - -### Example -```python -from __future__ import print_function -import time -import wavefront_api_client -from wavefront_api_client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: api_key -configuration = wavefront_api_client.Configuration() -configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' - -# create an instance of the API class -api_instance = wavefront_api_client.AccountUserAndServiceAccountApi(wavefront_api_client.ApiClient(configuration)) -body = wavefront_api_client.IngestionPolicyMapping() # IngestionPolicyMapping | Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
(optional) - -try: - # Add single ingestion policy to multiple accounts - api_response = api_instance.add_single_ingestion_policy(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountUserAndServiceAccountApi->add_single_ingestion_policy: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**IngestionPolicyMapping**](IngestionPolicyMapping.md)| Example Body: <pre>{ \"ingestionPolicyId\": \"Ingestion policy identifier\", \"accounts\": [ \"account1\", \"account2\", \"account3\" ], \"groups\": [ \"group1\", \"group2\" ] }</pre> | [optional] - -### Return type - -[**ResponseContainerUserDTO**](ResponseContainerUserDTO.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **create_or_update_user_account** > UserModel create_or_update_user_account(send_email=send_email, body=body) @@ -1285,60 +1229,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **remove_single_ingestion_policy** -> ResponseContainerUserDTO remove_single_ingestion_policy(body=body) - -Removes single ingestion policy from multiple accounts - - - -### Example -```python -from __future__ import print_function -import time -import wavefront_api_client -from wavefront_api_client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: api_key -configuration = wavefront_api_client.Configuration() -configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' - -# create an instance of the API class -api_instance = wavefront_api_client.AccountUserAndServiceAccountApi(wavefront_api_client.ApiClient(configuration)) -body = wavefront_api_client.IngestionPolicyMapping() # IngestionPolicyMapping | Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
(optional) - -try: - # Removes single ingestion policy from multiple accounts - api_response = api_instance.remove_single_ingestion_policy(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountUserAndServiceAccountApi->remove_single_ingestion_policy: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**IngestionPolicyMapping**](IngestionPolicyMapping.md)| Example Body: <pre>{ \"ingestionPolicyId\": \"Ingestion policy identifier\", \"accounts\": [ \"account1\", \"account2\", \"account3\" ], \"groups\": [ \"group1\", \"group2\" ] }</pre> | [optional] - -### Return type - -[**ResponseContainerUserDTO**](ResponseContainerUserDTO.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **revoke_account_permission** > UserModel revoke_account_permission(id, permission) diff --git a/docs/ApiTokenApi.md b/docs/ApiTokenApi.md index 06bdb10..7be2189 100644 --- a/docs/ApiTokenApi.md +++ b/docs/ApiTokenApi.md @@ -5,10 +5,13 @@ All URIs are relative to *https://YOUR_INSTANCE.wavefront.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_token**](ApiTokenApi.md#create_token) | **POST** /api/v2/apitoken | Create new api token +[**delete_customer_token**](ApiTokenApi.md#delete_customer_token) | **PUT** /api/v2/apitoken/customertokens/revoke | Delete the specified api token for a customer [**delete_token**](ApiTokenApi.md#delete_token) | **DELETE** /api/v2/apitoken/{id} | Delete the specified api token [**delete_token_service_account**](ApiTokenApi.md#delete_token_service_account) | **DELETE** /api/v2/apitoken/serviceaccount/{id}/{token} | Delete the specified api token of the given service account [**generate_token_service_account**](ApiTokenApi.md#generate_token_service_account) | **POST** /api/v2/apitoken/serviceaccount/{id} | Create a new api token for the service account [**get_all_tokens**](ApiTokenApi.md#get_all_tokens) | **GET** /api/v2/apitoken | Get all api tokens for a user +[**get_customer_token**](ApiTokenApi.md#get_customer_token) | **GET** /api/v2/apitoken/customertokens/{id} | Get the specified api token for a customer +[**get_customer_tokens**](ApiTokenApi.md#get_customer_tokens) | **GET** /api/v2/apitoken/customertokens | Get all api tokens for a customer [**get_tokens_service_account**](ApiTokenApi.md#get_tokens_service_account) | **GET** /api/v2/apitoken/serviceaccount/{id} | Get all api tokens for the given service account [**update_token_name**](ApiTokenApi.md#update_token_name) | **PUT** /api/v2/apitoken/{id} | Update the name of the specified api token [**update_token_name_service_account**](ApiTokenApi.md#update_token_name_service_account) | **PUT** /api/v2/apitoken/serviceaccount/{id}/{token} | Update the name of the specified api token for the given service account @@ -64,6 +67,60 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_customer_token** +> ResponseContainerUserApiToken delete_customer_token(body=body) + +Delete the specified api token for a customer + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.ApiTokenApi(wavefront_api_client.ApiClient(configuration)) +body = wavefront_api_client.UserApiToken() # UserApiToken | (optional) + +try: + # Delete the specified api token for a customer + api_response = api_instance.delete_customer_token(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ApiTokenApi->delete_customer_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**UserApiToken**](UserApiToken.md)| | [optional] + +### Return type + +[**ResponseContainerUserApiToken**](ResponseContainerUserApiToken.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_token** > ResponseContainerListUserApiToken delete_token(id) @@ -280,6 +337,110 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_customer_token** +> ResponseContainerApiTokenModel get_customer_token(id) + +Get the specified api token for a customer + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.ApiTokenApi(wavefront_api_client.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Get the specified api token for a customer + api_response = api_instance.get_customer_token(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ApiTokenApi->get_customer_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**ResponseContainerApiTokenModel**](ResponseContainerApiTokenModel.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_customer_tokens** +> ResponseContainerListApiTokenModel get_customer_tokens() + +Get all api tokens for a customer + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.ApiTokenApi(wavefront_api_client.ApiClient(configuration)) + +try: + # Get all api tokens for a customer + api_response = api_instance.get_customer_tokens() + pprint(api_response) +except ApiException as e: + print("Exception when calling ApiTokenApi->get_customer_tokens: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ResponseContainerListApiTokenModel**](ResponseContainerListApiTokenModel.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_tokens_service_account** > ResponseContainerListUserApiToken get_tokens_service_account(id) diff --git a/docs/ApiTokenModel.md b/docs/ApiTokenModel.md new file mode 100644 index 0000000..b355ecf --- /dev/null +++ b/docs/ApiTokenModel.md @@ -0,0 +1,17 @@ +# ApiTokenModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | The account who generated this token. | [optional] +**account_type** | **str** | The user or service account generated this token. | [optional] +**created_epoch_millis** | **int** | | [optional] +**customer** | **str** | The id of the customer to which the token belongs. | [optional] +**date_generated** | **int** | The generation date of the token. | [optional] +**id** | **str** | The unique identifier of the token. | [optional] +**last_used** | **int** | The last time this token was used. | [optional] +**name** | **str** | The name of the token. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudWatchConfiguration.md b/docs/CloudWatchConfiguration.md index 8a05631..06e071c 100644 --- a/docs/CloudWatchConfiguration.md +++ b/docs/CloudWatchConfiguration.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **metric_filter_regex** | **str** | A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested | [optional] **namespaces** | **list[str]** | A list of namespace that limit what we query from CloudWatch. | [optional] **point_tag_filter_regex** | **str** | A regular expression that AWS tag key name must match (case-insensitively) in order to be ingested | [optional] +**thread_distribution_in_mins** | **int** | ThreadDistributionInMins | [optional] **volume_selection_tags** | **dict(str, str)** | A string->string map of allow list of AWS volume tag-value pairs (in AWS). If the volume's AWS tags match this allow list, CloudWatch data about this volume is ingested. Multiple entries are OR'ed | [optional] **volume_selection_tags_expr** | **str** | A string expressing the allow list of AWS volume tag-value pairs. If the volume's AWS tags match this allow list, CloudWatch data about this volume is ingested. Multiple entries are OR'ed and also OR'ed with entries from volumeSelectionTags. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". | [optional] diff --git a/docs/DefaultSavedAppMapSearch.md b/docs/DefaultSavedAppMapSearch.md new file mode 100644 index 0000000..c749d1b --- /dev/null +++ b/docs/DefaultSavedAppMapSearch.md @@ -0,0 +1,11 @@ +# DefaultSavedAppMapSearch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_search_id** | **str** | | [optional] +**user_setting** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultSavedTracesSearch.md b/docs/DefaultSavedTracesSearch.md new file mode 100644 index 0000000..6e1f96d --- /dev/null +++ b/docs/DefaultSavedTracesSearch.md @@ -0,0 +1,11 @@ +# DefaultSavedTracesSearch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_search_id** | **str** | | [optional] +**user_setting** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedApiTokenModel.md b/docs/PagedApiTokenModel.md new file mode 100644 index 0000000..f5bfaa4 --- /dev/null +++ b/docs/PagedApiTokenModel.md @@ -0,0 +1,16 @@ +# PagedApiTokenModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cursor** | **str** | The id at which the current (limited) search can be continued to obtain more matching items | [optional] +**items** | [**list[ApiTokenModel]**](ApiTokenModel.md) | List of requested items | [optional] +**limit** | **int** | | [optional] +**more_items** | **bool** | Whether more items are available for return by increment offset or cursor | [optional] +**offset** | **int** | | [optional] +**sort** | [**Sorting**](Sorting.md) | | [optional] +**total_items** | **int** | An estimate (lower-bound) of the total number of items available for return. May not be a tight estimate for facet queries | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResponseContainerApiTokenModel.md b/docs/ResponseContainerApiTokenModel.md new file mode 100644 index 0000000..31b0232 --- /dev/null +++ b/docs/ResponseContainerApiTokenModel.md @@ -0,0 +1,11 @@ +# ResponseContainerApiTokenModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**response** | [**ApiTokenModel**](ApiTokenModel.md) | | [optional] +**status** | [**ResponseStatus**](ResponseStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResponseContainerDefaultSavedAppMapSearch.md b/docs/ResponseContainerDefaultSavedAppMapSearch.md new file mode 100644 index 0000000..60672c8 --- /dev/null +++ b/docs/ResponseContainerDefaultSavedAppMapSearch.md @@ -0,0 +1,11 @@ +# ResponseContainerDefaultSavedAppMapSearch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**response** | [**DefaultSavedAppMapSearch**](DefaultSavedAppMapSearch.md) | | [optional] +**status** | [**ResponseStatus**](ResponseStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResponseContainerDefaultSavedTracesSearch.md b/docs/ResponseContainerDefaultSavedTracesSearch.md new file mode 100644 index 0000000..e3324ef --- /dev/null +++ b/docs/ResponseContainerDefaultSavedTracesSearch.md @@ -0,0 +1,11 @@ +# ResponseContainerDefaultSavedTracesSearch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**response** | [**DefaultSavedTracesSearch**](DefaultSavedTracesSearch.md) | | [optional] +**status** | [**ResponseStatus**](ResponseStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResponseContainerListApiTokenModel.md b/docs/ResponseContainerListApiTokenModel.md new file mode 100644 index 0000000..952e859 --- /dev/null +++ b/docs/ResponseContainerListApiTokenModel.md @@ -0,0 +1,11 @@ +# ResponseContainerListApiTokenModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**response** | [**list[ApiTokenModel]**](ApiTokenModel.md) | | [optional] +**status** | [**ResponseStatus**](ResponseStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResponseContainerPagedApiTokenModel.md b/docs/ResponseContainerPagedApiTokenModel.md new file mode 100644 index 0000000..a391f54 --- /dev/null +++ b/docs/ResponseContainerPagedApiTokenModel.md @@ -0,0 +1,11 @@ +# ResponseContainerPagedApiTokenModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**response** | [**PagedApiTokenModel**](PagedApiTokenModel.md) | | [optional] +**status** | [**ResponseStatus**](ResponseStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SavedAppMapSearchApi.md b/docs/SavedAppMapSearchApi.md index ddad53d..57e6268 100644 --- a/docs/SavedAppMapSearchApi.md +++ b/docs/SavedAppMapSearchApi.md @@ -5,6 +5,9 @@ All URIs are relative to *https://YOUR_INSTANCE.wavefront.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_saved_app_map_search**](SavedAppMapSearchApi.md#create_saved_app_map_search) | **POST** /api/v2/savedappmapsearch | Create a search +[**default_app_map_search**](SavedAppMapSearchApi.md#default_app_map_search) | **GET** /api/v2/savedappmapsearch/defaultAppMapSearch | Get default app map search for a user +[**default_app_map_search_0**](SavedAppMapSearchApi.md#default_app_map_search_0) | **POST** /api/v2/savedappmapsearch/defaultAppMapSearch | Set default app map search at user level +[**default_customer_app_map_search**](SavedAppMapSearchApi.md#default_customer_app_map_search) | **POST** /api/v2/savedappmapsearch/defaultCustomerAppMapSearch | Set default app map search at customer level [**delete_saved_app_map_search**](SavedAppMapSearchApi.md#delete_saved_app_map_search) | **DELETE** /api/v2/savedappmapsearch/{id} | Delete a search [**delete_saved_app_map_search_for_user**](SavedAppMapSearchApi.md#delete_saved_app_map_search_for_user) | **DELETE** /api/v2/savedappmapsearch/owned/{id} | Delete a search belonging to the user [**get_all_saved_app_map_searches**](SavedAppMapSearchApi.md#get_all_saved_app_map_searches) | **GET** /api/v2/savedappmapsearch | Get all searches for a customer @@ -68,6 +71,164 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **default_app_map_search** +> ResponseContainerDefaultSavedAppMapSearch default_app_map_search() + +Get default app map search for a user + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.SavedAppMapSearchApi(wavefront_api_client.ApiClient(configuration)) + +try: + # Get default app map search for a user + api_response = api_instance.default_app_map_search() + pprint(api_response) +except ApiException as e: + print("Exception when calling SavedAppMapSearchApi->default_app_map_search: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ResponseContainerDefaultSavedAppMapSearch**](ResponseContainerDefaultSavedAppMapSearch.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **default_app_map_search_0** +> ResponseContainerString default_app_map_search_0(default_app_map_search=default_app_map_search) + +Set default app map search at user level + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.SavedAppMapSearchApi(wavefront_api_client.ApiClient(configuration)) +default_app_map_search = 'default_app_map_search_example' # str | (optional) + +try: + # Set default app map search at user level + api_response = api_instance.default_app_map_search_0(default_app_map_search=default_app_map_search) + pprint(api_response) +except ApiException as e: + print("Exception when calling SavedAppMapSearchApi->default_app_map_search_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **default_app_map_search** | **str**| | [optional] + +### Return type + +[**ResponseContainerString**](ResponseContainerString.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **default_customer_app_map_search** +> ResponseContainerString default_customer_app_map_search(default_app_map_search=default_app_map_search) + +Set default app map search at customer level + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.SavedAppMapSearchApi(wavefront_api_client.ApiClient(configuration)) +default_app_map_search = 'default_app_map_search_example' # str | (optional) + +try: + # Set default app map search at customer level + api_response = api_instance.default_customer_app_map_search(default_app_map_search=default_app_map_search) + pprint(api_response) +except ApiException as e: + print("Exception when calling SavedAppMapSearchApi->default_customer_app_map_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **default_app_map_search** | **str**| | [optional] + +### Return type + +[**ResponseContainerString**](ResponseContainerString.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_saved_app_map_search** > ResponseContainerSavedAppMapSearch delete_saved_app_map_search(id) diff --git a/docs/SavedTracesSearchApi.md b/docs/SavedTracesSearchApi.md index a7bdc8e..e19105d 100644 --- a/docs/SavedTracesSearchApi.md +++ b/docs/SavedTracesSearchApi.md @@ -5,6 +5,9 @@ All URIs are relative to *https://YOUR_INSTANCE.wavefront.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_saved_traces_search**](SavedTracesSearchApi.md#create_saved_traces_search) | **POST** /api/v2/savedtracessearch | Create a search +[**default_app_map_search**](SavedTracesSearchApi.md#default_app_map_search) | **POST** /api/v2/savedtracessearch/defaultTracesSearch | Set default traces search at user level +[**default_customer_traces_search**](SavedTracesSearchApi.md#default_customer_traces_search) | **POST** /api/v2/savedtracessearch/defaultCustomerTracesSearch | Set default traces search at customer level +[**default_traces_search**](SavedTracesSearchApi.md#default_traces_search) | **GET** /api/v2/savedtracessearch/defaultTracesSearch | Get default traces search for a user [**delete_saved_traces_search**](SavedTracesSearchApi.md#delete_saved_traces_search) | **DELETE** /api/v2/savedtracessearch/{id} | Delete a search [**delete_saved_traces_search_for_user**](SavedTracesSearchApi.md#delete_saved_traces_search_for_user) | **DELETE** /api/v2/savedtracessearch/owned/{id} | Delete a search belonging to the user [**get_all_saved_traces_searches**](SavedTracesSearchApi.md#get_all_saved_traces_searches) | **GET** /api/v2/savedtracessearch | Get all searches for a customer @@ -68,6 +71,164 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **default_app_map_search** +> ResponseContainerString default_app_map_search(default_traces_search=default_traces_search) + +Set default traces search at user level + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.SavedTracesSearchApi(wavefront_api_client.ApiClient(configuration)) +default_traces_search = 'default_traces_search_example' # str | (optional) + +try: + # Set default traces search at user level + api_response = api_instance.default_app_map_search(default_traces_search=default_traces_search) + pprint(api_response) +except ApiException as e: + print("Exception when calling SavedTracesSearchApi->default_app_map_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **default_traces_search** | **str**| | [optional] + +### Return type + +[**ResponseContainerString**](ResponseContainerString.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **default_customer_traces_search** +> ResponseContainerString default_customer_traces_search(default_traces_search=default_traces_search) + +Set default traces search at customer level + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.SavedTracesSearchApi(wavefront_api_client.ApiClient(configuration)) +default_traces_search = 'default_traces_search_example' # str | (optional) + +try: + # Set default traces search at customer level + api_response = api_instance.default_customer_traces_search(default_traces_search=default_traces_search) + pprint(api_response) +except ApiException as e: + print("Exception when calling SavedTracesSearchApi->default_customer_traces_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **default_traces_search** | **str**| | [optional] + +### Return type + +[**ResponseContainerString**](ResponseContainerString.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **default_traces_search** +> ResponseContainerDefaultSavedTracesSearch default_traces_search() + +Get default traces search for a user + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.SavedTracesSearchApi(wavefront_api_client.ApiClient(configuration)) + +try: + # Get default traces search for a user + api_response = api_instance.default_traces_search() + pprint(api_response) +except ApiException as e: + print("Exception when calling SavedTracesSearchApi->default_traces_search: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ResponseContainerDefaultSavedTracesSearch**](ResponseContainerDefaultSavedTracesSearch.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_saved_traces_search** > ResponseContainerSavedTracesSearch delete_saved_traces_search(id) diff --git a/docs/SearchApi.md b/docs/SearchApi.md index 909b17a..02994b8 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -79,6 +79,9 @@ Method | HTTP request | Description [**search_tagged_source_entities**](SearchApi.md#search_tagged_source_entities) | **POST** /api/v2/search/source | Search over a customer's sources [**search_tagged_source_for_facet**](SearchApi.md#search_tagged_source_for_facet) | **POST** /api/v2/search/source/{facet} | Lists the values of a specific facet over the customer's sources [**search_tagged_source_for_facets**](SearchApi.md#search_tagged_source_for_facets) | **POST** /api/v2/search/source/facets | Lists the values of one or more facets over the customer's sources +[**search_token_entities**](SearchApi.md#search_token_entities) | **POST** /api/v2/search/token | Search over a customer's api tokens +[**search_token_for_facet**](SearchApi.md#search_token_for_facet) | **POST** /api/v2/search/token/{facet} | Lists the values of a specific facet over the customer's api tokens +[**search_token_for_facets**](SearchApi.md#search_token_for_facets) | **POST** /api/v2/search/token/facets | Lists the values of one or more facets over the customer's api tokens [**search_traces_map_for_facet**](SearchApi.md#search_traces_map_for_facet) | **POST** /api/v2/search/savedtracessearch/{facet} | Lists the values of a specific facet over the customer's non-deleted traces searches [**search_traces_map_for_facets**](SearchApi.md#search_traces_map_for_facets) | **POST** /api/v2/search/savedtracessearch/facets | Lists the values of one or more facets over the customer's non-deleted traces searches [**search_user_entities**](SearchApi.md#search_user_entities) | **POST** /api/v2/search/user | Search over a customer's users @@ -4194,6 +4197,170 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **search_token_entities** +> ResponseContainerPagedApiTokenModel search_token_entities(body=body) + +Search over a customer's api tokens + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(configuration)) +body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional) + +try: + # Search over a customer's api tokens + api_response = api_instance.search_token_entities(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling SearchApi->search_token_entities: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional] + +### Return type + +[**ResponseContainerPagedApiTokenModel**](ResponseContainerPagedApiTokenModel.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **search_token_for_facet** +> ResponseContainerFacetResponse search_token_for_facet(facet, body=body) + +Lists the values of a specific facet over the customer's api tokens + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(configuration)) +facet = 'facet_example' # str | +body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional) + +try: + # Lists the values of a specific facet over the customer's api tokens + api_response = api_instance.search_token_for_facet(facet, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling SearchApi->search_token_for_facet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **facet** | **str**| | + **body** | [**FacetSearchRequestContainer**](FacetSearchRequestContainer.md)| | [optional] + +### Return type + +[**ResponseContainerFacetResponse**](ResponseContainerFacetResponse.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **search_token_for_facets** +> ResponseContainerFacetsResponseContainer search_token_for_facets(body=body) + +Lists the values of one or more facets over the customer's api tokens + + + +### Example +```python +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = wavefront_api_client.Configuration() +configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(configuration)) +body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional) + +try: + # Lists the values of one or more facets over the customer's api tokens + api_response = api_instance.search_token_for_facets(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling SearchApi->search_token_for_facets: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**FacetsSearchRequestContainer**](FacetsSearchRequestContainer.md)| | [optional] + +### Return type + +[**ResponseContainerFacetsResponseContainer**](ResponseContainerFacetsResponseContainer.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **search_traces_map_for_facet** > ResponseContainerFacetResponse search_traces_map_for_facet(facet, body=body) diff --git a/docs/SearchQuery.md b/docs/SearchQuery.md index 02c7943..66b9a30 100644 --- a/docs/SearchQuery.md +++ b/docs/SearchQuery.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**end** | **int** | The end point of the range. At least one of start or end points should be available for range search. | [optional] **key** | **str** | The entity facet (key) by which to search. Valid keys are any property keys returned by the JSON representation of the entity. Examples are 'creatorId', 'name', etc. The following special key keywords are also valid: 'tags' performs a search on entity tags, 'tagpath' performs a hierarchical search on tags, with periods (.) as path level separators. 'freetext' performs a free text search across many fields of the entity | **matching_method** | **str** | The method by which search matching is performed. Default: CONTAINS | [optional] **negated** | **bool** | The flag to create a NOT operation. Default: false | [optional] +**start** | **int** | The start point of the range. At least one of start or end points should be available for range search. | [optional] **value** | **str** | The entity facet value for which to search. Either value or values field is required. If both are set, values takes precedence. | [optional] **values** | **list[str]** | The entity facet values for which to search based on OR operation. Either value or values field is required. If both are set, values takes precedence. | [optional] diff --git a/docs/UserGroupApi.md b/docs/UserGroupApi.md index 945cd0f..2c73a32 100644 --- a/docs/UserGroupApi.md +++ b/docs/UserGroupApi.md @@ -4,73 +4,17 @@ All URIs are relative to *https://YOUR_INSTANCE.wavefront.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**add_ingestion_policy**](UserGroupApi.md#add_ingestion_policy) | **POST** /api/v2/usergroup/addIngestionPolicy | Add single ingestion policy to multiple groups [**add_roles_to_user_group**](UserGroupApi.md#add_roles_to_user_group) | **POST** /api/v2/usergroup/{id}/addRoles | Add multiple roles to a specific user group [**add_users_to_user_group**](UserGroupApi.md#add_users_to_user_group) | **POST** /api/v2/usergroup/{id}/addUsers | Add multiple users to a specific user group [**create_user_group**](UserGroupApi.md#create_user_group) | **POST** /api/v2/usergroup | Create a specific user group [**delete_user_group**](UserGroupApi.md#delete_user_group) | **DELETE** /api/v2/usergroup/{id} | Delete a specific user group [**get_all_user_groups**](UserGroupApi.md#get_all_user_groups) | **GET** /api/v2/usergroup | Get all user groups for a customer [**get_user_group**](UserGroupApi.md#get_user_group) | **GET** /api/v2/usergroup/{id} | Get a specific user group -[**remove_ingestion_policy**](UserGroupApi.md#remove_ingestion_policy) | **POST** /api/v2/usergroup/removeIngestionPolicy | Removes single ingestion policy from multiple groups [**remove_roles_from_user_group**](UserGroupApi.md#remove_roles_from_user_group) | **POST** /api/v2/usergroup/{id}/removeRoles | Remove multiple roles from a specific user group [**remove_users_from_user_group**](UserGroupApi.md#remove_users_from_user_group) | **POST** /api/v2/usergroup/{id}/removeUsers | Remove multiple users from a specific user group [**update_user_group**](UserGroupApi.md#update_user_group) | **PUT** /api/v2/usergroup/{id} | Update a specific user group -# **add_ingestion_policy** -> ResponseContainerUserGroupModel add_ingestion_policy(body=body) - -Add single ingestion policy to multiple groups - - - -### Example -```python -from __future__ import print_function -import time -import wavefront_api_client -from wavefront_api_client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: api_key -configuration = wavefront_api_client.Configuration() -configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' - -# create an instance of the API class -api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration)) -body = wavefront_api_client.IngestionPolicyMapping() # IngestionPolicyMapping | Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
(optional) - -try: - # Add single ingestion policy to multiple groups - api_response = api_instance.add_ingestion_policy(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling UserGroupApi->add_ingestion_policy: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**IngestionPolicyMapping**](IngestionPolicyMapping.md)| Example Body: <pre>{ \"ingestionPolicyId\": \"Ingestion policy identifier\", \"accounts\": [ \"account1\", \"account2\", \"account3\" ], \"groups\": [ \"group1\", \"group2\" ] }</pre> | [optional] - -### Return type - -[**ResponseContainerUserGroupModel**](ResponseContainerUserGroupModel.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **add_roles_to_user_group** > ResponseContainerUserGroupModel add_roles_to_user_group(id, body=body) @@ -401,60 +345,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **remove_ingestion_policy** -> ResponseContainerUserGroupModel remove_ingestion_policy(body=body) - -Removes single ingestion policy from multiple groups - - - -### Example -```python -from __future__ import print_function -import time -import wavefront_api_client -from wavefront_api_client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: api_key -configuration = wavefront_api_client.Configuration() -configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer' - -# create an instance of the API class -api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration)) -body = wavefront_api_client.IngestionPolicyMapping() # IngestionPolicyMapping | Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
(optional) - -try: - # Removes single ingestion policy from multiple groups - api_response = api_instance.remove_ingestion_policy(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling UserGroupApi->remove_ingestion_policy: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**IngestionPolicyMapping**](IngestionPolicyMapping.md)| Example Body: <pre>{ \"ingestionPolicyId\": \"Ingestion policy identifier\", \"accounts\": [ \"account1\", \"account2\", \"account3\" ], \"groups\": [ \"group1\", \"group2\" ] }</pre> | [optional] - -### Return type - -[**ResponseContainerUserGroupModel**](ResponseContainerUserGroupModel.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **remove_roles_from_user_group** > ResponseContainerUserGroupModel remove_roles_from_user_group(id, body=body) diff --git a/setup.py b/setup.py index af63bc9..0b8bb43 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "wavefront-api-client" -VERSION = "2.126.1" +VERSION = "2.128.2" # To install the library, run the following # # python setup.py install diff --git a/test/test_api_token_model.py b/test/test_api_token_model.py new file mode 100644 index 0000000..0551214 --- /dev/null +++ b/test/test_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.api_token_model import ApiTokenModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestApiTokenModel(unittest.TestCase): + """ApiTokenModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiTokenModel(self): + """Test ApiTokenModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.api_token_model.ApiTokenModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_default_saved_app_map_search.py b/test/test_default_saved_app_map_search.py new file mode 100644 index 0000000..9683c29 --- /dev/null +++ b/test/test_default_saved_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.default_saved_app_map_search import DefaultSavedAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDefaultSavedAppMapSearch(unittest.TestCase): + """DefaultSavedAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDefaultSavedAppMapSearch(self): + """Test DefaultSavedAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.default_saved_app_map_search.DefaultSavedAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_default_saved_traces_search.py b/test/test_default_saved_traces_search.py new file mode 100644 index 0000000..879c8bf --- /dev/null +++ b/test/test_default_saved_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.default_saved_traces_search import DefaultSavedTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDefaultSavedTracesSearch(unittest.TestCase): + """DefaultSavedTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDefaultSavedTracesSearch(self): + """Test DefaultSavedTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.default_saved_traces_search.DefaultSavedTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_api_token_model.py b/test/test_paged_api_token_model.py new file mode 100644 index 0000000..52ed536 --- /dev/null +++ b/test/test_paged_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.paged_api_token_model import PagedApiTokenModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedApiTokenModel(unittest.TestCase): + """PagedApiTokenModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedApiTokenModel(self): + """Test PagedApiTokenModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_api_token_model.PagedApiTokenModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_api_token_model.py b/test/test_response_container_api_token_model.py new file mode 100644 index 0000000..7e405ea --- /dev/null +++ b/test/test_response_container_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.response_container_api_token_model import ResponseContainerApiTokenModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerApiTokenModel(unittest.TestCase): + """ResponseContainerApiTokenModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerApiTokenModel(self): + """Test ResponseContainerApiTokenModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_api_token_model.ResponseContainerApiTokenModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_default_saved_app_map_search.py b/test/test_response_container_default_saved_app_map_search.py new file mode 100644 index 0000000..c78960c --- /dev/null +++ b/test/test_response_container_default_saved_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.response_container_default_saved_app_map_search import ResponseContainerDefaultSavedAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerDefaultSavedAppMapSearch(unittest.TestCase): + """ResponseContainerDefaultSavedAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerDefaultSavedAppMapSearch(self): + """Test ResponseContainerDefaultSavedAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_default_saved_app_map_search.ResponseContainerDefaultSavedAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_default_saved_traces_search.py b/test/test_response_container_default_saved_traces_search.py new file mode 100644 index 0000000..fe0690d --- /dev/null +++ b/test/test_response_container_default_saved_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.response_container_default_saved_traces_search import ResponseContainerDefaultSavedTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerDefaultSavedTracesSearch(unittest.TestCase): + """ResponseContainerDefaultSavedTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerDefaultSavedTracesSearch(self): + """Test ResponseContainerDefaultSavedTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_default_saved_traces_search.ResponseContainerDefaultSavedTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_list_api_token_model.py b/test/test_response_container_list_api_token_model.py new file mode 100644 index 0000000..5ea5170 --- /dev/null +++ b/test/test_response_container_list_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.response_container_list_api_token_model import ResponseContainerListApiTokenModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListApiTokenModel(unittest.TestCase): + """ResponseContainerListApiTokenModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListApiTokenModel(self): + """Test ResponseContainerListApiTokenModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_api_token_model.ResponseContainerListApiTokenModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_api_token_model.py b/test/test_response_container_paged_api_token_model.py new file mode 100644 index 0000000..5be0bfc --- /dev/null +++ b/test/test_response_container_paged_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.response_container_paged_api_token_model import ResponseContainerPagedApiTokenModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedApiTokenModel(unittest.TestCase): + """ResponseContainerPagedApiTokenModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedApiTokenModel(self): + """Test ResponseContainerPagedApiTokenModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_api_token_model.ResponseContainerPagedApiTokenModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/wavefront_api_client/__init__.py b/wavefront_api_client/__init__.py index 80f3896..61f2faa 100644 --- a/wavefront_api_client/__init__.py +++ b/wavefront_api_client/__init__.py @@ -72,6 +72,7 @@ from wavefront_api_client.models.alert_source import AlertSource from wavefront_api_client.models.annotation import Annotation from wavefront_api_client.models.anomaly import Anomaly +from wavefront_api_client.models.api_token_model import ApiTokenModel from wavefront_api_client.models.app_dynamics_configuration import AppDynamicsConfiguration from wavefront_api_client.models.app_search_filter import AppSearchFilter from wavefront_api_client.models.app_search_filter_value import AppSearchFilterValue @@ -94,6 +95,8 @@ from wavefront_api_client.models.dashboard_parameter_value import DashboardParameterValue from wavefront_api_client.models.dashboard_section import DashboardSection from wavefront_api_client.models.dashboard_section_row import DashboardSectionRow +from wavefront_api_client.models.default_saved_app_map_search import DefaultSavedAppMapSearch +from wavefront_api_client.models.default_saved_traces_search import DefaultSavedTracesSearch from wavefront_api_client.models.derived_metric_definition import DerivedMetricDefinition from wavefront_api_client.models.dynatrace_configuration import DynatraceConfiguration from wavefront_api_client.models.ec2_configuration import EC2Configuration @@ -148,6 +151,7 @@ from wavefront_api_client.models.paged_alert import PagedAlert from wavefront_api_client.models.paged_alert_with_stats import PagedAlertWithStats from wavefront_api_client.models.paged_anomaly import PagedAnomaly +from wavefront_api_client.models.paged_api_token_model import PagedApiTokenModel from wavefront_api_client.models.paged_cloud_integration import PagedCloudIntegration from wavefront_api_client.models.paged_customer_facing_user_object import PagedCustomerFacingUserObject from wavefront_api_client.models.paged_dashboard import PagedDashboard @@ -198,8 +202,11 @@ from wavefront_api_client.models.response_container_access_policy_action import ResponseContainerAccessPolicyAction from wavefront_api_client.models.response_container_account import ResponseContainerAccount from wavefront_api_client.models.response_container_alert import ResponseContainerAlert +from wavefront_api_client.models.response_container_api_token_model import ResponseContainerApiTokenModel from wavefront_api_client.models.response_container_cloud_integration import ResponseContainerCloudIntegration from wavefront_api_client.models.response_container_dashboard import ResponseContainerDashboard +from wavefront_api_client.models.response_container_default_saved_app_map_search import ResponseContainerDefaultSavedAppMapSearch +from wavefront_api_client.models.response_container_default_saved_traces_search import ResponseContainerDefaultSavedTracesSearch from wavefront_api_client.models.response_container_derived_metric_definition import ResponseContainerDerivedMetricDefinition from wavefront_api_client.models.response_container_event import ResponseContainerEvent from wavefront_api_client.models.response_container_external_link import ResponseContainerExternalLink @@ -210,6 +217,7 @@ from wavefront_api_client.models.response_container_integration import ResponseContainerIntegration from wavefront_api_client.models.response_container_integration_status import ResponseContainerIntegrationStatus from wavefront_api_client.models.response_container_list_access_control_list_read_dto import ResponseContainerListAccessControlListReadDTO +from wavefront_api_client.models.response_container_list_api_token_model import ResponseContainerListApiTokenModel from wavefront_api_client.models.response_container_list_integration import ResponseContainerListIntegration from wavefront_api_client.models.response_container_list_integration_manifest_group import ResponseContainerListIntegrationManifestGroup from wavefront_api_client.models.response_container_list_notification_messages import ResponseContainerListNotificationMessages @@ -229,6 +237,7 @@ from wavefront_api_client.models.response_container_paged_alert import ResponseContainerPagedAlert from wavefront_api_client.models.response_container_paged_alert_with_stats import ResponseContainerPagedAlertWithStats from wavefront_api_client.models.response_container_paged_anomaly import ResponseContainerPagedAnomaly +from wavefront_api_client.models.response_container_paged_api_token_model import ResponseContainerPagedApiTokenModel from wavefront_api_client.models.response_container_paged_cloud_integration import ResponseContainerPagedCloudIntegration from wavefront_api_client.models.response_container_paged_customer_facing_user_object import ResponseContainerPagedCustomerFacingUserObject from wavefront_api_client.models.response_container_paged_dashboard import ResponseContainerPagedDashboard diff --git a/wavefront_api_client/api/account__user_and_service_account_api.py b/wavefront_api_client/api/account__user_and_service_account_api.py index a1d56ae..6f745a9 100644 --- a/wavefront_api_client/api/account__user_and_service_account_api.py +++ b/wavefront_api_client/api/account__user_and_service_account_api.py @@ -433,101 +433,6 @@ def add_ingestion_policy_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def add_single_ingestion_policy(self, **kwargs): # noqa: E501 - """Add single ingestion policy to multiple accounts # noqa: E501 - - # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_single_ingestion_policy(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IngestionPolicyMapping body: Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
- :return: ResponseContainerUserDTO - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.add_single_ingestion_policy_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.add_single_ingestion_policy_with_http_info(**kwargs) # noqa: E501 - return data - - def add_single_ingestion_policy_with_http_info(self, **kwargs): # noqa: E501 - """Add single ingestion policy to multiple accounts # noqa: E501 - - # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_single_ingestion_policy_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IngestionPolicyMapping body: Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
- :return: ResponseContainerUserDTO - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method add_single_ingestion_policy" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['api_key'] # noqa: E501 - - return self.api_client.call_api( - '/api/v2/account/addIngestionPolicy', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ResponseContainerUserDTO', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def create_or_update_user_account(self, **kwargs): # noqa: E501 """Creates or updates a user account # noqa: E501 @@ -2266,101 +2171,6 @@ def remove_ingestion_policies_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def remove_single_ingestion_policy(self, **kwargs): # noqa: E501 - """Removes single ingestion policy from multiple accounts # noqa: E501 - - # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.remove_single_ingestion_policy(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IngestionPolicyMapping body: Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
- :return: ResponseContainerUserDTO - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.remove_single_ingestion_policy_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.remove_single_ingestion_policy_with_http_info(**kwargs) # noqa: E501 - return data - - def remove_single_ingestion_policy_with_http_info(self, **kwargs): # noqa: E501 - """Removes single ingestion policy from multiple accounts # noqa: E501 - - # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.remove_single_ingestion_policy_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IngestionPolicyMapping body: Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
- :return: ResponseContainerUserDTO - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method remove_single_ingestion_policy" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['api_key'] # noqa: E501 - - return self.api_client.call_api( - '/api/v2/account/removeIngestionPolicy', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ResponseContainerUserDTO', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def revoke_account_permission(self, id, permission, **kwargs): # noqa: E501 """Revokes a specific permission from account (user or service account) # noqa: E501 diff --git a/wavefront_api_client/api/api_token_api.py b/wavefront_api_client/api/api_token_api.py index d97189e..25a262c 100644 --- a/wavefront_api_client/api/api_token_api.py +++ b/wavefront_api_client/api/api_token_api.py @@ -120,6 +120,101 @@ def create_token_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_customer_token(self, **kwargs): # noqa: E501 + """Delete the specified api token for a customer # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_customer_token(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param UserApiToken body: + :return: ResponseContainerUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_customer_token_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.delete_customer_token_with_http_info(**kwargs) # noqa: E501 + return data + + def delete_customer_token_with_http_info(self, **kwargs): # noqa: E501 + """Delete the specified api token for a customer # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_customer_token_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param UserApiToken body: + :return: ResponseContainerUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_customer_token" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/apitoken/customertokens/revoke', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerUserApiToken', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_token(self, id, **kwargs): # noqa: E501 """Delete the specified api token # noqa: E501 @@ -504,6 +599,188 @@ def get_all_tokens_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_customer_token(self, id, **kwargs): # noqa: E501 + """Get the specified api token for a customer # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_customer_token(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerApiTokenModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_customer_token_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_customer_token_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_customer_token_with_http_info(self, id, **kwargs): # noqa: E501 + """Get the specified api token for a customer # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_customer_token_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerApiTokenModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_customer_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if self.api_client.client_side_validation and ('id' not in params or + params['id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `id` when calling `get_customer_token`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/apitoken/customertokens/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerApiTokenModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_customer_tokens(self, **kwargs): # noqa: E501 + """Get all api tokens for a customer # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_customer_tokens(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerListApiTokenModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_customer_tokens_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_customer_tokens_with_http_info(**kwargs) # noqa: E501 + return data + + def get_customer_tokens_with_http_info(self, **kwargs): # noqa: E501 + """Get all api tokens for a customer # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_customer_tokens_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerListApiTokenModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_customer_tokens" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/apitoken/customertokens', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListApiTokenModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_tokens_service_account(self, id, **kwargs): # noqa: E501 """Get all api tokens for the given service account # noqa: E501 diff --git a/wavefront_api_client/api/saved_app_map_search_api.py b/wavefront_api_client/api/saved_app_map_search_api.py index f2fbc40..90f5cf9 100644 --- a/wavefront_api_client/api/saved_app_map_search_api.py +++ b/wavefront_api_client/api/saved_app_map_search_api.py @@ -128,6 +128,283 @@ def create_saved_app_map_search_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def default_app_map_search(self, **kwargs): # noqa: E501 + """Get default app map search for a user # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_app_map_search(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerDefaultSavedAppMapSearch + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.default_app_map_search_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.default_app_map_search_with_http_info(**kwargs) # noqa: E501 + return data + + def default_app_map_search_with_http_info(self, **kwargs): # noqa: E501 + """Get default app map search for a user # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_app_map_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerDefaultSavedAppMapSearch + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method default_app_map_search" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/savedappmapsearch/defaultAppMapSearch', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerDefaultSavedAppMapSearch', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def default_app_map_search_0(self, **kwargs): # noqa: E501 + """Set default app map search at user level # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_app_map_search_0(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str default_app_map_search: + :return: ResponseContainerString + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.default_app_map_search_0_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.default_app_map_search_0_with_http_info(**kwargs) # noqa: E501 + return data + + def default_app_map_search_0_with_http_info(self, **kwargs): # noqa: E501 + """Set default app map search at user level # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_app_map_search_0_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str default_app_map_search: + :return: ResponseContainerString + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['default_app_map_search'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method default_app_map_search_0" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'default_app_map_search' in params: + query_params.append(('defaultAppMapSearch', params['default_app_map_search'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/savedappmapsearch/defaultAppMapSearch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerString', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def default_customer_app_map_search(self, **kwargs): # noqa: E501 + """Set default app map search at customer level # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_customer_app_map_search(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str default_app_map_search: + :return: ResponseContainerString + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.default_customer_app_map_search_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.default_customer_app_map_search_with_http_info(**kwargs) # noqa: E501 + return data + + def default_customer_app_map_search_with_http_info(self, **kwargs): # noqa: E501 + """Set default app map search at customer level # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_customer_app_map_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str default_app_map_search: + :return: ResponseContainerString + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['default_app_map_search'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method default_customer_app_map_search" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'default_app_map_search' in params: + query_params.append(('defaultAppMapSearch', params['default_app_map_search'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/savedappmapsearch/defaultCustomerAppMapSearch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerString', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_saved_app_map_search(self, id, **kwargs): # noqa: E501 """Delete a search # noqa: E501 diff --git a/wavefront_api_client/api/saved_traces_search_api.py b/wavefront_api_client/api/saved_traces_search_api.py index 60c0805..5bfbc77 100644 --- a/wavefront_api_client/api/saved_traces_search_api.py +++ b/wavefront_api_client/api/saved_traces_search_api.py @@ -128,6 +128,283 @@ def create_saved_traces_search_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def default_app_map_search(self, **kwargs): # noqa: E501 + """Set default traces search at user level # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_app_map_search(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str default_traces_search: + :return: ResponseContainerString + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.default_app_map_search_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.default_app_map_search_with_http_info(**kwargs) # noqa: E501 + return data + + def default_app_map_search_with_http_info(self, **kwargs): # noqa: E501 + """Set default traces search at user level # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_app_map_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str default_traces_search: + :return: ResponseContainerString + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['default_traces_search'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method default_app_map_search" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'default_traces_search' in params: + query_params.append(('defaultTracesSearch', params['default_traces_search'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/savedtracessearch/defaultTracesSearch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerString', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def default_customer_traces_search(self, **kwargs): # noqa: E501 + """Set default traces search at customer level # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_customer_traces_search(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str default_traces_search: + :return: ResponseContainerString + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.default_customer_traces_search_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.default_customer_traces_search_with_http_info(**kwargs) # noqa: E501 + return data + + def default_customer_traces_search_with_http_info(self, **kwargs): # noqa: E501 + """Set default traces search at customer level # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_customer_traces_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str default_traces_search: + :return: ResponseContainerString + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['default_traces_search'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method default_customer_traces_search" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'default_traces_search' in params: + query_params.append(('defaultTracesSearch', params['default_traces_search'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/savedtracessearch/defaultCustomerTracesSearch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerString', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def default_traces_search(self, **kwargs): # noqa: E501 + """Get default traces search for a user # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_traces_search(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerDefaultSavedTracesSearch + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.default_traces_search_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.default_traces_search_with_http_info(**kwargs) # noqa: E501 + return data + + def default_traces_search_with_http_info(self, **kwargs): # noqa: E501 + """Get default traces search for a user # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_traces_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerDefaultSavedTracesSearch + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method default_traces_search" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/savedtracessearch/defaultTracesSearch', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerDefaultSavedTracesSearch', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_saved_traces_search(self, id, **kwargs): # noqa: E501 """Delete a search # noqa: E501 diff --git a/wavefront_api_client/api/search_api.py b/wavefront_api_client/api/search_api.py index 6a9ff51..b29e022 100644 --- a/wavefront_api_client/api/search_api.py +++ b/wavefront_api_client/api/search_api.py @@ -7366,6 +7366,299 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): # noqa: E50 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def search_token_entities(self, **kwargs): # noqa: E501 + """Search over a customer's api tokens # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_token_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedApiTokenModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_token_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_token_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_token_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's api tokens # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_token_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedApiTokenModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method search_token_entities" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/search/token', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedApiTokenModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def search_token_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's api tokens # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_token_for_facet(facet, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str facet: (required) + :param FacetSearchRequestContainer body: + :return: ResponseContainerFacetResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_token_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_token_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_token_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's api tokens # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_token_for_facet_with_http_info(facet, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str facet: (required) + :param FacetSearchRequestContainer body: + :return: ResponseContainerFacetResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['facet', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method search_token_for_facet" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'facet' is set + if self.api_client.client_side_validation and ('facet' not in params or + params['facet'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `facet` when calling `search_token_for_facet`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'facet' in params: + path_params['facet'] = params['facet'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/search/token/{facet}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerFacetResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def search_token_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's api tokens # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_token_for_facets(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param FacetsSearchRequestContainer body: + :return: ResponseContainerFacetsResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_token_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_token_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_token_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's api tokens # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_token_for_facets_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param FacetsSearchRequestContainer body: + :return: ResponseContainerFacetsResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method search_token_for_facets" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/search/token/facets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def search_traces_map_for_facet(self, facet, **kwargs): # noqa: E501 """Lists the values of a specific facet over the customer's non-deleted traces searches # noqa: E501 diff --git a/wavefront_api_client/api/user_group_api.py b/wavefront_api_client/api/user_group_api.py index 3590572..eae86c1 100644 --- a/wavefront_api_client/api/user_group_api.py +++ b/wavefront_api_client/api/user_group_api.py @@ -33,101 +33,6 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def add_ingestion_policy(self, **kwargs): # noqa: E501 - """Add single ingestion policy to multiple groups # noqa: E501 - - # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_ingestion_policy(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IngestionPolicyMapping body: Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
- :return: ResponseContainerUserGroupModel - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.add_ingestion_policy_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.add_ingestion_policy_with_http_info(**kwargs) # noqa: E501 - return data - - def add_ingestion_policy_with_http_info(self, **kwargs): # noqa: E501 - """Add single ingestion policy to multiple groups # noqa: E501 - - # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_ingestion_policy_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IngestionPolicyMapping body: Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
- :return: ResponseContainerUserGroupModel - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method add_ingestion_policy" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['api_key'] # noqa: E501 - - return self.api_client.call_api( - '/api/v2/usergroup/addIngestionPolicy', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ResponseContainerUserGroupModel', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def add_roles_to_user_group(self, id, **kwargs): # noqa: E501 """Add multiple roles to a specific user group # noqa: E501 @@ -714,101 +619,6 @@ def get_user_group_with_http_info(self, id, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def remove_ingestion_policy(self, **kwargs): # noqa: E501 - """Removes single ingestion policy from multiple groups # noqa: E501 - - # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.remove_ingestion_policy(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IngestionPolicyMapping body: Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
- :return: ResponseContainerUserGroupModel - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.remove_ingestion_policy_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.remove_ingestion_policy_with_http_info(**kwargs) # noqa: E501 - return data - - def remove_ingestion_policy_with_http_info(self, **kwargs): # noqa: E501 - """Removes single ingestion policy from multiple groups # noqa: E501 - - # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.remove_ingestion_policy_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IngestionPolicyMapping body: Example Body:
{   \"ingestionPolicyId\": \"Ingestion policy identifier\",   \"accounts\": [   \"account1\",   \"account2\",   \"account3\"   ],   \"groups\": [   \"group1\",   \"group2\"   ] }
- :return: ResponseContainerUserGroupModel - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method remove_ingestion_policy" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['api_key'] # noqa: E501 - - return self.api_client.call_api( - '/api/v2/usergroup/removeIngestionPolicy', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ResponseContainerUserGroupModel', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def remove_roles_from_user_group(self, id, **kwargs): # noqa: E501 """Remove multiple roles from a specific user group # noqa: E501 diff --git a/wavefront_api_client/api_client.py b/wavefront_api_client/api_client.py index 3b3c08f..68c8c18 100644 --- a/wavefront_api_client/api_client.py +++ b/wavefront_api_client/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.126.1/python' + self.user_agent = 'Swagger-Codegen/2.128.2/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/wavefront_api_client/configuration.py b/wavefront_api_client/configuration.py index 8aa5a8a..1e11ae7 100644 --- a/wavefront_api_client/configuration.py +++ b/wavefront_api_client/configuration.py @@ -251,5 +251,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v2\n"\ - "SDK Package Version: 2.126.1".\ + "SDK Package Version: 2.128.2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/wavefront_api_client/models/__init__.py b/wavefront_api_client/models/__init__.py index b0b5a18..a40ee6e 100644 --- a/wavefront_api_client/models/__init__.py +++ b/wavefront_api_client/models/__init__.py @@ -30,6 +30,7 @@ from wavefront_api_client.models.alert_source import AlertSource from wavefront_api_client.models.annotation import Annotation from wavefront_api_client.models.anomaly import Anomaly +from wavefront_api_client.models.api_token_model import ApiTokenModel from wavefront_api_client.models.app_dynamics_configuration import AppDynamicsConfiguration from wavefront_api_client.models.app_search_filter import AppSearchFilter from wavefront_api_client.models.app_search_filter_value import AppSearchFilterValue @@ -52,6 +53,8 @@ from wavefront_api_client.models.dashboard_parameter_value import DashboardParameterValue from wavefront_api_client.models.dashboard_section import DashboardSection from wavefront_api_client.models.dashboard_section_row import DashboardSectionRow +from wavefront_api_client.models.default_saved_app_map_search import DefaultSavedAppMapSearch +from wavefront_api_client.models.default_saved_traces_search import DefaultSavedTracesSearch from wavefront_api_client.models.derived_metric_definition import DerivedMetricDefinition from wavefront_api_client.models.dynatrace_configuration import DynatraceConfiguration from wavefront_api_client.models.ec2_configuration import EC2Configuration @@ -106,6 +109,7 @@ from wavefront_api_client.models.paged_alert import PagedAlert from wavefront_api_client.models.paged_alert_with_stats import PagedAlertWithStats from wavefront_api_client.models.paged_anomaly import PagedAnomaly +from wavefront_api_client.models.paged_api_token_model import PagedApiTokenModel from wavefront_api_client.models.paged_cloud_integration import PagedCloudIntegration from wavefront_api_client.models.paged_customer_facing_user_object import PagedCustomerFacingUserObject from wavefront_api_client.models.paged_dashboard import PagedDashboard @@ -156,8 +160,11 @@ from wavefront_api_client.models.response_container_access_policy_action import ResponseContainerAccessPolicyAction from wavefront_api_client.models.response_container_account import ResponseContainerAccount from wavefront_api_client.models.response_container_alert import ResponseContainerAlert +from wavefront_api_client.models.response_container_api_token_model import ResponseContainerApiTokenModel from wavefront_api_client.models.response_container_cloud_integration import ResponseContainerCloudIntegration from wavefront_api_client.models.response_container_dashboard import ResponseContainerDashboard +from wavefront_api_client.models.response_container_default_saved_app_map_search import ResponseContainerDefaultSavedAppMapSearch +from wavefront_api_client.models.response_container_default_saved_traces_search import ResponseContainerDefaultSavedTracesSearch from wavefront_api_client.models.response_container_derived_metric_definition import ResponseContainerDerivedMetricDefinition from wavefront_api_client.models.response_container_event import ResponseContainerEvent from wavefront_api_client.models.response_container_external_link import ResponseContainerExternalLink @@ -168,6 +175,7 @@ from wavefront_api_client.models.response_container_integration import ResponseContainerIntegration from wavefront_api_client.models.response_container_integration_status import ResponseContainerIntegrationStatus from wavefront_api_client.models.response_container_list_access_control_list_read_dto import ResponseContainerListAccessControlListReadDTO +from wavefront_api_client.models.response_container_list_api_token_model import ResponseContainerListApiTokenModel from wavefront_api_client.models.response_container_list_integration import ResponseContainerListIntegration from wavefront_api_client.models.response_container_list_integration_manifest_group import ResponseContainerListIntegrationManifestGroup from wavefront_api_client.models.response_container_list_notification_messages import ResponseContainerListNotificationMessages @@ -187,6 +195,7 @@ from wavefront_api_client.models.response_container_paged_alert import ResponseContainerPagedAlert from wavefront_api_client.models.response_container_paged_alert_with_stats import ResponseContainerPagedAlertWithStats from wavefront_api_client.models.response_container_paged_anomaly import ResponseContainerPagedAnomaly +from wavefront_api_client.models.response_container_paged_api_token_model import ResponseContainerPagedApiTokenModel from wavefront_api_client.models.response_container_paged_cloud_integration import ResponseContainerPagedCloudIntegration from wavefront_api_client.models.response_container_paged_customer_facing_user_object import ResponseContainerPagedCustomerFacingUserObject from wavefront_api_client.models.response_container_paged_dashboard import ResponseContainerPagedDashboard diff --git a/wavefront_api_client/models/api_token_model.py b/wavefront_api_client/models/api_token_model.py new file mode 100644 index 0000000..a5d069b --- /dev/null +++ b/wavefront_api_client/models/api_token_model.py @@ -0,0 +1,326 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class ApiTokenModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account': 'str', + 'account_type': 'str', + 'created_epoch_millis': 'int', + 'customer': 'str', + 'date_generated': 'int', + 'id': 'str', + 'last_used': 'int', + 'name': 'str' + } + + attribute_map = { + 'account': 'account', + 'account_type': 'accountType', + 'created_epoch_millis': 'createdEpochMillis', + 'customer': 'customer', + 'date_generated': 'dateGenerated', + 'id': 'id', + 'last_used': 'lastUsed', + 'name': 'name' + } + + def __init__(self, account=None, account_type=None, created_epoch_millis=None, customer=None, date_generated=None, id=None, last_used=None, name=None, _configuration=None): # noqa: E501 + """ApiTokenModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._account = None + self._account_type = None + self._created_epoch_millis = None + self._customer = None + self._date_generated = None + self._id = None + self._last_used = None + self._name = None + self.discriminator = None + + if account is not None: + self.account = account + if account_type is not None: + self.account_type = account_type + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if customer is not None: + self.customer = customer + if date_generated is not None: + self.date_generated = date_generated + if id is not None: + self.id = id + if last_used is not None: + self.last_used = last_used + if name is not None: + self.name = name + + @property + def account(self): + """Gets the account of this ApiTokenModel. # noqa: E501 + + The account who generated this token. # noqa: E501 + + :return: The account of this ApiTokenModel. # noqa: E501 + :rtype: str + """ + return self._account + + @account.setter + def account(self, account): + """Sets the account of this ApiTokenModel. + + The account who generated this token. # noqa: E501 + + :param account: The account of this ApiTokenModel. # noqa: E501 + :type: str + """ + + self._account = account + + @property + def account_type(self): + """Gets the account_type of this ApiTokenModel. # noqa: E501 + + The user or service account generated this token. # noqa: E501 + + :return: The account_type of this ApiTokenModel. # noqa: E501 + :rtype: str + """ + return self._account_type + + @account_type.setter + def account_type(self, account_type): + """Sets the account_type of this ApiTokenModel. + + The user or service account generated this token. # noqa: E501 + + :param account_type: The account_type of this ApiTokenModel. # noqa: E501 + :type: str + """ + allowed_values = ["USER_ACCOUNT", "SERVICE_ACCOUNT", "INACTIVE_SERVICE_ACCOUNT"] # noqa: E501 + if (self._configuration.client_side_validation and + account_type not in allowed_values): + raise ValueError( + "Invalid value for `account_type` ({0}), must be one of {1}" # noqa: E501 + .format(account_type, allowed_values) + ) + + self._account_type = account_type + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this ApiTokenModel. # noqa: E501 + + + :return: The created_epoch_millis of this ApiTokenModel. # noqa: E501 + :rtype: int + """ + return self._created_epoch_millis + + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): + """Sets the created_epoch_millis of this ApiTokenModel. + + + :param created_epoch_millis: The created_epoch_millis of this ApiTokenModel. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def customer(self): + """Gets the customer of this ApiTokenModel. # noqa: E501 + + The id of the customer to which the token belongs. # noqa: E501 + + :return: The customer of this ApiTokenModel. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this ApiTokenModel. + + The id of the customer to which the token belongs. # noqa: E501 + + :param customer: The customer of this ApiTokenModel. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def date_generated(self): + """Gets the date_generated of this ApiTokenModel. # noqa: E501 + + The generation date of the token. # noqa: E501 + + :return: The date_generated of this ApiTokenModel. # noqa: E501 + :rtype: int + """ + return self._date_generated + + @date_generated.setter + def date_generated(self, date_generated): + """Sets the date_generated of this ApiTokenModel. + + The generation date of the token. # noqa: E501 + + :param date_generated: The date_generated of this ApiTokenModel. # noqa: E501 + :type: int + """ + + self._date_generated = date_generated + + @property + def id(self): + """Gets the id of this ApiTokenModel. # noqa: E501 + + The unique identifier of the token. # noqa: E501 + + :return: The id of this ApiTokenModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApiTokenModel. + + The unique identifier of the token. # noqa: E501 + + :param id: The id of this ApiTokenModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def last_used(self): + """Gets the last_used of this ApiTokenModel. # noqa: E501 + + The last time this token was used. # noqa: E501 + + :return: The last_used of this ApiTokenModel. # noqa: E501 + :rtype: int + """ + return self._last_used + + @last_used.setter + def last_used(self, last_used): + """Sets the last_used of this ApiTokenModel. + + The last time this token was used. # noqa: E501 + + :param last_used: The last_used of this ApiTokenModel. # noqa: E501 + :type: int + """ + + self._last_used = last_used + + @property + def name(self): + """Gets the name of this ApiTokenModel. # noqa: E501 + + The name of the token. # noqa: E501 + + :return: The name of this ApiTokenModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApiTokenModel. + + The name of the token. # noqa: E501 + + :param name: The name of this ApiTokenModel. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiTokenModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiTokenModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ApiTokenModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/cloud_watch_configuration.py b/wavefront_api_client/models/cloud_watch_configuration.py index 0544753..3731f90 100644 --- a/wavefront_api_client/models/cloud_watch_configuration.py +++ b/wavefront_api_client/models/cloud_watch_configuration.py @@ -39,6 +39,7 @@ class CloudWatchConfiguration(object): 'metric_filter_regex': 'str', 'namespaces': 'list[str]', 'point_tag_filter_regex': 'str', + 'thread_distribution_in_mins': 'int', 'volume_selection_tags': 'dict(str, str)', 'volume_selection_tags_expr': 'str' } @@ -50,11 +51,12 @@ class CloudWatchConfiguration(object): 'metric_filter_regex': 'metricFilterRegex', 'namespaces': 'namespaces', 'point_tag_filter_regex': 'pointTagFilterRegex', + 'thread_distribution_in_mins': 'threadDistributionInMins', 'volume_selection_tags': 'volumeSelectionTags', 'volume_selection_tags_expr': 'volumeSelectionTagsExpr' } - def __init__(self, base_credentials=None, instance_selection_tags=None, instance_selection_tags_expr=None, metric_filter_regex=None, namespaces=None, point_tag_filter_regex=None, volume_selection_tags=None, volume_selection_tags_expr=None, _configuration=None): # noqa: E501 + def __init__(self, base_credentials=None, instance_selection_tags=None, instance_selection_tags_expr=None, metric_filter_regex=None, namespaces=None, point_tag_filter_regex=None, thread_distribution_in_mins=None, volume_selection_tags=None, volume_selection_tags_expr=None, _configuration=None): # noqa: E501 """CloudWatchConfiguration - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -66,6 +68,7 @@ def __init__(self, base_credentials=None, instance_selection_tags=None, instance self._metric_filter_regex = None self._namespaces = None self._point_tag_filter_regex = None + self._thread_distribution_in_mins = None self._volume_selection_tags = None self._volume_selection_tags_expr = None self.discriminator = None @@ -82,6 +85,8 @@ def __init__(self, base_credentials=None, instance_selection_tags=None, instance self.namespaces = namespaces if point_tag_filter_regex is not None: self.point_tag_filter_regex = point_tag_filter_regex + if thread_distribution_in_mins is not None: + self.thread_distribution_in_mins = thread_distribution_in_mins if volume_selection_tags is not None: self.volume_selection_tags = volume_selection_tags if volume_selection_tags_expr is not None: @@ -223,6 +228,29 @@ def point_tag_filter_regex(self, point_tag_filter_regex): self._point_tag_filter_regex = point_tag_filter_regex + @property + def thread_distribution_in_mins(self): + """Gets the thread_distribution_in_mins of this CloudWatchConfiguration. # noqa: E501 + + ThreadDistributionInMins # noqa: E501 + + :return: The thread_distribution_in_mins of this CloudWatchConfiguration. # noqa: E501 + :rtype: int + """ + return self._thread_distribution_in_mins + + @thread_distribution_in_mins.setter + def thread_distribution_in_mins(self, thread_distribution_in_mins): + """Sets the thread_distribution_in_mins of this CloudWatchConfiguration. + + ThreadDistributionInMins # noqa: E501 + + :param thread_distribution_in_mins: The thread_distribution_in_mins of this CloudWatchConfiguration. # noqa: E501 + :type: int + """ + + self._thread_distribution_in_mins = thread_distribution_in_mins + @property def volume_selection_tags(self): """Gets the volume_selection_tags of this CloudWatchConfiguration. # noqa: E501 diff --git a/wavefront_api_client/models/default_saved_app_map_search.py b/wavefront_api_client/models/default_saved_app_map_search.py new file mode 100644 index 0000000..a7cd19d --- /dev/null +++ b/wavefront_api_client/models/default_saved_app_map_search.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class DefaultSavedAppMapSearch(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'default_search_id': 'str', + 'user_setting': 'bool' + } + + attribute_map = { + 'default_search_id': 'defaultSearchId', + 'user_setting': 'userSetting' + } + + def __init__(self, default_search_id=None, user_setting=None, _configuration=None): # noqa: E501 + """DefaultSavedAppMapSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._default_search_id = None + self._user_setting = None + self.discriminator = None + + if default_search_id is not None: + self.default_search_id = default_search_id + if user_setting is not None: + self.user_setting = user_setting + + @property + def default_search_id(self): + """Gets the default_search_id of this DefaultSavedAppMapSearch. # noqa: E501 + + + :return: The default_search_id of this DefaultSavedAppMapSearch. # noqa: E501 + :rtype: str + """ + return self._default_search_id + + @default_search_id.setter + def default_search_id(self, default_search_id): + """Sets the default_search_id of this DefaultSavedAppMapSearch. + + + :param default_search_id: The default_search_id of this DefaultSavedAppMapSearch. # noqa: E501 + :type: str + """ + + self._default_search_id = default_search_id + + @property + def user_setting(self): + """Gets the user_setting of this DefaultSavedAppMapSearch. # noqa: E501 + + + :return: The user_setting of this DefaultSavedAppMapSearch. # noqa: E501 + :rtype: bool + """ + return self._user_setting + + @user_setting.setter + def user_setting(self, user_setting): + """Sets the user_setting of this DefaultSavedAppMapSearch. + + + :param user_setting: The user_setting of this DefaultSavedAppMapSearch. # noqa: E501 + :type: bool + """ + + self._user_setting = user_setting + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DefaultSavedAppMapSearch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DefaultSavedAppMapSearch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DefaultSavedAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/default_saved_traces_search.py b/wavefront_api_client/models/default_saved_traces_search.py new file mode 100644 index 0000000..43b41f6 --- /dev/null +++ b/wavefront_api_client/models/default_saved_traces_search.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class DefaultSavedTracesSearch(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'default_search_id': 'str', + 'user_setting': 'bool' + } + + attribute_map = { + 'default_search_id': 'defaultSearchId', + 'user_setting': 'userSetting' + } + + def __init__(self, default_search_id=None, user_setting=None, _configuration=None): # noqa: E501 + """DefaultSavedTracesSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._default_search_id = None + self._user_setting = None + self.discriminator = None + + if default_search_id is not None: + self.default_search_id = default_search_id + if user_setting is not None: + self.user_setting = user_setting + + @property + def default_search_id(self): + """Gets the default_search_id of this DefaultSavedTracesSearch. # noqa: E501 + + + :return: The default_search_id of this DefaultSavedTracesSearch. # noqa: E501 + :rtype: str + """ + return self._default_search_id + + @default_search_id.setter + def default_search_id(self, default_search_id): + """Sets the default_search_id of this DefaultSavedTracesSearch. + + + :param default_search_id: The default_search_id of this DefaultSavedTracesSearch. # noqa: E501 + :type: str + """ + + self._default_search_id = default_search_id + + @property + def user_setting(self): + """Gets the user_setting of this DefaultSavedTracesSearch. # noqa: E501 + + + :return: The user_setting of this DefaultSavedTracesSearch. # noqa: E501 + :rtype: bool + """ + return self._user_setting + + @user_setting.setter + def user_setting(self, user_setting): + """Sets the user_setting of this DefaultSavedTracesSearch. + + + :param user_setting: The user_setting of this DefaultSavedTracesSearch. # noqa: E501 + :type: bool + """ + + self._user_setting = user_setting + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DefaultSavedTracesSearch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DefaultSavedTracesSearch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DefaultSavedTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_api_token_model.py b/wavefront_api_client/models/paged_api_token_model.py new file mode 100644 index 0000000..42572e8 --- /dev/null +++ b/wavefront_api_client/models/paged_api_token_model.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class PagedApiTokenModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cursor': 'str', + 'items': 'list[ApiTokenModel]', + 'limit': 'int', + 'more_items': 'bool', + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' + } + + attribute_map = { + 'cursor': 'cursor', + 'items': 'items', + 'limit': 'limit', + 'more_items': 'moreItems', + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' + } + + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 + """PagedApiTokenModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._cursor = None + self._items = None + self._limit = None + self._more_items = None + self._offset = None + self._sort = None + self._total_items = None + self.discriminator = None + + if cursor is not None: + self.cursor = cursor + if items is not None: + self.items = items + if limit is not None: + self.limit = limit + if more_items is not None: + self.more_items = more_items + if offset is not None: + self.offset = offset + if sort is not None: + self.sort = sort + if total_items is not None: + self.total_items = total_items + + @property + def cursor(self): + """Gets the cursor of this PagedApiTokenModel. # noqa: E501 + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :return: The cursor of this PagedApiTokenModel. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedApiTokenModel. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedApiTokenModel. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedApiTokenModel. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedApiTokenModel. # noqa: E501 + :rtype: list[ApiTokenModel] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedApiTokenModel. + + List of requested items # noqa: E501 + + :param items: The items of this PagedApiTokenModel. # noqa: E501 + :type: list[ApiTokenModel] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedApiTokenModel. # noqa: E501 + + + :return: The limit of this PagedApiTokenModel. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedApiTokenModel. + + + :param limit: The limit of this PagedApiTokenModel. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedApiTokenModel. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedApiTokenModel. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedApiTokenModel. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedApiTokenModel. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedApiTokenModel. # noqa: E501 + + + :return: The offset of this PagedApiTokenModel. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedApiTokenModel. + + + :param offset: The offset of this PagedApiTokenModel. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedApiTokenModel. # noqa: E501 + + + :return: The sort of this PagedApiTokenModel. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedApiTokenModel. + + + :param sort: The sort of this PagedApiTokenModel. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedApiTokenModel. # noqa: E501 + + An estimate (lower-bound) of the total number of items available for return. May not be a tight estimate for facet queries # noqa: E501 + + :return: The total_items of this PagedApiTokenModel. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedApiTokenModel. + + An estimate (lower-bound) of the total number of items available for return. May not be a tight estimate for facet queries # noqa: E501 + + :param total_items: The total_items of this PagedApiTokenModel. # noqa: E501 + :type: int + """ + + self._total_items = total_items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PagedApiTokenModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PagedApiTokenModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PagedApiTokenModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_api_token_model.py b/wavefront_api_client/models/response_container_api_token_model.py new file mode 100644 index 0000000..93ebc25 --- /dev/null +++ b/wavefront_api_client/models/response_container_api_token_model.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class ResponseContainerApiTokenModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'response': 'ApiTokenModel', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'response': 'response', + 'status': 'status' + } + + def __init__(self, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerApiTokenModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._response = None + self._status = None + self.discriminator = None + + if response is not None: + self.response = response + self.status = status + + @property + def response(self): + """Gets the response of this ResponseContainerApiTokenModel. # noqa: E501 + + + :return: The response of this ResponseContainerApiTokenModel. # noqa: E501 + :rtype: ApiTokenModel + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerApiTokenModel. + + + :param response: The response of this ResponseContainerApiTokenModel. # noqa: E501 + :type: ApiTokenModel + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerApiTokenModel. # noqa: E501 + + + :return: The status of this ResponseContainerApiTokenModel. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerApiTokenModel. + + + :param status: The status of this ResponseContainerApiTokenModel. # noqa: E501 + :type: ResponseStatus + """ + if self._configuration.client_side_validation and status is None: + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseContainerApiTokenModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseContainerApiTokenModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ResponseContainerApiTokenModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_default_saved_app_map_search.py b/wavefront_api_client/models/response_container_default_saved_app_map_search.py new file mode 100644 index 0000000..2bd1a89 --- /dev/null +++ b/wavefront_api_client/models/response_container_default_saved_app_map_search.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class ResponseContainerDefaultSavedAppMapSearch(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'response': 'DefaultSavedAppMapSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'response': 'response', + 'status': 'status' + } + + def __init__(self, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerDefaultSavedAppMapSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._response = None + self._status = None + self.discriminator = None + + if response is not None: + self.response = response + self.status = status + + @property + def response(self): + """Gets the response of this ResponseContainerDefaultSavedAppMapSearch. # noqa: E501 + + + :return: The response of this ResponseContainerDefaultSavedAppMapSearch. # noqa: E501 + :rtype: DefaultSavedAppMapSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerDefaultSavedAppMapSearch. + + + :param response: The response of this ResponseContainerDefaultSavedAppMapSearch. # noqa: E501 + :type: DefaultSavedAppMapSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerDefaultSavedAppMapSearch. # noqa: E501 + + + :return: The status of this ResponseContainerDefaultSavedAppMapSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerDefaultSavedAppMapSearch. + + + :param status: The status of this ResponseContainerDefaultSavedAppMapSearch. # noqa: E501 + :type: ResponseStatus + """ + if self._configuration.client_side_validation and status is None: + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseContainerDefaultSavedAppMapSearch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseContainerDefaultSavedAppMapSearch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ResponseContainerDefaultSavedAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_default_saved_traces_search.py b/wavefront_api_client/models/response_container_default_saved_traces_search.py new file mode 100644 index 0000000..ef4a97c --- /dev/null +++ b/wavefront_api_client/models/response_container_default_saved_traces_search.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class ResponseContainerDefaultSavedTracesSearch(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'response': 'DefaultSavedTracesSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'response': 'response', + 'status': 'status' + } + + def __init__(self, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerDefaultSavedTracesSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._response = None + self._status = None + self.discriminator = None + + if response is not None: + self.response = response + self.status = status + + @property + def response(self): + """Gets the response of this ResponseContainerDefaultSavedTracesSearch. # noqa: E501 + + + :return: The response of this ResponseContainerDefaultSavedTracesSearch. # noqa: E501 + :rtype: DefaultSavedTracesSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerDefaultSavedTracesSearch. + + + :param response: The response of this ResponseContainerDefaultSavedTracesSearch. # noqa: E501 + :type: DefaultSavedTracesSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerDefaultSavedTracesSearch. # noqa: E501 + + + :return: The status of this ResponseContainerDefaultSavedTracesSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerDefaultSavedTracesSearch. + + + :param status: The status of this ResponseContainerDefaultSavedTracesSearch. # noqa: E501 + :type: ResponseStatus + """ + if self._configuration.client_side_validation and status is None: + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseContainerDefaultSavedTracesSearch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseContainerDefaultSavedTracesSearch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ResponseContainerDefaultSavedTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_list_api_token_model.py b/wavefront_api_client/models/response_container_list_api_token_model.py new file mode 100644 index 0000000..000396a --- /dev/null +++ b/wavefront_api_client/models/response_container_list_api_token_model.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class ResponseContainerListApiTokenModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'response': 'list[ApiTokenModel]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'response': 'response', + 'status': 'status' + } + + def __init__(self, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerListApiTokenModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._response = None + self._status = None + self.discriminator = None + + if response is not None: + self.response = response + self.status = status + + @property + def response(self): + """Gets the response of this ResponseContainerListApiTokenModel. # noqa: E501 + + + :return: The response of this ResponseContainerListApiTokenModel. # noqa: E501 + :rtype: list[ApiTokenModel] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerListApiTokenModel. + + + :param response: The response of this ResponseContainerListApiTokenModel. # noqa: E501 + :type: list[ApiTokenModel] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerListApiTokenModel. # noqa: E501 + + + :return: The status of this ResponseContainerListApiTokenModel. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListApiTokenModel. + + + :param status: The status of this ResponseContainerListApiTokenModel. # noqa: E501 + :type: ResponseStatus + """ + if self._configuration.client_side_validation and status is None: + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseContainerListApiTokenModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseContainerListApiTokenModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ResponseContainerListApiTokenModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_api_token_model.py b/wavefront_api_client/models/response_container_paged_api_token_model.py new file mode 100644 index 0000000..c91fa17 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_api_token_model.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.

When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class ResponseContainerPagedApiTokenModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'response': 'PagedApiTokenModel', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'response': 'response', + 'status': 'status' + } + + def __init__(self, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedApiTokenModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._response = None + self._status = None + self.discriminator = None + + if response is not None: + self.response = response + self.status = status + + @property + def response(self): + """Gets the response of this ResponseContainerPagedApiTokenModel. # noqa: E501 + + + :return: The response of this ResponseContainerPagedApiTokenModel. # noqa: E501 + :rtype: PagedApiTokenModel + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedApiTokenModel. + + + :param response: The response of this ResponseContainerPagedApiTokenModel. # noqa: E501 + :type: PagedApiTokenModel + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedApiTokenModel. # noqa: E501 + + + :return: The status of this ResponseContainerPagedApiTokenModel. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedApiTokenModel. + + + :param status: The status of this ResponseContainerPagedApiTokenModel. # noqa: E501 + :type: ResponseStatus + """ + if self._configuration.client_side_validation and status is None: + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseContainerPagedApiTokenModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseContainerPagedApiTokenModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ResponseContainerPagedApiTokenModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_set_business_function.py b/wavefront_api_client/models/response_container_set_business_function.py index e5e3316..039afdf 100644 --- a/wavefront_api_client/models/response_container_set_business_function.py +++ b/wavefront_api_client/models/response_container_set_business_function.py @@ -74,7 +74,7 @@ def response(self, response): :param response: The response of this ResponseContainerSetBusinessFunction. # noqa: E501 :type: list[str] """ - allowed_values = ["VIEW_MONITORED_APPLICATION_SERVICE", "VIEW_MONITORED_CLUSTER", "VIEW_MONITORED_CLUSTER_TAGS", "VIEW_DASHBOARDS", "VIEW_DASHBOARDS_TAGS", "VIEW_METRIC_TIMESERIES", "VIEW_HOSTS", "VIEW_HOST_TAGS", "VIEW_AGENT_TAGS", "VIEW_EVENTS", "VIEW_EVENT_TAGS", "VIEW_ALERTS", "VIEW_ALERT_TAGS", "VIEW_REGISTERED_QUERIES", "VIEW_REGISTERED_QUERY_TAGS", "VIEW_MAINTENANCE_WINDOWS", "VIEW_NOTIFICANTS", "VIEW_CUSTOM_METRICS", "VIEW_TARGETS", "VIEW_AGENTS", "VIEW_SSH_CONFIGS", "VIEW_EXTERNAL_SERVICES", "VIEW_EXTERNAL_SERVICES_TAGS", "VIEW_EXTERNAL_LINKS", "VIEW_EXTERNAL_LINK_DIGESTS", "VIEW_EXTERNAL_LINK_TAGS", "VIEW_LOGS", "VIEW_SLOW_QUERY_PAGE", "VIEW_SAVED_SEARCHES", "VIEW_MY_MESSAGES", "VIEW_APPLICATIONS", "VIEW_ANOMALY", "SPY_ON_POINTS", "SPY_ON_ID_CREATIONS", "SPY_UNUSED_METRICS", "VIEW_SAML_SSO_SETTINGS", "MODIFY_MONITORED_APPLICATION_SERVICE", "MODIFY_MONITORED_CLUSTER", "MODIFY_MONITORED_CLUSTER_TAGS", "MODIFY_PRIVATE_TAGS", "MODIFY_CUSTOM_METRICS", "MODIFY_DASHBOARDS", "MODIFY_EVENTS", "MODIFY_EVENT_TAGS", "MODIFY_AGENTS", "MODIFY_AGENT_TAGS", "MODIFY_HOSTS", "MODIFY_HOST_TAGS", "MODIFY_MACHINES", "MODIFY_SSH_CONFIGS", "MODIFY_ALERTS", "MODIFY_ALERT_TAGS", "MODIFY_REGISTERED_QUERIES", "MODIFY_REGISTERED_QUERY_TAGS", "MODIFY_MAINTENANCE_WINDOWS", "MODIFY_NOTIFICANTS", "MODIFY_DASHBOARD_TAGS", "MODIFY_TARGETS", "MODIFY_EXTERNAL_SERVICES", "MODIFY_EXTERNAL_SERVICES_TAGS", "CREATE_EMBEDDED_CHARTS", "MODIFY_METRIC_VISIBILITY", "MODIFY_EXTERNAL_LINKS", "MODIFY_EXTERNAL_LINK_TAGS", "MODIFY_SAVED_SEARCHES", "MODIFY_OWN_ONBOARDING_STATE", "MODIFY_APPLICATIONS", "INGESTION_POLICY_MANAGEMENT", "METRICS_POLICY_MANAGEMENT", "MODIFY_SAML_SSO_SETTINGS", "METRIC_INGESTION", "METRIC_INGESTION_LISTENER", "LOGIN", "LOGOUT", "CHANGE_PASSWORD", "SEND_FORGOTTEN_PASSWORD_EMAILS", "CHANGE_USER_PREFERENCE", "CREATE_TOKEN", "REVOKE_ALL_SESSIONS", "REVOKE_ALL_TOKENS", "REVOKE_TOKEN", "GET_TOKENS", "GET_ALL_ACCOUNTS", "GET_ALL_USERS", "GET_ALL_SERVICE_ACCOUNTS", "ADMINISTER_GROUPS", "DELETE_ACCOUNT", "INVITE_USER", "ADMINISTER_SERVICE_ACCOUNTS", "NO_REAUTH_INVITE_USER", "ADMINISTER_USER_GROUPS", "ADMINISTER_CUSTOMER_PREFERENCES", "ROLES_MANAGEMENT", "VIEW_CUSTOMERS", "MODIFY_CUSTOMER", "DELETE_CUSTOMER", "GET_TOKEN_STATUS", "SEND_UI_METRICS", "TOKEN"] # noqa: E501 + allowed_values = ["VIEW_MONITORED_APPLICATION_SERVICE", "VIEW_MONITORED_CLUSTER", "VIEW_MONITORED_CLUSTER_TAGS", "VIEW_DASHBOARDS", "VIEW_DASHBOARDS_TAGS", "VIEW_METRIC_TIMESERIES", "VIEW_HOSTS", "VIEW_HOST_TAGS", "VIEW_AGENT_TAGS", "VIEW_EVENTS", "VIEW_EVENT_TAGS", "VIEW_ALERTS", "VIEW_ALERT_TAGS", "VIEW_REGISTERED_QUERIES", "VIEW_REGISTERED_QUERY_TAGS", "VIEW_MAINTENANCE_WINDOWS", "VIEW_NOTIFICANTS", "VIEW_CUSTOM_METRICS", "VIEW_TARGETS", "VIEW_AGENTS", "VIEW_SSH_CONFIGS", "VIEW_EXTERNAL_SERVICES", "VIEW_EXTERNAL_SERVICES_TAGS", "VIEW_EXTERNAL_LINKS", "VIEW_EXTERNAL_LINK_DIGESTS", "VIEW_EXTERNAL_LINK_TAGS", "VIEW_LOGS", "VIEW_SLOW_QUERY_PAGE", "VIEW_SAVED_SEARCHES", "VIEW_MY_MESSAGES", "VIEW_APPLICATIONS", "VIEW_ANOMALY", "SPY_ON_POINTS", "SPY_ON_ID_CREATIONS", "SPY_UNUSED_METRICS", "VIEW_SAML_SSO_SETTINGS", "MODIFY_MONITORED_APPLICATION_SERVICE", "MODIFY_MONITORED_CLUSTER", "MODIFY_MONITORED_CLUSTER_TAGS", "MODIFY_PRIVATE_TAGS", "MODIFY_CUSTOM_METRICS", "MODIFY_DASHBOARDS", "MODIFY_EVENTS", "MODIFY_EVENT_TAGS", "MODIFY_AGENTS", "MODIFY_AGENT_TAGS", "MODIFY_HOSTS", "MODIFY_HOST_TAGS", "MODIFY_MACHINES", "MODIFY_SSH_CONFIGS", "MODIFY_ALERTS", "MODIFY_ALERT_TAGS", "MODIFY_REGISTERED_QUERIES", "MODIFY_REGISTERED_QUERY_TAGS", "MODIFY_MAINTENANCE_WINDOWS", "MODIFY_NOTIFICANTS", "MODIFY_DASHBOARD_TAGS", "MODIFY_TARGETS", "MODIFY_EXTERNAL_SERVICES", "MODIFY_EXTERNAL_SERVICES_TAGS", "CREATE_EMBEDDED_CHARTS", "MODIFY_METRIC_VISIBILITY", "MODIFY_EXTERNAL_LINKS", "MODIFY_EXTERNAL_LINK_TAGS", "MODIFY_SAVED_SEARCHES", "MODIFY_SAVED_TRACES_SEARCH", "MODIFY_OWN_ONBOARDING_STATE", "MODIFY_APPLICATIONS", "INGESTION_POLICY_MANAGEMENT", "METRICS_POLICY_MANAGEMENT", "MODIFY_SAML_SSO_SETTINGS", "METRIC_INGESTION", "METRIC_INGESTION_LISTENER", "LOGIN", "LOGOUT", "CHANGE_PASSWORD", "SEND_FORGOTTEN_PASSWORD_EMAILS", "CHANGE_USER_PREFERENCE", "CREATE_TOKEN", "REVOKE_ALL_SESSIONS", "REVOKE_ALL_TOKENS", "REVOKE_TOKEN", "GET_TOKENS", "GET_ALL_ACCOUNTS", "GET_ALL_USERS", "GET_ALL_SERVICE_ACCOUNTS", "ADMINISTER_GROUPS", "DELETE_ACCOUNT", "INVITE_USER", "ADMINISTER_SERVICE_ACCOUNTS", "NO_REAUTH_INVITE_USER", "ADMINISTER_USER_GROUPS", "ADMINISTER_ALL_TOKENS", "ADMINISTER_CUSTOMER_PREFERENCES", "ROLES_MANAGEMENT", "VIEW_CUSTOMERS", "MODIFY_CUSTOMER", "DELETE_CUSTOMER", "SEND_UI_METRICS", "TOKEN"] # noqa: E501 if (self._configuration.client_side_validation and not set(response).issubset(set(allowed_values))): # noqa: E501 raise ValueError( diff --git a/wavefront_api_client/models/saved_search.py b/wavefront_api_client/models/saved_search.py index 48aa33c..7d2600d 100644 --- a/wavefront_api_client/models/saved_search.py +++ b/wavefront_api_client/models/saved_search.py @@ -149,7 +149,7 @@ def entity_type(self, entity_type): """ if self._configuration.client_side_validation and entity_type is None: raise ValueError("Invalid value for `entity_type`, must not be `None`") # noqa: E501 - allowed_values = ["DASHBOARD", "ALERT", "MAINTENANCE_WINDOW", "NOTIFICANT", "EVENT", "SOURCE", "EXTERNAL_LINK", "AGENT", "CLOUD_INTEGRATION", "APPLICATION", "REGISTERED_QUERY", "USER", "USER_GROUP", "SERVICE_ACCOUNT", "INGESTION_POLICY", "ROLE"] # noqa: E501 + allowed_values = ["DASHBOARD", "ALERT", "MAINTENANCE_WINDOW", "NOTIFICANT", "EVENT", "SOURCE", "EXTERNAL_LINK", "AGENT", "CLOUD_INTEGRATION", "APPLICATION", "REGISTERED_QUERY", "USER", "USER_GROUP", "SERVICE_ACCOUNT", "INGESTION_POLICY", "ROLE", "TOKEN"] # noqa: E501 if (self._configuration.client_side_validation and entity_type not in allowed_values): raise ValueError( diff --git a/wavefront_api_client/models/search_query.py b/wavefront_api_client/models/search_query.py index 1c1313d..3d8bfed 100644 --- a/wavefront_api_client/models/search_query.py +++ b/wavefront_api_client/models/search_query.py @@ -33,44 +33,77 @@ class SearchQuery(object): and the value is json key in definition. """ swagger_types = { + 'end': 'int', 'key': 'str', 'matching_method': 'str', 'negated': 'bool', + 'start': 'int', 'value': 'str', 'values': 'list[str]' } attribute_map = { + 'end': 'end', 'key': 'key', 'matching_method': 'matchingMethod', 'negated': 'negated', + 'start': 'start', 'value': 'value', 'values': 'values' } - def __init__(self, key=None, matching_method=None, negated=None, value=None, values=None, _configuration=None): # noqa: E501 + def __init__(self, end=None, key=None, matching_method=None, negated=None, start=None, value=None, values=None, _configuration=None): # noqa: E501 """SearchQuery - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._end = None self._key = None self._matching_method = None self._negated = None + self._start = None self._value = None self._values = None self.discriminator = None + if end is not None: + self.end = end self.key = key if matching_method is not None: self.matching_method = matching_method if negated is not None: self.negated = negated + if start is not None: + self.start = start if value is not None: self.value = value if values is not None: self.values = values + @property + def end(self): + """Gets the end of this SearchQuery. # noqa: E501 + + The end point of the range. At least one of start or end points should be available for range search. # noqa: E501 + + :return: The end of this SearchQuery. # noqa: E501 + :rtype: int + """ + return self._end + + @end.setter + def end(self, end): + """Sets the end of this SearchQuery. + + The end point of the range. At least one of start or end points should be available for range search. # noqa: E501 + + :param end: The end of this SearchQuery. # noqa: E501 + :type: int + """ + + self._end = end + @property def key(self): """Gets the key of this SearchQuery. # noqa: E501 @@ -149,6 +182,29 @@ def negated(self, negated): self._negated = negated + @property + def start(self): + """Gets the start of this SearchQuery. # noqa: E501 + + The start point of the range. At least one of start or end points should be available for range search. # noqa: E501 + + :return: The start of this SearchQuery. # noqa: E501 + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this SearchQuery. + + The start point of the range. At least one of start or end points should be available for range search. # noqa: E501 + + :param start: The start of this SearchQuery. # noqa: E501 + :type: int + """ + + self._start = start + @property def value(self): """Gets the value of this SearchQuery. # noqa: E501