diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..e160ba80 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build and Run Unit Tests. + +on: + push: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + check-latest: true + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + python -m pip install --upgrade --editable . + - name: Test + run: python -m unittest discover diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 00000000..fac7f553 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,26 @@ +name: Prepare Package for Publishing on PyPI + +on: + workflow_call: + +jobs: + package: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + check-latest: true + python-version: '3.x' + - name: Install Dependencies + run: | + python -m pip install -U pip setuptools wheel + python -m pip install -U build + - name: Build Package + run: python -m build + - uses: actions/upload-artifact@v3 + with: + name: dist + path: dist + retention-days: 1 diff --git a/.github/workflows/publish_on_merge.yml b/.github/workflows/publish_on_merge.yml new file mode 100644 index 00000000..9c8c6e81 --- /dev/null +++ b/.github/workflows/publish_on_merge.yml @@ -0,0 +1,22 @@ +name: Publish to Test PyPI + +on: + push: + branches: + - master + +jobs: + prepare: + uses: ./.github/workflows/package.yml + publish: + environment: test + needs: prepare + permissions: + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v3 + - name: Publish the Package on TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ diff --git a/.github/workflows/publish_on_release.yml b/.github/workflows/publish_on_release.yml new file mode 100644 index 00000000..64ba1460 --- /dev/null +++ b/.github/workflows/publish_on_release.yml @@ -0,0 +1,21 @@ +name: Publish to PyPI + +on: + release: + types: + - published + +jobs: + prepare: + uses: ./.github/workflows/package.yml + publish: + environment: release + needs: prepare + permissions: + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v3 + - name: Publish the Package + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore new file mode 100644 index 00000000..3bc94771 --- /dev/null +++ b/.swagger-codegen-ignore @@ -0,0 +1,3 @@ +.travis.yml +git_push.sh +requirements.txt diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION new file mode 100644 index 00000000..b0bea146 --- /dev/null +++ b/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.4.32 \ No newline at end of file diff --git a/.swagger-codegen/config.json b/.swagger-codegen/config.json new file mode 100644 index 00000000..1ff549b1 --- /dev/null +++ b/.swagger-codegen/config.json @@ -0,0 +1,7 @@ +{ + "gitRepoId": "python-client", + "gitUserId": "wavefrontHQ", + "packageName": "wavefront_api_client", + "packageUrl": "https://github.com/wavefrontHQ/python-client", + "packageVersion": "2.223.1" +} diff --git a/.swagger-codegen/config.jsone b/.swagger-codegen/config.jsone new file mode 100644 index 00000000..4cf104f7 --- /dev/null +++ b/.swagger-codegen/config.jsone @@ -0,0 +1,7 @@ +{ + "gitRepoId": "python-client", + "gitUserId": "wavefrontHQ", + "packageName": "wavefront_api_client", + "packageUrl": "https://github.com/wavefrontHQ/python-client", + "packageVersion": "2.222.3" +} diff --git a/README.md b/README.md index 81b034a6..794dc4ed 100644 --- a/README.md +++ b/README.md @@ -1,168 +1,228 @@ -# Wavefront API Client +# wavefront-api-client +
The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
-The Wavefront API allows you to perform various operations in Wavefront. The API can be used to automate commonly executed operations such as tagging sources automatically, sending events, and more. +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -This Python package is automatically generated by the Swagger Codegen project. +- API version: v2 +- Package version: 2.223.1 +- Build package: io.swagger.codegen.languages.PythonClientCodegen -- Wavefront API version: 2 +## Requirements. -If you're looking for the V1 API, the API client can be found in the api-v1 branch of this repository. +Python 2.7 and 3.4+ -## Requirements +## Installation & Usage +### pip install -- Python 2.7 or higher -- OpenSSL 1.0.1 or higher (TLSv1.2 support) +If the python package is hosted on Github, you can install directly from Github -**Note ("[Errno 54] Connection reset by peer" error)**: -This is a known issue affecting Python 2.7 on most Macs. macOS ships with an outdated version of the OpenSSL library that only supports deprecated encryption protocols. As a result, Python 2.7 that ships with the system, doesn't support TLSv1.2. During SSL handshake it attempts to use TLSv1 encryption protocol, which is no longer considered secure, and Wavefront servers are terminating the connection, which results in a "Connection reset by peer" error. -To work around this issue, the easiest way would be to install an updated version of Python 2.7 using Homebrew (https://brew.sh), which doesn't rely on the system-provided OpenSSL library, or switch to Python 3. - -**Note:** v2.2.x libraries require a minor code modification to be compatible with v2.1.x and earlier versions due to breaking changes introduced by swagger-codegen. -Before: - -```python -client = wave_api.ApiClient(host=base_url, header_name='Authorization', header_value='Bearer ' + api_key) +```sh +pip install git+https://github.com/wavefrontHQ/python-client.git ``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/wavefrontHQ/python-client.git`) -After: - +Then import the package: ```python -config = wave_api.Configuration() -config.host = base_url -client = wave_api.ApiClient(configuration=config, header_name='Authorization', header_value='Bearer ' + api_key) +import wavefront_api_client ``` -## Setuptools -You can install the bindings via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install -``` +### Setuptools -Or you can install from Github via pip: +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). ```sh -pip install git+https://github.com/wavefronthq/python-client.git +python setup.py install --user ``` +(or `sudo python setup.py install` to install the package for all users) -Or you can install from PyPi via pip: - -```sh -pip install wavefront-api-client -``` - - -To use the bindings, import the package: - +Then import the package: ```python import wavefront_api_client ``` -## Manual Installation -If you do not want to use Setuptools, you can download the latest release. -Then, to use the bindings, import the package: - -```python -import path.to.wavefront_api_client -``` - ## Getting Started -All API endpoints are documented at https://YOUR_INSTANCE.wavefront.com/api-docs/ui/. Below is a simple example demonstrating how to use the library to call the Source API. You can use this example as a starting point. +Please follow the [installation procedure](#installation--usage) and then run the following: ```python -import wavefront_api_client as wave_api - -base_url = 'https://YOUR_INSTANCE.wavefront.com' -api_key = 'YOUR_API_TOKEN' +from __future__ import print_function +import time +import wavefront_api_client +from wavefront_api_client.rest import ApiException +from pprint import pprint -config = wave_api.Configuration() -config.host = base_url -client = wave_api.ApiClient(configuration=config, header_name='Authorization', header_value='Bearer ' + api_key) +# 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' -# instantiate source API -source_api = wave_api.SourceApi(client) -sources = source_api.get_all_source() -print sources -``` +# create an instance of the API class +api_instance = wavefront_api_client.AccessPolicyApi(wavefront_api_client.ApiClient(configuration)) -## Troubleshooting +try: + # Get the access policy + api_response = api_instance.get_access_policy() + pprint(api_response) +except ApiException as e: + print("Exception when calling AccessPolicyApi->get_access_policy: %s\n" % e) -If you encounter a bug or need help, feel free to leave an [issue](https://github.com/wavefrontHQ/python-client/issues) on this GitHub repository. +``` ## Documentation for API Endpoints +All URIs are relative to *https://localhost* + Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AccessPolicyApi* | [**get_access_policy**](docs/AccessPolicyApi.md#get_access_policy) | **GET** /api/v2/accesspolicy | Get the access policy +*AccessPolicyApi* | [**update_access_policy**](docs/AccessPolicyApi.md#update_access_policy) | **PUT** /api/v2/accesspolicy | Update the access policy +*AccessPolicyApi* | [**validate_url**](docs/AccessPolicyApi.md#validate_url) | **GET** /api/v2/accesspolicy/validate | Validate a given url and ip address +*AccountUserAndServiceAccountApi* | [**activate_account**](docs/AccountUserAndServiceAccountApi.md#activate_account) | **POST** /api/v2/account/serviceaccount/{id}/activate | Activates the given service account +*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* | [**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 +*AccountUserAndServiceAccountApi* | [**delete_account**](docs/AccountUserAndServiceAccountApi.md#delete_account) | **DELETE** /api/v2/account/{id} | Deletes an account (user or service account) identified by id +*AccountUserAndServiceAccountApi* | [**delete_multiple_accounts**](docs/AccountUserAndServiceAccountApi.md#delete_multiple_accounts) | **POST** /api/v2/account/deleteAccounts | Deletes multiple accounts (users or service accounts) +*AccountUserAndServiceAccountApi* | [**get_account**](docs/AccountUserAndServiceAccountApi.md#get_account) | **GET** /api/v2/account/{id} | Get a specific account (user or service account) +*AccountUserAndServiceAccountApi* | [**get_account_business_functions**](docs/AccountUserAndServiceAccountApi.md#get_account_business_functions) | **GET** /api/v2/account/{id}/businessFunctions | Returns business functions of a specific account (user or service account). +*AccountUserAndServiceAccountApi* | [**get_all_accounts**](docs/AccountUserAndServiceAccountApi.md#get_all_accounts) | **GET** /api/v2/account | Get all accounts (users and service accounts) of a customer +*AccountUserAndServiceAccountApi* | [**get_all_service_accounts**](docs/AccountUserAndServiceAccountApi.md#get_all_service_accounts) | **GET** /api/v2/account/serviceaccount | Get all service accounts +*AccountUserAndServiceAccountApi* | [**get_all_user_accounts**](docs/AccountUserAndServiceAccountApi.md#get_all_user_accounts) | **GET** /api/v2/account/user | Get all user accounts +*AccountUserAndServiceAccountApi* | [**get_service_account**](docs/AccountUserAndServiceAccountApi.md#get_service_account) | **GET** /api/v2/account/serviceaccount/{id} | Retrieves a service account by identifier +*AccountUserAndServiceAccountApi* | [**get_user_account**](docs/AccountUserAndServiceAccountApi.md#get_user_account) | **GET** /api/v2/account/user/{id} | Retrieves a user by identifier (email address) +*AccountUserAndServiceAccountApi* | [**get_users_with_accounts_permission**](docs/AccountUserAndServiceAccountApi.md#get_users_with_accounts_permission) | **GET** /api/v2/account/user/admin | Get all users with Accounts permission +*AccountUserAndServiceAccountApi* | [**grant_account_permission**](docs/AccountUserAndServiceAccountApi.md#grant_account_permission) | **POST** /api/v2/account/{id}/grant/{permission} | Grants a specific permission to account (user or service account) +*AccountUserAndServiceAccountApi* | [**grant_permission_to_accounts**](docs/AccountUserAndServiceAccountApi.md#grant_permission_to_accounts) | **POST** /api/v2/account/grant/{permission} | Grant a permission to accounts (users or service accounts) +*AccountUserAndServiceAccountApi* | [**invite_user_accounts**](docs/AccountUserAndServiceAccountApi.md#invite_user_accounts) | **POST** /api/v2/account/user/invite | Invite user accounts with given user groups and permissions. +*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* | [**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} | Revoke a permission from 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 +*AccountUserAndServiceAccountApi* | [**update_user_account**](docs/AccountUserAndServiceAccountApi.md#update_user_account) | **PUT** /api/v2/account/user/{id} | Update user with given user groups and permissions. +*AccountUserAndServiceAccountApi* | [**validate_accounts**](docs/AccountUserAndServiceAccountApi.md#validate_accounts) | **POST** /api/v2/account/validateAccounts | Returns valid accounts (users and service accounts), also invalid identifiers from the given list +*AlertApi* | [**add_alert_access**](docs/AlertApi.md#add_alert_access) | **POST** /api/v2/alert/acl/add | Adds the specified ids to the given alerts' ACL *AlertApi* | [**add_alert_tag**](docs/AlertApi.md#add_alert_tag) | **PUT** /api/v2/alert/{id}/tag/{tagValue} | Add a tag to a specific alert +*AlertApi* | [**check_query_type**](docs/AlertApi.md#check_query_type) | **POST** /api/v2/alert/checkQuery | Return the type of provided query. +*AlertApi* | [**clone_alert**](docs/AlertApi.md#clone_alert) | **POST** /api/v2/alert/{id}/clone | Clones the specified alert *AlertApi* | [**create_alert**](docs/AlertApi.md#create_alert) | **POST** /api/v2/alert | Create a specific alert *AlertApi* | [**delete_alert**](docs/AlertApi.md#delete_alert) | **DELETE** /api/v2/alert/{id} | Delete a specific alert *AlertApi* | [**get_alert**](docs/AlertApi.md#get_alert) | **GET** /api/v2/alert/{id} | Get a specific alert +*AlertApi* | [**get_alert_access_control_list**](docs/AlertApi.md#get_alert_access_control_list) | **GET** /api/v2/alert/acl | Get Access Control Lists' union for the specified alerts *AlertApi* | [**get_alert_history**](docs/AlertApi.md#get_alert_history) | **GET** /api/v2/alert/{id}/history | Get the version history of a specific alert *AlertApi* | [**get_alert_tags**](docs/AlertApi.md#get_alert_tags) | **GET** /api/v2/alert/{id}/tag | Get all tags associated with a specific alert *AlertApi* | [**get_alert_version**](docs/AlertApi.md#get_alert_version) | **GET** /api/v2/alert/{id}/history/{version} | Get a specific historical version of a specific alert *AlertApi* | [**get_alerts_summary**](docs/AlertApi.md#get_alerts_summary) | **GET** /api/v2/alert/summary | Count alerts of various statuses for a customer +*AlertApi* | [**get_alerts_with_pagination**](docs/AlertApi.md#get_alerts_with_pagination) | **GET** /api/v2/alert/paginated | Get all alerts for a customer with pagination *AlertApi* | [**get_all_alert**](docs/AlertApi.md#get_all_alert) | **GET** /api/v2/alert | Get all alerts for a customer +*AlertApi* | [**hide_alert**](docs/AlertApi.md#hide_alert) | **POST** /api/v2/alert/{id}/uninstall | Hide a specific integration alert +*AlertApi* | [**preview_alert_notification**](docs/AlertApi.md#preview_alert_notification) | **POST** /api/v2/alert/preview | Get all the notification preview for a specific alert +*AlertApi* | [**remove_alert_access**](docs/AlertApi.md#remove_alert_access) | **POST** /api/v2/alert/acl/remove | Removes the specified ids from the given alerts' ACL *AlertApi* | [**remove_alert_tag**](docs/AlertApi.md#remove_alert_tag) | **DELETE** /api/v2/alert/{id}/tag/{tagValue} | Remove a tag from a specific alert +*AlertApi* | [**set_alert_acl**](docs/AlertApi.md#set_alert_acl) | **PUT** /api/v2/alert/acl/set | Set ACL for the specified alerts *AlertApi* | [**set_alert_tags**](docs/AlertApi.md#set_alert_tags) | **POST** /api/v2/alert/{id}/tag | Set all tags associated with a specific alert *AlertApi* | [**snooze_alert**](docs/AlertApi.md#snooze_alert) | **POST** /api/v2/alert/{id}/snooze | Snooze a specific alert for some number of seconds *AlertApi* | [**undelete_alert**](docs/AlertApi.md#undelete_alert) | **POST** /api/v2/alert/{id}/undelete | Undelete a specific alert +*AlertApi* | [**unhide_alert**](docs/AlertApi.md#unhide_alert) | **POST** /api/v2/alert/{id}/install | Unhide a specific integration alert *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 +*AlertAnalyticsApi* | [**get_active_no_target_alert_summary_details**](docs/AlertAnalyticsApi.md#get_active_no_target_alert_summary_details) | **GET** /api/v2/alert/analytics/summary/alerts/noTarget | Get Active No Target Alert Summary for a customer +*AlertAnalyticsApi* | [**get_alert_analytics_errors_summary**](docs/AlertAnalyticsApi.md#get_alert_analytics_errors_summary) | **GET** /api/v2/alert/analytics/summary/errors | Get Alert Analytics errors summary +*AlertAnalyticsApi* | [**get_alert_analytics_summary**](docs/AlertAnalyticsApi.md#get_alert_analytics_summary) | **GET** /api/v2/alert/analytics/summary | Get Alert Analytics Summary for a customer +*AlertAnalyticsApi* | [**get_failed_alert_summary_details**](docs/AlertAnalyticsApi.md#get_failed_alert_summary_details) | **GET** /api/v2/alert/analytics/summary/alerts/failed | Get Failed Alert Summary Details for a customer +*AlertAnalyticsApi* | [**get_no_data_alert_summary_details**](docs/AlertAnalyticsApi.md#get_no_data_alert_summary_details) | **GET** /api/v2/alert/analytics/summary/alerts/noData | Get No Data Alert Summary for a customer +*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 +*CloudIntegrationApi* | [**create_aws_external_id**](docs/CloudIntegrationApi.md#create_aws_external_id) | **POST** /api/v2/cloudintegration/awsExternalId | Create an external id *CloudIntegrationApi* | [**create_cloud_integration**](docs/CloudIntegrationApi.md#create_cloud_integration) | **POST** /api/v2/cloudintegration | Create a cloud integration +*CloudIntegrationApi* | [**delete_aws_external_id**](docs/CloudIntegrationApi.md#delete_aws_external_id) | **DELETE** /api/v2/cloudintegration/awsExternalId/{id} | DELETEs an external id that was created by Wavefront *CloudIntegrationApi* | [**delete_cloud_integration**](docs/CloudIntegrationApi.md#delete_cloud_integration) | **DELETE** /api/v2/cloudintegration/{id} | Delete a specific cloud integration *CloudIntegrationApi* | [**disable_cloud_integration**](docs/CloudIntegrationApi.md#disable_cloud_integration) | **POST** /api/v2/cloudintegration/{id}/disable | Disable a specific cloud integration *CloudIntegrationApi* | [**enable_cloud_integration**](docs/CloudIntegrationApi.md#enable_cloud_integration) | **POST** /api/v2/cloudintegration/{id}/enable | Enable a specific cloud integration *CloudIntegrationApi* | [**get_all_cloud_integration**](docs/CloudIntegrationApi.md#get_all_cloud_integration) | **GET** /api/v2/cloudintegration | Get all cloud integrations for a customer +*CloudIntegrationApi* | [**get_aws_external_id**](docs/CloudIntegrationApi.md#get_aws_external_id) | **GET** /api/v2/cloudintegration/awsExternalId/{id} | GETs (confirms) a valid external id that was created by Wavefront *CloudIntegrationApi* | [**get_cloud_integration**](docs/CloudIntegrationApi.md#get_cloud_integration) | **GET** /api/v2/cloudintegration/{id} | Get a specific cloud integration *CloudIntegrationApi* | [**undelete_cloud_integration**](docs/CloudIntegrationApi.md#undelete_cloud_integration) | **POST** /api/v2/cloudintegration/{id}/undelete | Undelete a specific cloud integration *CloudIntegrationApi* | [**update_cloud_integration**](docs/CloudIntegrationApi.md#update_cloud_integration) | **PUT** /api/v2/cloudintegration/{id} | Update a specific cloud integration +*DashboardApi* | [**add_dashboard_access**](docs/DashboardApi.md#add_dashboard_access) | **POST** /api/v2/dashboard/acl/add | Adds the specified ids to the given dashboards' ACL *DashboardApi* | [**add_dashboard_tag**](docs/DashboardApi.md#add_dashboard_tag) | **PUT** /api/v2/dashboard/{id}/tag/{tagValue} | Add a tag to a specific dashboard *DashboardApi* | [**create_dashboard**](docs/DashboardApi.md#create_dashboard) | **POST** /api/v2/dashboard | Create a specific dashboard *DashboardApi* | [**delete_dashboard**](docs/DashboardApi.md#delete_dashboard) | **DELETE** /api/v2/dashboard/{id} | Delete a specific dashboard +*DashboardApi* | [**favorite_dashboard**](docs/DashboardApi.md#favorite_dashboard) | **POST** /api/v2/dashboard/{id}/favorite | Mark a dashboard as favorite *DashboardApi* | [**get_all_dashboard**](docs/DashboardApi.md#get_all_dashboard) | **GET** /api/v2/dashboard | Get all dashboards for a customer *DashboardApi* | [**get_dashboard**](docs/DashboardApi.md#get_dashboard) | **GET** /api/v2/dashboard/{id} | Get a specific dashboard +*DashboardApi* | [**get_dashboard_access_control_list**](docs/DashboardApi.md#get_dashboard_access_control_list) | **GET** /api/v2/dashboard/acl | Get list of Access Control Lists for the specified dashboards *DashboardApi* | [**get_dashboard_history**](docs/DashboardApi.md#get_dashboard_history) | **GET** /api/v2/dashboard/{id}/history | Get the version history of a specific dashboard *DashboardApi* | [**get_dashboard_tags**](docs/DashboardApi.md#get_dashboard_tags) | **GET** /api/v2/dashboard/{id}/tag | Get all tags associated with a specific dashboard *DashboardApi* | [**get_dashboard_version**](docs/DashboardApi.md#get_dashboard_version) | **GET** /api/v2/dashboard/{id}/history/{version} | Get a specific version of a specific dashboard +*DashboardApi* | [**remove_dashboard_access**](docs/DashboardApi.md#remove_dashboard_access) | **POST** /api/v2/dashboard/acl/remove | Removes the specified ids from the given dashboards' ACL *DashboardApi* | [**remove_dashboard_tag**](docs/DashboardApi.md#remove_dashboard_tag) | **DELETE** /api/v2/dashboard/{id}/tag/{tagValue} | Remove a tag from a specific dashboard +*DashboardApi* | [**set_dashboard_acl**](docs/DashboardApi.md#set_dashboard_acl) | **PUT** /api/v2/dashboard/acl/set | Set ACL for the specified dashboards *DashboardApi* | [**set_dashboard_tags**](docs/DashboardApi.md#set_dashboard_tags) | **POST** /api/v2/dashboard/{id}/tag | Set all tags associated with a specific dashboard *DashboardApi* | [**undelete_dashboard**](docs/DashboardApi.md#undelete_dashboard) | **POST** /api/v2/dashboard/{id}/undelete | Undelete a specific dashboard +*DashboardApi* | [**unfavorite_dashboard**](docs/DashboardApi.md#unfavorite_dashboard) | **POST** /api/v2/dashboard/{id}/unfavorite | Unmark a dashboard as favorite *DashboardApi* | [**update_dashboard**](docs/DashboardApi.md#update_dashboard) | **PUT** /api/v2/dashboard/{id} | Update a specific dashboard -*DerivedMetricDefinitionApi* | [**add_tag_to_derived_metric_definition**](docs/DerivedMetricDefinitionApi.md#add_tag_to_derived_metric_definition) | **PUT** /api/v2/derivedmetricdefinition/{id}/tag/{tagValue} | Add a tag to a specific Derived Metric Definition -*DerivedMetricDefinitionApi* | [**create_derived_metric_definition**](docs/DerivedMetricDefinitionApi.md#create_derived_metric_definition) | **POST** /api/v2/derivedmetricdefinition | Create a specific derived metric definition -*DerivedMetricDefinitionApi* | [**delete_derived_metric_definition**](docs/DerivedMetricDefinitionApi.md#delete_derived_metric_definition) | **DELETE** /api/v2/derivedmetricdefinition/{id} | Delete a specific derived metric definition -*DerivedMetricDefinitionApi* | [**get_all_derived_metric_definitions**](docs/DerivedMetricDefinitionApi.md#get_all_derived_metric_definitions) | **GET** /api/v2/derivedmetricdefinition | Get all derived metric definitions for a customer -*DerivedMetricDefinitionApi* | [**get_derived_metric_definition_by_version**](docs/DerivedMetricDefinitionApi.md#get_derived_metric_definition_by_version) | **GET** /api/v2/derivedmetricdefinition/{id}/history/{version} | Get a specific historical version of a specific derived metric definition -*DerivedMetricDefinitionApi* | [**get_derived_metric_definition_history**](docs/DerivedMetricDefinitionApi.md#get_derived_metric_definition_history) | **GET** /api/v2/derivedmetricdefinition/{id}/history | Get the version history of a specific derived metric definition -*DerivedMetricDefinitionApi* | [**get_derived_metric_definition_tags**](docs/DerivedMetricDefinitionApi.md#get_derived_metric_definition_tags) | **GET** /api/v2/derivedmetricdefinition/{id}/tag | Get all tags associated with a specific derived metric definition -*DerivedMetricDefinitionApi* | [**get_registered_query**](docs/DerivedMetricDefinitionApi.md#get_registered_query) | **GET** /api/v2/derivedmetricdefinition/{id} | Get a specific registered query -*DerivedMetricDefinitionApi* | [**remove_tag_from_derived_metric_definition**](docs/DerivedMetricDefinitionApi.md#remove_tag_from_derived_metric_definition) | **DELETE** /api/v2/derivedmetricdefinition/{id}/tag/{tagValue} | Remove a tag from a specific Derived Metric Definition -*DerivedMetricDefinitionApi* | [**set_derived_metric_definition_tags**](docs/DerivedMetricDefinitionApi.md#set_derived_metric_definition_tags) | **POST** /api/v2/derivedmetricdefinition/{id}/tag | Set all tags associated with a specific derived metric definition -*DerivedMetricDefinitionApi* | [**undelete_derived_metric_definition**](docs/DerivedMetricDefinitionApi.md#undelete_derived_metric_definition) | **POST** /api/v2/derivedmetricdefinition/{id}/undelete | Undelete a specific derived metric definition -*DerivedMetricDefinitionApi* | [**update_derived_metric_definition**](docs/DerivedMetricDefinitionApi.md#update_derived_metric_definition) | **PUT** /api/v2/derivedmetricdefinition/{id} | Update a specific derived metric definition +*DerivedMetricApi* | [**add_tag_to_derived_metric**](docs/DerivedMetricApi.md#add_tag_to_derived_metric) | **PUT** /api/v2/derivedmetric/{id}/tag/{tagValue} | Add a tag to a specific Derived Metric +*DerivedMetricApi* | [**create_derived_metric**](docs/DerivedMetricApi.md#create_derived_metric) | **POST** /api/v2/derivedmetric | Create a specific derived metric definition +*DerivedMetricApi* | [**delete_derived_metric**](docs/DerivedMetricApi.md#delete_derived_metric) | **DELETE** /api/v2/derivedmetric/{id} | Delete a specific derived metric definition +*DerivedMetricApi* | [**get_all_derived_metrics**](docs/DerivedMetricApi.md#get_all_derived_metrics) | **GET** /api/v2/derivedmetric | Get all derived metric definitions for a customer +*DerivedMetricApi* | [**get_derived_metric**](docs/DerivedMetricApi.md#get_derived_metric) | **GET** /api/v2/derivedmetric/{id} | Get a specific registered query +*DerivedMetricApi* | [**get_derived_metric_by_version**](docs/DerivedMetricApi.md#get_derived_metric_by_version) | **GET** /api/v2/derivedmetric/{id}/history/{version} | Get a specific historical version of a specific derived metric definition +*DerivedMetricApi* | [**get_derived_metric_history**](docs/DerivedMetricApi.md#get_derived_metric_history) | **GET** /api/v2/derivedmetric/{id}/history | Get the version history of a specific derived metric definition +*DerivedMetricApi* | [**get_derived_metric_tags**](docs/DerivedMetricApi.md#get_derived_metric_tags) | **GET** /api/v2/derivedmetric/{id}/tag | Get all tags associated with a specific derived metric definition +*DerivedMetricApi* | [**remove_tag_from_derived_metric**](docs/DerivedMetricApi.md#remove_tag_from_derived_metric) | **DELETE** /api/v2/derivedmetric/{id}/tag/{tagValue} | Remove a tag from a specific Derived Metric +*DerivedMetricApi* | [**set_derived_metric_tags**](docs/DerivedMetricApi.md#set_derived_metric_tags) | **POST** /api/v2/derivedmetric/{id}/tag | Set all tags associated with a specific derived metric definition +*DerivedMetricApi* | [**undelete_derived_metric**](docs/DerivedMetricApi.md#undelete_derived_metric) | **POST** /api/v2/derivedmetric/{id}/undelete | Undelete a specific derived metric definition +*DerivedMetricApi* | [**update_derived_metric**](docs/DerivedMetricApi.md#update_derived_metric) | **PUT** /api/v2/derivedmetric/{id} | Update a specific derived metric definition +*DirectIngestionApi* | [**report**](docs/DirectIngestionApi.md#report) | **POST** /report | Directly ingest data/data stream with specified format *EventApi* | [**add_event_tag**](docs/EventApi.md#add_event_tag) | **PUT** /api/v2/event/{id}/tag/{tagValue} | Add a tag to a specific event -*EventApi* | [**close_event**](docs/EventApi.md#close_event) | **POST** /api/v2/event/{id}/close | Close a specific event +*EventApi* | [**close_user_event**](docs/EventApi.md#close_user_event) | **POST** /api/v2/event/{id}/close | Close a specific event *EventApi* | [**create_event**](docs/EventApi.md#create_event) | **POST** /api/v2/event | Create a specific event -*EventApi* | [**delete_event**](docs/EventApi.md#delete_event) | **DELETE** /api/v2/event/{id} | Delete a specific event +*EventApi* | [**delete_user_event**](docs/EventApi.md#delete_user_event) | **DELETE** /api/v2/event/{id} | Delete a specific user event +*EventApi* | [**get_alert_event_queries_slug**](docs/EventApi.md#get_alert_event_queries_slug) | **GET** /api/v2/event/{id}/alertQueriesSlug | If the specified event is associated with an alert, returns a slug encoding the queries having to do with that alert firing or resolution +*EventApi* | [**get_alert_firing_details**](docs/EventApi.md#get_alert_firing_details) | **GET** /api/v2/event/{id}/alertFiringDetails | Return details of a particular alert firing, including all the series that fired during the referred alert firing +*EventApi* | [**get_alert_firing_events**](docs/EventApi.md#get_alert_firing_events) | **GET** /api/v2/event/alertFirings | Get firings events of an alert within a time range *EventApi* | [**get_all_events_with_time_range**](docs/EventApi.md#get_all_events_with_time_range) | **GET** /api/v2/event | List all the events for a customer within a time range *EventApi* | [**get_event**](docs/EventApi.md#get_event) | **GET** /api/v2/event/{id} | Get a specific event *EventApi* | [**get_event_tags**](docs/EventApi.md#get_event_tags) | **GET** /api/v2/event/{id}/tag | Get all tags associated with a specific event +*EventApi* | [**get_related_events_with_time_span**](docs/EventApi.md#get_related_events_with_time_span) | **GET** /api/v2/event/{id}/events | List all related events for a specific firing event with a time span of one hour *EventApi* | [**remove_event_tag**](docs/EventApi.md#remove_event_tag) | **DELETE** /api/v2/event/{id}/tag/{tagValue} | Remove a tag from a specific event *EventApi* | [**set_event_tags**](docs/EventApi.md#set_event_tags) | **POST** /api/v2/event/{id}/tag | Set all tags associated with a specific event -*EventApi* | [**update_event**](docs/EventApi.md#update_event) | **PUT** /api/v2/event/{id} | Update a specific event +*EventApi* | [**update_user_event**](docs/EventApi.md#update_user_event) | **PUT** /api/v2/event/{id} | Update a specific user event. *ExternalLinkApi* | [**create_external_link**](docs/ExternalLinkApi.md#create_external_link) | **POST** /api/v2/extlink | Create a specific external link *ExternalLinkApi* | [**delete_external_link**](docs/ExternalLinkApi.md#delete_external_link) | **DELETE** /api/v2/extlink/{id} | Delete a specific external link *ExternalLinkApi* | [**get_all_external_link**](docs/ExternalLinkApi.md#get_all_external_link) | **GET** /api/v2/extlink | Get all external links for a customer *ExternalLinkApi* | [**get_external_link**](docs/ExternalLinkApi.md#get_external_link) | **GET** /api/v2/extlink/{id} | Get a specific external link *ExternalLinkApi* | [**update_external_link**](docs/ExternalLinkApi.md#update_external_link) | **PUT** /api/v2/extlink/{id} | Update a specific external link -*IntegrationApi* | [**get_all_integration**](docs/IntegrationApi.md#get_all_integration) | **GET** /api/v2/integration | Gets a flat list of all Wavefront integrations available, along with their status -*IntegrationApi* | [**get_all_integration_in_manifests**](docs/IntegrationApi.md#get_all_integration_in_manifests) | **GET** /api/v2/integration/manifests | Gets all Wavefront integrations as structured in their integration manifests, along with their status -*IntegrationApi* | [**get_all_integration_statuses**](docs/IntegrationApi.md#get_all_integration_statuses) | **GET** /api/v2/integration/status | Gets the status of all Wavefront integrations -*IntegrationApi* | [**get_integration**](docs/IntegrationApi.md#get_integration) | **GET** /api/v2/integration/{id} | Gets a single Wavefront integration by its id, along with its status -*IntegrationApi* | [**get_integration_status**](docs/IntegrationApi.md#get_integration_status) | **GET** /api/v2/integration/{id}/status | Gets the status of a single Wavefront integration -*IntegrationApi* | [**install_integration**](docs/IntegrationApi.md#install_integration) | **POST** /api/v2/integration/{id}/install | Installs a Wavefront integration -*IntegrationApi* | [**uninstall_integration**](docs/IntegrationApi.md#uninstall_integration) | **POST** /api/v2/integration/{id}/uninstall | Uninstalls a Wavefront integration +*IngestionSpyApi* | [**spy_on_delta_counters**](docs/IngestionSpyApi.md#spy_on_delta_counters) | **GET** /api/spy/deltas | Gets new delta counters that are added to existing time series. +*IngestionSpyApi* | [**spy_on_ephemeral_points**](docs/IngestionSpyApi.md#spy_on_ephemeral_points) | **GET** /api/spy/ephemeral | Gets a sampling of new ephemeral metric data points that are added to existing time series. +*IngestionSpyApi* | [**spy_on_histograms**](docs/IngestionSpyApi.md#spy_on_histograms) | **GET** /api/spy/histograms | Gets new histograms that are added to existing time series. +*IngestionSpyApi* | [**spy_on_id_creations**](docs/IngestionSpyApi.md#spy_on_id_creations) | **GET** /api/spy/ids | Gets newly allocated IDs that correspond to new metric names, source names, point tags, or span tags. A new ID generally indicates that a new time series has been introduced. +*IngestionSpyApi* | [**spy_on_points**](docs/IngestionSpyApi.md#spy_on_points) | **GET** /api/spy/points | Gets a sampling of new metric data points that are added to existing time series. +*IngestionSpyApi* | [**spy_on_spans**](docs/IngestionSpyApi.md#spy_on_spans) | **GET** /api/spy/spans | Gets new spans with existing source names and span tags. +*IntegrationApi* | [**get_all_integration**](docs/IntegrationApi.md#get_all_integration) | **GET** /api/v2/integration | Gets a flat list of all Tanzu Observability integrations available, along with their status +*IntegrationApi* | [**get_all_integration_in_manifests**](docs/IntegrationApi.md#get_all_integration_in_manifests) | **GET** /api/v2/integration/manifests | Gets all Tanzu Observability integrations as structured in their integration manifests, along with their status and content +*IntegrationApi* | [**get_all_integration_in_manifests_min**](docs/IntegrationApi.md#get_all_integration_in_manifests_min) | **GET** /api/v2/integration/manifests/min | Gets all Tanzu Observability integrations as structured in their integration manifests. +*IntegrationApi* | [**get_all_integration_statuses**](docs/IntegrationApi.md#get_all_integration_statuses) | **GET** /api/v2/integration/status | Gets the status of all Tanzu Observability integrations +*IntegrationApi* | [**get_installed_integration**](docs/IntegrationApi.md#get_installed_integration) | **GET** /api/v2/integration/installed | Gets a flat list of all Integrations that are installed, along with their status +*IntegrationApi* | [**get_integration**](docs/IntegrationApi.md#get_integration) | **GET** /api/v2/integration/{id} | Gets a single Tanzu Observability integration by its id, along with its status +*IntegrationApi* | [**get_integration_status**](docs/IntegrationApi.md#get_integration_status) | **GET** /api/v2/integration/{id}/status | Gets the status of a single Tanzu Observability integration +*IntegrationApi* | [**install_all_integration_alerts**](docs/IntegrationApi.md#install_all_integration_alerts) | **POST** /api/v2/integration/{id}/install-all-alerts | Enable all alerts associated with this integration +*IntegrationApi* | [**install_integration**](docs/IntegrationApi.md#install_integration) | **POST** /api/v2/integration/{id}/install | Installs a Tanzu Observability integration +*IntegrationApi* | [**uninstall_all_integration_alerts**](docs/IntegrationApi.md#uninstall_all_integration_alerts) | **POST** /api/v2/integration/{id}/uninstall-all-alerts | Disable all alerts associated with this integration +*IntegrationApi* | [**uninstall_integration**](docs/IntegrationApi.md#uninstall_integration) | **POST** /api/v2/integration/{id}/uninstall | Uninstalls a Tanzu Observability integration *MaintenanceWindowApi* | [**create_maintenance_window**](docs/MaintenanceWindowApi.md#create_maintenance_window) | **POST** /api/v2/maintenancewindow | Create a maintenance window *MaintenanceWindowApi* | [**delete_maintenance_window**](docs/MaintenanceWindowApi.md#delete_maintenance_window) | **DELETE** /api/v2/maintenancewindow/{id} | Delete a specific maintenance window *MaintenanceWindowApi* | [**get_all_maintenance_window**](docs/MaintenanceWindowApi.md#get_all_maintenance_window) | **GET** /api/v2/maintenancewindow | Get all maintenance windows for a customer @@ -171,6 +231,16 @@ Class | Method | HTTP request | Description *MessageApi* | [**user_get_messages**](docs/MessageApi.md#user_get_messages) | **GET** /api/v2/message | Gets messages applicable to the current user, i.e. within time range and distribution scope *MessageApi* | [**user_read_message**](docs/MessageApi.md#user_read_message) | **POST** /api/v2/message/{id}/read | Mark a specific message as read *MetricApi* | [**get_metric_details**](docs/MetricApi.md#get_metric_details) | **GET** /api/v2/chart/metric/detail | Get more details on a metric, including reporting sources and approximate last time reported +*MonitoredApplicationApi* | [**get_all_applications**](docs/MonitoredApplicationApi.md#get_all_applications) | **GET** /api/v2/monitoredapplication | Get all monitored applications +*MonitoredApplicationApi* | [**get_application**](docs/MonitoredApplicationApi.md#get_application) | **GET** /api/v2/monitoredapplication/{application} | Get a specific application +*MonitoredApplicationApi* | [**update_service**](docs/MonitoredApplicationApi.md#update_service) | **PUT** /api/v2/monitoredapplication/{application} | Update a specific service +*MonitoredServiceApi* | [**batch_update**](docs/MonitoredServiceApi.md#batch_update) | **PUT** /api/v2/monitoredservice/services | Update multiple applications and services in a batch. Batch size is limited to 100. +*MonitoredServiceApi* | [**get_all_components**](docs/MonitoredServiceApi.md#get_all_components) | **GET** /api/v2/monitoredservice/components | Get all monitored services with components +*MonitoredServiceApi* | [**get_all_services**](docs/MonitoredServiceApi.md#get_all_services) | **GET** /api/v2/monitoredservice | Get all monitored services +*MonitoredServiceApi* | [**get_component**](docs/MonitoredServiceApi.md#get_component) | **GET** /api/v2/monitoredservice/{application}/{service}/{component} | Get a specific application +*MonitoredServiceApi* | [**get_service**](docs/MonitoredServiceApi.md#get_service) | **GET** /api/v2/monitoredservice/{application}/{service} | Get a specific application +*MonitoredServiceApi* | [**get_services_of_application**](docs/MonitoredServiceApi.md#get_services_of_application) | **GET** /api/v2/monitoredservice/{application} | Get services for a specific application +*MonitoredServiceApi* | [**update_service**](docs/MonitoredServiceApi.md#update_service) | **PUT** /api/v2/monitoredservice/{application}/{service} | Update a specific service *NotificantApi* | [**create_notificant**](docs/NotificantApi.md#create_notificant) | **POST** /api/v2/notificant | Create a notification target *NotificantApi* | [**delete_notificant**](docs/NotificantApi.md#delete_notificant) | **DELETE** /api/v2/notificant/{id} | Delete a specific notification target *NotificantApi* | [**get_all_notificants**](docs/NotificantApi.md#get_all_notificants) | **GET** /api/v2/notificant | Get all notification targets for a customer @@ -180,20 +250,81 @@ Class | Method | HTTP request | Description *ProxyApi* | [**delete_proxy**](docs/ProxyApi.md#delete_proxy) | **DELETE** /api/v2/proxy/{id} | Delete a specific proxy *ProxyApi* | [**get_all_proxy**](docs/ProxyApi.md#get_all_proxy) | **GET** /api/v2/proxy | Get all proxies for a customer *ProxyApi* | [**get_proxy**](docs/ProxyApi.md#get_proxy) | **GET** /api/v2/proxy/{id} | Get a specific proxy +*ProxyApi* | [**get_proxy_config**](docs/ProxyApi.md#get_proxy_config) | **GET** /api/v2/proxy/{id}/config | Get a specific proxy config +*ProxyApi* | [**get_proxy_preprocessor_rules**](docs/ProxyApi.md#get_proxy_preprocessor_rules) | **GET** /api/v2/proxy/{id}/preprocessorRules | Get a specific proxy preprocessor rules *ProxyApi* | [**undelete_proxy**](docs/ProxyApi.md#undelete_proxy) | **POST** /api/v2/proxy/{id}/undelete | Undelete a specific proxy *ProxyApi* | [**update_proxy**](docs/ProxyApi.md#update_proxy) | **PUT** /api/v2/proxy/{id} | Update the name of a specific proxy *QueryApi* | [**query_api**](docs/QueryApi.md#query_api) | **GET** /api/v2/chart/api | Perform a charting query against Wavefront servers that returns the appropriate points in the specified time window and granularity *QueryApi* | [**query_raw**](docs/QueryApi.md#query_raw) | **GET** /api/v2/chart/raw | Perform a raw data query against Wavefront servers that returns second granularity points grouped by tags +*RecentAppMapSearchApi* | [**create_recent_app_map_search**](docs/RecentAppMapSearchApi.md#create_recent_app_map_search) | **POST** /api/v2/recentappmapsearch | Create a search +*RecentAppMapSearchApi* | [**get_all_recent_app_map_searches**](docs/RecentAppMapSearchApi.md#get_all_recent_app_map_searches) | **GET** /api/v2/recentappmapsearch | Get all searches for a user +*RecentAppMapSearchApi* | [**get_recent_app_map_search**](docs/RecentAppMapSearchApi.md#get_recent_app_map_search) | **GET** /api/v2/recentappmapsearch/{id} | Get a specific search +*RecentTracesSearchApi* | [**create_recent_traces_search**](docs/RecentTracesSearchApi.md#create_recent_traces_search) | **POST** /api/v2/recenttracessearch | Create a search +*RecentTracesSearchApi* | [**get_all_recent_traces_searches**](docs/RecentTracesSearchApi.md#get_all_recent_traces_searches) | **GET** /api/v2/recenttracessearch | Get all searches for a user +*RecentTracesSearchApi* | [**get_recent_traces_search**](docs/RecentTracesSearchApi.md#get_recent_traces_search) | **GET** /api/v2/recenttracessearch/{id} | Get a specific search +*RoleApi* | [**add_assignees**](docs/RoleApi.md#add_assignees) | **POST** /api/v2/role/{id}/addAssignees | Add accounts and groups to a role +*RoleApi* | [**create_role**](docs/RoleApi.md#create_role) | **POST** /api/v2/role | Create a role +*RoleApi* | [**delete_role**](docs/RoleApi.md#delete_role) | **DELETE** /api/v2/role/{id} | Delete a role by ID +*RoleApi* | [**get_all_roles**](docs/RoleApi.md#get_all_roles) | **GET** /api/v2/role | Get all roles +*RoleApi* | [**get_role**](docs/RoleApi.md#get_role) | **GET** /api/v2/role/{id} | Get a role by ID +*RoleApi* | [**grant_permission_to_roles**](docs/RoleApi.md#grant_permission_to_roles) | **POST** /api/v2/role/grant/{permission} | Grant a permission to roles +*RoleApi* | [**remove_assignees**](docs/RoleApi.md#remove_assignees) | **POST** /api/v2/role/{id}/removeAssignees | Remove accounts and groups from a role +*RoleApi* | [**revoke_permission_from_roles**](docs/RoleApi.md#revoke_permission_from_roles) | **POST** /api/v2/role/revoke/{permission} | Revoke a permission from roles +*RoleApi* | [**update_role**](docs/RoleApi.md#update_role) | **PUT** /api/v2/role/{id} | Update a role by ID +*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 +*SavedAppMapSearchApi* | [**get_all_saved_app_map_searches_for_user**](docs/SavedAppMapSearchApi.md#get_all_saved_app_map_searches_for_user) | **GET** /api/v2/savedappmapsearch/owned | Get all searches for a user +*SavedAppMapSearchApi* | [**get_saved_app_map_search**](docs/SavedAppMapSearchApi.md#get_saved_app_map_search) | **GET** /api/v2/savedappmapsearch/{id} | Get a specific search +*SavedAppMapSearchApi* | [**update_saved_app_map_search**](docs/SavedAppMapSearchApi.md#update_saved_app_map_search) | **PUT** /api/v2/savedappmapsearch/{id} | Update a search +*SavedAppMapSearchApi* | [**update_saved_app_map_search_for_user**](docs/SavedAppMapSearchApi.md#update_saved_app_map_search_for_user) | **PUT** /api/v2/savedappmapsearch/owned/{id} | Update a search belonging to the user +*SavedAppMapSearchGroupApi* | [**add_saved_app_map_search_to_group**](docs/SavedAppMapSearchGroupApi.md#add_saved_app_map_search_to_group) | **POST** /api/v2/savedappmapsearchgroup/{id}/addSearch/{searchId} | Add a search to a search group +*SavedAppMapSearchGroupApi* | [**create_saved_app_map_search_group**](docs/SavedAppMapSearchGroupApi.md#create_saved_app_map_search_group) | **POST** /api/v2/savedappmapsearchgroup | Create a search group +*SavedAppMapSearchGroupApi* | [**delete_saved_app_map_search_group**](docs/SavedAppMapSearchGroupApi.md#delete_saved_app_map_search_group) | **DELETE** /api/v2/savedappmapsearchgroup/{id} | Delete a search group +*SavedAppMapSearchGroupApi* | [**get_all_saved_app_map_search_group**](docs/SavedAppMapSearchGroupApi.md#get_all_saved_app_map_search_group) | **GET** /api/v2/savedappmapsearchgroup | Get all search groups for a user +*SavedAppMapSearchGroupApi* | [**get_saved_app_map_search_group**](docs/SavedAppMapSearchGroupApi.md#get_saved_app_map_search_group) | **GET** /api/v2/savedappmapsearchgroup/{id} | Get a specific search group +*SavedAppMapSearchGroupApi* | [**get_saved_app_map_searches_for_group**](docs/SavedAppMapSearchGroupApi.md#get_saved_app_map_searches_for_group) | **GET** /api/v2/savedappmapsearchgroup/{id}/searches | Get all searches for a search group +*SavedAppMapSearchGroupApi* | [**remove_saved_app_map_search_from_group**](docs/SavedAppMapSearchGroupApi.md#remove_saved_app_map_search_from_group) | **POST** /api/v2/savedappmapsearchgroup/{id}/removeSearch/{searchId} | Remove a search from a search group +*SavedAppMapSearchGroupApi* | [**update_saved_app_map_search_group**](docs/SavedAppMapSearchGroupApi.md#update_saved_app_map_search_group) | **PUT** /api/v2/savedappmapsearchgroup/{id} | Update a search group *SavedSearchApi* | [**create_saved_search**](docs/SavedSearchApi.md#create_saved_search) | **POST** /api/v2/savedsearch | Create a saved search *SavedSearchApi* | [**delete_saved_search**](docs/SavedSearchApi.md#delete_saved_search) | **DELETE** /api/v2/savedsearch/{id} | Delete a specific saved search *SavedSearchApi* | [**get_all_entity_type_saved_searches**](docs/SavedSearchApi.md#get_all_entity_type_saved_searches) | **GET** /api/v2/savedsearch/type/{entitytype} | Get all saved searches for a specific entity type for a user *SavedSearchApi* | [**get_all_saved_searches**](docs/SavedSearchApi.md#get_all_saved_searches) | **GET** /api/v2/savedsearch | Get all saved searches for a user *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 +*SavedTracesSearchApi* | [**get_all_saved_traces_searches_for_user**](docs/SavedTracesSearchApi.md#get_all_saved_traces_searches_for_user) | **GET** /api/v2/savedtracessearch/owned | Get all searches for a user +*SavedTracesSearchApi* | [**get_saved_traces_search**](docs/SavedTracesSearchApi.md#get_saved_traces_search) | **GET** /api/v2/savedtracessearch/{id} | Get a specific search +*SavedTracesSearchApi* | [**update_saved_traces_search**](docs/SavedTracesSearchApi.md#update_saved_traces_search) | **PUT** /api/v2/savedtracessearch/{id} | Update a search +*SavedTracesSearchApi* | [**update_saved_traces_search_for_user**](docs/SavedTracesSearchApi.md#update_saved_traces_search_for_user) | **PUT** /api/v2/savedtracessearch/owned/{id} | Update a search belonging to the user +*SavedTracesSearchGroupApi* | [**add_saved_traces_search_to_group**](docs/SavedTracesSearchGroupApi.md#add_saved_traces_search_to_group) | **POST** /api/v2/savedtracessearchgroup/{id}/addSearch/{searchId} | Add a search to a search group +*SavedTracesSearchGroupApi* | [**create_saved_traces_search_group**](docs/SavedTracesSearchGroupApi.md#create_saved_traces_search_group) | **POST** /api/v2/savedtracessearchgroup | Create a search group +*SavedTracesSearchGroupApi* | [**delete_saved_traces_search_group**](docs/SavedTracesSearchGroupApi.md#delete_saved_traces_search_group) | **DELETE** /api/v2/savedtracessearchgroup/{id} | Delete a search group +*SavedTracesSearchGroupApi* | [**get_all_saved_traces_search_group**](docs/SavedTracesSearchGroupApi.md#get_all_saved_traces_search_group) | **GET** /api/v2/savedtracessearchgroup | Get all search groups for a user +*SavedTracesSearchGroupApi* | [**get_saved_traces_search_group**](docs/SavedTracesSearchGroupApi.md#get_saved_traces_search_group) | **GET** /api/v2/savedtracessearchgroup/{id} | Get a specific search group +*SavedTracesSearchGroupApi* | [**get_saved_traces_searches_for_group**](docs/SavedTracesSearchGroupApi.md#get_saved_traces_searches_for_group) | **GET** /api/v2/savedtracessearchgroup/{id}/searches | Get all searches for a search group +*SavedTracesSearchGroupApi* | [**remove_saved_traces_search_from_group**](docs/SavedTracesSearchGroupApi.md#remove_saved_traces_search_from_group) | **POST** /api/v2/savedtracessearchgroup/{id}/removeSearch/{searchId} | Remove a search from a search group +*SavedTracesSearchGroupApi* | [**update_saved_traces_search_group**](docs/SavedTracesSearchGroupApi.md#update_saved_traces_search_group) | **PUT** /api/v2/savedtracessearchgroup/{id} | Update a search group +*SearchApi* | [**search_account_entities**](docs/SearchApi.md#search_account_entities) | **POST** /api/v2/search/account | Search over a customer's accounts +*SearchApi* | [**search_account_for_facet**](docs/SearchApi.md#search_account_for_facet) | **POST** /api/v2/search/account/{facet} | Lists the values of a specific facet over the customer's accounts +*SearchApi* | [**search_account_for_facets**](docs/SearchApi.md#search_account_for_facets) | **POST** /api/v2/search/account/facets | Lists the values of one or more facets over the customer's accounts *SearchApi* | [**search_alert_deleted_entities**](docs/SearchApi.md#search_alert_deleted_entities) | **POST** /api/v2/search/alert/deleted | Search over a customer's deleted alerts *SearchApi* | [**search_alert_deleted_for_facet**](docs/SearchApi.md#search_alert_deleted_for_facet) | **POST** /api/v2/search/alert/deleted/{facet} | Lists the values of a specific facet over the customer's deleted alerts *SearchApi* | [**search_alert_deleted_for_facets**](docs/SearchApi.md#search_alert_deleted_for_facets) | **POST** /api/v2/search/alert/deleted/facets | Lists the values of one or more facets over the customer's deleted alerts *SearchApi* | [**search_alert_entities**](docs/SearchApi.md#search_alert_entities) | **POST** /api/v2/search/alert | Search over a customer's non-deleted alerts +*SearchApi* | [**search_alert_execution_summary_entities**](docs/SearchApi.md#search_alert_execution_summary_entities) | **POST** /api/v2/search/alert-analytics-summary | Search over a customer's alert executions summaries +*SearchApi* | [**search_alert_execution_summary_for_facet**](docs/SearchApi.md#search_alert_execution_summary_for_facet) | **POST** /api/v2/search/alert-analytics-summary/{facet} | Lists the values of a specific facet over the customer's alert executions summaries +*SearchApi* | [**search_alert_execution_summary_for_facets**](docs/SearchApi.md#search_alert_execution_summary_for_facets) | **POST** /api/v2/search/alert-analytics-summary/facets | Lists the values of one or more facets over the customer's alert executions summaries *SearchApi* | [**search_alert_for_facet**](docs/SearchApi.md#search_alert_for_facet) | **POST** /api/v2/search/alert/{facet} | Lists the values of a specific facet over the customer's non-deleted alerts *SearchApi* | [**search_alert_for_facets**](docs/SearchApi.md#search_alert_for_facets) | **POST** /api/v2/search/alert/facets | Lists the values of one or more facets over the customer's non-deleted alerts *SearchApi* | [**search_cloud_integration_deleted_entities**](docs/SearchApi.md#search_cloud_integration_deleted_entities) | **POST** /api/v2/search/cloudintegration/deleted | Search over a customer's deleted cloud integrations @@ -211,9 +342,18 @@ Class | Method | HTTP request | Description *SearchApi* | [**search_external_link_entities**](docs/SearchApi.md#search_external_link_entities) | **POST** /api/v2/search/extlink | Search over a customer's external links *SearchApi* | [**search_external_links_for_facet**](docs/SearchApi.md#search_external_links_for_facet) | **POST** /api/v2/search/extlink/{facet} | Lists the values of a specific facet over the customer's external links *SearchApi* | [**search_external_links_for_facets**](docs/SearchApi.md#search_external_links_for_facets) | **POST** /api/v2/search/extlink/facets | Lists the values of one or more facets over the customer's external links +*SearchApi* | [**search_ingestion_policy_entities**](docs/SearchApi.md#search_ingestion_policy_entities) | **POST** /api/v2/search/ingestionpolicy | Search over a customer's ingestion policies +*SearchApi* | [**search_ingestion_policy_for_facet**](docs/SearchApi.md#search_ingestion_policy_for_facet) | **POST** /api/v2/search/ingestionpolicy/{facet} | Lists the values of a specific facet over the customer's ingestion policies +*SearchApi* | [**search_ingestion_policy_for_facets**](docs/SearchApi.md#search_ingestion_policy_for_facets) | **POST** /api/v2/search/ingestionpolicy/facets | Lists the values of one or more facets over the customer's ingestion policies *SearchApi* | [**search_maintenance_window_entities**](docs/SearchApi.md#search_maintenance_window_entities) | **POST** /api/v2/search/maintenancewindow | Search over a customer's maintenance windows *SearchApi* | [**search_maintenance_window_for_facet**](docs/SearchApi.md#search_maintenance_window_for_facet) | **POST** /api/v2/search/maintenancewindow/{facet} | Lists the values of a specific facet over the customer's maintenance windows *SearchApi* | [**search_maintenance_window_for_facets**](docs/SearchApi.md#search_maintenance_window_for_facets) | **POST** /api/v2/search/maintenancewindow/facets | Lists the values of one or more facets over the customer's maintenance windows +*SearchApi* | [**search_monitored_application_entities**](docs/SearchApi.md#search_monitored_application_entities) | **POST** /api/v2/search/monitoredapplication | Search over all the customer's non-deleted monitored applications +*SearchApi* | [**search_monitored_application_for_facet**](docs/SearchApi.md#search_monitored_application_for_facet) | **POST** /api/v2/search/monitoredapplication/{facet} | Lists the values of a specific facet over the customer's non-deleted monitored application +*SearchApi* | [**search_monitored_application_for_facets**](docs/SearchApi.md#search_monitored_application_for_facets) | **POST** /api/v2/search/monitoredapplication/facets | Lists the values of one or more facets over the customer's non-deleted monitored clusters +*SearchApi* | [**search_monitored_service_entities**](docs/SearchApi.md#search_monitored_service_entities) | **POST** /api/v2/search/monitoredservice | Search over all the customer's non-deleted monitored services +*SearchApi* | [**search_monitored_service_for_facet**](docs/SearchApi.md#search_monitored_service_for_facet) | **POST** /api/v2/search/monitoredservice/{facet} | Lists the values of a specific facet over the customer's non-deleted monitored application +*SearchApi* | [**search_monitored_service_for_facets**](docs/SearchApi.md#search_monitored_service_for_facets) | **POST** /api/v2/search/monitoredservice/facets | Lists the values of one or more facets over the customer's non-deleted monitored clusters *SearchApi* | [**search_notficant_for_facets**](docs/SearchApi.md#search_notficant_for_facets) | **POST** /api/v2/search/notificant/facets | Lists the values of one or more facets over the customer's notificants *SearchApi* | [**search_notificant_entities**](docs/SearchApi.md#search_notificant_entities) | **POST** /api/v2/search/notificant | Search over a customer's notificants *SearchApi* | [**search_notificant_for_facet**](docs/SearchApi.md#search_notificant_for_facet) | **POST** /api/v2/search/notificant/{facet} | Lists the values of a specific facet over the customer's notificants @@ -223,24 +363,60 @@ Class | Method | HTTP request | Description *SearchApi* | [**search_proxy_entities**](docs/SearchApi.md#search_proxy_entities) | **POST** /api/v2/search/proxy | Search over a customer's non-deleted proxies *SearchApi* | [**search_proxy_for_facet**](docs/SearchApi.md#search_proxy_for_facet) | **POST** /api/v2/search/proxy/{facet} | Lists the values of a specific facet over the customer's non-deleted proxies *SearchApi* | [**search_proxy_for_facets**](docs/SearchApi.md#search_proxy_for_facets) | **POST** /api/v2/search/proxy/facets | Lists the values of one or more facets over the customer's non-deleted proxies -*SearchApi* | [**search_registered_query_deleted_entities**](docs/SearchApi.md#search_registered_query_deleted_entities) | **POST** /api/v2/search/derivedmetricdefinition/deleted | Search over a customer's deleted derived metric definitions -*SearchApi* | [**search_registered_query_deleted_for_facet**](docs/SearchApi.md#search_registered_query_deleted_for_facet) | **POST** /api/v2/search/derivedmetricdefinition/deleted/{facet} | Lists the values of a specific facet over the customer's deleted derived metric definitions -*SearchApi* | [**search_registered_query_deleted_for_facets**](docs/SearchApi.md#search_registered_query_deleted_for_facets) | **POST** /api/v2/search/derivedmetricdefinition/deleted/facets | Lists the values of one or more facets over the customer's deleted derived metric definitions -*SearchApi* | [**search_registered_query_entities**](docs/SearchApi.md#search_registered_query_entities) | **POST** /api/v2/search/derivedmetricdefinition | Search over a customer's non-deleted derived metric definitions -*SearchApi* | [**search_registered_query_for_facet**](docs/SearchApi.md#search_registered_query_for_facet) | **POST** /api/v2/search/derivedmetricdefinition/{facet} | Lists the values of a specific facet over the customer's non-deleted derived metric definitions -*SearchApi* | [**search_registered_query_for_facets**](docs/SearchApi.md#search_registered_query_for_facets) | **POST** /api/v2/search/derivedmetricdefinition/facets | Lists the values of one or more facets over the customer's non-deleted derived metric definition +*SearchApi* | [**search_registered_query_deleted_entities**](docs/SearchApi.md#search_registered_query_deleted_entities) | **POST** /api/v2/search/derivedmetric/deleted | Search over a customer's deleted derived metric definitions +*SearchApi* | [**search_registered_query_deleted_for_facet**](docs/SearchApi.md#search_registered_query_deleted_for_facet) | **POST** /api/v2/search/derivedmetric/deleted/{facet} | Lists the values of a specific facet over the customer's deleted derived metric definitions +*SearchApi* | [**search_registered_query_deleted_for_facets**](docs/SearchApi.md#search_registered_query_deleted_for_facets) | **POST** /api/v2/search/derivedmetric/deleted/facets | Lists the values of one or more facets over the customer's deleted derived metric definitions +*SearchApi* | [**search_registered_query_entities**](docs/SearchApi.md#search_registered_query_entities) | **POST** /api/v2/search/derivedmetric | Search over a customer's non-deleted derived metric definitions +*SearchApi* | [**search_registered_query_for_facet**](docs/SearchApi.md#search_registered_query_for_facet) | **POST** /api/v2/search/derivedmetric/{facet} | Lists the values of a specific facet over the customer's non-deleted derived metric definitions +*SearchApi* | [**search_registered_query_for_facets**](docs/SearchApi.md#search_registered_query_for_facets) | **POST** /api/v2/search/derivedmetric/facets | Lists the values of one or more facets over the customer's non-deleted derived metric definition +*SearchApi* | [**search_related_report_event_anomaly_entities**](docs/SearchApi.md#search_related_report_event_anomaly_entities) | **POST** /api/v2/search/event/related/{eventId}/withAnomalies | List the related events and anomalies over a firing event +*SearchApi* | [**search_related_report_event_entities**](docs/SearchApi.md#search_related_report_event_entities) | **POST** /api/v2/search/event/related/{eventId} | List the related events over a firing event *SearchApi* | [**search_report_event_entities**](docs/SearchApi.md#search_report_event_entities) | **POST** /api/v2/search/event | Search over a customer's events *SearchApi* | [**search_report_event_for_facet**](docs/SearchApi.md#search_report_event_for_facet) | **POST** /api/v2/search/event/{facet} | Lists the values of a specific facet over the customer's events *SearchApi* | [**search_report_event_for_facets**](docs/SearchApi.md#search_report_event_for_facets) | **POST** /api/v2/search/event/facets | Lists the values of one or more facets over the customer's events +*SearchApi* | [**search_role_entities**](docs/SearchApi.md#search_role_entities) | **POST** /api/v2/search/role | Search over a customer's roles +*SearchApi* | [**search_role_for_facet**](docs/SearchApi.md#search_role_for_facet) | **POST** /api/v2/search/role/{facet} | Lists the values of a specific facet over the customer's roles +*SearchApi* | [**search_role_for_facets**](docs/SearchApi.md#search_role_for_facets) | **POST** /api/v2/search/role/facets | Lists the values of one or more facets over the customer's roles +*SearchApi* | [**search_saved_app_map_entities**](docs/SearchApi.md#search_saved_app_map_entities) | **POST** /api/v2/search/savedappmapsearch | Search over all the customer's non-deleted saved app map searches +*SearchApi* | [**search_saved_app_map_for_facet**](docs/SearchApi.md#search_saved_app_map_for_facet) | **POST** /api/v2/search/savedappmapsearch/{facet} | Lists the values of a specific facet over the customer's non-deleted app map searches +*SearchApi* | [**search_saved_app_map_for_facets**](docs/SearchApi.md#search_saved_app_map_for_facets) | **POST** /api/v2/search/savedappmapsearch/facets | Lists the values of one or more facets over the customer's non-deleted app map searches +*SearchApi* | [**search_saved_traces_entities**](docs/SearchApi.md#search_saved_traces_entities) | **POST** /api/v2/search/savedtracessearch | Search over all the customer's non-deleted saved traces searches +*SearchApi* | [**search_service_account_entities**](docs/SearchApi.md#search_service_account_entities) | **POST** /api/v2/search/serviceaccount | Search over a customer's service accounts +*SearchApi* | [**search_service_account_for_facet**](docs/SearchApi.md#search_service_account_for_facet) | **POST** /api/v2/search/serviceaccount/{facet} | Lists the values of a specific facet over the customer's service accounts +*SearchApi* | [**search_service_account_for_facets**](docs/SearchApi.md#search_service_account_for_facets) | **POST** /api/v2/search/serviceaccount/facets | Lists the values of one or more facets over the customer's service accounts +*SearchApi* | [**search_span_sampling_policy_deleted_entities**](docs/SearchApi.md#search_span_sampling_policy_deleted_entities) | **POST** /api/v2/search/spansamplingpolicy/deleted | Search over a customer's deleted span sampling policies +*SearchApi* | [**search_span_sampling_policy_deleted_for_facet**](docs/SearchApi.md#search_span_sampling_policy_deleted_for_facet) | **POST** /api/v2/search/spansamplingpolicy/deleted/{facet} | Lists the values of a specific facet over the customer's deleted span sampling policies +*SearchApi* | [**search_span_sampling_policy_deleted_for_facets**](docs/SearchApi.md#search_span_sampling_policy_deleted_for_facets) | **POST** /api/v2/search/spansamplingpolicy/deleted/facets | Lists the values of one or more facets over the customer's deleted span sampling policies +*SearchApi* | [**search_span_sampling_policy_entities**](docs/SearchApi.md#search_span_sampling_policy_entities) | **POST** /api/v2/search/spansamplingpolicy | Search over a customer's non-deleted span sampling policies +*SearchApi* | [**search_span_sampling_policy_for_facet**](docs/SearchApi.md#search_span_sampling_policy_for_facet) | **POST** /api/v2/search/spansamplingpolicy/{facet} | Lists the values of a specific facet over the customer's non-deleted span sampling policies +*SearchApi* | [**search_span_sampling_policy_for_facets**](docs/SearchApi.md#search_span_sampling_policy_for_facets) | **POST** /api/v2/search/spansamplingpolicy/facets | Lists the values of one or more facets over the customer's non-deleted span sampling policies *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 *SearchApi* | [**search_user_for_facet**](docs/SearchApi.md#search_user_for_facet) | **POST** /api/v2/search/user/{facet} | Lists the values of a specific facet over the customer's users *SearchApi* | [**search_user_for_facets**](docs/SearchApi.md#search_user_for_facets) | **POST** /api/v2/search/user/facets | Lists the values of one or more facets over the customer's users +*SearchApi* | [**search_user_group_entities**](docs/SearchApi.md#search_user_group_entities) | **POST** /api/v2/search/usergroup | Search over a customer's user groups +*SearchApi* | [**search_user_group_for_facet**](docs/SearchApi.md#search_user_group_for_facet) | **POST** /api/v2/search/usergroup/{facet} | Lists the values of a specific facet over the customer's user groups +*SearchApi* | [**search_user_group_for_facets**](docs/SearchApi.md#search_user_group_for_facets) | **POST** /api/v2/search/usergroup/facets | Lists the values of one or more facets over the customer's user groups *SearchApi* | [**search_web_hook_entities**](docs/SearchApi.md#search_web_hook_entities) | **POST** /api/v2/search/webhook | Search over a customer's webhooks *SearchApi* | [**search_web_hook_for_facet**](docs/SearchApi.md#search_web_hook_for_facet) | **POST** /api/v2/search/webhook/{facet} | Lists the values of a specific facet over the customer's webhooks *SearchApi* | [**search_webhook_for_facets**](docs/SearchApi.md#search_webhook_for_facets) | **POST** /api/v2/search/webhook/facets | Lists the values of one or more facets over the customer's webhooks +*SecurityPolicyApi* | [**get_metrics_policy**](docs/SecurityPolicyApi.md#get_metrics_policy) | **GET** /api/v2/metricspolicy | Get the metrics policy +*SecurityPolicyApi* | [**get_metrics_policy_by_version**](docs/SecurityPolicyApi.md#get_metrics_policy_by_version) | **GET** /api/v2/metricspolicy/history/{version} | Get a specific historical version of a metrics policy +*SecurityPolicyApi* | [**get_metrics_policy_history**](docs/SecurityPolicyApi.md#get_metrics_policy_history) | **GET** /api/v2/metricspolicy/history | Get the version history of metrics policy +*SecurityPolicyApi* | [**get_security_policy**](docs/SecurityPolicyApi.md#get_security_policy) | **GET** /api/v2/securitypolicy/{type} | Get the security policy +*SecurityPolicyApi* | [**get_security_policy_by_version**](docs/SecurityPolicyApi.md#get_security_policy_by_version) | **GET** /api/v2/securitypolicy/{type}/history/{version} | Get a specific historical version of a security policy +*SecurityPolicyApi* | [**get_security_policy_history**](docs/SecurityPolicyApi.md#get_security_policy_history) | **GET** /api/v2/securitypolicy/{type}/history | Get the version history of security policy +*SecurityPolicyApi* | [**revert_metrics_policy_by_version**](docs/SecurityPolicyApi.md#revert_metrics_policy_by_version) | **POST** /api/v2/metricspolicy/revert/{version} | Revert to a specific historical version of a metrics policy +*SecurityPolicyApi* | [**revert_security_policy_by_version**](docs/SecurityPolicyApi.md#revert_security_policy_by_version) | **POST** /api/v2/securitypolicy/{type}/revert/{version} | Revert to a specific historical version of a security policy +*SecurityPolicyApi* | [**update_metrics_policy**](docs/SecurityPolicyApi.md#update_metrics_policy) | **PUT** /api/v2/metricspolicy | Update the metrics policy +*SecurityPolicyApi* | [**update_security_policy**](docs/SecurityPolicyApi.md#update_security_policy) | **PUT** /api/v2/securitypolicy/{type} | Update the security policy *SourceApi* | [**add_source_tag**](docs/SourceApi.md#add_source_tag) | **PUT** /api/v2/source/{id}/tag/{tagValue} | Add a tag to a specific source *SourceApi* | [**create_source**](docs/SourceApi.md#create_source) | **POST** /api/v2/source | Create metadata (description or tags) for a specific source *SourceApi* | [**delete_source**](docs/SourceApi.md#delete_source) | **DELETE** /api/v2/source/{id} | Delete metadata (description and tags) for a specific source @@ -252,12 +428,49 @@ Class | Method | HTTP request | Description *SourceApi* | [**set_description**](docs/SourceApi.md#set_description) | **POST** /api/v2/source/{id}/description | Set description associated with a specific source *SourceApi* | [**set_source_tags**](docs/SourceApi.md#set_source_tags) | **POST** /api/v2/source/{id}/tag | Set all tags associated with a specific source *SourceApi* | [**update_source**](docs/SourceApi.md#update_source) | **PUT** /api/v2/source/{id} | Update metadata (description or tags) for a specific source. -*UserApi* | [**create_or_update_user**](docs/UserApi.md#create_or_update_user) | **POST** /api/v2/user | Creates or updates a user -*UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /api/v2/user/{id} | Deletes a user identified by id -*UserApi* | [**get_all_user**](docs/UserApi.md#get_all_user) | **GET** /api/v2/user | Get all users -*UserApi* | [**get_user**](docs/UserApi.md#get_user) | **GET** /api/v2/user/{id} | Retrieves a user by identifier (email addr) -*UserApi* | [**grant_user_permission**](docs/UserApi.md#grant_user_permission) | **POST** /api/v2/user/{id}/grant | Grants a specific user permission -*UserApi* | [**revoke_user_permission**](docs/UserApi.md#revoke_user_permission) | **POST** /api/v2/user/{id}/revoke | Revokes a specific user permission +*SpanSamplingPolicyApi* | [**create_span_sampling_policy**](docs/SpanSamplingPolicyApi.md#create_span_sampling_policy) | **POST** /api/v2/spansamplingpolicy | Create a span sampling policy +*SpanSamplingPolicyApi* | [**delete_span_sampling_policy**](docs/SpanSamplingPolicyApi.md#delete_span_sampling_policy) | **DELETE** /api/v2/spansamplingpolicy/{id} | Delete a specific span sampling policy +*SpanSamplingPolicyApi* | [**get_all_deleted_span_sampling_policy**](docs/SpanSamplingPolicyApi.md#get_all_deleted_span_sampling_policy) | **GET** /api/v2/spansamplingpolicy/deleted | Get all deleted sampling policies for a customer +*SpanSamplingPolicyApi* | [**get_all_span_sampling_policy**](docs/SpanSamplingPolicyApi.md#get_all_span_sampling_policy) | **GET** /api/v2/spansamplingpolicy | Get all sampling policies for a customer +*SpanSamplingPolicyApi* | [**get_span_sampling_policy**](docs/SpanSamplingPolicyApi.md#get_span_sampling_policy) | **GET** /api/v2/spansamplingpolicy/{id} | Get a specific span sampling policy +*SpanSamplingPolicyApi* | [**get_span_sampling_policy_history**](docs/SpanSamplingPolicyApi.md#get_span_sampling_policy_history) | **GET** /api/v2/spansamplingpolicy/{id}/history | Get the version history of a specific sampling policy +*SpanSamplingPolicyApi* | [**get_span_sampling_policy_version**](docs/SpanSamplingPolicyApi.md#get_span_sampling_policy_version) | **GET** /api/v2/spansamplingpolicy/{id}/history/{version} | Get a specific historical version of a specific sampling policy +*SpanSamplingPolicyApi* | [**undelete_span_sampling_policy**](docs/SpanSamplingPolicyApi.md#undelete_span_sampling_policy) | **POST** /api/v2/spansamplingpolicy/{id}/undelete | Restore a deleted span sampling policy +*SpanSamplingPolicyApi* | [**update_span_sampling_policy**](docs/SpanSamplingPolicyApi.md#update_span_sampling_policy) | **PUT** /api/v2/spansamplingpolicy/{id} | Update a specific span sampling policy +*UsageApi* | [**create_ingestion_policy**](docs/UsageApi.md#create_ingestion_policy) | **POST** /api/v2/usage/ingestionpolicy | Create a specific ingestion policy +*UsageApi* | [**delete_ingestion_policy**](docs/UsageApi.md#delete_ingestion_policy) | **DELETE** /api/v2/usage/ingestionpolicy/{id} | Delete a specific ingestion policy +*UsageApi* | [**export_csv**](docs/UsageApi.md#export_csv) | **GET** /api/v2/usage/exportcsv | Export a CSV report +*UsageApi* | [**get_all_ingestion_policies**](docs/UsageApi.md#get_all_ingestion_policies) | **GET** /api/v2/usage/ingestionpolicy | Get all ingestion policies for a customer +*UsageApi* | [**get_ingestion_policy**](docs/UsageApi.md#get_ingestion_policy) | **GET** /api/v2/usage/ingestionpolicy/{id} | Get a specific ingestion policy +*UsageApi* | [**get_ingestion_policy_by_version**](docs/UsageApi.md#get_ingestion_policy_by_version) | **GET** /api/v2/usage/ingestionpolicy/{id}/history/{version} | Get a specific historical version of a ingestion policy +*UsageApi* | [**get_ingestion_policy_history**](docs/UsageApi.md#get_ingestion_policy_history) | **GET** /api/v2/usage/ingestionpolicy/{id}/history | Get the version history of ingestion policy +*UsageApi* | [**revert_ingestion_policy_by_version**](docs/UsageApi.md#revert_ingestion_policy_by_version) | **POST** /api/v2/usage/ingestionpolicy/{id}/revert/{version} | Revert to a specific historical version of a ingestion policy +*UsageApi* | [**update_ingestion_policy**](docs/UsageApi.md#update_ingestion_policy) | **PUT** /api/v2/usage/ingestionpolicy/{id} | Update a specific ingestion policy +*UserApi* | [**add_user_to_user_groups**](docs/UserApi.md#add_user_to_user_groups) | **POST** /api/v2/user/{id}/addUserGroups | Adds specific groups to the user or service account +*UserApi* | [**create_user**](docs/UserApi.md#create_user) | **POST** /api/v2/user | Creates an user if the user doesn't already exist. +*UserApi* | [**delete_multiple_users**](docs/UserApi.md#delete_multiple_users) | **POST** /api/v2/user/deleteUsers | Deletes multiple users or service accounts +*UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /api/v2/user/{id} | Deletes a user or service account identified by id +*UserApi* | [**get_all_users**](docs/UserApi.md#get_all_users) | **GET** /api/v2/user | Get all users +*UserApi* | [**get_user**](docs/UserApi.md#get_user) | **GET** /api/v2/user/{id} | Retrieves a user by identifier (email address) +*UserApi* | [**get_user_business_functions**](docs/UserApi.md#get_user_business_functions) | **GET** /api/v2/user/{id}/businessFunctions | Returns business functions of a specific user or service account. +*UserApi* | [**grant_permission_to_users**](docs/UserApi.md#grant_permission_to_users) | **POST** /api/v2/user/grant/{permission} | Grants a specific permission to multiple users or service accounts +*UserApi* | [**grant_user_permission**](docs/UserApi.md#grant_user_permission) | **POST** /api/v2/user/{id}/grant | Grants a specific permission to user or service account +*UserApi* | [**invite_users**](docs/UserApi.md#invite_users) | **POST** /api/v2/user/invite | Invite users with given user groups and permissions. +*UserApi* | [**remove_user_from_user_groups**](docs/UserApi.md#remove_user_from_user_groups) | **POST** /api/v2/user/{id}/removeUserGroups | Removes specific groups from the user or service account +*UserApi* | [**revoke_permission_from_users**](docs/UserApi.md#revoke_permission_from_users) | **POST** /api/v2/user/revoke/{permission} | Revokes a specific permission from multiple users or service accounts +*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_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_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 +*WavefrontApi* | [**get_cluster_info**](docs/WavefrontApi.md#get_cluster_info) | **GET** /api/v2/cluster/info | API endpoint to get cluster info *WebhookApi* | [**create_webhook**](docs/WebhookApi.md#create_webhook) | **POST** /api/v2/webhook | Create a specific webhook *WebhookApi* | [**delete_webhook**](docs/WebhookApi.md#delete_webhook) | **DELETE** /api/v2/webhook/{id} | Delete a specific webhook *WebhookApi* | [**get_all_webhooks**](docs/WebhookApi.md#get_all_webhooks) | **GET** /api/v2/webhook | Get all webhooks for a customer @@ -268,23 +481,53 @@ Class | Method | HTTP request | Description ## Documentation For Models - [AWSBaseCredentials](docs/AWSBaseCredentials.md) + - [AccessControlElement](docs/AccessControlElement.md) + - [AccessControlListReadDTO](docs/AccessControlListReadDTO.md) + - [AccessControlListSimple](docs/AccessControlListSimple.md) + - [AccessControlListWriteDTO](docs/AccessControlListWriteDTO.md) + - [AccessPolicy](docs/AccessPolicy.md) + - [AccessPolicyRuleDTO](docs/AccessPolicyRuleDTO.md) + - [Account](docs/Account.md) - [Alert](docs/Alert.md) - - [AvroBackedStandardizedDTO](docs/AvroBackedStandardizedDTO.md) + - [AlertAnalyticsSummary](docs/AlertAnalyticsSummary.md) + - [AlertAnalyticsSummaryDetail](docs/AlertAnalyticsSummaryDetail.md) + - [AlertDashboard](docs/AlertDashboard.md) + - [AlertErrorGroupInfo](docs/AlertErrorGroupInfo.md) + - [AlertErrorGroupSummary](docs/AlertErrorGroupSummary.md) + - [AlertErrorSummary](docs/AlertErrorSummary.md) + - [AlertMin](docs/AlertMin.md) + - [AlertRoute](docs/AlertRoute.md) + - [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) + - [AppSearchFilters](docs/AppSearchFilters.md) - [AzureActivityLogConfiguration](docs/AzureActivityLogConfiguration.md) - [AzureBaseCredentials](docs/AzureBaseCredentials.md) - [AzureConfiguration](docs/AzureConfiguration.md) - [Chart](docs/Chart.md) - [ChartSettings](docs/ChartSettings.md) - [ChartSourceQuery](docs/ChartSourceQuery.md) + - [ClassLoader](docs/ClassLoader.md) - [CloudIntegration](docs/CloudIntegration.md) - [CloudTrailConfiguration](docs/CloudTrailConfiguration.md) - [CloudWatchConfiguration](docs/CloudWatchConfiguration.md) + - [ClusterInfoDTO](docs/ClusterInfoDTO.md) + - [Conversion](docs/Conversion.md) + - [ConversionObject](docs/ConversionObject.md) - [CustomerFacingUserObject](docs/CustomerFacingUserObject.md) - [Dashboard](docs/Dashboard.md) + - [DashboardMin](docs/DashboardMin.md) - [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) - [Event](docs/Event.md) - [EventSearchRequest](docs/EventSearchRequest.md) @@ -294,24 +537,55 @@ Class | Method | HTTP request | Description - [FacetSearchRequestContainer](docs/FacetSearchRequestContainer.md) - [FacetsResponseContainer](docs/FacetsResponseContainer.md) - [FacetsSearchRequestContainer](docs/FacetsSearchRequestContainer.md) + - [FastReaderBuilder](docs/FastReaderBuilder.md) + - [Field](docs/Field.md) + - [GCPBillingConfiguration](docs/GCPBillingConfiguration.md) - [GCPConfiguration](docs/GCPConfiguration.md) - [HistoryEntry](docs/HistoryEntry.md) - [HistoryResponse](docs/HistoryResponse.md) + - [IngestionPolicyAlert](docs/IngestionPolicyAlert.md) + - [IngestionPolicyMetadata](docs/IngestionPolicyMetadata.md) + - [IngestionPolicyReadModel](docs/IngestionPolicyReadModel.md) + - [IngestionPolicyWriteModel](docs/IngestionPolicyWriteModel.md) + - [InstallAlerts](docs/InstallAlerts.md) - [Integration](docs/Integration.md) + - [IntegrationAlert](docs/IntegrationAlert.md) - [IntegrationAlias](docs/IntegrationAlias.md) - [IntegrationDashboard](docs/IntegrationDashboard.md) - [IntegrationManifestGroup](docs/IntegrationManifestGroup.md) - [IntegrationMetrics](docs/IntegrationMetrics.md) - [IntegrationStatus](docs/IntegrationStatus.md) - [JsonNode](docs/JsonNode.md) + - [KubernetesComponent](docs/KubernetesComponent.md) + - [KubernetesComponentStatus](docs/KubernetesComponentStatus.md) + - [LogicalType](docs/LogicalType.md) + - [LogsSort](docs/LogsSort.md) + - [LogsTable](docs/LogsTable.md) - [MaintenanceWindow](docs/MaintenanceWindow.md) - [Message](docs/Message.md) - [MetricDetails](docs/MetricDetails.md) - [MetricDetailsResponse](docs/MetricDetailsResponse.md) - [MetricStatus](docs/MetricStatus.md) + - [MetricsPolicyReadModel](docs/MetricsPolicyReadModel.md) + - [MetricsPolicyWriteModel](docs/MetricsPolicyWriteModel.md) + - [Module](docs/Module.md) + - [ModuleDescriptor](docs/ModuleDescriptor.md) + - [ModuleLayer](docs/ModuleLayer.md) + - [MonitoredApplicationDTO](docs/MonitoredApplicationDTO.md) + - [MonitoredCluster](docs/MonitoredCluster.md) + - [MonitoredServiceDTO](docs/MonitoredServiceDTO.md) + - [NewRelicConfiguration](docs/NewRelicConfiguration.md) + - [NewRelicMetricFilters](docs/NewRelicMetricFilters.md) - [Notificant](docs/Notificant.md) + - [NotificationMessages](docs/NotificationMessages.md) + - [Package](docs/Package.md) + - [Paged](docs/Paged.md) + - [PagedAccount](docs/PagedAccount.md) - [PagedAlert](docs/PagedAlert.md) + - [PagedAlertAnalyticsSummaryDetail](docs/PagedAlertAnalyticsSummaryDetail.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) @@ -319,38 +593,91 @@ Class | Method | HTTP request | Description - [PagedDerivedMetricDefinitionWithStats](docs/PagedDerivedMetricDefinitionWithStats.md) - [PagedEvent](docs/PagedEvent.md) - [PagedExternalLink](docs/PagedExternalLink.md) + - [PagedIngestionPolicyReadModel](docs/PagedIngestionPolicyReadModel.md) - [PagedIntegration](docs/PagedIntegration.md) - [PagedMaintenanceWindow](docs/PagedMaintenanceWindow.md) - [PagedMessage](docs/PagedMessage.md) + - [PagedMonitoredApplicationDTO](docs/PagedMonitoredApplicationDTO.md) + - [PagedMonitoredCluster](docs/PagedMonitoredCluster.md) + - [PagedMonitoredServiceDTO](docs/PagedMonitoredServiceDTO.md) - [PagedNotificant](docs/PagedNotificant.md) - [PagedProxy](docs/PagedProxy.md) + - [PagedRecentAppMapSearch](docs/PagedRecentAppMapSearch.md) + - [PagedRecentTracesSearch](docs/PagedRecentTracesSearch.md) + - [PagedRelatedEvent](docs/PagedRelatedEvent.md) + - [PagedReportEventAnomalyDTO](docs/PagedReportEventAnomalyDTO.md) + - [PagedRoleDTO](docs/PagedRoleDTO.md) + - [PagedSavedAppMapSearch](docs/PagedSavedAppMapSearch.md) + - [PagedSavedAppMapSearchGroup](docs/PagedSavedAppMapSearchGroup.md) - [PagedSavedSearch](docs/PagedSavedSearch.md) + - [PagedSavedTracesSearch](docs/PagedSavedTracesSearch.md) + - [PagedSavedTracesSearchGroup](docs/PagedSavedTracesSearchGroup.md) + - [PagedServiceAccount](docs/PagedServiceAccount.md) - [PagedSource](docs/PagedSource.md) + - [PagedSpanSamplingPolicy](docs/PagedSpanSamplingPolicy.md) + - [PagedUserGroupModel](docs/PagedUserGroupModel.md) - [Point](docs/Point.md) + - [PolicyRuleReadModel](docs/PolicyRuleReadModel.md) + - [PolicyRuleWriteModel](docs/PolicyRuleWriteModel.md) - [Proxy](docs/Proxy.md) - [QueryEvent](docs/QueryEvent.md) - [QueryResult](docs/QueryResult.md) + - [QueryTypeDTO](docs/QueryTypeDTO.md) - [RawTimeseries](docs/RawTimeseries.md) + - [RecentAppMapSearch](docs/RecentAppMapSearch.md) + - [RecentTracesSearch](docs/RecentTracesSearch.md) + - [RelatedAnomaly](docs/RelatedAnomaly.md) + - [RelatedData](docs/RelatedData.md) + - [RelatedEvent](docs/RelatedEvent.md) + - [RelatedEventTimeRange](docs/RelatedEventTimeRange.md) + - [ReportEventAnomalyDTO](docs/ReportEventAnomalyDTO.md) - [ResponseContainer](docs/ResponseContainer.md) + - [ResponseContainerAccessPolicy](docs/ResponseContainerAccessPolicy.md) + - [ResponseContainerAccessPolicyAction](docs/ResponseContainerAccessPolicyAction.md) + - [ResponseContainerAccount](docs/ResponseContainerAccount.md) - [ResponseContainerAlert](docs/ResponseContainerAlert.md) + - [ResponseContainerAlertAnalyticsSummary](docs/ResponseContainerAlertAnalyticsSummary.md) + - [ResponseContainerApiTokenModel](docs/ResponseContainerApiTokenModel.md) - [ResponseContainerCloudIntegration](docs/ResponseContainerCloudIntegration.md) + - [ResponseContainerClusterInfoDTO](docs/ResponseContainerClusterInfoDTO.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) - [ResponseContainerFacetResponse](docs/ResponseContainerFacetResponse.md) - [ResponseContainerFacetsResponseContainer](docs/ResponseContainerFacetsResponseContainer.md) - [ResponseContainerHistoryResponse](docs/ResponseContainerHistoryResponse.md) + - [ResponseContainerIngestionPolicyReadModel](docs/ResponseContainerIngestionPolicyReadModel.md) - [ResponseContainerIntegration](docs/ResponseContainerIntegration.md) - [ResponseContainerIntegrationStatus](docs/ResponseContainerIntegrationStatus.md) + - [ResponseContainerListAccessControlListReadDTO](docs/ResponseContainerListAccessControlListReadDTO.md) + - [ResponseContainerListAlertErrorGroupInfo](docs/ResponseContainerListAlertErrorGroupInfo.md) + - [ResponseContainerListApiTokenModel](docs/ResponseContainerListApiTokenModel.md) + - [ResponseContainerListIntegration](docs/ResponseContainerListIntegration.md) - [ResponseContainerListIntegrationManifestGroup](docs/ResponseContainerListIntegrationManifestGroup.md) + - [ResponseContainerListNotificationMessages](docs/ResponseContainerListNotificationMessages.md) + - [ResponseContainerListServiceAccount](docs/ResponseContainerListServiceAccount.md) + - [ResponseContainerListString](docs/ResponseContainerListString.md) + - [ResponseContainerListUserApiToken](docs/ResponseContainerListUserApiToken.md) + - [ResponseContainerListUserDTO](docs/ResponseContainerListUserDTO.md) - [ResponseContainerMaintenanceWindow](docs/ResponseContainerMaintenanceWindow.md) + - [ResponseContainerMap](docs/ResponseContainerMap.md) - [ResponseContainerMapStringInteger](docs/ResponseContainerMapStringInteger.md) - [ResponseContainerMapStringIntegrationStatus](docs/ResponseContainerMapStringIntegrationStatus.md) - [ResponseContainerMessage](docs/ResponseContainerMessage.md) + - [ResponseContainerMetricsPolicyReadModel](docs/ResponseContainerMetricsPolicyReadModel.md) + - [ResponseContainerMonitoredApplicationDTO](docs/ResponseContainerMonitoredApplicationDTO.md) + - [ResponseContainerMonitoredCluster](docs/ResponseContainerMonitoredCluster.md) + - [ResponseContainerMonitoredServiceDTO](docs/ResponseContainerMonitoredServiceDTO.md) - [ResponseContainerNotificant](docs/ResponseContainerNotificant.md) + - [ResponseContainerPagedAccount](docs/ResponseContainerPagedAccount.md) - [ResponseContainerPagedAlert](docs/ResponseContainerPagedAlert.md) + - [ResponseContainerPagedAlertAnalyticsSummaryDetail](docs/ResponseContainerPagedAlertAnalyticsSummaryDetail.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) @@ -358,32 +685,109 @@ Class | Method | HTTP request | Description - [ResponseContainerPagedDerivedMetricDefinitionWithStats](docs/ResponseContainerPagedDerivedMetricDefinitionWithStats.md) - [ResponseContainerPagedEvent](docs/ResponseContainerPagedEvent.md) - [ResponseContainerPagedExternalLink](docs/ResponseContainerPagedExternalLink.md) + - [ResponseContainerPagedIngestionPolicyReadModel](docs/ResponseContainerPagedIngestionPolicyReadModel.md) - [ResponseContainerPagedIntegration](docs/ResponseContainerPagedIntegration.md) - [ResponseContainerPagedMaintenanceWindow](docs/ResponseContainerPagedMaintenanceWindow.md) - [ResponseContainerPagedMessage](docs/ResponseContainerPagedMessage.md) + - [ResponseContainerPagedMonitoredApplicationDTO](docs/ResponseContainerPagedMonitoredApplicationDTO.md) + - [ResponseContainerPagedMonitoredCluster](docs/ResponseContainerPagedMonitoredCluster.md) + - [ResponseContainerPagedMonitoredServiceDTO](docs/ResponseContainerPagedMonitoredServiceDTO.md) - [ResponseContainerPagedNotificant](docs/ResponseContainerPagedNotificant.md) - [ResponseContainerPagedProxy](docs/ResponseContainerPagedProxy.md) + - [ResponseContainerPagedRecentAppMapSearch](docs/ResponseContainerPagedRecentAppMapSearch.md) + - [ResponseContainerPagedRecentTracesSearch](docs/ResponseContainerPagedRecentTracesSearch.md) + - [ResponseContainerPagedRelatedEvent](docs/ResponseContainerPagedRelatedEvent.md) + - [ResponseContainerPagedReportEventAnomalyDTO](docs/ResponseContainerPagedReportEventAnomalyDTO.md) + - [ResponseContainerPagedRoleDTO](docs/ResponseContainerPagedRoleDTO.md) + - [ResponseContainerPagedSavedAppMapSearch](docs/ResponseContainerPagedSavedAppMapSearch.md) + - [ResponseContainerPagedSavedAppMapSearchGroup](docs/ResponseContainerPagedSavedAppMapSearchGroup.md) - [ResponseContainerPagedSavedSearch](docs/ResponseContainerPagedSavedSearch.md) + - [ResponseContainerPagedSavedTracesSearch](docs/ResponseContainerPagedSavedTracesSearch.md) + - [ResponseContainerPagedSavedTracesSearchGroup](docs/ResponseContainerPagedSavedTracesSearchGroup.md) + - [ResponseContainerPagedServiceAccount](docs/ResponseContainerPagedServiceAccount.md) - [ResponseContainerPagedSource](docs/ResponseContainerPagedSource.md) + - [ResponseContainerPagedSpanSamplingPolicy](docs/ResponseContainerPagedSpanSamplingPolicy.md) + - [ResponseContainerPagedUserGroupModel](docs/ResponseContainerPagedUserGroupModel.md) - [ResponseContainerProxy](docs/ResponseContainerProxy.md) + - [ResponseContainerQueryTypeDTO](docs/ResponseContainerQueryTypeDTO.md) + - [ResponseContainerRecentAppMapSearch](docs/ResponseContainerRecentAppMapSearch.md) + - [ResponseContainerRecentTracesSearch](docs/ResponseContainerRecentTracesSearch.md) + - [ResponseContainerRoleDTO](docs/ResponseContainerRoleDTO.md) + - [ResponseContainerSavedAppMapSearch](docs/ResponseContainerSavedAppMapSearch.md) + - [ResponseContainerSavedAppMapSearchGroup](docs/ResponseContainerSavedAppMapSearchGroup.md) - [ResponseContainerSavedSearch](docs/ResponseContainerSavedSearch.md) + - [ResponseContainerSavedTracesSearch](docs/ResponseContainerSavedTracesSearch.md) + - [ResponseContainerSavedTracesSearchGroup](docs/ResponseContainerSavedTracesSearchGroup.md) + - [ResponseContainerServiceAccount](docs/ResponseContainerServiceAccount.md) + - [ResponseContainerSetBusinessFunction](docs/ResponseContainerSetBusinessFunction.md) + - [ResponseContainerSetSourceLabelPair](docs/ResponseContainerSetSourceLabelPair.md) - [ResponseContainerSource](docs/ResponseContainerSource.md) + - [ResponseContainerSpanSamplingPolicy](docs/ResponseContainerSpanSamplingPolicy.md) + - [ResponseContainerString](docs/ResponseContainerString.md) - [ResponseContainerTagsResponse](docs/ResponseContainerTagsResponse.md) + - [ResponseContainerUserApiToken](docs/ResponseContainerUserApiToken.md) + - [ResponseContainerUserDTO](docs/ResponseContainerUserDTO.md) + - [ResponseContainerUserGroupModel](docs/ResponseContainerUserGroupModel.md) + - [ResponseContainerValidatedUsersDTO](docs/ResponseContainerValidatedUsersDTO.md) + - [ResponseContainerVoid](docs/ResponseContainerVoid.md) - [ResponseStatus](docs/ResponseStatus.md) + - [RoleCreateDTO](docs/RoleCreateDTO.md) + - [RoleDTO](docs/RoleDTO.md) + - [RoleUpdateDTO](docs/RoleUpdateDTO.md) + - [SavedAppMapSearch](docs/SavedAppMapSearch.md) + - [SavedAppMapSearchGroup](docs/SavedAppMapSearchGroup.md) - [SavedSearch](docs/SavedSearch.md) + - [SavedTracesSearch](docs/SavedTracesSearch.md) + - [SavedTracesSearchGroup](docs/SavedTracesSearchGroup.md) + - [Schema](docs/Schema.md) - [SearchQuery](docs/SearchQuery.md) + - [ServiceAccount](docs/ServiceAccount.md) + - [ServiceAccountWrite](docs/ServiceAccountWrite.md) + - [Setup](docs/Setup.md) + - [SnowflakeConfiguration](docs/SnowflakeConfiguration.md) - [SortableSearchRequest](docs/SortableSearchRequest.md) - [Sorting](docs/Sorting.md) - [Source](docs/Source.md) - [SourceLabelPair](docs/SourceLabelPair.md) - [SourceSearchRequestContainer](docs/SourceSearchRequestContainer.md) - - [StatsModel](docs/StatsModel.md) + - [Span](docs/Span.md) + - [SpanSamplingPolicy](docs/SpanSamplingPolicy.md) + - [SpecificData](docs/SpecificData.md) + - [StatsModelInternalUse](docs/StatsModelInternalUse.md) + - [Stripe](docs/Stripe.md) - [TagsResponse](docs/TagsResponse.md) - [TargetInfo](docs/TargetInfo.md) - - [TeslaConfiguration](docs/TeslaConfiguration.md) - [Timeseries](docs/Timeseries.md) + - [Trace](docs/Trace.md) + - [TriageDashboard](docs/TriageDashboard.md) + - [TupleResult](docs/TupleResult.md) + - [TupleValueResult](docs/TupleValueResult.md) + - [UserApiToken](docs/UserApiToken.md) + - [UserDTO](docs/UserDTO.md) + - [UserGroup](docs/UserGroup.md) + - [UserGroupModel](docs/UserGroupModel.md) + - [UserGroupPropertiesDTO](docs/UserGroupPropertiesDTO.md) + - [UserGroupWrite](docs/UserGroupWrite.md) - [UserModel](docs/UserModel.md) + - [UserRequestDTO](docs/UserRequestDTO.md) - [UserToCreate](docs/UserToCreate.md) + - [ValidatedUsersDTO](docs/ValidatedUsersDTO.md) + - [Void](docs/Void.md) + - [VropsConfiguration](docs/VropsConfiguration.md) - [WFTags](docs/WFTags.md) +## Documentation For Authorization + + +## api_key + +- **Type**: API key +- **API key parameter name**: X-AUTH-TOKEN +- **Location**: HTTP header + + +## Author + +chitimba@wavefront.com + diff --git a/docs/AWSBaseCredentials.md b/docs/AWSBaseCredentials.md index 66e15454..c64341a9 100644 --- a/docs/AWSBaseCredentials.md +++ b/docs/AWSBaseCredentials.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**role_arn** | **str** | The Role ARN that the customer has created in AWS IAM to allow access to Wavefront | **external_id** | **str** | The external id corresponding to the Role ARN | +**role_arn** | **str** | The Role ARN that the customer has created in AWS IAM to allow access to Tanzu Observability | [[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/AccessControlElement.md b/docs/AccessControlElement.md new file mode 100644 index 00000000..c4d4940a --- /dev/null +++ b/docs/AccessControlElement.md @@ -0,0 +1,12 @@ +# AccessControlElement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**id** | **str** | | [optional] +**name** | **str** | | [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/AccessControlListReadDTO.md b/docs/AccessControlListReadDTO.md new file mode 100644 index 00000000..88dfe06f --- /dev/null +++ b/docs/AccessControlListReadDTO.md @@ -0,0 +1,12 @@ +# AccessControlListReadDTO + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entity_id** | **str** | The entity Id | [optional] +**modify_acl** | [**list[AccessControlElement]**](AccessControlElement.md) | List of users and user groups ids that have modify permission | [optional] +**view_acl** | [**list[AccessControlElement]**](AccessControlElement.md) | List of users and user group ids that have view permission | [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/AccessControlListSimple.md b/docs/AccessControlListSimple.md new file mode 100644 index 00000000..95d06bc2 --- /dev/null +++ b/docs/AccessControlListSimple.md @@ -0,0 +1,11 @@ +# AccessControlListSimple + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**can_modify** | **list[str]** | | [optional] +**can_view** | **list[str]** | | [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/AccessControlListWriteDTO.md b/docs/AccessControlListWriteDTO.md new file mode 100644 index 00000000..1f79e0dc --- /dev/null +++ b/docs/AccessControlListWriteDTO.md @@ -0,0 +1,12 @@ +# AccessControlListWriteDTO + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entity_id** | **str** | The entity Id | [optional] +**modify_acl** | **list[str]** | List of users and user groups ids that have modify permission | [optional] +**view_acl** | **list[str]** | List of users and user group ids that have view permission | [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/AccessPolicy.md b/docs/AccessPolicy.md new file mode 100644 index 00000000..1a940aa8 --- /dev/null +++ b/docs/AccessPolicy.md @@ -0,0 +1,12 @@ +# AccessPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer** | **str** | | [optional] +**last_updated_ms** | **int** | | [optional] +**policy_rules** | [**list[AccessPolicyRuleDTO]**](AccessPolicyRuleDTO.md) | | [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/AccessPolicyApi.md b/docs/AccessPolicyApi.md new file mode 100644 index 00000000..40ccf24a --- /dev/null +++ b/docs/AccessPolicyApi.md @@ -0,0 +1,169 @@ +# wavefront_api_client.AccessPolicyApi + +All URIs are relative to *https://YOUR_INSTANCE.wavefront.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_access_policy**](AccessPolicyApi.md#get_access_policy) | **GET** /api/v2/accesspolicy | Get the access policy +[**update_access_policy**](AccessPolicyApi.md#update_access_policy) | **PUT** /api/v2/accesspolicy | Update the access policy +[**validate_url**](AccessPolicyApi.md#validate_url) | **GET** /api/v2/accesspolicy/validate | Validate a given url and ip address + + +# **get_access_policy** +> ResponseContainerAccessPolicy get_access_policy() + +Get the access policy + + + +### 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.AccessPolicyApi(wavefront_api_client.ApiClient(configuration)) + +try: + # Get the access policy + api_response = api_instance.get_access_policy() + pprint(api_response) +except ApiException as e: + print("Exception when calling AccessPolicyApi->get_access_policy: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ResponseContainerAccessPolicy**](ResponseContainerAccessPolicy.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) + +# **update_access_policy** +> ResponseContainerAccessPolicy update_access_policy(body=body) + +Update the access policy + + + +### 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.AccessPolicyApi(wavefront_api_client.ApiClient(configuration)) +body = wavefront_api_client.AccessPolicy() # AccessPolicy | Example Body:{ \"policyRules\": [{ \"name\": \"rule name\", \"description\": \"desc\", \"action\": \"ALLOW\", \"subnet\": \"12.148.72.0/23\" }] } (optional)
+
+try:
+ # Update the access policy
+ api_response = api_instance.update_access_policy(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccessPolicyApi->update_access_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**AccessPolicy**](AccessPolicy.md)| Example Body: <pre>{ \"policyRules\": [{ \"name\": \"rule name\", \"description\": \"desc\", \"action\": \"ALLOW\", \"subnet\": \"12.148.72.0/23\" }] }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerAccessPolicy**](ResponseContainerAccessPolicy.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)
+
+# **validate_url**
+> ResponseContainerAccessPolicyAction validate_url(ip=ip)
+
+Validate a given url and ip address
+
+
+
+### 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.AccessPolicyApi(wavefront_api_client.ApiClient(configuration))
+ip = 'ip_example' # str | (optional)
+
+try:
+ # Validate a given url and ip address
+ api_response = api_instance.validate_url(ip=ip)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccessPolicyApi->validate_url: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ip** | **str**| | [optional]
+
+### Return type
+
+[**ResponseContainerAccessPolicyAction**](ResponseContainerAccessPolicyAction.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)
+
diff --git a/docs/AccessPolicyRuleDTO.md b/docs/AccessPolicyRuleDTO.md
new file mode 100644
index 00000000..82916c62
--- /dev/null
+++ b/docs/AccessPolicyRuleDTO.md
@@ -0,0 +1,13 @@
+# AccessPolicyRuleDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**action** | **str** | | [optional]
+**description** | **str** | | [optional]
+**name** | **str** | | [optional]
+**subnet** | **str** | | [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/Account.md b/docs/Account.md
new file mode 100644
index 00000000..f0702f74
--- /dev/null
+++ b/docs/Account.md
@@ -0,0 +1,15 @@
+# Account
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**groups** | **list[str]** | The list of account's permissions. | [optional]
+**identifier** | **str** | The unique identifier of an account. |
+**roles** | **list[str]** | The list of account's roles. | [optional]
+**united_permissions** | **list[str]** | The list of account's permissions assigned directly or through united roles assigned to it | [optional]
+**united_roles** | **list[str]** | The list of account's roles assigned directly or through user groups assigned to it | [optional]
+**user_groups** | **list[str]** | The list of account's user groups. | [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/AccountUserAndServiceAccountApi.md b/docs/AccountUserAndServiceAccountApi.md
new file mode 100644
index 00000000..2525ef7d
--- /dev/null
+++ b/docs/AccountUserAndServiceAccountApi.md
@@ -0,0 +1,1450 @@
+# wavefront_api_client.AccountUserAndServiceAccountApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**activate_account**](AccountUserAndServiceAccountApi.md#activate_account) | **POST** /api/v2/account/serviceaccount/{id}/activate | Activates the given service account
+[**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)
+[**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
+[**delete_account**](AccountUserAndServiceAccountApi.md#delete_account) | **DELETE** /api/v2/account/{id} | Deletes an account (user or service account) identified by id
+[**delete_multiple_accounts**](AccountUserAndServiceAccountApi.md#delete_multiple_accounts) | **POST** /api/v2/account/deleteAccounts | Deletes multiple accounts (users or service accounts)
+[**get_account**](AccountUserAndServiceAccountApi.md#get_account) | **GET** /api/v2/account/{id} | Get a specific account (user or service account)
+[**get_account_business_functions**](AccountUserAndServiceAccountApi.md#get_account_business_functions) | **GET** /api/v2/account/{id}/businessFunctions | Returns business functions of a specific account (user or service account).
+[**get_all_accounts**](AccountUserAndServiceAccountApi.md#get_all_accounts) | **GET** /api/v2/account | Get all accounts (users and service accounts) of a customer
+[**get_all_service_accounts**](AccountUserAndServiceAccountApi.md#get_all_service_accounts) | **GET** /api/v2/account/serviceaccount | Get all service accounts
+[**get_all_user_accounts**](AccountUserAndServiceAccountApi.md#get_all_user_accounts) | **GET** /api/v2/account/user | Get all user accounts
+[**get_service_account**](AccountUserAndServiceAccountApi.md#get_service_account) | **GET** /api/v2/account/serviceaccount/{id} | Retrieves a service account by identifier
+[**get_user_account**](AccountUserAndServiceAccountApi.md#get_user_account) | **GET** /api/v2/account/user/{id} | Retrieves a user by identifier (email address)
+[**get_users_with_accounts_permission**](AccountUserAndServiceAccountApi.md#get_users_with_accounts_permission) | **GET** /api/v2/account/user/admin | Get all users with Accounts permission
+[**grant_account_permission**](AccountUserAndServiceAccountApi.md#grant_account_permission) | **POST** /api/v2/account/{id}/grant/{permission} | Grants a specific permission to account (user or service account)
+[**grant_permission_to_accounts**](AccountUserAndServiceAccountApi.md#grant_permission_to_accounts) | **POST** /api/v2/account/grant/{permission} | Grant a permission to accounts (users or service accounts)
+[**invite_user_accounts**](AccountUserAndServiceAccountApi.md#invite_user_accounts) | **POST** /api/v2/account/user/invite | Invite user accounts with given user groups and permissions.
+[**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)
+[**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} | Revoke a permission from accounts (users or service accounts)
+[**update_service_account**](AccountUserAndServiceAccountApi.md#update_service_account) | **PUT** /api/v2/account/serviceaccount/{id} | Updates the service account
+[**update_user_account**](AccountUserAndServiceAccountApi.md#update_user_account) | **PUT** /api/v2/account/user/{id} | Update user with given user groups and permissions.
+[**validate_accounts**](AccountUserAndServiceAccountApi.md#validate_accounts) | **POST** /api/v2/account/validateAccounts | Returns valid accounts (users and service accounts), also invalid identifiers from the given list
+
+
+# **activate_account**
+> ResponseContainerServiceAccount activate_account(id)
+
+Activates the given service account
+
+
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Activates the given service account
+ api_response = api_instance.activate_account(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->activate_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerServiceAccount**](ResponseContainerServiceAccount.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_account_to_roles**
+> UserModel add_account_to_roles(id, body=body)
+
+Adds specific roles to the account (user or service account)
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | The list of roles that should be added to the account (optional)
+
+try:
+ # Adds specific roles to the account (user or service account)
+ api_response = api_instance.add_account_to_roles(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->add_account_to_roles: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| The list of roles that should be added to the account | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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_account_to_user_groups**
+> UserModel add_account_to_user_groups(id, body=body)
+
+Adds specific groups to the account (user or service account)
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | The list of groups that should be added to the account (optional)
+
+try:
+ # Adds specific groups to the account (user or service account)
+ api_response = api_instance.add_account_to_user_groups(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->add_account_to_user_groups: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| The list of groups that should be added to the account | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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)
+
+Creates or updates a user account
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+send_email = true # bool | Whether to send email notification to the user, if created. Default: false (optional)
+body = wavefront_api_client.UserToCreate() # UserToCreate | Example Body: { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } (optional)
+
+try:
+ # Creates or updates a user account
+ api_response = api_instance.create_or_update_user_account(send_email=send_email, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->create_or_update_user_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **send_email** | **bool**| Whether to send email notification to the user, if created. Default: false | [optional]
+ **body** | [**UserToCreate**](UserToCreate.md)| Example Body: <pre>{ \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], }</pre> | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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_service_account**
+> ResponseContainerServiceAccount create_service_account(body=body)
+
+Creates a service account
+
+
+
+### 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.ServiceAccountWrite() # ServiceAccountWrite | (optional)
+
+try:
+ # Creates a service account
+ api_response = api_instance.create_service_account(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->create_service_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**ServiceAccountWrite**](ServiceAccountWrite.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerServiceAccount**](ResponseContainerServiceAccount.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)
+
+# **deactivate_account**
+> ResponseContainerServiceAccount deactivate_account(id)
+
+Deactivates the given service account
+
+
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Deactivates the given service account
+ api_response = api_instance.deactivate_account(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->deactivate_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerServiceAccount**](ResponseContainerServiceAccount.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_account**
+> ResponseContainerAccount delete_account(id)
+
+Deletes an account (user or service account) identified by id
+
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service 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))
+id = 'id_example' # str |
+
+try:
+ # Deletes an account (user or service account) identified by id
+ api_response = api_instance.delete_account(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->delete_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerAccount**](ResponseContainerAccount.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_multiple_accounts**
+> ResponseContainerListString delete_multiple_accounts(body=body)
+
+Deletes multiple accounts (users or service accounts)
+
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service 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.list[str]()] # list[str] | list of accounts' identifiers to be deleted (optional)
+
+try:
+ # Deletes multiple accounts (users or service accounts)
+ api_response = api_instance.delete_multiple_accounts(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->delete_multiple_accounts: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **list[str]**| list of accounts' identifiers to be deleted | [optional]
+
+### Return type
+
+[**ResponseContainerListString**](ResponseContainerListString.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)
+
+# **get_account**
+> ResponseContainerAccount get_account(id)
+
+Get a specific account (user or service account)
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Get a specific account (user or service account)
+ api_response = api_instance.get_account(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->get_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerAccount**](ResponseContainerAccount.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_account_business_functions**
+> ResponseContainerSetBusinessFunction get_account_business_functions(id)
+
+Returns business functions of a specific account (user or service account).
+
+
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Returns business functions of a specific account (user or service account).
+ api_response = api_instance.get_account_business_functions(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->get_account_business_functions: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSetBusinessFunction**](ResponseContainerSetBusinessFunction.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_all_accounts**
+> ResponseContainerPagedAccount get_all_accounts(offset=offset, limit=limit)
+
+Get all accounts (users and service accounts) of a customer
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all accounts (users and service accounts) of a customer
+ api_response = api_instance.get_all_accounts(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->get_all_accounts: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedAccount**](ResponseContainerPagedAccount.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_all_service_accounts**
+> ResponseContainerListServiceAccount get_all_service_accounts()
+
+Get all service 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))
+
+try:
+ # Get all service accounts
+ api_response = api_instance.get_all_service_accounts()
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->get_all_service_accounts: %s\n" % e)
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**ResponseContainerListServiceAccount**](ResponseContainerListServiceAccount.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_all_user_accounts**
+> ResponseContainerListUserDTO get_all_user_accounts()
+
+Get all user accounts
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+
+try:
+ # Get all user accounts
+ api_response = api_instance.get_all_user_accounts()
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->get_all_user_accounts: %s\n" % e)
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**ResponseContainerListUserDTO**](ResponseContainerListUserDTO.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_service_account**
+> ResponseContainerServiceAccount get_service_account(id)
+
+Retrieves a service account by identifier
+
+
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Retrieves a service account by identifier
+ api_response = api_instance.get_service_account(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->get_service_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerServiceAccount**](ResponseContainerServiceAccount.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_user_account**
+> UserModel get_user_account(id)
+
+Retrieves a user by identifier (email address)
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Retrieves a user by identifier (email address)
+ api_response = api_instance.get_user_account(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->get_user_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**UserModel**](UserModel.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_users_with_accounts_permission**
+> ResponseContainerListString get_users_with_accounts_permission()
+
+Get all users with Accounts permission
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+
+try:
+ # Get all users with Accounts permission
+ api_response = api_instance.get_users_with_accounts_permission()
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->get_users_with_accounts_permission: %s\n" % e)
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**ResponseContainerListString**](ResponseContainerListString.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)
+
+# **grant_account_permission**
+> UserModel grant_account_permission(id, permission)
+
+Grants a specific permission to account (user or service account)
+
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service 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))
+id = 'id_example' # str |
+permission = 'permission_example' # str | Permission to grant to the account. Please note that'host_tag_management' is the equivalent of the 'Source Tag Management' permission
+
+try:
+ # Grants a specific permission to account (user or service account)
+ api_response = api_instance.grant_account_permission(id, permission)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->grant_account_permission: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **permission** | **str**| Permission to grant to the account. Please note that'host_tag_management' is the equivalent of the 'Source Tag Management' permission |
+
+### Return type
+
+[**UserModel**](UserModel.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)
+
+# **grant_permission_to_accounts**
+> UserModel grant_permission_to_accounts(permission, body=body)
+
+Grant a permission to accounts (users or service accounts)
+
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service 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))
+permission = 'permission_example' # str | The permission to grant. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission.
+body = [wavefront_api_client.list[str]()] # list[str] | List of accounts the specified permission to be granted to (optional)
+
+try:
+ # Grant a permission to accounts (users or service accounts)
+ api_response = api_instance.grant_permission_to_accounts(permission, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->grant_permission_to_accounts: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **permission** | **str**| The permission to grant. Note that <code>host_tag_management</code> is the equivalent of the **Source Tag Management** permission, <code>monitored_application_service_management</code> is the equivalent of the **Integrations** permission, <code>agent_management</code> is the equivalent of the **Proxies** permission. |
+ **body** | **list[str]**| List of accounts the specified permission to be granted to | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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)
+
+# **invite_user_accounts**
+> UserModel invite_user_accounts(body=body)
+
+Invite user accounts with given user groups and permissions.
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.UserToCreate()] # list[UserToCreate] | Example Body: [ { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } ] (optional)
+
+try:
+ # Invite user accounts with given user groups and permissions.
+ api_response = api_instance.invite_user_accounts(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->invite_user_accounts: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**list[UserToCreate]**](UserToCreate.md)| Example Body: <pre>[ { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } ]</pre> | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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_account_from_roles**
+> UserModel remove_account_from_roles(id, body=body)
+
+Removes specific roles from the account (user or service account)
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | The list of roles that should be removed from the account (optional)
+
+try:
+ # Removes specific roles from the account (user or service account)
+ api_response = api_instance.remove_account_from_roles(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->remove_account_from_roles: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| The list of roles that should be removed from the account | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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_account_from_user_groups**
+> UserModel remove_account_from_user_groups(id, body=body)
+
+Removes specific groups from the account (user or service account)
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | The list of groups that should be removed from the account (optional)
+
+try:
+ # Removes specific groups from the account (user or service account)
+ api_response = api_instance.remove_account_from_user_groups(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->remove_account_from_user_groups: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| The list of groups that should be removed from the account | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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)
+
+Revokes a specific permission from account (user or service account)
+
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service 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))
+id = 'id_example' # str |
+permission = 'permission_example' # str |
+
+try:
+ # Revokes a specific permission from account (user or service account)
+ api_response = api_instance.revoke_account_permission(id, permission)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->revoke_account_permission: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **permission** | **str**| |
+
+### Return type
+
+[**UserModel**](UserModel.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_permission_from_accounts**
+> UserModel revoke_permission_from_accounts(permission, body=body)
+
+Revoke a permission from accounts (users or service accounts)
+
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service 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))
+permission = 'permission_example' # str | The permission to revoke. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission.
+body = [wavefront_api_client.list[str]()] # list[str] | List of accounts the specified permission to be revoked from (optional)
+
+try:
+ # Revoke a permission from accounts (users or service accounts)
+ api_response = api_instance.revoke_permission_from_accounts(permission, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->revoke_permission_from_accounts: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **permission** | **str**| The permission to revoke. Note that <code>host_tag_management</code> is the equivalent of the **Source Tag Management** permission, <code>monitored_application_service_management</code> is the equivalent of the **Integrations** permission, <code>agent_management</code> is the equivalent of the **Proxies** permission. |
+ **body** | **list[str]**| List of accounts the specified permission to be revoked from | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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)
+
+# **update_service_account**
+> ResponseContainerServiceAccount update_service_account(id, body=body)
+
+Updates the service account
+
+
+
+### 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))
+id = 'id_example' # str |
+body = wavefront_api_client.ServiceAccountWrite() # ServiceAccountWrite | (optional)
+
+try:
+ # Updates the service account
+ api_response = api_instance.update_service_account(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->update_service_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**ServiceAccountWrite**](ServiceAccountWrite.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerServiceAccount**](ResponseContainerServiceAccount.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)
+
+# **update_user_account**
+> UserModel update_user_account(id, body=body)
+
+Update user with given user groups and permissions.
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = wavefront_api_client.UserRequestDTO() # UserRequestDTO | Example Body: { \"identifier\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ] } (optional)
+
+try:
+ # Update user with given user groups and permissions.
+ api_response = api_instance.update_user_account(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->update_user_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**UserRequestDTO**](UserRequestDTO.md)| Example Body: <pre>{ \"identifier\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ] }</pre> | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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)
+
+# **validate_accounts**
+> ResponseContainerValidatedUsersDTO validate_accounts(body=body)
+
+Returns valid accounts (users and service accounts), also invalid identifiers from the given list
+
+
+
+### 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.list[str]()] # list[str] | (optional)
+
+try:
+ # Returns valid accounts (users and service accounts), also invalid identifiers from the given list
+ api_response = api_instance.validate_accounts(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AccountUserAndServiceAccountApi->validate_accounts: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **list[str]**| | [optional]
+
+### Return type
+
+[**ResponseContainerValidatedUsersDTO**](ResponseContainerValidatedUsersDTO.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)
+
diff --git a/docs/Alert.md b/docs/Alert.md
index f27e9ee3..88e5467e 100644
--- a/docs/Alert.md
+++ b/docs/Alert.md
@@ -3,57 +3,89 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**last_event_time** | **int** | Start time (in epoch millis) of the last event associated with this alert. | [optional]
-**name** | **str** | |
-**id** | **str** | | [optional]
-**target** | **str** | The email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes |
-**tags** | [**WFTags**](WFTags.md) | | [optional]
-**status** | **list[str]** | Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA | [optional]
-**display_expression** | **str** | A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted | [optional]
-**condition_qb_enabled** | **bool** | Whether the condition query was created using the Query Builder. Default false | [optional]
-**display_expression_qb_enabled** | **bool** | Whether the display expression query was created using the Query Builder. Default false | [optional]
+**acl** | [**AccessControlListSimple**](AccessControlListSimple.md) | | [optional]
+**active_maintenance_windows** | **list[str]** | The names of the active maintenance windows that are affecting this alert | [optional]
+**additional_information** | **str** | User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc | [optional]
+**alert_chart_base** | **int** | The base of alert chart. A linear chart will have base as 1. A logarithmic chart will have the other base value.The value should be an integer and should greater than or equal to 1. | [optional]
+**alert_chart_description** | **str** | The description of alert chart. Different from alert additional info, this is used to describe the characteristics of the chart. | [optional]
+**alert_chart_units** | **str** | The y-axis unit of Alert chart. | [optional]
+**alert_sources** | [**list[AlertSource]**](AlertSource.md) | A list of queries represent multiple queries in alert. It must contains at least one query with AlertSourceType as CONDITION. | [optional]
+**alert_triage_dashboards** | [**list[AlertDashboard]**](AlertDashboard.md) | User-supplied dashboard and parameters to create dashboard links. Parameters must be specified as constants or variables. Constant parameters currently only supported | [optional]
+**alert_type** | **str** | Alert type. | [optional]
+**alerts_last_day** | **int** | | [optional]
+**alerts_last_month** | **int** | | [optional]
+**alerts_last_week** | **int** | | [optional]
+**application** | **list[str]** | Lists the applications from the failingHostLabelPair of the alert. | [optional]
+**chart_attributes** | [**JsonNode**](JsonNode.md) | Additional chart settings for the alert (e.g. pie chart has its chart settings in this section). | [optional]
+**chart_settings** | [**ChartSettings**](ChartSettings.md) | The old chart settings for the alert (e.g. chart type, chart range etc.). | [optional]
**condition** | **str** | A Wavefront query that is evaluated at regular intervals (default 1m). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes |
+**condition_qb_enabled** | **bool** | Whether the condition query was created using the Query Builder. Default false | [optional]
**condition_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true | [optional]
-**display_expression_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true | [optional]
-**include_obsolete_metrics** | **bool** | Whether to include obsolete metrics in alert query | [optional]
-**severity** | **str** | Severity of the alert |
+**condition_query_type** | **str** | | [optional]
+**conditions** | **dict(str, str)** | Multi - alert conditions. | [optional]
+**create_user_id** | **str** | | [optional]
+**created** | **int** | When this alert was created, in epoch millis | [optional]
+**created_epoch_millis** | **int** | | [optional]
**creator_id** | **str** | | [optional]
-**additional_information** | **str** | User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc | [optional]
-**resolve_after_minutes** | **int** | The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" | [optional]
-**minutes** | **int** | The number of consecutive minutes that a series matching the condition query must evaluate to \"true\" (non-zero value) before the alert fires |
+**deleted** | **bool** | | [optional]
+**display_expression** | **str** | A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted | [optional]
+**display_expression_qb_enabled** | **bool** | Whether the display expression query was created using the Query Builder. Default false | [optional]
+**display_expression_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true | [optional]
+**display_expression_query_type** | **str** | | [optional]
+**enable_pd_incident_by_series** | **bool** | | [optional]
+**evaluate_realtime_data** | **bool** | Whether to alert on the real-time ingestion stream (may be noisy due to late data) | [optional]
+**event** | [**Event**](Event.md) | | [optional]
+**failing_host_label_pair_links** | **list[str]** | List of links to tracing applications that caused a failing series | [optional]
**failing_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Failing host/metric pairs | [optional]
-**query_failing** | **bool** | Whether there was an exception when the alert condition last ran | [optional]
-**last_failed_time** | **int** | The time of the last error encountered when running this alert's condition query, in epoch millis | [optional]
-**last_error_message** | **str** | The last error encountered when running this alert's condition query | [optional]
-**metrics_used** | **list[str]** | Number of metrics checked by the alert condition | [optional]
+**hidden** | **bool** | | [optional]
**hosts_used** | **list[str]** | Number of hosts checked by the alert condition | [optional]
+**id** | **str** | | [optional]
**in_maintenance_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Lists the sources that will not be checked for this alert, due to matching a maintenance window | [optional]
-**active_maintenance_windows** | **list[str]** | The names of the active maintenance windows that are affecting this alert | [optional]
-**prefiring_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Lists the series that are starting to fail, defined as failing for greater than 50% of the checks in the window determined by the \"minutes\" parameter | [optional]
-**notificants** | **list[str]** | A derived field listing the webhook ids used by this alert | [optional]
-**last_processed_millis** | **int** | The time when this alert was last checked, in epoch millis | [optional]
-**process_rate_minutes** | **int** | The interval between checks for this alert, in minutes. Defaults to 1 minute | [optional]
-**points_scanned_at_last_query** | **int** | A derived field recording the number of data points scanned when the system last computed this alert's condition | [optional]
+**in_trash** | **bool** | | [optional]
+**include_obsolete_metrics** | **bool** | Whether to include obsolete metrics in alert query | [optional]
+**ingestion_policy_id** | **str** | Get the ingestion policy Id associated with ingestion policy alert. | [optional]
+**last_error_message** | **str** | The last error encountered when running this alert's condition query | [optional]
+**last_event_time** | **int** | Start time (in epoch millis) of the last event associated with this alert. | [optional]
+**last_failed_time** | **int** | The time of the last error encountered when running this alert's condition query, in epoch millis | [optional]
**last_notification_millis** | **int** | When this alert last caused a notification, in epoch millis | [optional]
-**notification_resend_frequency_minutes** | **int** | How often to re-trigger a continually failing alert. If absent or <= 0, no retriggering occurs | [optional]
-**created_epoch_millis** | **int** | | [optional]
-**updated_epoch_millis** | **int** | | [optional]
-**event** | [**Event**](Event.md) | | [optional]
-**updater_id** | **str** | | [optional]
-**created** | **int** | When this alert was created, in epoch millis | [optional]
-**updated** | **int** | When the alert was last updated, in epoch millis | [optional]
-**update_user_id** | **str** | The user that last updated this alert | [optional]
+**last_processed_millis** | **int** | The time when this alert was last checked, in epoch millis | [optional]
**last_query_time** | **int** | Last query time of the alert, averaged on hourly basis | [optional]
-**alerts_last_day** | **int** | | [optional]
-**alerts_last_week** | **int** | | [optional]
-**alerts_last_month** | **int** | | [optional]
-**snoozed** | **int** | The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely | [optional]
+**metrics_used** | **list[str]** | Number of metrics checked by the alert condition | [optional]
+**minutes** | **int** | The number of consecutive minutes that a series matching the condition query must evaluate to \"true\" (non-zero value) before the alert fires |
+**modify_acl_access** | **bool** | Whether the user has modify ACL access to the alert. | [optional]
+**name** | **str** | |
**no_data_event** | [**Event**](Event.md) | No data event related to the alert | [optional]
-**in_trash** | **bool** | | [optional]
-**create_user_id** | **str** | | [optional]
-**deleted** | **bool** | | [optional]
-**target_info** | [**list[TargetInfo]**](TargetInfo.md) | List of alert targets display information that includes name, id and type. | [optional]
+**notificants** | **list[str]** | A derived field listing the webhook ids used by this alert | [optional]
+**notification_resend_frequency_minutes** | **int** | How often to re-trigger a continually failing alert. If absent or <= 0, no retriggering occurs | [optional]
+**num_points_in_failure_frame** | **int** | Number of points scanned in alert query time frame. | [optional]
+**orphan** | **bool** | | [optional]
+**points_scanned_at_last_query** | **int** | A derived field recording the number of data points scanned when the system last computed this alert's condition | [optional]
+**prefiring_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Lists the series that are starting to fail, defined as failing for greater than 50% of the checks in the window determined by the \"minutes\" parameter | [optional]
+**process_rate_minutes** | **int** | The interval between checks for this alert, in minutes. Defaults to 5 minutes | [optional]
+**query_failing** | **bool** | Whether there was an exception when the alert condition last ran | [optional]
+**query_syntax_error** | **bool** | Whether there was an query syntax exception when the alert condition last ran | [optional]
+**resolve_after_minutes** | **int** | The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" | [optional]
+**runbook_links** | **list[str]** | User-supplied runbook links for this alert. Useful for linking wiki page or documentation, etc to refer to when alert is triggered | [optional]
+**secure_metric_details** | **bool** | Whether to secure sensitive metric details and alert images in alert notifications, to not break Metrics Security. | [optional]
+**service** | **list[str]** | Lists the services from the failingHostLabelPair of the alert. | [optional]
+**severity** | **str** | Severity of the alert | [optional]
+**severity_list** | **list[str]** | Alert severity list for multi-threshold type. | [optional]
+**snoozed** | **int** | The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely | [optional]
**sort_attr** | **int** | Attribute used for default alert sort that is derived from state and severity | [optional]
+**status** | **list[str]** | Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA | [optional]
+**system_alert_version** | **int** | If this is a system alert, the version of it | [optional]
+**system_owned** | **bool** | Whether this alert is system-owned and not writeable | [optional]
+**tagpaths** | **list[str]** | | [optional]
+**tags** | [**WFTags**](WFTags.md) | | [optional]
+**target** | **str** | The email address or integration endpoint (such as PagerDuty or web hook) to notify when the alert status changes. Comma-separated list of targets. Multiple target types can be in the list. Alert target format: ({email}|pd:{pd_key}|target:{alert target ID}). You cannot update this value. | [optional]
+**target_endpoints** | **list[str]** | | [optional]
+**target_info** | [**list[TargetInfo]**](TargetInfo.md) | List of alert targets display information that includes name, id and type. | [optional]
+**targets** | **dict(str, str)** | Targets for severity. | [optional]
+**triage_dashboards** | [**list[TriageDashboard]**](TriageDashboard.md) | Deprecated for alertTriageDashboards | [optional]
+**update_user_id** | **str** | The user that last updated this alert | [optional]
+**updated** | **int** | When the alert was last updated, in epoch millis | [optional]
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [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/AlertAnalyticsApi.md b/docs/AlertAnalyticsApi.md
new file mode 100644
index 00000000..e3c5427f
--- /dev/null
+++ b/docs/AlertAnalyticsApi.md
@@ -0,0 +1,305 @@
+# wavefront_api_client.AlertAnalyticsApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_active_no_target_alert_summary_details**](AlertAnalyticsApi.md#get_active_no_target_alert_summary_details) | **GET** /api/v2/alert/analytics/summary/alerts/noTarget | Get Active No Target Alert Summary for a customer
+[**get_alert_analytics_errors_summary**](AlertAnalyticsApi.md#get_alert_analytics_errors_summary) | **GET** /api/v2/alert/analytics/summary/errors | Get Alert Analytics errors summary
+[**get_alert_analytics_summary**](AlertAnalyticsApi.md#get_alert_analytics_summary) | **GET** /api/v2/alert/analytics/summary | Get Alert Analytics Summary for a customer
+[**get_failed_alert_summary_details**](AlertAnalyticsApi.md#get_failed_alert_summary_details) | **GET** /api/v2/alert/analytics/summary/alerts/failed | Get Failed Alert Summary Details for a customer
+[**get_no_data_alert_summary_details**](AlertAnalyticsApi.md#get_no_data_alert_summary_details) | **GET** /api/v2/alert/analytics/summary/alerts/noData | Get No Data Alert Summary for a customer
+
+
+# **get_active_no_target_alert_summary_details**
+> ResponseContainerPagedAlertAnalyticsSummaryDetail get_active_no_target_alert_summary_details(start, end=end, offset=offset, limit=limit)
+
+Get Active No Target Alert Summary 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.AlertAnalyticsApi(wavefront_api_client.ApiClient(configuration))
+start = 789 # int | Start time in epoch seconds
+end = 789 # int | End time in epoch seconds, null to use now (optional)
+offset = 0 # int | offset for records (optional) (default to 0)
+limit = 50 # int | Number of records (optional) (default to 50)
+
+try:
+ # Get Active No Target Alert Summary for a customer
+ api_response = api_instance.get_active_no_target_alert_summary_details(start, end=end, offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AlertAnalyticsApi->get_active_no_target_alert_summary_details: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start** | **int**| Start time in epoch seconds |
+ **end** | **int**| End time in epoch seconds, null to use now | [optional]
+ **offset** | **int**| offset for records | [optional] [default to 0]
+ **limit** | **int**| Number of records | [optional] [default to 50]
+
+### Return type
+
+[**ResponseContainerPagedAlertAnalyticsSummaryDetail**](ResponseContainerPagedAlertAnalyticsSummaryDetail.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)
+
+# **get_alert_analytics_errors_summary**
+> ResponseContainerListAlertErrorGroupInfo get_alert_analytics_errors_summary(start, end=end)
+
+Get Alert Analytics errors summary
+
+
+
+### 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.AlertAnalyticsApi(wavefront_api_client.ApiClient(configuration))
+start = 789 # int | Start time in epoch seconds
+end = 789 # int | End time in epoch seconds, null to use now (optional)
+
+try:
+ # Get Alert Analytics errors summary
+ api_response = api_instance.get_alert_analytics_errors_summary(start, end=end)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AlertAnalyticsApi->get_alert_analytics_errors_summary: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start** | **int**| Start time in epoch seconds |
+ **end** | **int**| End time in epoch seconds, null to use now | [optional]
+
+### Return type
+
+[**ResponseContainerListAlertErrorGroupInfo**](ResponseContainerListAlertErrorGroupInfo.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)
+
+# **get_alert_analytics_summary**
+> ResponseContainerAlertAnalyticsSummary get_alert_analytics_summary(start, end=end)
+
+Get Alert Analytics Summary 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.AlertAnalyticsApi(wavefront_api_client.ApiClient(configuration))
+start = 789 # int | Start time in epoch seconds
+end = 789 # int | End time in epoch seconds, null to use now (optional)
+
+try:
+ # Get Alert Analytics Summary for a customer
+ api_response = api_instance.get_alert_analytics_summary(start, end=end)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AlertAnalyticsApi->get_alert_analytics_summary: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start** | **int**| Start time in epoch seconds |
+ **end** | **int**| End time in epoch seconds, null to use now | [optional]
+
+### Return type
+
+[**ResponseContainerAlertAnalyticsSummary**](ResponseContainerAlertAnalyticsSummary.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)
+
+# **get_failed_alert_summary_details**
+> ResponseContainerPagedAlertAnalyticsSummaryDetail get_failed_alert_summary_details(start, end=end, offset=offset, limit=limit)
+
+Get Failed Alert Summary Details 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.AlertAnalyticsApi(wavefront_api_client.ApiClient(configuration))
+start = 789 # int | Start time in epoch seconds
+end = 789 # int | End time in epoch seconds, null to use now (optional)
+offset = 0 # int | offset for records (optional) (default to 0)
+limit = 50 # int | Number of records (optional) (default to 50)
+
+try:
+ # Get Failed Alert Summary Details for a customer
+ api_response = api_instance.get_failed_alert_summary_details(start, end=end, offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AlertAnalyticsApi->get_failed_alert_summary_details: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start** | **int**| Start time in epoch seconds |
+ **end** | **int**| End time in epoch seconds, null to use now | [optional]
+ **offset** | **int**| offset for records | [optional] [default to 0]
+ **limit** | **int**| Number of records | [optional] [default to 50]
+
+### Return type
+
+[**ResponseContainerPagedAlertAnalyticsSummaryDetail**](ResponseContainerPagedAlertAnalyticsSummaryDetail.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)
+
+# **get_no_data_alert_summary_details**
+> ResponseContainerPagedAlertAnalyticsSummaryDetail get_no_data_alert_summary_details(start, end=end, offset=offset, limit=limit)
+
+Get No Data Alert Summary 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.AlertAnalyticsApi(wavefront_api_client.ApiClient(configuration))
+start = 789 # int | Start time in epoch seconds
+end = 789 # int | End time in epoch seconds, null to use now (optional)
+offset = 0 # int | offset for records (optional) (default to 0)
+limit = 50 # int | Number of records (optional) (default to 50)
+
+try:
+ # Get No Data Alert Summary for a customer
+ api_response = api_instance.get_no_data_alert_summary_details(start, end=end, offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AlertAnalyticsApi->get_no_data_alert_summary_details: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start** | **int**| Start time in epoch seconds |
+ **end** | **int**| End time in epoch seconds, null to use now | [optional]
+ **offset** | **int**| offset for records | [optional] [default to 0]
+ **limit** | **int**| Number of records | [optional] [default to 50]
+
+### Return type
+
+[**ResponseContainerPagedAlertAnalyticsSummaryDetail**](ResponseContainerPagedAlertAnalyticsSummaryDetail.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)
+
diff --git a/docs/AlertAnalyticsSummary.md b/docs/AlertAnalyticsSummary.md
new file mode 100644
index 00000000..e8afbbb7
--- /dev/null
+++ b/docs/AlertAnalyticsSummary.md
@@ -0,0 +1,13 @@
+# AlertAnalyticsSummary
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**total_active_no_target** | **int** | | [optional]
+**total_evaluated** | **int** | | [optional]
+**total_failed** | **int** | | [optional]
+**total_no_data** | **int** | | [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/AlertAnalyticsSummaryDetail.md b/docs/AlertAnalyticsSummaryDetail.md
new file mode 100644
index 00000000..8e1b1806
--- /dev/null
+++ b/docs/AlertAnalyticsSummaryDetail.md
@@ -0,0 +1,27 @@
+# AlertAnalyticsSummaryDetail
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**alert_id** | **int** | The alert id | [optional]
+**alert_name** | **str** | The alert name | [optional]
+**avg_key_cardinality** | **int** | The average cardinality across all alert execution logs. | [optional]
+**avg_latency** | **int** | The average latency across all alert execution logs. | [optional]
+**avg_points** | **int** | The average points across all alert execution logs. | [optional]
+**checking_frequency** | **int** | The checking frequency of the alert. | [optional]
+**creator_id** | **str** | | [optional]
+**error_groups_summary** | [**list[AlertErrorGroupSummary]**](AlertErrorGroupSummary.md) | | [optional]
+**failure_percentage** | **float** | | [optional]
+**failure_percentage_range** | **str** | | [optional]
+**is_no_data** | **bool** | | [optional]
+**is_no_target** | **bool** | | [optional]
+**last_event_time** | **str** | | [optional]
+**last_updated_time** | **str** | | [optional]
+**last_updated_user_id** | **str** | | [optional]
+**tags** | **list[str]** | | [optional]
+**total_evaluated** | **int** | | [optional]
+**total_failed** | **int** | | [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/AlertApi.md b/docs/AlertApi.md
index 5d87f7c6..566dc760 100644
--- a/docs/AlertApi.md
+++ b/docs/AlertApi.md
@@ -1,28 +1,91 @@
# wavefront_api_client.AlertApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**add_alert_access**](AlertApi.md#add_alert_access) | **POST** /api/v2/alert/acl/add | Adds the specified ids to the given alerts' ACL
[**add_alert_tag**](AlertApi.md#add_alert_tag) | **PUT** /api/v2/alert/{id}/tag/{tagValue} | Add a tag to a specific alert
+[**check_query_type**](AlertApi.md#check_query_type) | **POST** /api/v2/alert/checkQuery | Return the type of provided query.
+[**clone_alert**](AlertApi.md#clone_alert) | **POST** /api/v2/alert/{id}/clone | Clones the specified alert
[**create_alert**](AlertApi.md#create_alert) | **POST** /api/v2/alert | Create a specific alert
[**delete_alert**](AlertApi.md#delete_alert) | **DELETE** /api/v2/alert/{id} | Delete a specific alert
[**get_alert**](AlertApi.md#get_alert) | **GET** /api/v2/alert/{id} | Get a specific alert
+[**get_alert_access_control_list**](AlertApi.md#get_alert_access_control_list) | **GET** /api/v2/alert/acl | Get Access Control Lists' union for the specified alerts
[**get_alert_history**](AlertApi.md#get_alert_history) | **GET** /api/v2/alert/{id}/history | Get the version history of a specific alert
[**get_alert_tags**](AlertApi.md#get_alert_tags) | **GET** /api/v2/alert/{id}/tag | Get all tags associated with a specific alert
[**get_alert_version**](AlertApi.md#get_alert_version) | **GET** /api/v2/alert/{id}/history/{version} | Get a specific historical version of a specific alert
[**get_alerts_summary**](AlertApi.md#get_alerts_summary) | **GET** /api/v2/alert/summary | Count alerts of various statuses for a customer
+[**get_alerts_with_pagination**](AlertApi.md#get_alerts_with_pagination) | **GET** /api/v2/alert/paginated | Get all alerts for a customer with pagination
[**get_all_alert**](AlertApi.md#get_all_alert) | **GET** /api/v2/alert | Get all alerts for a customer
+[**hide_alert**](AlertApi.md#hide_alert) | **POST** /api/v2/alert/{id}/uninstall | Hide a specific integration alert
+[**preview_alert_notification**](AlertApi.md#preview_alert_notification) | **POST** /api/v2/alert/preview | Get all the notification preview for a specific alert
+[**remove_alert_access**](AlertApi.md#remove_alert_access) | **POST** /api/v2/alert/acl/remove | Removes the specified ids from the given alerts' ACL
[**remove_alert_tag**](AlertApi.md#remove_alert_tag) | **DELETE** /api/v2/alert/{id}/tag/{tagValue} | Remove a tag from a specific alert
+[**set_alert_acl**](AlertApi.md#set_alert_acl) | **PUT** /api/v2/alert/acl/set | Set ACL for the specified alerts
[**set_alert_tags**](AlertApi.md#set_alert_tags) | **POST** /api/v2/alert/{id}/tag | Set all tags associated with a specific alert
[**snooze_alert**](AlertApi.md#snooze_alert) | **POST** /api/v2/alert/{id}/snooze | Snooze a specific alert for some number of seconds
[**undelete_alert**](AlertApi.md#undelete_alert) | **POST** /api/v2/alert/{id}/undelete | Undelete a specific alert
+[**unhide_alert**](AlertApi.md#unhide_alert) | **POST** /api/v2/alert/{id}/install | Unhide a specific integration alert
[**unsnooze_alert**](AlertApi.md#unsnooze_alert) | **POST** /api/v2/alert/{id}/unsnooze | Unsnooze a specific alert
[**update_alert**](AlertApi.md#update_alert) | **PUT** /api/v2/alert/{id} | Update a specific alert
+# **add_alert_access**
+> add_alert_access(body=body)
+
+Adds the specified ids to the given alerts' ACL
+
+
+
+### 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.AlertApi(wavefront_api_client.ApiClient(configuration))
+body = [wavefront_api_client.AccessControlListWriteDTO()] # list[AccessControlListWriteDTO] | (optional)
+
+try:
+ # Adds the specified ids to the given alerts' ACL
+ api_instance.add_alert_access(body=body)
+except ApiException as e:
+ print("Exception when calling AlertApi->add_alert_access: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**list[AccessControlListWriteDTO]**](AccessControlListWriteDTO.md)| | [optional]
+
+### Return type
+
+void (empty response body)
+
+### 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_alert_tag**
-> ResponseContainer add_alert_tag(id, tag_value)
+> ResponseContainerVoid add_alert_tag(id, tag_value)
Add a tag to a specific alert
@@ -45,7 +108,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
-tag_value = 'tag_value_example' # str |
+tag_value = 'tag_value_example' # str | Supported Characters of Tags: Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.try: # Add a tag to a specific alert @@ -60,11 +123,123 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| | - **tag_value** | **str**| | + **tag_value** | **str**| Supported Characters of Tags: <pre>Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.</pre> | + +### Return type + +[**ResponseContainerVoid**](ResponseContainerVoid.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) + +# **check_query_type** +> ResponseContainerQueryTypeDTO check_query_type(body=body) + +Return the type of provided query. + + + +### 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.AlertApi(wavefront_api_client.ApiClient(configuration)) +body = wavefront_api_client.QueryTypeDTO() # QueryTypeDTO | (optional) + +try: + # Return the type of provided query. + api_response = api_instance.check_query_type(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling AlertApi->check_query_type: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**QueryTypeDTO**](QueryTypeDTO.md)| | [optional] + +### Return type + +[**ResponseContainerQueryTypeDTO**](ResponseContainerQueryTypeDTO.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) + +# **clone_alert** +> ResponseContainerAlert clone_alert(id, name=name, v=v) + +Clones the specified alert + + + +### 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.AlertApi(wavefront_api_client.ApiClient(configuration)) +id = 'id_example' # str | +name = 'name_example' # str | (optional) +v = 789 # int | (optional) + +try: + # Clones the specified alert + api_response = api_instance.clone_alert(id, name=name, v=v) + pprint(api_response) +except ApiException as e: + print("Exception when calling AlertApi->clone_alert: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **name** | **str**| | [optional] + **v** | **int**| | [optional] ### Return type -[**ResponseContainer**](ResponseContainer.md) +[**ResponseContainerAlert**](ResponseContainerAlert.md) ### Authorization @@ -78,7 +253,7 @@ 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) # **create_alert** -> ResponseContainerAlert create_alert(body=body) +> ResponseContainerAlert create_alert(use_multi_query=use_multi_query, body=body) Create a specific alert @@ -100,11 +275,12 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration)) -body = wavefront_api_client.Alert() # Alert | Example Body:
{ \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" } (optional)
+use_multi_query = false # bool | A flag indicates whether to use the new multi-query alert structures when thefeature is enabled.{ \"name\": \"Alert Name\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"conditionQueryType\": \"WQL\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"displayExpressionQueryType\": \"WQL\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"alertTriageDashboards\": [{ \"dashboardId\": \"dashboard-name\", \"parameters\": { \"constants\": { \"key\": \"value\" } }, \"description\": \"dashboard description\" } ], \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } } Example Classic Body with multi queries: { \"name\": \"Alert Name\", \"alertType\": \"CLASSIC\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B} > 2\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"severity\": \"WARN\", \"minutes\": 5 } Example Threshold Body: { \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"conditions\": { \"info\": \"ts(~sample.cpu.loadavg.1m) > 0\", \"warn\": \"ts(~sample.cpu.loadavg.1m) > 2\" }, \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"additionalInformation\": \"conditions value entry needs to be of the form: displayExpression operator threshold\" } Example Threshold Body with multi queries: { \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B}\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"conditions\": { \"info\": \"${B} > bool 0\", \"warn\": \"${B} > bool 2\" }, \"minutes\": 5 } Supported Characters of Tags: Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.Supported Alert Target formats:
Classic Alerts - \"target\": \"{email},pd:{pd_key},target:{alert target ID}\" Threshold Alerts - \"targets\": {\"info\":\"{email},pd:{pd_key},target:{alert target ID}\", \"warn\":\"{email},pd:{pd_key},target:{alert target ID}\"} Note that only target(s) can be used for creating/updating alert targets. targetEndpoints, targetInfo are for informational purpose only. (optional)
try:
# Create a specific alert
- api_response = api_instance.create_alert(body=body)
+ api_response = api_instance.create_alert(use_multi_query=use_multi_query, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertApi->create_alert: %s\n" % e)
@@ -114,7 +290,8 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Alert**](Alert.md)| Example Body: <pre>{ \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" }</pre> | [optional]
+ **use_multi_query** | **bool**| A flag indicates whether to use the new multi-query alert structures when thefeature is enabled.<br/> When the flag is true, the $.alertSources is the source of truth and will update $.condition and $.displayExpression with the corresponding expanded queries.<br/> When the flag is false, it goes through the old way and the $.condition and$.displayExpression is the source of truth and will auto-create $.alertSources | [optional] [default to false]
+ **body** | [**Alert**](Alert.md)| Example Classic Body: <pre>{ \"name\": \"Alert Name\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"conditionQueryType\": \"WQL\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"displayExpressionQueryType\": \"WQL\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"alertTriageDashboards\": [{ \"dashboardId\": \"dashboard-name\", \"parameters\": { \"constants\": { \"key\": \"value\" } }, \"description\": \"dashboard description\" } ], \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } }</pre> Example Classic Body with multi queries: <pre>{ \"name\": \"Alert Name\", \"alertType\": \"CLASSIC\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B} > 2\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"severity\": \"WARN\", \"minutes\": 5 }</pre> Example Threshold Body: <pre>{ \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"conditions\": { \"info\": \"ts(~sample.cpu.loadavg.1m) > 0\", \"warn\": \"ts(~sample.cpu.loadavg.1m) > 2\" }, \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"additionalInformation\": \"conditions value entry needs to be of the form: displayExpression operator threshold\" }</pre> Example Threshold Body with multi queries: <pre>{ \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B}\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"conditions\": { \"info\": \"${B} > bool 0\", \"warn\": \"${B} > bool 2\" }, \"minutes\": 5 }</pre> Supported Characters of Tags: <pre>Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.</pre> Supported Alert Target formats: <pre>Classic Alerts - \"target\": \"{email},pd:{pd_key},target:{alert target ID}\" Threshold Alerts - \"targets\": {\"info\":\"{email},pd:{pd_key},target:{alert target ID}\", \"warn\":\"{email},pd:{pd_key},target:{alert target ID}\"} Note that only target(s) can be used for creating/updating alert targets. targetEndpoints, targetInfo are for informational purpose only.</pre> | [optional]
### Return type
@@ -132,7 +309,7 @@ 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)
# **delete_alert**
-> ResponseContainerAlert delete_alert(id)
+> ResponseContainerAlert delete_alert(id, skip_trash=skip_trash)
Delete a specific alert
@@ -155,10 +332,11 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
+skip_trash = false # bool | (optional) (default to false)
try:
# Delete a specific alert
- api_response = api_instance.delete_alert(id)
+ api_response = api_instance.delete_alert(id, skip_trash=skip_trash)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertApi->delete_alert: %s\n" % e)
@@ -169,6 +347,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
+ **skip_trash** | **bool**| | [optional] [default to false]
### Return type
@@ -239,6 +418,60 @@ 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)
+# **get_alert_access_control_list**
+> ResponseContainerListAccessControlListReadDTO get_alert_access_control_list(id=id)
+
+Get Access Control Lists' union for the specified alerts
+
+
+
+### 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.AlertApi(wavefront_api_client.ApiClient(configuration))
+id = ['id_example'] # list[str] | (optional)
+
+try:
+ # Get Access Control Lists' union for the specified alerts
+ api_response = api_instance.get_alert_access_control_list(id=id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AlertApi->get_alert_access_control_list: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | [**list[str]**](str.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerListAccessControlListReadDTO**](ResponseContainerListAccessControlListReadDTO.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_alert_history**
> ResponseContainerHistoryResponse get_alert_history(id, offset=offset, limit=limit)
@@ -457,6 +690,62 @@ 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_alerts_with_pagination**
+> ResponseContainerPagedAlert get_alerts_with_pagination(cursor=cursor, limit=limit)
+
+Get all alerts for a customer with pagination
+
+
+
+### 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.AlertApi(wavefront_api_client.ApiClient(configuration))
+cursor = 789 # int | (optional)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all alerts for a customer with pagination
+ api_response = api_instance.get_alerts_with_pagination(cursor=cursor, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AlertApi->get_alerts_with_pagination: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cursor** | **int**| | [optional]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedAlert**](ResponseContainerPagedAlert.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_all_alert**
> ResponseContainerPagedAlert get_all_alert(offset=offset, limit=limit)
@@ -513,8 +802,169 @@ 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)
+# **hide_alert**
+> ResponseContainerAlert hide_alert(id)
+
+Hide a specific integration alert
+
+
+
+### 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.AlertApi(wavefront_api_client.ApiClient(configuration))
+id = 789 # int |
+
+try:
+ # Hide a specific integration alert
+ api_response = api_instance.hide_alert(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AlertApi->hide_alert: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **int**| |
+
+### Return type
+
+[**ResponseContainerAlert**](ResponseContainerAlert.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)
+
+# **preview_alert_notification**
+> ResponseContainerListNotificationMessages preview_alert_notification(body=body)
+
+Get all the notification preview for a specific alert
+
+
+
+### 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.AlertApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.Alert() # Alert | (optional)
+
+try:
+ # Get all the notification preview for a specific alert
+ api_response = api_instance.preview_alert_notification(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AlertApi->preview_alert_notification: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**Alert**](Alert.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerListNotificationMessages**](ResponseContainerListNotificationMessages.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)
+
+# **remove_alert_access**
+> remove_alert_access(body=body)
+
+Removes the specified ids from the given alerts' ACL
+
+
+
+### 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.AlertApi(wavefront_api_client.ApiClient(configuration))
+body = [wavefront_api_client.AccessControlListWriteDTO()] # list[AccessControlListWriteDTO] | (optional)
+
+try:
+ # Removes the specified ids from the given alerts' ACL
+ api_instance.remove_alert_access(body=body)
+except ApiException as e:
+ print("Exception when calling AlertApi->remove_alert_access: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**list[AccessControlListWriteDTO]**](AccessControlListWriteDTO.md)| | [optional]
+
+### Return type
+
+void (empty response body)
+
+### 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_alert_tag**
-> ResponseContainer remove_alert_tag(id, tag_value)
+> ResponseContainerVoid remove_alert_tag(id, tag_value)
Remove a tag from a specific alert
@@ -537,7 +987,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
-tag_value = 'tag_value_example' # str |
+tag_value = 'tag_value_example' # str | Supported Characters of Tags: Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.try: # Remove a tag from a specific alert @@ -552,11 +1002,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| | - **tag_value** | **str**| | + **tag_value** | **str**| Supported Characters of Tags: <pre>Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.</pre> | ### Return type -[**ResponseContainer**](ResponseContainer.md) +[**ResponseContainerVoid**](ResponseContainerVoid.md) ### Authorization @@ -569,8 +1019,61 @@ 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) +# **set_alert_acl** +> set_alert_acl(body=body) + +Set ACL for the specified alerts + + + +### 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.AlertApi(wavefront_api_client.ApiClient(configuration)) +body = [wavefront_api_client.AccessControlListWriteDTO()] # list[AccessControlListWriteDTO] | (optional) + +try: + # Set ACL for the specified alerts + api_instance.set_alert_acl(body=body) +except ApiException as e: + print("Exception when calling AlertApi->set_alert_acl: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**list[AccessControlListWriteDTO]**](AccessControlListWriteDTO.md)| | [optional] + +### Return type + +void (empty response body) + +### 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) + # **set_alert_tags** -> ResponseContainer set_alert_tags(id, body=body) +> ResponseContainerVoid set_alert_tags(id, body=body) Set all tags associated with a specific alert @@ -593,7 +1096,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration)) id = 'id_example' # str | -body = [wavefront_api_client.list[str]()] # list[str] | (optional) +body = [wavefront_api_client.list[str]()] # list[str] | Supported Characters of Tags:
Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.(optional) try: # Set all tags associated with a specific alert @@ -608,11 +1111,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| | - **body** | **list[str]**| | [optional] + **body** | **list[str]**| Supported Characters of Tags: <pre>Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.</pre> | [optional] ### Return type -[**ResponseContainer**](ResponseContainer.md) +[**ResponseContainerVoid**](ResponseContainerVoid.md) ### Authorization @@ -704,7 +1207,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration)) -id = 'id_example' # str | +id = 789 # int | try: # Undelete a specific alert @@ -718,7 +1221,61 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **int**| | + +### Return type + +[**ResponseContainerAlert**](ResponseContainerAlert.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) + +# **unhide_alert** +> ResponseContainerAlert unhide_alert(id) + +Unhide a specific integration alert + + + +### 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.AlertApi(wavefront_api_client.ApiClient(configuration)) +id = 789 # int | + +try: + # Unhide a specific integration alert + api_response = api_instance.unhide_alert(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling AlertApi->unhide_alert: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int**| | ### Return type @@ -758,7 +1315,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration)) -id = 'id_example' # str | +id = 789 # int | try: # Unsnooze a specific alert @@ -772,7 +1329,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **int**| | ### Return type @@ -790,7 +1347,7 @@ 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) # **update_alert** -> ResponseContainerAlert update_alert(id, body=body) +> ResponseContainerAlert update_alert(id, use_multi_query=use_multi_query, body=body) Update a specific alert @@ -813,11 +1370,12 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration)) id = 'id_example' # str | -body = wavefront_api_client.Alert() # Alert | Example Body:
{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" } (optional)
+use_multi_query = false # bool | A flag indicates whether to use the new multi-query alert structures when the feature is enabled.{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"conditionQueryType\": \"WQL\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"displayExpressionQueryType\": \"WQL\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } } Example Classic Body with multi queries: { \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"alertType\": \"CLASSIC\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B} > 2\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"severity\": \"WARN\", \"minutes\": 5 } Example Threshold Body: { \"id\": \"1459375928550\", \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"conditions\": { \"info\": \"ts(~sample.cpu.loadavg.1m) > 0\", \"warn\": \"ts(~sample.cpu.loadavg.1m) > 5\" }, \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"additionalInformation\": \"conditions value entry needs to be of the form: displayExpression operator threshold\" } Example Threshold Body with multi queries: { \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B}\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"conditions\": { \"info\": \"${B} > bool 0\", \"warn\": \"${B} > bool 2\" }, \"minutes\": 5 } Supported Characters of Tags: Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.Supported Alert Target formats:
Classic Alerts - \"target\": \"{email},pd:{pd_key},target:{alert target ID}\" Threshold Alerts - \"targets\": {\"info\":\"{email},pd:{pd_key},target:{alert target ID}\", \"warn\":\"{email},pd:{pd_key},target:{alert target ID}\"} Note that only target(s) can be used for creating/updating alert targets. targetEndpoints, targetInfo are for informational purpose only. (optional)
try:
# Update a specific alert
- api_response = api_instance.update_alert(id, body=body)
+ api_response = api_instance.update_alert(id, use_multi_query=use_multi_query, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertApi->update_alert: %s\n" % e)
@@ -828,7 +1386,8 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
- **body** | [**Alert**](Alert.md)| Example Body: <pre>{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" }</pre> | [optional]
+ **use_multi_query** | **bool**| A flag indicates whether to use the new multi-query alert structures when the feature is enabled.<br/> When the flag is true, the $.alertSources is the source of truth and will update $.condition and $.displayExpression with the corresponding expanded queries.<br/> When the flag is false, it goes through the old way and the $.condition and$.displayExpression is the source of truth and will auto-update $.alertSources | [optional] [default to false]
+ **body** | [**Alert**](Alert.md)| Example Classic Body: <pre>{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"conditionQueryType\": \"WQL\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"displayExpressionQueryType\": \"WQL\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } }</pre> Example Classic Body with multi queries: <pre>{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"alertType\": \"CLASSIC\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B} > 2\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"severity\": \"WARN\", \"minutes\": 5 }</pre> Example Threshold Body: <pre>{ \"id\": \"1459375928550\", \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"conditions\": { \"info\": \"ts(~sample.cpu.loadavg.1m) > 0\", \"warn\": \"ts(~sample.cpu.loadavg.1m) > 5\" }, \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"additionalInformation\": \"conditions value entry needs to be of the form: displayExpression operator threshold\" }</pre> Example Threshold Body with multi queries: <pre>{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B}\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"conditions\": { \"info\": \"${B} > bool 0\", \"warn\": \"${B} > bool 2\" }, \"minutes\": 5 }</pre> Supported Characters of Tags: <pre>Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.</pre> Supported Alert Target formats: <pre>Classic Alerts - \"target\": \"{email},pd:{pd_key},target:{alert target ID}\" Threshold Alerts - \"targets\": {\"info\":\"{email},pd:{pd_key},target:{alert target ID}\", \"warn\":\"{email},pd:{pd_key},target:{alert target ID}\"} Note that only target(s) can be used for creating/updating alert targets. targetEndpoints, targetInfo are for informational purpose only.</pre> | [optional]
### Return type
diff --git a/docs/AlertDashboard.md b/docs/AlertDashboard.md
new file mode 100644
index 00000000..4bb6ce03
--- /dev/null
+++ b/docs/AlertDashboard.md
@@ -0,0 +1,12 @@
+# AlertDashboard
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dashboard_id** | **str** | | [optional]
+**description** | **str** | | [optional]
+**parameters** | **dict(str, dict(str, str))** | | [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/AlertErrorGroupInfo.md b/docs/AlertErrorGroupInfo.md
new file mode 100644
index 00000000..84a692cf
--- /dev/null
+++ b/docs/AlertErrorGroupInfo.md
@@ -0,0 +1,13 @@
+# AlertErrorGroupInfo
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**error_group_id** | **str** | | [optional]
+**error_group_name** | **str** | | [optional]
+**total_failed** | **int** | | [optional]
+**total_failed_per_group** | **int** | | [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/AlertErrorGroupSummary.md b/docs/AlertErrorGroupSummary.md
new file mode 100644
index 00000000..854dddbf
--- /dev/null
+++ b/docs/AlertErrorGroupSummary.md
@@ -0,0 +1,13 @@
+# AlertErrorGroupSummary
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**error_group_id** | **str** | | [optional]
+**error_group_name** | **str** | | [optional]
+**errors_summary** | [**list[AlertErrorSummary]**](AlertErrorSummary.md) | | [optional]
+**total_failed_per_group** | **int** | | [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/AlertErrorSummary.md b/docs/AlertErrorSummary.md
new file mode 100644
index 00000000..d91ba04f
--- /dev/null
+++ b/docs/AlertErrorSummary.md
@@ -0,0 +1,14 @@
+# AlertErrorSummary
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**error_code** | **int** | | [optional]
+**error_group_id** | **str** | | [optional]
+**error_message** | **str** | | [optional]
+**recommendation_key** | **str** | | [optional]
+**total_matched** | **int** | | [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/AlertMin.md b/docs/AlertMin.md
new file mode 100644
index 00000000..99b06961
--- /dev/null
+++ b/docs/AlertMin.md
@@ -0,0 +1,11 @@
+# AlertMin
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Unique identifier, also created epoch millis, of the alert | [optional]
+**name** | **str** | Name of the alert | [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/AlertRoute.md b/docs/AlertRoute.md
new file mode 100644
index 00000000..de57c23d
--- /dev/null
+++ b/docs/AlertRoute.md
@@ -0,0 +1,12 @@
+# AlertRoute
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**filter** | **str** | String that filters the route. Space delimited. Currently only allows single key value pair. filter: env* prod* |
+**method** | **str** | The end point for the alert route.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point |
+**target** | **str** | The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point |
+
+[[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/AlertSource.md b/docs/AlertSource.md
new file mode 100644
index 00000000..b2d5b050
--- /dev/null
+++ b/docs/AlertSource.md
@@ -0,0 +1,18 @@
+# AlertSource
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**alert_source_type** | **list[str]** | The types of the alert source (an array of CONDITION, AUDIT, VARIABLE) and the default one is [VARIABLE]. CONDITION alert source is the condition query in the alert. AUDIT alert source is the query to get more details when the alert changes state. VARIABLE alert source is a variable used in the other queries. | [optional]
+**color** | **str** | The color of the alert source. | [optional]
+**description** | **str** | The additional long description of the alert source. | [optional]
+**hidden** | **bool** | A flag to indicate whether the alert source is hidden or not. | [optional]
+**name** | **str** | The alert source query name. Used as the variable name in the other query. | [optional]
+**query** | **str** | The alert query. Support both Wavefront Query and Prometheus Query. | [optional]
+**query_builder_enabled** | **bool** | A flag indicate whether the alert source query builder enabled or not. | [optional]
+**query_builder_serialization** | **str** | The string serialization of the alert source query builder, mostly used by Tanzu Observability UI. | [optional]
+**query_type** | **str** | The type of the alert query. Supported types are [PROMQL, WQL]. | [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/Annotation.md b/docs/Annotation.md
new file mode 100644
index 00000000..f8bf731f
--- /dev/null
+++ b/docs/Annotation.md
@@ -0,0 +1,11 @@
+# Annotation
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**key** | **str** | | [optional]
+**value** | **str** | | [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/Anomaly.md b/docs/Anomaly.md
new file mode 100644
index 00000000..857f6555
--- /dev/null
+++ b/docs/Anomaly.md
@@ -0,0 +1,33 @@
+# Anomaly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**chart_hash** | **str** | chart hash(as unique identifier) for this anomaly |
+**chart_link** | **str** | chart link for this anomaly | [optional]
+**col** | **int** | column number for this anomaly |
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**customer** | **str** | id of the customer to which this anomaly belongs | [optional]
+**dashboard_id** | **str** | dashboard id for this anomaly |
+**deleted** | **bool** | | [optional]
+**end_ms** | **int** | endMs for this anomaly |
+**hosts_used** | **list[str]** | list of hosts affected of this anomaly | [optional]
+**id** | **str** | unique id that defines this anomaly | [optional]
+**image_link** | **str** | image link for this anomaly | [optional]
+**metrics_used** | **list[str]** | list of metrics used of this anomaly | [optional]
+**model** | **str** | model for this anomaly | [optional]
+**original_stripes** | [**list[Stripe]**](Stripe.md) | list of originalStripe belongs to this anomaly | [optional]
+**param_hash** | **str** | param hash for this anomaly |
+**query_hash** | **str** | query hash for this anomaly |
+**_query_params** | **dict(str, str)** | map of query params belongs to this anomaly |
+**row** | **int** | row number for this anomaly |
+**section** | **int** | section number for this anomaly |
+**start_ms** | **int** | startMs for this anomaly |
+**updated_epoch_millis** | **int** | | [optional]
+**updated_ms** | **int** | updateMs for this anomaly |
+**updater_id** | **str** | | [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/ApiTokenApi.md b/docs/ApiTokenApi.md
new file mode 100644
index 00000000..acb9b222
--- /dev/null
+++ b/docs/ApiTokenApi.md
@@ -0,0 +1,611 @@
+# wavefront_api_client.ApiTokenApi
+
+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
+
+
+# **create_token**
+> ResponseContainerListUserApiToken create_token()
+
+Create new api token
+
+Returns the list of all api tokens for a user. The newly created api token is the last element of returned list. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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:
+ # Create new api token
+ api_response = api_instance.create_token()
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ApiTokenApi->create_token: %s\n" % e)
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**ResponseContainerListUserApiToken**](ResponseContainerListUserApiToken.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_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)
+
+Delete the specified api token
+
+
+
+### 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:
+ # Delete the specified api token
+ api_response = api_instance.delete_token(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ApiTokenApi->delete_token: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerListUserApiToken**](ResponseContainerListUserApiToken.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_token_service_account**
+> ResponseContainerListUserApiToken delete_token_service_account(id, token)
+
+Delete the specified api token of the given service account
+
+
+
+### 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 |
+token = 'token_example' # str |
+
+try:
+ # Delete the specified api token of the given service account
+ api_response = api_instance.delete_token_service_account(id, token)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ApiTokenApi->delete_token_service_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **token** | **str**| |
+
+### Return type
+
+[**ResponseContainerListUserApiToken**](ResponseContainerListUserApiToken.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)
+
+# **generate_token_service_account**
+> ResponseContainerListUserApiToken generate_token_service_account(id, body=body)
+
+Create a new api token for the service account
+
+Returns the list of all api tokens for the service account. The newly created api token is the last element of returned list.
+
+### 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 |
+body = wavefront_api_client.UserApiToken() # UserApiToken | (optional)
+
+try:
+ # Create a new api token for the service account
+ api_response = api_instance.generate_token_service_account(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ApiTokenApi->generate_token_service_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**UserApiToken**](UserApiToken.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerListUserApiToken**](ResponseContainerListUserApiToken.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_all_tokens**
+> ResponseContainerListUserApiToken get_all_tokens()
+
+Get all api tokens 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.ApiTokenApi(wavefront_api_client.ApiClient(configuration))
+
+try:
+ # Get all api tokens for a user
+ api_response = api_instance.get_all_tokens()
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ApiTokenApi->get_all_tokens: %s\n" % e)
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**ResponseContainerListUserApiToken**](ResponseContainerListUserApiToken.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_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)
+
+Get all api tokens for the given service account
+
+
+
+### 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 all api tokens for the given service account
+ api_response = api_instance.get_tokens_service_account(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ApiTokenApi->get_tokens_service_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerListUserApiToken**](ResponseContainerListUserApiToken.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)
+
+# **update_token_name**
+> ResponseContainerUserApiToken update_token_name(id, body=body)
+
+Update the name of the specified api token
+
+
+
+### 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 |
+body = wavefront_api_client.UserApiToken() # UserApiToken | Example Body: { \"tokenID\": \"Token identifier\", \"tokenName\": \"Token name\" } (optional)
+
+try:
+ # Update the name of the specified api token
+ api_response = api_instance.update_token_name(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ApiTokenApi->update_token_name: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**UserApiToken**](UserApiToken.md)| Example Body: <pre>{ \"tokenID\": \"Token identifier\", \"tokenName\": \"Token name\" }</pre> | [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)
+
+# **update_token_name_service_account**
+> ResponseContainerUserApiToken update_token_name_service_account(id, token, body=body)
+
+Update the name of the specified api token for the given service account
+
+
+
+### 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 |
+token = 'token_example' # str |
+body = wavefront_api_client.UserApiToken() # UserApiToken | Example Body: { \"tokenID\": \"Token identifier\", \"tokenName\": \"Token name\" } (optional)
+
+try:
+ # Update the name of the specified api token for the given service account
+ api_response = api_instance.update_token_name_service_account(id, token, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ApiTokenApi->update_token_name_service_account: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **token** | **str**| |
+ **body** | [**UserApiToken**](UserApiToken.md)| Example Body: <pre>{ \"tokenID\": \"Token identifier\", \"tokenName\": \"Token name\" }</pre> | [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)
+
diff --git a/docs/ApiTokenModel.md b/docs/ApiTokenModel.md
new file mode 100644
index 00000000..b355ecfd
--- /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/AppDynamicsConfiguration.md b/docs/AppDynamicsConfiguration.md
new file mode 100644
index 00000000..0af4b875
--- /dev/null
+++ b/docs/AppDynamicsConfiguration.md
@@ -0,0 +1,21 @@
+# AppDynamicsConfiguration
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**app_filter_regex** | **list[str]** | List of regular expressions that a application name must match (case-insensitively) in order to be ingested. | [optional]
+**controller_name** | **str** | Name of the SaaS controller. |
+**enable_app_infra_metrics** | **bool** | Boolean flag to control Application Infrastructure metric injection. | [optional]
+**enable_backend_metrics** | **bool** | Boolean flag to control Backend metric injection. | [optional]
+**enable_business_trx_metrics** | **bool** | Boolean flag to control Business Transaction metric injection. | [optional]
+**enable_error_metrics** | **bool** | Boolean flag to control Error metric injection. | [optional]
+**enable_individual_node_metrics** | **bool** | Boolean flag to control Individual Node metric injection. | [optional]
+**enable_overall_perf_metrics** | **bool** | Boolean flag to control Overall Performance metric injection. | [optional]
+**enable_rollup** | **bool** | Set this to 'false' to get separate results for all values within the time range, by default it is 'true'. | [optional]
+**enable_service_endpoint_metrics** | **bool** | Boolean flag to control Service End point metric injection. | [optional]
+**encrypted_password** | **str** | Password for AppDynamics user. |
+**user_name** | **str** | Username is combination of userName and the account name. |
+
+[[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/AppSearchFilter.md b/docs/AppSearchFilter.md
new file mode 100644
index 00000000..702dae72
--- /dev/null
+++ b/docs/AppSearchFilter.md
@@ -0,0 +1,11 @@
+# AppSearchFilter
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**filter_type** | **str** | | [optional]
+**values** | [**AppSearchFilterValue**](AppSearchFilterValue.md) | | [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/AppSearchFilterValue.md b/docs/AppSearchFilterValue.md
new file mode 100644
index 00000000..2c734e5a
--- /dev/null
+++ b/docs/AppSearchFilterValue.md
@@ -0,0 +1,12 @@
+# AppSearchFilterValue
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**array_value** | **list[str]** | | [optional]
+**logical_value** | **list[list[str]]** | | [optional]
+**string_value** | **str** | | [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/AppSearchFilters.md b/docs/AppSearchFilters.md
new file mode 100644
index 00000000..da610998
--- /dev/null
+++ b/docs/AppSearchFilters.md
@@ -0,0 +1,11 @@
+# AppSearchFilters
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**filters** | [**list[AppSearchFilter]**](AppSearchFilter.md) | | [optional]
+**query** | **str** | | [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/AzureBaseCredentials.md b/docs/AzureBaseCredentials.md
index 116dabc0..cf51c210 100644
--- a/docs/AzureBaseCredentials.md
+++ b/docs/AzureBaseCredentials.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**client_id** | **str** | Client Id for an Azure service account within your project. |
-**tenant** | **str** | Tenant Id for an Azure service account within your project. |
**client_secret** | **str** | Client Secret for an Azure service account within your project. Use 'saved_secret' to retain the client secret when updating. |
+**tenant** | **str** | Tenant Id for an Azure service account within your project. |
[[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/AzureConfiguration.md b/docs/AzureConfiguration.md
index 867dc729..397f730f 100644
--- a/docs/AzureConfiguration.md
+++ b/docs/AzureConfiguration.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**base_credentials** | [**AzureBaseCredentials**](AzureBaseCredentials.md) | | [optional]
-**metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [optional]
**category_filter** | **list[str]** | A list of Azure services (such as Microsoft.Compute/virtualMachines, Microsoft.Cache/redis etc) from which to pull metrics. | [optional]
+**metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [optional]
**resource_group_filter** | **list[str]** | A list of Azure resource groups from which to pull metrics. | [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/Chart.md b/docs/Chart.md
index dad951ca..b6ced74e 100644
--- a/docs/Chart.md
+++ b/docs/Chart.md
@@ -3,17 +3,23 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the source |
-**description** | **str** | Description of the chart | [optional]
-**sources** | [**list[ChartSourceQuery]**](ChartSourceQuery.md) | Query expression to plot on the chart |
-**include_obsolete_metrics** | **bool** | Whether to show obsolete metrics. Default: false | [optional]
-**no_default_events** | **bool** | Whether to hide events related to the sources in the charts produced. Default false (i.e. shows events) | [optional]
+**anomaly_detection_on** | **bool** | Whether anomaly detection is on or of, default false | [optional]
+**anomaly_sample_size** | **str** | The amount of historical data to use for anomaly detection baselining | [optional]
+**anomaly_severity** | **str** | Anomaly Severity. Default medium | [optional]
+**anomaly_type** | **str** | Anomaly Type. Default both | [optional]
**base** | **int** | If the chart has a log-scale Y-axis, the base for the logarithms | [optional]
-**units** | **str** | String to label the units of the chart on the Y-axis | [optional]
**chart_attributes** | [**JsonNode**](JsonNode.md) | Experimental field for chart attributes | [optional]
-**interpolate_points** | **bool** | Whether to interpolate points in the charts produced. Default: true | [optional]
**chart_settings** | [**ChartSettings**](ChartSettings.md) | | [optional]
+**description** | **str** | Description of the chart | [optional]
+**display_confidence_bounds** | **bool** | Whether to show confidence bounds. Default false | [optional]
+**filter_out_non_anomalies** | **bool** | Whether to filter out non anomalies. Default false | [optional]
+**include_obsolete_metrics** | **bool** | Whether to show obsolete metrics. Default: false | [optional]
+**interpolate_points** | **bool** | Whether to interpolate points in the charts produced. Default: true | [optional]
+**name** | **str** | Name of the source |
+**no_default_events** | **bool** | Whether to hide events related to the sources in the charts produced. Default false (i.e. shows events) | [optional]
+**sources** | [**list[ChartSourceQuery]**](ChartSourceQuery.md) | Query expression to plot on the chart |
**summarization** | **str** | Summarization strategy for the chart. MEAN is default | [optional]
+**units** | **str** | String to label the units of the chart on the Y-axis | [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/ChartSettings.md b/docs/ChartSettings.md
index 5a4eec09..ea538647 100644
--- a/docs/ChartSettings.md
+++ b/docs/ChartSettings.md
@@ -3,63 +3,69 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**type** | **str** | Chart Type. 'line' refers to the Line Plot, 'scatter' to the Point Plot, 'stacked-area' to the Stacked Area plot, 'table' to the Tabular View, 'scatterploy-xy' to Scatter Plot, 'markdown-widget' to the Markdown display, and 'sparkline' to the Single Stat view |
-**min** | **float** | Min value of Y-axis. Set to null or leave blank for auto | [optional]
-**max** | **float** | Max value of Y-axis. Set to null or leave blank for auto | [optional]
+**auto_column_tags** | **bool** | deprecated | [optional]
+**chart_default_color** | **str** | Default color that will be used in any chart rendering. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format | [optional]
+**column_tags** | **str** | deprecated | [optional]
+**custom_tags** | **list[str]** | For the tabular view, a list of point tags to display when using the \"custom\" tag display mode | [optional]
+**default_sort_column** | **str** | For the tabular view, to select column for default sort | [optional]
**expected_data_spacing** | **int** | Threshold (in seconds) for time delta between consecutive points in a series above which a dotted line will replace a solid line in line plots. Default: 60s | [optional]
-**plain_markdown_content** | **str** | The Markdown content for a Markdown display, in plain text. Use this field instead of `markdownContent`. | [optional]
+**fixed_legend_display_stats** | **list[str]** | For a chart with a fixed legend, a list of statistics to display in the legend | [optional]
**fixed_legend_enabled** | **bool** | Whether to enable a fixed tabular legend adjacent to the chart | [optional]
+**fixed_legend_filter_field** | **str** | Statistic to use for determining whether a series is displayed on the fixed legend | [optional]
+**fixed_legend_filter_limit** | **int** | Number of series to include in the fixed legend | [optional]
+**fixed_legend_filter_sort** | **str** | Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend | [optional]
+**fixed_legend_hide_label** | **bool** | deprecated | [optional]
+**fixed_legend_position** | **str** | Where the fixed legend should be displayed with respect to the chart | [optional]
+**fixed_legend_show_metric_name** | **bool** | Whether to display Metric Name fixed legend | [optional]
+**fixed_legend_show_source_name** | **bool** | Whether to display Source Name fixed legend | [optional]
**fixed_legend_use_raw_stats** | **bool** | If true, the legend uses non-summarized stats instead of summarized | [optional]
+**group_by_source** | **bool** | For the tabular view, whether to group multi metrics into a single row by a common source. If false, each metric for each source is displayed in its own row. If true, multiple metrics for the same host will be displayed as different columns in the same row | [optional]
+**invert_dynamic_legend_hover_control** | **bool** | Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) | [optional]
**line_type** | **str** | Plot interpolation type. linear is default | [optional]
-**stack_type** | **str** | Type of stacked chart (applicable only if chart type is stacked). zero (default) means stacked from y=0. expand means Normalized from 0 to 1. wiggle means Minimize weighted changes. silhouette means to Center the Stream | [optional]
-**windowing** | **str** | For the tabular view, whether to use the full time window for the query or the last X minutes | [optional]
-**window_size** | **int** | Width, in minutes, of the time window to use for \"last\" windowing | [optional]
+**logs_table** | [**LogsTable**](LogsTable.md) | | [optional]
+**max** | **float** | Max value of Y-axis. Set to null or leave blank for auto | [optional]
+**min** | **float** | Min value of Y-axis. Set to null or leave blank for auto | [optional]
+**num_tags** | **int** | For the tabular view, how many point tags to display | [optional]
+**plain_markdown_content** | **str** | The Markdown content for a Markdown display, in plain text. Use this field instead of `markdownContent`. | [optional]
**show_hosts** | **bool** | For the tabular view, whether to display sources. Default: true | [optional]
**show_labels** | **bool** | For the tabular view, whether to display labels. Default: true | [optional]
**show_raw_values** | **bool** | For the tabular view, whether to display raw values. Default: false | [optional]
-**auto_column_tags** | **bool** | deprecated | [optional]
-**column_tags** | **str** | deprecated | [optional]
-**tag_mode** | **str** | For the tabular view, which mode to use to determine which point tags to display | [optional]
-**num_tags** | **int** | For the tabular view, how many point tags to display | [optional]
-**custom_tags** | **list[str]** | For the tabular view, a list of point tags to display when using the \"custom\" tag display mode | [optional]
-**group_by_source** | **bool** | For the tabular view, whether to group multi metrics into a single row by a common source. If false, each metric for each source is displayed in its own row. If true, multiple metrics for the same host will be displayed as different columns in the same row | [optional]
+**show_value_column** | **bool** | For the tabular view, whether to display value column. Default: true | [optional]
**sort_values_descending** | **bool** | For the tabular view, whether to display display values in descending order. Default: false | [optional]
-**y1_max** | **float** | For plots with multiple Y-axes, max value for right-side Y-axis. Set null for auto | [optional]
-**y1_min** | **float** | For plots with multiple Y-axes, min value for right-side Y-axis. Set null for auto | [optional]
-**y1_units** | **str** | For plots with multiple Y-axes, units for right-side Y-axis | [optional]
-**y0_scale_si_by1024** | **bool** | Default: false. Whether to scale numerical magnitude labels for left Y-axis by 1024 in the IEC/Binary manner (instead of by 1000 like SI) | [optional]
-**y1_scale_si_by1024** | **bool** | Default: false. Whether to scale numerical magnitude labels for right Y-axis by 1024 in the IEC/Binary manner (instead of by 1000 like SI) | [optional]
-**y0_unit_autoscaling** | **bool** | Default: false. Whether to automatically adjust magnitude labels and units for the left Y-axis to favor smaller magnitudes and larger units | [optional]
-**y1_unit_autoscaling** | **bool** | Default: false. Whether to automatically adjust magnitude labels and units for the right Y-axis to favor smaller magnitudes and larger units | [optional]
-**invert_dynamic_legend_hover_control** | **bool** | Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) | [optional]
-**fixed_legend_position** | **str** | Where the fixed legend should be displayed with respect to the chart | [optional]
-**fixed_legend_display_stats** | **list[str]** | For a chart with a fixed legend, a list of statistics to display in the legend | [optional]
-**fixed_legend_filter_sort** | **str** | Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend | [optional]
-**fixed_legend_filter_limit** | **int** | Number of series to include in the fixed legend | [optional]
-**fixed_legend_filter_field** | **str** | Statistic to use for determining whether a series is displayed on the fixed legend | [optional]
-**fixed_legend_hide_label** | **bool** | deprecated | [optional]
-**xmax** | **float** | For x-y scatterplots, max value for X-axis. Set null for auto | [optional]
-**xmin** | **float** | For x-y scatterplots, min value for X-axis. Set null for auto | [optional]
-**ymax** | **float** | For x-y scatterplots, max value for Y-axis. Set null for auto | [optional]
-**ymin** | **float** | For x-y scatterplots, min value for Y-axis. Set null for auto | [optional]
-**time_based_coloring** | **bool** | Fox x-y scatterplots, whether to color more recent points as darker than older points. Default: false | [optional]
-**sparkline_display_value_type** | **str** | For the single stat view, whether to display the name of the query or the value of query | [optional]
-**sparkline_display_color** | **str** | For the single stat view, the color of the displayed text (when not dynamically determined). Values should be in\"rgba(<rval>, <gval>, <bval>, <aval>\" format | [optional]
-**sparkline_display_vertical_position** | **str** | deprecated | [optional]
-**sparkline_display_horizontal_position** | **str** | For the single stat view, the horizontal position of the displayed text | [optional]
+**sparkline_decimal_precision** | **int** | For the single stat view, the decimal precision of the displayed number | [optional]
+**sparkline_display_color** | **str** | For the single stat view, the color of the displayed text (when not dynamically determined). Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format | [optional]
**sparkline_display_font_size** | **str** | For the single stat view, the font size of the displayed text, in percent | [optional]
-**sparkline_display_prefix** | **str** | For the single stat view, a string to add before the displayed text | [optional]
+**sparkline_display_horizontal_position** | **str** | For the single stat view, the horizontal position of the displayed text | [optional]
**sparkline_display_postfix** | **str** | For the single stat view, a string to append to the displayed text | [optional]
+**sparkline_display_prefix** | **str** | For the single stat view, a string to add before the displayed text | [optional]
+**sparkline_display_value_type** | **str** | For the single stat view, whether to display the name of the query or the value of query | [optional]
+**sparkline_display_vertical_position** | **str** | deprecated | [optional]
+**sparkline_fill_color** | **str** | For the single stat view, the color of the background fill. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format | [optional]
+**sparkline_line_color** | **str** | For the single stat view, the color of the line. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format | [optional]
**sparkline_size** | **str** | For the single stat view, a misleadingly named property. This determines whether the sparkline of the statistic is displayed in the chart BACKGROUND, BOTTOM, or NONE | [optional]
-**sparkline_line_color** | **str** | For the single stat view, the color of the line. Values should be in\"rgba(<rval>, <gval>, <bval>, <aval>\" format | [optional]
-**sparkline_fill_color** | **str** | For the single stat view, the color of the background fill. Values should be in\"rgba(<rval>, <gval>, <bval>, <aval>\" format | [optional]
-**sparkline_value_color_map_colors** | **list[str]** | For the single stat view, a list of colors that differing query values map to. Must contain one more element than sparklineValueColorMapValuesV2. Values should be in\"rgba(<rval>, <gval>, <bval>, <aval>\" format | [optional]
-**sparkline_value_color_map_values_v2** | **list[float]** | For the single stat view, a list of boundaries for mapping different query values to colors. Must contain one less element than sparklineValueColorMapColors | [optional]
-**sparkline_value_color_map_values** | **list[int]** | deprecated | [optional]
**sparkline_value_color_map_apply_to** | **str** | For the single stat view, whether to apply dynamic color settings to the displayed TEXT or BACKGROUND | [optional]
-**sparkline_decimal_precision** | **int** | For the single stat view, the decimal precision of the displayed number | [optional]
+**sparkline_value_color_map_colors** | **list[str]** | For the single stat view, a list of colors that differing query values map to. Must contain one more element than sparklineValueColorMapValuesV2. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format | [optional]
+**sparkline_value_color_map_values** | **list[int]** | deprecated | [optional]
+**sparkline_value_color_map_values_v2** | **list[float]** | For the single stat view, a list of boundaries for mapping different query values to colors. Must contain one less element than sparklineValueColorMapColors | [optional]
**sparkline_value_text_map_text** | **list[str]** | For the single stat view, a list of display text values that different query values map to. Must contain one more element than sparklineValueTextMapThresholds | [optional]
**sparkline_value_text_map_thresholds** | **list[float]** | For the single stat view, a list of threshold boundaries for mapping different query values to display text. Must contain one less element than sparklineValueTextMapText | [optional]
+**stack_type** | **str** | Type of stacked chart (applicable only if chart type is stacked). zero (default) means stacked from y=0. expand means Normalized from 0 to 1. wiggle means Minimize weighted changes. silhouette means to Center the Stream | [optional]
+**tag_mode** | **str** | For the tabular view, which mode to use to determine which point tags to display | [optional]
+**time_based_coloring** | **bool** | For x-y scatterplots, whether to color more recent points as darker than older points. Default: false | [optional]
+**type** | **str** | Chart Type. 'line' refers to the Line Plot, 'scatter' to the Point Plot, 'stacked-area' to the Stacked Area plot, 'table' to the Tabular View, 'scatterploy-xy' to Scatter Plot, 'markdown-widget' to the Markdown display, and 'sparkline' to the Single Stat view |
+**window_size** | **int** | Width, in minutes, of the time window to use for \"last\" windowing | [optional]
+**windowing** | **str** | For the tabular view, whether to use the full time window for the query or the last X minutes | [optional]
+**xmax** | **float** | For x-y scatterplots, max value for X-axis. Set null for auto | [optional]
+**xmin** | **float** | For x-y scatterplots, min value for X-axis. Set null for auto | [optional]
+**y0_scale_siby1024** | **bool** | Default: false. Whether to scale numerical magnitude labels for left Y-axis by 1024 in the IEC/Binary manner (instead of by 1000 like SI) | [optional]
+**y0_unit_autoscaling** | **bool** | Default: false. Whether to automatically adjust magnitude labels and units for the left Y-axis to favor smaller magnitudes and larger units | [optional]
+**y1_max** | **float** | For plots with multiple Y-axes, max value for right-side Y-axis. Set null for auto | [optional]
+**y1_min** | **float** | For plots with multiple Y-axes, min value for right-side Y-axis. Set null for auto | [optional]
+**y1_scale_siby1024** | **bool** | Default: false. Whether to scale numerical magnitude labels for right Y-axis by 1024 in the IEC/Binary manner (instead of by 1000 like SI) | [optional]
+**y1_unit_autoscaling** | **bool** | Default: false. Whether to automatically adjust magnitude labels and units for the right Y-axis to favor smaller magnitudes and larger units | [optional]
+**y1_units** | **str** | For plots with multiple Y-axes, units for right-side Y-axis | [optional]
+**ymax** | **float** | For x-y scatterplots, max value for Y-axis. Set null for auto | [optional]
+**ymin** | **float** | For x-y scatterplots, min value for Y-axis. Set null for auto | [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/ChartSourceQuery.md b/docs/ChartSourceQuery.md
index cdef193b..07b41e6d 100644
--- a/docs/ChartSourceQuery.md
+++ b/docs/ChartSourceQuery.md
@@ -3,15 +3,16 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**disabled** | **bool** | Whether the source is disabled | [optional]
**name** | **str** | Name of the source |
**query** | **str** | Query expression to plot on the chart |
-**disabled** | **bool** | Whether the source is disabled | [optional]
-**secondary_axis** | **bool** | Determines if this source relates to the right hand Y-axis or not | [optional]
-**scatter_plot_source** | **str** | For scatter plots, does this query source the X-axis or the Y-axis | [optional]
-**querybuilder_serialization** | **str** | Opaque representation of the querybuilder | [optional]
+**query_type** | **str** | Query type of the source | [optional]
**querybuilder_enabled** | **bool** | Whether or not this source line should have the query builder enabled | [optional]
-**source_description** | **str** | A description for the purpose of this source | [optional]
+**querybuilder_serialization** | **str** | Opaque representation of the querybuilder | [optional]
+**scatter_plot_source** | **str** | For scatter plots, does this query source the X-axis or the Y-axis | [optional]
+**secondary_axis** | **bool** | Determines if this source relates to the right hand Y-axis or not | [optional]
**source_color** | **str** | The color used to draw all results from this source (auto if unset) | [optional]
+**source_description** | **str** | A description for the purpose of this source | [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/ClassLoader.md b/docs/ClassLoader.md
new file mode 100644
index 00000000..c70f770a
--- /dev/null
+++ b/docs/ClassLoader.md
@@ -0,0 +1,14 @@
+# ClassLoader
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**defined_packages** | [**list[Package]**](Package.md) | | [optional]
+**name** | **str** | | [optional]
+**parent** | [**ClassLoader**](ClassLoader.md) | | [optional]
+**registered_as_parallel_capable** | **bool** | | [optional]
+**unnamed_module** | [**Module**](Module.md) | | [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/CloudIntegration.md b/docs/CloudIntegration.md
index 88aaa432..ef3e10fe 100644
--- a/docs/CloudIntegration.md
+++ b/docs/CloudIntegration.md
@@ -3,33 +3,39 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**force_save** | **bool** | | [optional]
-**name** | **str** | The human-readable name of this integration |
-**id** | **str** | | [optional]
-**service** | **str** | A value denoting which cloud service this integration integrates with |
-**creator_id** | **str** | | [optional]
**additional_tags** | **dict(str, str)** | A list of point tag key-values to add to every point ingested using this integration | [optional]
-**last_received_data_point_ms** | **int** | Time that this integration last received a data point, in epoch millis | [optional]
-**last_metric_count** | **int** | Number of metrics / events ingested by this integration the last time it ran | [optional]
-**cloud_watch** | [**CloudWatchConfiguration**](CloudWatchConfiguration.md) | | [optional]
+**app_dynamics** | [**AppDynamicsConfiguration**](AppDynamicsConfiguration.md) | | [optional]
+**azure** | [**AzureConfiguration**](AzureConfiguration.md) | | [optional]
+**azure_activity_log** | [**AzureActivityLogConfiguration**](AzureActivityLogConfiguration.md) | | [optional]
**cloud_trail** | [**CloudTrailConfiguration**](CloudTrailConfiguration.md) | | [optional]
+**cloud_watch** | [**CloudWatchConfiguration**](CloudWatchConfiguration.md) | | [optional]
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**deleted** | **bool** | | [optional]
+**disabled** | **bool** | True when an aws credential failed to authenticate. | [optional]
+**dynatrace** | [**DynatraceConfiguration**](DynatraceConfiguration.md) | | [optional]
**ec2** | [**EC2Configuration**](EC2Configuration.md) | | [optional]
+**force_save** | **bool** | | [optional]
**gcp** | [**GCPConfiguration**](GCPConfiguration.md) | | [optional]
-**tesla** | [**TeslaConfiguration**](TeslaConfiguration.md) | | [optional]
-**azure** | [**AzureConfiguration**](AzureConfiguration.md) | | [optional]
-**azure_activity_log** | [**AzureActivityLogConfiguration**](AzureActivityLogConfiguration.md) | | [optional]
+**gcp_billing** | [**GCPBillingConfiguration**](GCPBillingConfiguration.md) | | [optional]
+**id** | **str** | | [optional]
+**in_trash** | **bool** | | [optional]
**last_error** | **str** | Digest of the last error encountered by Wavefront servers when fetching data using this integration | [optional]
+**last_error_event** | [**Event**](Event.md) | | [optional]
**last_error_ms** | **int** | Time, in epoch millis, of the last error encountered by Wavefront servers when fetching data using this integration | [optional]
-**disabled** | **bool** | True when an aws credential failed to authenticate. | [optional]
-**last_processor_id** | **str** | Opaque id of the last Wavefront integrations service to act on this integration | [optional]
+**last_metric_count** | **int** | Number of metrics / events ingested by this integration the last time it ran | [optional]
**last_processing_timestamp** | **int** | Time, in epoch millis, that this integration was last processed | [optional]
-**created_epoch_millis** | **int** | | [optional]
-**updated_epoch_millis** | **int** | | [optional]
+**last_processor_id** | **str** | Opaque id of the last Wavefront integrations service to act on this integration | [optional]
+**last_received_data_point_ms** | **int** | Time that this integration last received a data point, in epoch millis | [optional]
+**name** | **str** | The human-readable name of this integration |
+**new_relic** | [**NewRelicConfiguration**](NewRelicConfiguration.md) | | [optional]
+**reuse_external_id_credential** | **str** | | [optional]
+**service** | **str** | A value denoting which cloud service this integration integrates with |
**service_refresh_rate_in_mins** | **int** | Service refresh rate in minutes. | [optional]
+**snowflake** | [**SnowflakeConfiguration**](SnowflakeConfiguration.md) | | [optional]
+**updated_epoch_millis** | **int** | | [optional]
**updater_id** | **str** | | [optional]
-**in_trash** | **bool** | | [optional]
-**last_error_event** | [**Event**](Event.md) | | [optional]
-**deleted** | **bool** | | [optional]
+**vrops** | [**VropsConfiguration**](VropsConfiguration.md) | | [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/CloudIntegrationApi.md b/docs/CloudIntegrationApi.md
index 55a4afbf..3c052582 100644
--- a/docs/CloudIntegrationApi.md
+++ b/docs/CloudIntegrationApi.md
@@ -1,19 +1,72 @@
# wavefront_api_client.CloudIntegrationApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**create_aws_external_id**](CloudIntegrationApi.md#create_aws_external_id) | **POST** /api/v2/cloudintegration/awsExternalId | Create an external id
[**create_cloud_integration**](CloudIntegrationApi.md#create_cloud_integration) | **POST** /api/v2/cloudintegration | Create a cloud integration
+[**delete_aws_external_id**](CloudIntegrationApi.md#delete_aws_external_id) | **DELETE** /api/v2/cloudintegration/awsExternalId/{id} | DELETEs an external id that was created by Wavefront
[**delete_cloud_integration**](CloudIntegrationApi.md#delete_cloud_integration) | **DELETE** /api/v2/cloudintegration/{id} | Delete a specific cloud integration
[**disable_cloud_integration**](CloudIntegrationApi.md#disable_cloud_integration) | **POST** /api/v2/cloudintegration/{id}/disable | Disable a specific cloud integration
[**enable_cloud_integration**](CloudIntegrationApi.md#enable_cloud_integration) | **POST** /api/v2/cloudintegration/{id}/enable | Enable a specific cloud integration
[**get_all_cloud_integration**](CloudIntegrationApi.md#get_all_cloud_integration) | **GET** /api/v2/cloudintegration | Get all cloud integrations for a customer
+[**get_aws_external_id**](CloudIntegrationApi.md#get_aws_external_id) | **GET** /api/v2/cloudintegration/awsExternalId/{id} | GETs (confirms) a valid external id that was created by Wavefront
[**get_cloud_integration**](CloudIntegrationApi.md#get_cloud_integration) | **GET** /api/v2/cloudintegration/{id} | Get a specific cloud integration
[**undelete_cloud_integration**](CloudIntegrationApi.md#undelete_cloud_integration) | **POST** /api/v2/cloudintegration/{id}/undelete | Undelete a specific cloud integration
[**update_cloud_integration**](CloudIntegrationApi.md#update_cloud_integration) | **PUT** /api/v2/cloudintegration/{id} | Update a specific cloud integration
+# **create_aws_external_id**
+> ResponseContainerString create_aws_external_id()
+
+Create an external id
+
+
+
+### 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.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
+
+try:
+ # Create an external id
+ api_response = api_instance.create_aws_external_id()
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling CloudIntegrationApi->create_aws_external_id: %s\n" % e)
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### 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)
+
# **create_cloud_integration**
> ResponseContainerCloudIntegration create_cloud_integration(body=body)
@@ -37,7 +90,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
-body = wavefront_api_client.CloudIntegration() # CloudIntegration | Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\", \"externalId\":\"wave123\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 } (optional)
+body = wavefront_api_client.CloudIntegration() # CloudIntegration | Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 } (optional)
try:
# Create a cloud integration
@@ -51,7 +104,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**CloudIntegration**](CloudIntegration.md)| Example Body: <pre>{ \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\", \"externalId\":\"wave123\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }</pre> | [optional]
+ **body** | [**CloudIntegration**](CloudIntegration.md)| Example Body: <pre>{ \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }</pre> | [optional]
### Return type
@@ -68,8 +121,62 @@ 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)
+# **delete_aws_external_id**
+> ResponseContainerString delete_aws_external_id(id)
+
+DELETEs an external id that was created by Wavefront
+
+
+
+### 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.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # DELETEs an external id that was created by Wavefront
+ api_response = api_instance.delete_aws_external_id(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling CloudIntegrationApi->delete_aws_external_id: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### 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_cloud_integration**
-> ResponseContainerCloudIntegration delete_cloud_integration(id)
+> ResponseContainerCloudIntegration delete_cloud_integration(id, skip_trash=skip_trash)
Delete a specific cloud integration
@@ -92,10 +199,11 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
+skip_trash = false # bool | (optional) (default to false)
try:
# Delete a specific cloud integration
- api_response = api_instance.delete_cloud_integration(id)
+ api_response = api_instance.delete_cloud_integration(id, skip_trash=skip_trash)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->delete_cloud_integration: %s\n" % e)
@@ -106,6 +214,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
+ **skip_trash** | **bool**| | [optional] [default to false]
### Return type
@@ -286,6 +395,60 @@ 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)
+# **get_aws_external_id**
+> ResponseContainerString get_aws_external_id(id)
+
+GETs (confirms) a valid external id that was created by Wavefront
+
+
+
+### 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.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # GETs (confirms) a valid external id that was created by Wavefront
+ api_response = api_instance.get_aws_external_id(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling CloudIntegrationApi->get_aws_external_id: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### 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)
+
# **get_cloud_integration**
> ResponseContainerCloudIntegration get_cloud_integration(id)
@@ -418,7 +581,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
-body = wavefront_api_client.CloudIntegration() # CloudIntegration | Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\", \"externalId\":\"wave123\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 } (optional)
+body = wavefront_api_client.CloudIntegration() # CloudIntegration | Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 } (optional)
try:
# Update a specific cloud integration
@@ -433,7 +596,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
- **body** | [**CloudIntegration**](CloudIntegration.md)| Example Body: <pre>{ \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\", \"externalId\":\"wave123\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }</pre> | [optional]
+ **body** | [**CloudIntegration**](CloudIntegration.md)| Example Body: <pre>{ \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }</pre> | [optional]
### Return type
diff --git a/docs/CloudTrailConfiguration.md b/docs/CloudTrailConfiguration.md
index 84c9bc24..d7725511 100644
--- a/docs/CloudTrailConfiguration.md
+++ b/docs/CloudTrailConfiguration.md
@@ -3,11 +3,11 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**region** | **str** | The AWS region of the S3 bucket where CloudTrail logs are stored |
-**prefix** | **str** | The common prefix, if any, appended to all CloudTrail log files | [optional]
**base_credentials** | [**AWSBaseCredentials**](AWSBaseCredentials.md) | | [optional]
**bucket_name** | **str** | Name of the S3 bucket where CloudTrail logs are stored |
**filter_rule** | **str** | Rule to filter cloud trail log event. | [optional]
+**prefix** | **str** | The common prefix, if any, appended to all CloudTrail log files | [optional]
+**region** | **str** | The AWS region of the S3 bucket where CloudTrail logs are stored |
[[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 1cf1b1c5..916b4352 100644
--- a/docs/CloudWatchConfiguration.md
+++ b/docs/CloudWatchConfiguration.md
@@ -4,11 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**base_credentials** | [**AWSBaseCredentials**](AWSBaseCredentials.md) | | [optional]
+**instance_selection_tags** | **dict(str, str)** | A string->string map of allow list of AWS instance tag-value pairs (in AWS). If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested. Multiple entries are OR'ed | [optional]
+**instance_selection_tags_expr** | **str** | A string expressing the allow list of AWS instance tag-value pairs. If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested. Multiple entries are OR'ed and also OR'ed with entries from instanceSelectionTags. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". | [optional]
**metric_filter_regex** | **str** | A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested | [optional]
-**instance_selection_tags** | **dict(str, str)** | A comma-separated white list of AWS instance tag-value pairs (in AWS). If the instance's AWS tags match this whitelist, CloudWatch data about this instance is ingested. Multiple entries are OR'ed | [optional]
-**volume_selection_tags** | **dict(str, str)** | A comma-separated white list of AWS volume tag-value pairs (in AWS). If the volume's AWS tags match this whitelist, CloudWatch data about this volume is ingested. Multiple entries are OR'ed | [optional]
-**point_tag_filter_regex** | **str** | A regular expression that AWS tag key 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]
+**s3_bucket_name_filter_regex** | **str** | A regular expression that a AWS S3 Bucket 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]
[[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/ClusterInfoDTO.md b/docs/ClusterInfoDTO.md
new file mode 100644
index 00000000..26275e51
--- /dev/null
+++ b/docs/ClusterInfoDTO.md
@@ -0,0 +1,11 @@
+# ClusterInfoDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**cluster_alias** | **str** | | [optional]
+**status_page_link** | **str** | | [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/Conversion.md b/docs/Conversion.md
new file mode 100644
index 00000000..75de9b05
--- /dev/null
+++ b/docs/Conversion.md
@@ -0,0 +1,11 @@
+# Conversion
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**logical_type_name** | **str** | | [optional]
+**recommended_schema** | [**Schema**](Schema.md) | | [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/ConversionObject.md b/docs/ConversionObject.md
new file mode 100644
index 00000000..b9190fc4
--- /dev/null
+++ b/docs/ConversionObject.md
@@ -0,0 +1,11 @@
+# ConversionObject
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**logical_type_name** | **str** | | [optional]
+**recommended_schema** | [**Schema**](Schema.md) | | [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/CustomerFacingUserObject.md b/docs/CustomerFacingUserObject.md
index 73026316..739f2f53 100644
--- a/docs/CustomerFacingUserObject.md
+++ b/docs/CustomerFacingUserObject.md
@@ -3,14 +3,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **str** | The unique identifier of this user, which should be their valid email address |
**customer** | **str** | The id of the customer to which the user belongs |
-**identifier** | **str** | The unique identifier of this user, which should be their valid email address |
+**escaped_identifier** | **str** | URL Escaped Identifier | [optional]
+**gravatar_url** | **str** | URL id For User's gravatar (see gravatar.com), if one exists. | [optional]
**groups** | **list[str]** | List of permission groups this user has been granted access to | [optional]
+**id** | **str** | The unique identifier of this user, which should be their valid email address |
+**identifier** | **str** | The unique identifier of this user, which should be their valid email address |
**last_successful_login** | **int** | The last time the user logged in, in epoch milliseconds | [optional]
**_self** | **bool** | Whether this user is the one calling the API |
-**escaped_identifier** | **str** | URL Escaped Identifier | [optional]
-**gravatar_url** | **str** | URL id For User's gravatar (see gravatar.com), if one exists. | [optional]
+**united_permissions** | **list[str]** | The list of account's permissions assigned directly or through united roles assigned to it | [optional]
+**united_roles** | **list[str]** | The list of account's roles assigned directly or through user groups assigned to it | [optional]
+**user_groups** | **list[str]** | List of user group identifiers this user belongs to | [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/Dashboard.md b/docs/Dashboard.md
index c3fda505..045f0a35 100644
--- a/docs/Dashboard.md
+++ b/docs/Dashboard.md
@@ -3,39 +3,47 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the dashboard |
-**id** | **str** | Unique identifier, also URL slug, of the dashboard |
-**parameters** | **dict(str, str)** | Deprecated. An obsolete representation of dashboard parameters | [optional]
-**tags** | [**WFTags**](WFTags.md) | | [optional]
+**acl** | [**AccessControlListSimple**](AccessControlListSimple.md) | | [optional]
+**chart_title_bg_color** | **str** | Background color of the chart title text area, in rgba(rvalue,gvalue,bvalue,avalue) | [optional]
+**chart_title_color** | **str** | Text color of the chart title text are, in rgba(rvalue,gvalue,bvalue,avalue) | [optional]
+**chart_title_scalar** | **int** | Scale (normally 100) of chart title text size | [optional]
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
**customer** | **str** | id of the customer to which this dashboard belongs | [optional]
+**dashboard_attributes** | [**JsonNode**](JsonNode.md) | Experimental Dashboard Attributes | [optional]
+**default_end_time** | **int** | Default end time in milliseconds to query charts | [optional]
+**default_start_time** | **int** | Default start time in milliseconds to query charts | [optional]
+**default_time_window** | **str** | Default time window to query charts | [optional]
+**deleted** | **bool** | | [optional]
**description** | **str** | Human-readable description of the dashboard | [optional]
-**url** | **str** | Unique identifier, also URL slug, of the dashboard |
-**creator_id** | **str** | | [optional]
-**created_epoch_millis** | **int** | | [optional]
-**updated_epoch_millis** | **int** | | [optional]
-**updater_id** | **str** | | [optional]
-**event_filter_type** | **str** | How charts belonging to this dashboard should display events. BYCHART is default if unspecified | [optional]
-**sections** | [**list[DashboardSection]**](DashboardSection.md) | Dashboard chart sections |
-**parameter_details** | [**dict(str, DashboardParameterValue)**](DashboardParameterValue.md) | The current (as of Wavefront 4.0) JSON representation of dashboard parameters. This is a map from a parameter name to its representation | [optional]
+**disable_refresh_in_live_mode** | **bool** | Refresh variables in Live Mode | [optional]
**display_description** | **bool** | Whether the dashboard description section is opened by default when the dashboard is shown | [optional]
-**display_section_table_of_contents** | **bool** | Whether the \"pills\" quick-linked the sections of the dashboard are displayed by default when the dashboard is shown | [optional]
**display_query_parameters** | **bool** | Whether the dashboard parameters section is opened by default when the dashboard is shown | [optional]
-**chart_title_scalar** | **int** | Scale (normally 100) of chart title text size | [optional]
+**display_section_table_of_contents** | **bool** | Whether the \"pills\" quick-linked the sections of the dashboard are displayed by default when the dashboard is shown | [optional]
+**event_filter_type** | **str** | How charts belonging to this dashboard should display events. BYCHART is default if unspecified | [optional]
**event_query** | **str** | Event query to run on dashboard charts | [optional]
-**default_time_window** | **str** | Default time window to query charts | [optional]
-**default_start_time** | **int** | Default start time in milliseconds to query charts | [optional]
-**default_end_time** | **int** | Default end time in milliseconds to query charts | [optional]
-**chart_title_color** | **str** | Text color of the chart title text are, in rgba(rvalue,gvalue,bvalue,avalue) | [optional]
-**chart_title_bg_color** | **str** | Background color of the chart title text area, in rgba(rvalue,gvalue,bvalue,avalue) | [optional]
-**views_last_day** | **int** | | [optional]
-**views_last_week** | **int** | | [optional]
-**views_last_month** | **int** | | [optional]
+**favorite** | **bool** | | [optional]
+**force_v2_ui** | **bool** | Whether to force this dashboard to use the V2 UI | [optional]
**hidden** | **bool** | | [optional]
-**deleted** | **bool** | | [optional]
-**system_owned** | **bool** | Whether this dashboard is system-owned and not writeable | [optional]
+**hide_chart_warning** | **bool** | Hide chart warning | [optional]
+**id** | **str** | Unique identifier, also URL slug, of the dashboard |
+**include_obsolete_metrics** | **bool** | Whether to include the obsolete metrics | [optional]
+**modify_acl_access** | **bool** | Whether the user has modify ACL access to the dashboard. | [optional]
+**name** | **str** | Name of the dashboard |
**num_charts** | **int** | | [optional]
**num_favorites** | **int** | | [optional]
-**favorite** | **bool** | | [optional]
+**orphan** | **bool** | | [optional]
+**parameter_details** | [**dict(str, DashboardParameterValue)**](DashboardParameterValue.md) | The current (as of Wavefront 4.0) JSON representation of dashboard parameters. This is a map from a parameter name to its representation | [optional]
+**parameters** | **dict(str, str)** | Deprecated. An obsolete representation of dashboard parameters | [optional]
+**sections** | [**list[DashboardSection]**](DashboardSection.md) | Dashboard chart sections |
+**system_owned** | **bool** | Whether this dashboard is system-owned and not writeable | [optional]
+**tags** | [**WFTags**](WFTags.md) | | [optional]
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [optional]
+**url** | **str** | Unique identifier, also URL slug, of the dashboard |
+**views_last_day** | **int** | | [optional]
+**views_last_month** | **int** | | [optional]
+**views_last_week** | **int** | | [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/DashboardApi.md b/docs/DashboardApi.md
index 1c380acd..10650d68 100644
--- a/docs/DashboardApi.md
+++ b/docs/DashboardApi.md
@@ -1,23 +1,82 @@
# wavefront_api_client.DashboardApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**add_dashboard_access**](DashboardApi.md#add_dashboard_access) | **POST** /api/v2/dashboard/acl/add | Adds the specified ids to the given dashboards' ACL
[**add_dashboard_tag**](DashboardApi.md#add_dashboard_tag) | **PUT** /api/v2/dashboard/{id}/tag/{tagValue} | Add a tag to a specific dashboard
[**create_dashboard**](DashboardApi.md#create_dashboard) | **POST** /api/v2/dashboard | Create a specific dashboard
[**delete_dashboard**](DashboardApi.md#delete_dashboard) | **DELETE** /api/v2/dashboard/{id} | Delete a specific dashboard
+[**favorite_dashboard**](DashboardApi.md#favorite_dashboard) | **POST** /api/v2/dashboard/{id}/favorite | Mark a dashboard as favorite
[**get_all_dashboard**](DashboardApi.md#get_all_dashboard) | **GET** /api/v2/dashboard | Get all dashboards for a customer
[**get_dashboard**](DashboardApi.md#get_dashboard) | **GET** /api/v2/dashboard/{id} | Get a specific dashboard
+[**get_dashboard_access_control_list**](DashboardApi.md#get_dashboard_access_control_list) | **GET** /api/v2/dashboard/acl | Get list of Access Control Lists for the specified dashboards
[**get_dashboard_history**](DashboardApi.md#get_dashboard_history) | **GET** /api/v2/dashboard/{id}/history | Get the version history of a specific dashboard
[**get_dashboard_tags**](DashboardApi.md#get_dashboard_tags) | **GET** /api/v2/dashboard/{id}/tag | Get all tags associated with a specific dashboard
[**get_dashboard_version**](DashboardApi.md#get_dashboard_version) | **GET** /api/v2/dashboard/{id}/history/{version} | Get a specific version of a specific dashboard
+[**remove_dashboard_access**](DashboardApi.md#remove_dashboard_access) | **POST** /api/v2/dashboard/acl/remove | Removes the specified ids from the given dashboards' ACL
[**remove_dashboard_tag**](DashboardApi.md#remove_dashboard_tag) | **DELETE** /api/v2/dashboard/{id}/tag/{tagValue} | Remove a tag from a specific dashboard
+[**set_dashboard_acl**](DashboardApi.md#set_dashboard_acl) | **PUT** /api/v2/dashboard/acl/set | Set ACL for the specified dashboards
[**set_dashboard_tags**](DashboardApi.md#set_dashboard_tags) | **POST** /api/v2/dashboard/{id}/tag | Set all tags associated with a specific dashboard
[**undelete_dashboard**](DashboardApi.md#undelete_dashboard) | **POST** /api/v2/dashboard/{id}/undelete | Undelete a specific dashboard
+[**unfavorite_dashboard**](DashboardApi.md#unfavorite_dashboard) | **POST** /api/v2/dashboard/{id}/unfavorite | Unmark a dashboard as favorite
[**update_dashboard**](DashboardApi.md#update_dashboard) | **PUT** /api/v2/dashboard/{id} | Update a specific dashboard
+# **add_dashboard_access**
+> add_dashboard_access(body=body)
+
+Adds the specified ids to the given dashboards' ACL
+
+
+
+### 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.DashboardApi(wavefront_api_client.ApiClient(configuration))
+body = [wavefront_api_client.AccessControlListWriteDTO()] # list[AccessControlListWriteDTO] | (optional)
+
+try:
+ # Adds the specified ids to the given dashboards' ACL
+ api_instance.add_dashboard_access(body=body)
+except ApiException as e:
+ print("Exception when calling DashboardApi->add_dashboard_access: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**list[AccessControlListWriteDTO]**](AccessControlListWriteDTO.md)| | [optional]
+
+### Return type
+
+void (empty response body)
+
+### 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_dashboard_tag**
> ResponseContainer add_dashboard_tag(id, tag_value)
@@ -129,7 +188,7 @@ 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)
# **delete_dashboard**
-> ResponseContainerDashboard delete_dashboard(id)
+> ResponseContainerDashboard delete_dashboard(id, skip_trash=skip_trash)
Delete a specific dashboard
@@ -152,10 +211,11 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.DashboardApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
+skip_trash = false # bool | (optional) (default to false)
try:
# Delete a specific dashboard
- api_response = api_instance.delete_dashboard(id)
+ api_response = api_instance.delete_dashboard(id, skip_trash=skip_trash)
pprint(api_response)
except ApiException as e:
print("Exception when calling DashboardApi->delete_dashboard: %s\n" % e)
@@ -166,6 +226,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
+ **skip_trash** | **bool**| | [optional] [default to false]
### Return type
@@ -182,6 +243,60 @@ 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)
+# **favorite_dashboard**
+> ResponseContainer favorite_dashboard(id)
+
+Mark a dashboard as favorite
+
+
+
+### 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.DashboardApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Mark a dashboard as favorite
+ api_response = api_instance.favorite_dashboard(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DashboardApi->favorite_dashboard: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainer**](ResponseContainer.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_all_dashboard**
> ResponseContainerPagedDashboard get_all_dashboard(offset=offset, limit=limit)
@@ -292,6 +407,60 @@ 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)
+# **get_dashboard_access_control_list**
+> ResponseContainerListAccessControlListReadDTO get_dashboard_access_control_list(id=id)
+
+Get list of Access Control Lists for the specified dashboards
+
+
+
+### 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.DashboardApi(wavefront_api_client.ApiClient(configuration))
+id = ['id_example'] # list[str] | (optional)
+
+try:
+ # Get list of Access Control Lists for the specified dashboards
+ api_response = api_instance.get_dashboard_access_control_list(id=id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DashboardApi->get_dashboard_access_control_list: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | [**list[str]**](str.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerListAccessControlListReadDTO**](ResponseContainerListAccessControlListReadDTO.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_dashboard_history**
> ResponseContainerHistoryResponse get_dashboard_history(id, offset=offset, limit=limit)
@@ -460,6 +629,59 @@ 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_dashboard_access**
+> remove_dashboard_access(body=body)
+
+Removes the specified ids from the given dashboards' ACL
+
+
+
+### 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.DashboardApi(wavefront_api_client.ApiClient(configuration))
+body = [wavefront_api_client.AccessControlListWriteDTO()] # list[AccessControlListWriteDTO] | (optional)
+
+try:
+ # Removes the specified ids from the given dashboards' ACL
+ api_instance.remove_dashboard_access(body=body)
+except ApiException as e:
+ print("Exception when calling DashboardApi->remove_dashboard_access: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**list[AccessControlListWriteDTO]**](AccessControlListWriteDTO.md)| | [optional]
+
+### Return type
+
+void (empty response body)
+
+### 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_dashboard_tag**
> ResponseContainer remove_dashboard_tag(id, tag_value)
@@ -516,6 +738,59 @@ 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)
+# **set_dashboard_acl**
+> set_dashboard_acl(body=body)
+
+Set ACL for the specified dashboards
+
+
+
+### 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.DashboardApi(wavefront_api_client.ApiClient(configuration))
+body = [wavefront_api_client.AccessControlListWriteDTO()] # list[AccessControlListWriteDTO] | (optional)
+
+try:
+ # Set ACL for the specified dashboards
+ api_instance.set_dashboard_acl(body=body)
+except ApiException as e:
+ print("Exception when calling DashboardApi->set_dashboard_acl: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**list[AccessControlListWriteDTO]**](AccessControlListWriteDTO.md)| | [optional]
+
+### Return type
+
+void (empty response body)
+
+### 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)
+
# **set_dashboard_tags**
> ResponseContainer set_dashboard_tags(id, body=body)
@@ -626,6 +901,60 @@ 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)
+# **unfavorite_dashboard**
+> ResponseContainer unfavorite_dashboard(id)
+
+Unmark a dashboard as favorite
+
+
+
+### 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.DashboardApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Unmark a dashboard as favorite
+ api_response = api_instance.unfavorite_dashboard(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DashboardApi->unfavorite_dashboard: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainer**](ResponseContainer.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)
+
# **update_dashboard**
> ResponseContainerDashboard update_dashboard(id, body=body)
diff --git a/docs/DashboardMin.md b/docs/DashboardMin.md
new file mode 100644
index 00000000..08c689c5
--- /dev/null
+++ b/docs/DashboardMin.md
@@ -0,0 +1,12 @@
+# DashboardMin
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **str** | Human-readable description of the dashboard | [optional]
+**id** | **str** | Unique identifier, also URL slug, of the dashboard | [optional]
+**name** | **str** | Name of the dashboard | [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/DashboardParameterValue.md b/docs/DashboardParameterValue.md
index f400b963..d746e11d 100644
--- a/docs/DashboardParameterValue.md
+++ b/docs/DashboardParameterValue.md
@@ -3,18 +3,21 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**allow_all** | **bool** | | [optional]
**default_value** | **str** | | [optional]
**description** | **str** | | [optional]
+**dynamic_field_type** | **str** | | [optional]
+**hide_from_view** | **bool** | | [optional]
**label** | **str** | | [optional]
+**multivalue** | **bool** | | [optional]
+**order** | **int** | | [optional]
+**parameter_type** | **str** | | [optional]
**query_value** | **str** | | [optional]
**reverse_dyn_sort** | **bool** | Whether to reverse alphabetically sort the returned result. | [optional]
-**hide_from_view** | **bool** | | [optional]
-**dynamic_field_type** | **str** | | [optional]
**tag_key** | **str** | | [optional]
-**allow_all** | **bool** | | [optional]
-**parameter_type** | **str** | | [optional]
+**tags_black_list_regex** | **str** | The regular expression to filter out source tags from the Current Values list. | [optional]
+**value_ordering** | **list[str]** | | [optional]
**values_to_readable_strings** | **dict(str, str)** | | [optional]
-**multivalue** | **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/DashboardSection.md b/docs/DashboardSection.md
index 3fe84cce..9c449d66 100644
--- a/docs/DashboardSection.md
+++ b/docs/DashboardSection.md
@@ -3,8 +3,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**id** | **str** | Id of this section | [optional]
**name** | **str** | Name of this section |
**rows** | [**list[DashboardSectionRow]**](DashboardSectionRow.md) | Rows of this section |
+**section_filter** | [**JsonNode**](JsonNode.md) | Display filter for conditional dashboard section | [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/DashboardSectionRow.md b/docs/DashboardSectionRow.md
index d9ff11c7..2dcbd76d 100644
--- a/docs/DashboardSectionRow.md
+++ b/docs/DashboardSectionRow.md
@@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**height_factor** | **int** | Scalar for the height of this row. 100 is normal and default. 50 is half height | [optional]
**charts** | [**list[Chart]**](Chart.md) | Charts in this section row |
+**height_factor** | **int** | Scalar for the height of this row. 100 is normal and default. 50 is half height | [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/DefaultSavedAppMapSearch.md b/docs/DefaultSavedAppMapSearch.md
new file mode 100644
index 00000000..78516f4b
--- /dev/null
+++ b/docs/DefaultSavedAppMapSearch.md
@@ -0,0 +1,11 @@
+# DefaultSavedAppMapSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**default_customer_search** | [**SavedAppMapSearch**](SavedAppMapSearch.md) | | [optional]
+**default_user_search** | [**SavedAppMapSearch**](SavedAppMapSearch.md) | | [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 00000000..1b72de8d
--- /dev/null
+++ b/docs/DefaultSavedTracesSearch.md
@@ -0,0 +1,11 @@
+# DefaultSavedTracesSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**default_customer_search** | [**SavedTracesSearch**](SavedTracesSearch.md) | | [optional]
+**default_user_search** | [**SavedTracesSearch**](SavedTracesSearch.md) | | [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/DerivedMetricDefinitionApi.md b/docs/DerivedMetricApi.md
similarity index 69%
rename from docs/DerivedMetricDefinitionApi.md
rename to docs/DerivedMetricApi.md
index cb9dbcd1..d40fd7cc 100644
--- a/docs/DerivedMetricDefinitionApi.md
+++ b/docs/DerivedMetricApi.md
@@ -1,27 +1,27 @@
-# wavefront_api_client.DerivedMetricDefinitionApi
+# wavefront_api_client.DerivedMetricApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**add_tag_to_derived_metric_definition**](DerivedMetricDefinitionApi.md#add_tag_to_derived_metric_definition) | **PUT** /api/v2/derivedmetricdefinition/{id}/tag/{tagValue} | Add a tag to a specific Derived Metric Definition
-[**create_derived_metric_definition**](DerivedMetricDefinitionApi.md#create_derived_metric_definition) | **POST** /api/v2/derivedmetricdefinition | Create a specific derived metric definition
-[**delete_derived_metric_definition**](DerivedMetricDefinitionApi.md#delete_derived_metric_definition) | **DELETE** /api/v2/derivedmetricdefinition/{id} | Delete a specific derived metric definition
-[**get_all_derived_metric_definitions**](DerivedMetricDefinitionApi.md#get_all_derived_metric_definitions) | **GET** /api/v2/derivedmetricdefinition | Get all derived metric definitions for a customer
-[**get_derived_metric_definition_by_version**](DerivedMetricDefinitionApi.md#get_derived_metric_definition_by_version) | **GET** /api/v2/derivedmetricdefinition/{id}/history/{version} | Get a specific historical version of a specific derived metric definition
-[**get_derived_metric_definition_history**](DerivedMetricDefinitionApi.md#get_derived_metric_definition_history) | **GET** /api/v2/derivedmetricdefinition/{id}/history | Get the version history of a specific derived metric definition
-[**get_derived_metric_definition_tags**](DerivedMetricDefinitionApi.md#get_derived_metric_definition_tags) | **GET** /api/v2/derivedmetricdefinition/{id}/tag | Get all tags associated with a specific derived metric definition
-[**get_registered_query**](DerivedMetricDefinitionApi.md#get_registered_query) | **GET** /api/v2/derivedmetricdefinition/{id} | Get a specific registered query
-[**remove_tag_from_derived_metric_definition**](DerivedMetricDefinitionApi.md#remove_tag_from_derived_metric_definition) | **DELETE** /api/v2/derivedmetricdefinition/{id}/tag/{tagValue} | Remove a tag from a specific Derived Metric Definition
-[**set_derived_metric_definition_tags**](DerivedMetricDefinitionApi.md#set_derived_metric_definition_tags) | **POST** /api/v2/derivedmetricdefinition/{id}/tag | Set all tags associated with a specific derived metric definition
-[**undelete_derived_metric_definition**](DerivedMetricDefinitionApi.md#undelete_derived_metric_definition) | **POST** /api/v2/derivedmetricdefinition/{id}/undelete | Undelete a specific derived metric definition
-[**update_derived_metric_definition**](DerivedMetricDefinitionApi.md#update_derived_metric_definition) | **PUT** /api/v2/derivedmetricdefinition/{id} | Update a specific derived metric definition
+[**add_tag_to_derived_metric**](DerivedMetricApi.md#add_tag_to_derived_metric) | **PUT** /api/v2/derivedmetric/{id}/tag/{tagValue} | Add a tag to a specific Derived Metric
+[**create_derived_metric**](DerivedMetricApi.md#create_derived_metric) | **POST** /api/v2/derivedmetric | Create a specific derived metric definition
+[**delete_derived_metric**](DerivedMetricApi.md#delete_derived_metric) | **DELETE** /api/v2/derivedmetric/{id} | Delete a specific derived metric definition
+[**get_all_derived_metrics**](DerivedMetricApi.md#get_all_derived_metrics) | **GET** /api/v2/derivedmetric | Get all derived metric definitions for a customer
+[**get_derived_metric**](DerivedMetricApi.md#get_derived_metric) | **GET** /api/v2/derivedmetric/{id} | Get a specific registered query
+[**get_derived_metric_by_version**](DerivedMetricApi.md#get_derived_metric_by_version) | **GET** /api/v2/derivedmetric/{id}/history/{version} | Get a specific historical version of a specific derived metric definition
+[**get_derived_metric_history**](DerivedMetricApi.md#get_derived_metric_history) | **GET** /api/v2/derivedmetric/{id}/history | Get the version history of a specific derived metric definition
+[**get_derived_metric_tags**](DerivedMetricApi.md#get_derived_metric_tags) | **GET** /api/v2/derivedmetric/{id}/tag | Get all tags associated with a specific derived metric definition
+[**remove_tag_from_derived_metric**](DerivedMetricApi.md#remove_tag_from_derived_metric) | **DELETE** /api/v2/derivedmetric/{id}/tag/{tagValue} | Remove a tag from a specific Derived Metric
+[**set_derived_metric_tags**](DerivedMetricApi.md#set_derived_metric_tags) | **POST** /api/v2/derivedmetric/{id}/tag | Set all tags associated with a specific derived metric definition
+[**undelete_derived_metric**](DerivedMetricApi.md#undelete_derived_metric) | **POST** /api/v2/derivedmetric/{id}/undelete | Undelete a specific derived metric definition
+[**update_derived_metric**](DerivedMetricApi.md#update_derived_metric) | **PUT** /api/v2/derivedmetric/{id} | Update a specific derived metric definition
-# **add_tag_to_derived_metric_definition**
-> ResponseContainer add_tag_to_derived_metric_definition(id, tag_value)
+# **add_tag_to_derived_metric**
+> ResponseContainer add_tag_to_derived_metric(id, tag_value)
-Add a tag to a specific Derived Metric Definition
+Add a tag to a specific Derived Metric
@@ -40,16 +40,16 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
tag_value = 'tag_value_example' # str |
try:
- # Add a tag to a specific Derived Metric Definition
- api_response = api_instance.add_tag_to_derived_metric_definition(id, tag_value)
+ # Add a tag to a specific Derived Metric
+ api_response = api_instance.add_tag_to_derived_metric(id, tag_value)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->add_tag_to_derived_metric_definition: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->add_tag_to_derived_metric: %s\n" % e)
```
### Parameters
@@ -74,8 +74,8 @@ 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)
-# **create_derived_metric_definition**
-> ResponseContainerDerivedMetricDefinition create_derived_metric_definition(body=body)
+# **create_derived_metric**
+> ResponseContainerDerivedMetricDefinition create_derived_metric(body=body)
Create a specific derived metric definition
@@ -96,22 +96,22 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
-body = wavefront_api_client.DerivedMetricDefinition() # DerivedMetricDefinition | Example Body: { \"name\": \"Query Name\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\" } (optional)
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.DerivedMetricDefinition() # DerivedMetricDefinition | Example Body: { \"name\": \"Query Name\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"derivedMetricTag1\" ] } } (optional)
try:
# Create a specific derived metric definition
- api_response = api_instance.create_derived_metric_definition(body=body)
+ api_response = api_instance.create_derived_metric(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->create_derived_metric_definition: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->create_derived_metric: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**DerivedMetricDefinition**](DerivedMetricDefinition.md)| Example Body: <pre>{ \"name\": \"Query Name\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\" }</pre> | [optional]
+ **body** | [**DerivedMetricDefinition**](DerivedMetricDefinition.md)| Example Body: <pre>{ \"name\": \"Query Name\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"derivedMetricTag1\" ] } }</pre> | [optional]
### Return type
@@ -128,8 +128,8 @@ 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)
-# **delete_derived_metric_definition**
-> ResponseContainerDerivedMetricDefinition delete_derived_metric_definition(id)
+# **delete_derived_metric**
+> ResponseContainerDerivedMetricDefinition delete_derived_metric(id, skip_trash=skip_trash)
Delete a specific derived metric definition
@@ -150,15 +150,16 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
+skip_trash = false # bool | (optional) (default to false)
try:
# Delete a specific derived metric definition
- api_response = api_instance.delete_derived_metric_definition(id)
+ api_response = api_instance.delete_derived_metric(id, skip_trash=skip_trash)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->delete_derived_metric_definition: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->delete_derived_metric: %s\n" % e)
```
### Parameters
@@ -166,6 +167,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
+ **skip_trash** | **bool**| | [optional] [default to false]
### Return type
@@ -182,8 +184,8 @@ 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)
-# **get_all_derived_metric_definitions**
-> ResponseContainerPagedDerivedMetricDefinition get_all_derived_metric_definitions(offset=offset, limit=limit)
+# **get_all_derived_metrics**
+> ResponseContainerPagedDerivedMetricDefinition get_all_derived_metrics(offset=offset, limit=limit)
Get all derived metric definitions for a customer
@@ -204,16 +206,16 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
offset = 0 # int | (optional) (default to 0)
limit = 100 # int | (optional) (default to 100)
try:
# Get all derived metric definitions for a customer
- api_response = api_instance.get_all_derived_metric_definitions(offset=offset, limit=limit)
+ api_response = api_instance.get_all_derived_metrics(offset=offset, limit=limit)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->get_all_derived_metric_definitions: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->get_all_derived_metrics: %s\n" % e)
```
### Parameters
@@ -238,10 +240,10 @@ 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)
-# **get_derived_metric_definition_by_version**
-> ResponseContainerDerivedMetricDefinition get_derived_metric_definition_by_version(id, version)
+# **get_derived_metric**
+> ResponseContainerDerivedMetricDefinition get_derived_metric(id)
-Get a specific historical version of a specific derived metric definition
+Get a specific registered query
@@ -260,16 +262,15 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
-version = 789 # int |
try:
- # Get a specific historical version of a specific derived metric definition
- api_response = api_instance.get_derived_metric_definition_by_version(id, version)
+ # Get a specific registered query
+ api_response = api_instance.get_derived_metric(id)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->get_derived_metric_definition_by_version: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->get_derived_metric: %s\n" % e)
```
### Parameters
@@ -277,7 +278,6 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
- **version** | **int**| |
### Return type
@@ -294,10 +294,10 @@ 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)
-# **get_derived_metric_definition_history**
-> ResponseContainerHistoryResponse get_derived_metric_definition_history(id, offset=offset, limit=limit)
+# **get_derived_metric_by_version**
+> ResponseContainerDerivedMetricDefinition get_derived_metric_by_version(id, version)
-Get the version history of a specific derived metric definition
+Get a specific historical version of a specific derived metric definition
@@ -316,17 +316,16 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
-offset = 0 # int | (optional) (default to 0)
-limit = 100 # int | (optional) (default to 100)
+version = 789 # int |
try:
- # Get the version history of a specific derived metric definition
- api_response = api_instance.get_derived_metric_definition_history(id, offset=offset, limit=limit)
+ # Get a specific historical version of a specific derived metric definition
+ api_response = api_instance.get_derived_metric_by_version(id, version)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->get_derived_metric_definition_history: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->get_derived_metric_by_version: %s\n" % e)
```
### Parameters
@@ -334,12 +333,11 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
- **offset** | **int**| | [optional] [default to 0]
- **limit** | **int**| | [optional] [default to 100]
+ **version** | **int**| |
### Return type
-[**ResponseContainerHistoryResponse**](ResponseContainerHistoryResponse.md)
+[**ResponseContainerDerivedMetricDefinition**](ResponseContainerDerivedMetricDefinition.md)
### Authorization
@@ -352,10 +350,10 @@ 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)
-# **get_derived_metric_definition_tags**
-> ResponseContainerTagsResponse get_derived_metric_definition_tags(id)
+# **get_derived_metric_history**
+> ResponseContainerHistoryResponse get_derived_metric_history(id, offset=offset, limit=limit)
-Get all tags associated with a specific derived metric definition
+Get the version history of a specific derived metric definition
@@ -374,15 +372,17 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
try:
- # Get all tags associated with a specific derived metric definition
- api_response = api_instance.get_derived_metric_definition_tags(id)
+ # Get the version history of a specific derived metric definition
+ api_response = api_instance.get_derived_metric_history(id, offset=offset, limit=limit)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->get_derived_metric_definition_tags: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->get_derived_metric_history: %s\n" % e)
```
### Parameters
@@ -390,10 +390,12 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
### Return type
-[**ResponseContainerTagsResponse**](ResponseContainerTagsResponse.md)
+[**ResponseContainerHistoryResponse**](ResponseContainerHistoryResponse.md)
### Authorization
@@ -406,10 +408,10 @@ 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)
-# **get_registered_query**
-> ResponseContainerDerivedMetricDefinition get_registered_query(id)
+# **get_derived_metric_tags**
+> ResponseContainerTagsResponse get_derived_metric_tags(id)
-Get a specific registered query
+Get all tags associated with a specific derived metric definition
@@ -428,15 +430,15 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
- # Get a specific registered query
- api_response = api_instance.get_registered_query(id)
+ # Get all tags associated with a specific derived metric definition
+ api_response = api_instance.get_derived_metric_tags(id)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->get_registered_query: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->get_derived_metric_tags: %s\n" % e)
```
### Parameters
@@ -447,7 +449,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerDerivedMetricDefinition**](ResponseContainerDerivedMetricDefinition.md)
+[**ResponseContainerTagsResponse**](ResponseContainerTagsResponse.md)
### Authorization
@@ -460,10 +462,10 @@ 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_tag_from_derived_metric_definition**
-> ResponseContainer remove_tag_from_derived_metric_definition(id, tag_value)
+# **remove_tag_from_derived_metric**
+> ResponseContainer remove_tag_from_derived_metric(id, tag_value)
-Remove a tag from a specific Derived Metric Definition
+Remove a tag from a specific Derived Metric
@@ -482,16 +484,16 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
tag_value = 'tag_value_example' # str |
try:
- # Remove a tag from a specific Derived Metric Definition
- api_response = api_instance.remove_tag_from_derived_metric_definition(id, tag_value)
+ # Remove a tag from a specific Derived Metric
+ api_response = api_instance.remove_tag_from_derived_metric(id, tag_value)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->remove_tag_from_derived_metric_definition: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->remove_tag_from_derived_metric: %s\n" % e)
```
### Parameters
@@ -516,8 +518,8 @@ 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)
-# **set_derived_metric_definition_tags**
-> ResponseContainer set_derived_metric_definition_tags(id, body=body)
+# **set_derived_metric_tags**
+> ResponseContainer set_derived_metric_tags(id, body=body)
Set all tags associated with a specific derived metric definition
@@ -538,16 +540,16 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
body = [wavefront_api_client.list[str]()] # list[str] | (optional)
try:
# Set all tags associated with a specific derived metric definition
- api_response = api_instance.set_derived_metric_definition_tags(id, body=body)
+ api_response = api_instance.set_derived_metric_tags(id, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->set_derived_metric_definition_tags: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->set_derived_metric_tags: %s\n" % e)
```
### Parameters
@@ -572,8 +574,8 @@ 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)
-# **undelete_derived_metric_definition**
-> ResponseContainerDerivedMetricDefinition undelete_derived_metric_definition(id)
+# **undelete_derived_metric**
+> ResponseContainerDerivedMetricDefinition undelete_derived_metric(id)
Undelete a specific derived metric definition
@@ -594,15 +596,15 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
# Undelete a specific derived metric definition
- api_response = api_instance.undelete_derived_metric_definition(id)
+ api_response = api_instance.undelete_derived_metric(id)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->undelete_derived_metric_definition: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->undelete_derived_metric: %s\n" % e)
```
### Parameters
@@ -626,8 +628,8 @@ 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)
-# **update_derived_metric_definition**
-> ResponseContainerDerivedMetricDefinition update_derived_metric_definition(id, body=body)
+# **update_derived_metric**
+> ResponseContainerDerivedMetricDefinition update_derived_metric(id, body=body)
Update a specific derived metric definition
@@ -648,16 +650,16 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
-api_instance = wavefront_api_client.DerivedMetricDefinitionApi(wavefront_api_client.ApiClient(configuration))
+api_instance = wavefront_api_client.DerivedMetricApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
body = wavefront_api_client.DerivedMetricDefinition() # DerivedMetricDefinition | Example Body: { \"id\": \"1459375928549\", \"name\": \"Query Name\", \"createUserId\": \"user\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\" } (optional)
try:
# Update a specific derived metric definition
- api_response = api_instance.update_derived_metric_definition(id, body=body)
+ api_response = api_instance.update_derived_metric(id, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DerivedMetricDefinitionApi->update_derived_metric_definition: %s\n" % e)
+ print("Exception when calling DerivedMetricApi->update_derived_metric: %s\n" % e)
```
### Parameters
diff --git a/docs/DerivedMetricDefinition.md b/docs/DerivedMetricDefinition.md
index 91e0730d..5ba55078 100644
--- a/docs/DerivedMetricDefinition.md
+++ b/docs/DerivedMetricDefinition.md
@@ -3,35 +3,36 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | |
+**additional_information** | **str** | User-supplied additional explanatory information for the derived metric | [optional]
+**create_user_id** | **str** | | [optional]
+**created** | **int** | When this derived metric was created, in epoch millis | [optional]
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**deleted** | **bool** | | [optional]
+**hosts_used** | **list[str]** | Number of hosts checked by the query | [optional]
**id** | **str** | | [optional]
-**query** | **str** | A Wavefront query that is evaluated at regular intervals (default 1m). |
-**tags** | [**WFTags**](WFTags.md) | | [optional]
-**status** | **list[str]** | Lists the current state of the derived metric. Can be one or more of: INVALID, ACTIVE, TRASH, NO_DATA | [optional]
+**in_trash** | **bool** | | [optional]
**include_obsolete_metrics** | **bool** | Whether to include obsolete metrics in query | [optional]
-**creator_id** | **str** | | [optional]
-**additional_information** | **str** | User-supplied additional explanatory information for the derived metric | [optional]
-**minutes** | **int** | How frequently the query generating the derived metric is run |
-**query_failing** | **bool** | Whether there was an exception when the query last ran | [optional]
-**last_failed_time** | **int** | The time of the last error encountered when running the query, in epoch millis | [optional]
**last_error_message** | **str** | The last error encountered when running the query | [optional]
-**metrics_used** | **list[str]** | Number of metrics checked by the query | [optional]
-**hosts_used** | **list[str]** | Number of hosts checked by the query | [optional]
+**last_failed_time** | **int** | The time of the last error encountered when running the query, in epoch millis | [optional]
**last_processed_millis** | **int** | The last time when the derived metric query was run, in epoch millis | [optional]
-**process_rate_minutes** | **int** | The interval between executing the query, in minutes. Defaults to 1 minute | [optional]
+**last_query_time** | **int** | Time for the query execute, averaged on hourly basis | [optional]
+**metrics_used** | **list[str]** | Number of metrics checked by the query | [optional]
+**minutes** | **int** | Number of minutes to query for the derived metric |
+**name** | **str** | |
**points_scanned_at_last_query** | **int** | A derived field recording the number of data points scanned when the system last computed the query | [optional]
+**process_rate_minutes** | **int** | The interval between executing the query, in minutes. Defaults to 5 minutes | [optional]
+**query** | **str** | A Wavefront query that is evaluated at regular intervals (default 1m). |
+**query_failing** | **bool** | Whether there was an exception when the query last ran | [optional]
**query_qb_enabled** | **bool** | Whether the query was created using the Query Builder. Default false | [optional]
**query_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the query. Applicable only when queryQBEnabled is true | [optional]
-**created_epoch_millis** | **int** | | [optional]
+**status** | **list[str]** | Lists the current state of the derived metric. Can be one or more of: INVALID, ACTIVE, TRASH, NO_DATA | [optional]
+**tagpaths** | **list[str]** | | [optional]
+**tags** | [**WFTags**](WFTags.md) | | [optional]
+**update_user_id** | **str** | The user that last updated this derived metric definition | [optional]
+**updated** | **int** | When the derived metric definition was last updated, in epoch millis | [optional]
**updated_epoch_millis** | **int** | | [optional]
**updater_id** | **str** | | [optional]
-**created** | **int** | When this derived metric was created, in epoch millis | [optional]
-**updated** | **int** | When the derived metric definition was last updated, in epoch millis | [optional]
-**update_user_id** | **str** | The user that last updated this derived metric definition | [optional]
-**last_query_time** | **int** | Time for the query execute, averaged on hourly basis | [optional]
-**in_trash** | **bool** | | [optional]
-**create_user_id** | **str** | | [optional]
-**deleted** | **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/DirectIngestionApi.md b/docs/DirectIngestionApi.md
new file mode 100644
index 00000000..f5c704f2
--- /dev/null
+++ b/docs/DirectIngestionApi.md
@@ -0,0 +1,64 @@
+# wavefront_api_client.DirectIngestionApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**report**](DirectIngestionApi.md#report) | **POST** /report | Directly ingest data/data stream with specified format
+
+
+# **report**
+> report(f=f, body=body)
+
+Directly ingest data/data stream with specified format
+
+
+
+### 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.DirectIngestionApi(wavefront_api_client.ApiClient(configuration))
+f = 'wavefront' # str | Format of data to be ingested (optional) (default to wavefront)
+body = 'body_example' # str | Data to be ingested, in the specified format. See https://docs.wavefront.com/direct_ingestion.html for more detail on how to format the data. Example in \"wavefront\" format: test.metric 100 source=test.sourcewhich ingests a time series point with metric name \"test.metric\", source name \"test.source\", and value of 100 with timestamp of now. (optional) + +try: + # Directly ingest data/data stream with specified format + api_instance.report(f=f, body=body) +except ApiException as e: + print("Exception when calling DirectIngestionApi->report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **f** | **str**| Format of data to be ingested | [optional] [default to wavefront] + **body** | **str**| Data to be ingested, in the specified format. See https://docs.wavefront.com/direct_ingestion.html for more detail on how to format the data. Example in \"wavefront\" format: <pre>test.metric 100 source=test.source</pre> which ingests a time series point with metric name \"test.metric\", source name \"test.source\", and value of 100 with timestamp of now. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/octet-stream, application/x-www-form-urlencoded, text/plain + - **Accept**: Not defined + +[[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) + diff --git a/docs/DynatraceConfiguration.md b/docs/DynatraceConfiguration.md new file mode 100644 index 00000000..cef7d1f6 --- /dev/null +++ b/docs/DynatraceConfiguration.md @@ -0,0 +1,12 @@ +# DynatraceConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dynatrace_api_token** | **str** | The Dynatrace API Token | +**environment_id** | **str** | The ID of Dynatrace Environment | [optional] +**metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [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/EC2Configuration.md b/docs/EC2Configuration.md index 73f8e6f4..7d9eaa5e 100644 --- a/docs/EC2Configuration.md +++ b/docs/EC2Configuration.md @@ -4,7 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **base_credentials** | [**AWSBaseCredentials**](AWSBaseCredentials.md) | | [optional] +**custom_namespaces** | **list[str]** | A list of custom namespace that limit what we query from metric plus | [optional] **host_name_tags** | **list[str]** | A list of AWS instance tags that, when found, will be used as the \"source\" name in a series. Default: [\"hostname\", \"host\", \"name\"]. If no tag in this list is found, the series source is set to the instance id. | [optional] +**instance_selection_tags_expr** | **str** | A string expressing the allow list of AWS instance tag-value pairs. If the instance's AWS tags match this allow list, data about this instance is ingested from EC2 APIs Multiple entries are OR'ed. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". | [optional] +**metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [optional] +**point_tag_filter_regex** | **str** | A regular expression that AWS tag key name must match (case-insensitively) in order to be ingested | [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, Data about this volume is ingested from EBS APIs. Multiple entries are OR'ed. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". | [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/Event.md b/docs/Event.md index 5551e28c..92d1e642 100644 --- a/docs/Event.md +++ b/docs/Event.md @@ -3,27 +3,31 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The name of the event. If 'annotations.prettyName' is present, 'name' will be equivalent to that value | +**alert_tags** | **list[str]** | The list of tags on the alert which created this event. | [optional] **annotations** | **dict(str, str)** | A string->string map of additional annotations on the event | -**id** | **str** | | [optional] -**table** | **str** | The customer to which the event belongs | [optional] -**tags** | **list[str]** | A list of event tags | [optional] +**can_close** | **bool** | | [optional] +**can_delete** | **bool** | | [optional] +**computed_hlps** | [**list[SourceLabelPair]**](SourceLabelPair.md) | All the host/label/tags of the event. | [optional] +**created_at** | **int** | | [optional] +**created_epoch_millis** | **int** | | [optional] +**creator_id** | **str** | | [optional] +**creator_type** | **list[str]** | | [optional] +**dimensions** | **dict(str, list[str])** | A string-><list of strings> map of additional dimension info on the event | [optional] +**end_time** | **int** | End time of the event, in epoch millis. Set to startTime + 1 for an instantaneous event | [optional] **hosts** | **list[str]** | A list of sources/hosts affected by the event | [optional] +**id** | **str** | | [optional] **is_ephemeral** | **bool** | Whether the event is an artificial event generated by a literal expression or alert backtesting, i.e. not stored in the Wavefront backend | [optional] -**creator_id** | **str** | | [optional] -**created_epoch_millis** | **int** | | [optional] -**updated_epoch_millis** | **int** | | [optional] **is_user_event** | **bool** | Whether this event was created by a user, versus the system. Default: system | [optional] +**metrics_used** | **list[str]** | A list of metrics affected by the event | [optional] +**name** | **str** | The name of the event. If 'annotations.prettyName' is present, 'name' will be equivalent to that value | +**running_state** | **str** | | [optional] +**start_time** | **int** | Start time of the event, in epoch millis. If the JSON value is missing or set to 0, startTime will be set to the current time | **summarized_events** | **int** | In some event queries, multiple events that occur nearly simultaneously are summarized under a single event. This value specifies the number of events summarized under this one | [optional] -**updater_id** | **str** | | [optional] +**table** | **str** | The customer to which the event belongs | [optional] +**tags** | **list[str]** | A list of event tags | [optional] **updated_at** | **int** | | [optional] -**created_at** | **int** | | [optional] -**start_time** | **int** | Start time of the event, in epoch millis. If the JSON value is missing or set to 0, startTime will be set to the current time | -**end_time** | **int** | End time of the event, in epoch millis. Set to startTime + 1 for an instantaneous event | -**running_state** | **str** | | [optional] -**can_delete** | **bool** | | [optional] -**can_close** | **bool** | | [optional] -**creator_type** | **list[str]** | | [optional] +**updated_epoch_millis** | **int** | | [optional] +**updater_id** | **str** | | [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/EventApi.md b/docs/EventApi.md index 724d97e3..bbbe9e26 100644 --- a/docs/EventApi.md +++ b/docs/EventApi.md @@ -1,19 +1,23 @@ # wavefront_api_client.EventApi -All URIs are relative to *https://localhost* +All URIs are relative to *https://YOUR_INSTANCE.wavefront.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_event_tag**](EventApi.md#add_event_tag) | **PUT** /api/v2/event/{id}/tag/{tagValue} | Add a tag to a specific event -[**close_event**](EventApi.md#close_event) | **POST** /api/v2/event/{id}/close | Close a specific event +[**close_user_event**](EventApi.md#close_user_event) | **POST** /api/v2/event/{id}/close | Close a specific event [**create_event**](EventApi.md#create_event) | **POST** /api/v2/event | Create a specific event -[**delete_event**](EventApi.md#delete_event) | **DELETE** /api/v2/event/{id} | Delete a specific event +[**delete_user_event**](EventApi.md#delete_user_event) | **DELETE** /api/v2/event/{id} | Delete a specific user event +[**get_alert_event_queries_slug**](EventApi.md#get_alert_event_queries_slug) | **GET** /api/v2/event/{id}/alertQueriesSlug | If the specified event is associated with an alert, returns a slug encoding the queries having to do with that alert firing or resolution +[**get_alert_firing_details**](EventApi.md#get_alert_firing_details) | **GET** /api/v2/event/{id}/alertFiringDetails | Return details of a particular alert firing, including all the series that fired during the referred alert firing +[**get_alert_firing_events**](EventApi.md#get_alert_firing_events) | **GET** /api/v2/event/alertFirings | Get firings events of an alert within a time range [**get_all_events_with_time_range**](EventApi.md#get_all_events_with_time_range) | **GET** /api/v2/event | List all the events for a customer within a time range [**get_event**](EventApi.md#get_event) | **GET** /api/v2/event/{id} | Get a specific event [**get_event_tags**](EventApi.md#get_event_tags) | **GET** /api/v2/event/{id}/tag | Get all tags associated with a specific event +[**get_related_events_with_time_span**](EventApi.md#get_related_events_with_time_span) | **GET** /api/v2/event/{id}/events | List all related events for a specific firing event with a time span of one hour [**remove_event_tag**](EventApi.md#remove_event_tag) | **DELETE** /api/v2/event/{id}/tag/{tagValue} | Remove a tag from a specific event [**set_event_tags**](EventApi.md#set_event_tags) | **POST** /api/v2/event/{id}/tag | Set all tags associated with a specific event -[**update_event**](EventApi.md#update_event) | **PUT** /api/v2/event/{id} | Update a specific event +[**update_user_event**](EventApi.md#update_user_event) | **PUT** /api/v2/event/{id} | Update a specific user event. # **add_event_tag** @@ -72,12 +76,12 @@ 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) -# **close_event** -> ResponseContainerEvent close_event(id) +# **close_user_event** +> ResponseContainerEvent close_user_event(id) Close a specific event - +This API supports only user events. The API does not support close of system events (e.g. alert events). ### Example ```python @@ -99,10 +103,10 @@ id = 'id_example' # str | try: # Close a specific event - api_response = api_instance.close_event(id) + api_response = api_instance.close_user_event(id) pprint(api_response) except ApiException as e: - print("Exception when calling EventApi->close_event: %s\n" % e) + print("Exception when calling EventApi->close_user_event: %s\n" % e) ``` ### Parameters @@ -149,7 +153,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = wavefront_api_client.EventApi(wavefront_api_client.ApiClient(configuration)) -body = wavefront_api_client.Event() # Event | Example Body:
{ \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"startTime\": 1490000000000, \"endTime\": 1490000000001 } (optional)
+body = wavefront_api_client.Event() # Event | Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"tags\" : [ \"eventTag1\" ], \"startTime\": 1490000000000, \"endTime\": 1490000000001 } (optional)
try:
# Create a specific event
@@ -163,7 +167,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Event**](Event.md)| Example Body: <pre>{ \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"startTime\": 1490000000000, \"endTime\": 1490000000001 }</pre> | [optional]
+ **body** | [**Event**](Event.md)| Example Body: <pre>{ \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"tags\" : [ \"eventTag1\" ], \"startTime\": 1490000000000, \"endTime\": 1490000000001 }</pre> | [optional]
### Return type
@@ -180,12 +184,12 @@ 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)
-# **delete_event**
-> ResponseContainerEvent delete_event(id)
-
-Delete a specific event
+# **delete_user_event**
+> ResponseContainerEvent delete_user_event(id)
+Delete a specific user event
+This API supports only user events. The API does not support deletion of system events (e.g. alert events).
### Example
```python
@@ -206,11 +210,11 @@ api_instance = wavefront_api_client.EventApi(wavefront_api_client.ApiClient(conf
id = 'id_example' # str |
try:
- # Delete a specific event
- api_response = api_instance.delete_event(id)
+ # Delete a specific user event
+ api_response = api_instance.delete_user_event(id)
pprint(api_response)
except ApiException as e:
- print("Exception when calling EventApi->delete_event: %s\n" % e)
+ print("Exception when calling EventApi->delete_user_event: %s\n" % e)
```
### Parameters
@@ -234,6 +238,176 @@ 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)
+# **get_alert_event_queries_slug**
+> ResponseContainerString get_alert_event_queries_slug(id)
+
+If the specified event is associated with an alert, returns a slug encoding the queries having to do with that alert firing or resolution
+
+
+
+### 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.EventApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # If the specified event is associated with an alert, returns a slug encoding the queries having to do with that alert firing or resolution
+ api_response = api_instance.get_alert_event_queries_slug(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling EventApi->get_alert_event_queries_slug: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerString**](ResponseContainerString.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_alert_firing_details**
+> ResponseContainerSetSourceLabelPair get_alert_firing_details(id)
+
+Return details of a particular alert firing, including all the series that fired during the referred alert firing
+
+
+
+### 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.EventApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str | id of an event of type alert or alert-detail, used to lookup the particular alert firing
+
+try:
+ # Return details of a particular alert firing, including all the series that fired during the referred alert firing
+ api_response = api_instance.get_alert_firing_details(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling EventApi->get_alert_firing_details: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| id of an event of type alert or alert-detail, used to lookup the particular alert firing |
+
+### Return type
+
+[**ResponseContainerSetSourceLabelPair**](ResponseContainerSetSourceLabelPair.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_alert_firing_events**
+> ResponseContainerPagedEvent get_alert_firing_events(alert_id, earliest_start_time_epoch_millis=earliest_start_time_epoch_millis, latest_start_time_epoch_millis=latest_start_time_epoch_millis, limit=limit, asc=asc)
+
+Get firings events of an alert within a time range
+
+
+
+### 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.EventApi(wavefront_api_client.ApiClient(configuration))
+alert_id = 'alert_id_example' # str |
+earliest_start_time_epoch_millis = 789 # int | (optional)
+latest_start_time_epoch_millis = 789 # int | (optional)
+limit = 100 # int | (optional) (default to 100)
+asc = true # bool | (optional)
+
+try:
+ # Get firings events of an alert within a time range
+ api_response = api_instance.get_alert_firing_events(alert_id, earliest_start_time_epoch_millis=earliest_start_time_epoch_millis, latest_start_time_epoch_millis=latest_start_time_epoch_millis, limit=limit, asc=asc)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling EventApi->get_alert_firing_events: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **alert_id** | **str**| |
+ **earliest_start_time_epoch_millis** | **int**| | [optional]
+ **latest_start_time_epoch_millis** | **int**| | [optional]
+ **limit** | **int**| | [optional] [default to 100]
+ **asc** | **bool**| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedEvent**](ResponseContainerPagedEvent.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_all_events_with_time_range**
> ResponseContainerPagedEvent get_all_events_with_time_range(earliest_start_time_epoch_millis=earliest_start_time_epoch_millis, latest_start_time_epoch_millis=latest_start_time_epoch_millis, cursor=cursor, limit=limit)
@@ -402,6 +576,66 @@ 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)
+# **get_related_events_with_time_span**
+> ResponseContainerPagedEvent get_related_events_with_time_span(id, is_overlapped=is_overlapped, rendering_method=rendering_method, limit=limit)
+
+List all related events for a specific firing event with a time span of one hour
+
+
+
+### 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.EventApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+is_overlapped = true # bool | (optional)
+rendering_method = 'rendering_method_example' # str | (optional)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # List all related events for a specific firing event with a time span of one hour
+ api_response = api_instance.get_related_events_with_time_span(id, is_overlapped=is_overlapped, rendering_method=rendering_method, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling EventApi->get_related_events_with_time_span: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **is_overlapped** | **bool**| | [optional]
+ **rendering_method** | **str**| | [optional]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedEvent**](ResponseContainerPagedEvent.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)
+
# **remove_event_tag**
> ResponseContainer remove_event_tag(id, tag_value)
@@ -514,12 +748,12 @@ 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)
-# **update_event**
-> ResponseContainerEvent update_event(id, body=body)
+# **update_user_event**
+> ResponseContainerEvent update_user_event(id, body=body)
-Update a specific event
+Update a specific user event.
-The following fields are readonly and will be ignored when passed in the request: id, isEphemeral, isUserEvent, runningState, canDelete, canClose, creatorType, createdAt, updatedAt, createdEpochMillis, updatedEpochMillis, updaterId, creatorId, and summarizedEvents
+This API supports only user events. The API does not support update of system events (e.g. alert events). The following fields are readonly and will be ignored when passed in the request: id, isEphemeral, isUserEvent, runningState, canDelete, canClose, creatorType, createdAt, updatedAt, createdEpochMillis, updatedEpochMillis, updaterId, creatorId, and summarizedEvents
### Example
```python
@@ -538,14 +772,14 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.EventApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
-body = wavefront_api_client.Event() # Event | Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"startTime\": 1490000000000, \"endTime\": 1490000000001 } (optional)
+body = wavefront_api_client.Event() # Event | Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"tags\" : [ \"eventTag1\" ], \"startTime\": 1490000000000, \"endTime\": 1490000000001 } (optional)
try:
- # Update a specific event
- api_response = api_instance.update_event(id, body=body)
+ # Update a specific user event.
+ api_response = api_instance.update_user_event(id, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling EventApi->update_event: %s\n" % e)
+ print("Exception when calling EventApi->update_user_event: %s\n" % e)
```
### Parameters
@@ -553,7 +787,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
- **body** | [**Event**](Event.md)| Example Body: <pre>{ \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"startTime\": 1490000000000, \"endTime\": 1490000000001 }</pre> | [optional]
+ **body** | [**Event**](Event.md)| Example Body: <pre>{ \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"tags\" : [ \"eventTag1\" ], \"startTime\": 1490000000000, \"endTime\": 1490000000001 }</pre> | [optional]
### Return type
diff --git a/docs/EventSearchRequest.md b/docs/EventSearchRequest.md
index 550bacb8..fd83e5a3 100644
--- a/docs/EventSearchRequest.md
+++ b/docs/EventSearchRequest.md
@@ -4,10 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cursor** | **str** | The id (exclusive) from which search results resume returning. Users should supply an entity 'id' to this property. Its main purpose is to resume where a previous search left off because of the 'limit' parameter. If a user supplies the last id in a set of results to cursor, while keeping the query the same, the system will return the next page of results | [optional]
-**limit** | **int** | | [optional]
+**limit** | **int** | The number of results to return. Default: 100 | [optional]
**query** | [**list[SearchQuery]**](SearchQuery.md) | A list of queries by which to limit the search results | [optional]
-**time_range** | [**EventTimeRange**](EventTimeRange.md) | | [optional]
+**related_event_time_range** | [**RelatedEventTimeRange**](RelatedEventTimeRange.md) | | [optional]
+**sort_score_method** | **str** | Whether to sort events on similarity score : {NONE, SCORE_ASC, SCORE_DES}. Default: NONE. If sortScoreMethod is set to SCORE_ASC or SCORE_DES, it will override time sort | [optional]
**sort_time_ascending** | **bool** | Whether to sort event results ascending in start time. Default: false | [optional]
+**time_range** | [**EventTimeRange**](EventTimeRange.md) | | [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/ExternalLink.md b/docs/ExternalLink.md
index 74c9f54a..4bab49d2 100644
--- a/docs/ExternalLink.md
+++ b/docs/ExternalLink.md
@@ -3,16 +3,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the external link. Will be displayed in context (right-click) menus on charts |
-**id** | **str** | | [optional]
-**description** | **str** | Human-readable description for this external link |
-**creator_id** | **str** | | [optional]
**created_epoch_millis** | **int** | | [optional]
-**updated_epoch_millis** | **int** | | [optional]
-**template** | **str** | The mustache template for this link. This template must expand to a full URL, including scheme, origin, etc |
+**creator_id** | **str** | | [optional]
+**description** | **str** | Human-readable description for this external link |
+**id** | **str** | | [optional]
+**is_log_integration** | **bool** | Whether this is a \"Log Integration\" subType of external link | [optional]
**metric_filter_regex** | **str** | Controls whether a link displayed in the context menu of a highlighted series. If present, the metric name of the highlighted series must match this regular expression in order for the link to be displayed | [optional]
-**source_filter_regex** | **str** | Controls whether a link displayed in the context menu of a highlighted series. If present, the source name of the highlighted series must match this regular expression in order for the link to be displayed | [optional]
+**name** | **str** | Name of the external link. Will be displayed in context (right-click) menus on charts |
**point_tag_filter_regexes** | **dict(str, str)** | Controls whether a link displayed in the context menu of a highlighted series. This is a map from string to regular expression. The highlighted series must contain point tags whose keys are present in the keys of this map and whose values match the regular expressions associated with those keys in order for the link to be displayed | [optional]
+**source_filter_regex** | **str** | Controls whether a link displayed in the context menu of a highlighted series. If present, the source name of the highlighted series must match this regular expression in order for the link to be displayed | [optional]
+**template** | **str** | The mustache template for this link. This template must expand to a full URL, including scheme, origin, etc |
+**updated_epoch_millis** | **int** | | [optional]
**updater_id** | **str** | | [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/ExternalLinkApi.md b/docs/ExternalLinkApi.md
index b169a7f2..83a8b2c6 100644
--- a/docs/ExternalLinkApi.md
+++ b/docs/ExternalLinkApi.md
@@ -1,6 +1,6 @@
# wavefront_api_client.ExternalLinkApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/FacetResponse.md b/docs/FacetResponse.md
index 77234f75..61475730 100644
--- a/docs/FacetResponse.md
+++ b/docs/FacetResponse.md
@@ -3,13 +3,13 @@
## 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[str]** | List of requested items | [optional]
-**offset** | **int** | | [optional]
**limit** | **int** | | [optional]
-**cursor** | **str** | The id at which the current (limited) search can be continued to obtain more matching items | [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]
**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/FacetSearchRequestContainer.md b/docs/FacetSearchRequestContainer.md
index a6c6599d..d75c3ee8 100644
--- a/docs/FacetSearchRequestContainer.md
+++ b/docs/FacetSearchRequestContainer.md
@@ -3,11 +3,11 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**limit** | **int** | The number of results to return. Default: 100 | [optional]
-**offset** | **int** | The number of results to skip before returning values. Default: 0 | [optional]
-**query** | [**list[SearchQuery]**](SearchQuery.md) | A list of queries by which to limit the search results. Entities that match ALL queries in the list are returned | [optional]
**facet_query** | **str** | A string against which facet results are compared. If the facet result CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned. | [optional]
**facet_query_matching_method** | **str** | The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. | [optional]
+**limit** | **int** | The number of results to return. Default: 100, Maximum allowed: 1000 | [optional]
+**offset** | **int** | The number of results to skip before returning values. Default: 0 | [optional]
+**query** | [**list[SearchQuery]**](SearchQuery.md) | A list of queries by which to limit the search results. Entities that match ALL queries in the list are returned | [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/FacetsResponseContainer.md b/docs/FacetsResponseContainer.md
index d5c6a015..0c450e49 100644
--- a/docs/FacetsResponseContainer.md
+++ b/docs/FacetsResponseContainer.md
@@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**limit** | **int** | The requested limit | [optional]
**facets** | **dict(str, list[str])** | The requested facets, returned in a map whose key is the facet property and whose value is a list of facet values | [optional]
+**limit** | **int** | The requested limit | [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/FacetsSearchRequestContainer.md b/docs/FacetsSearchRequestContainer.md
index 489f6437..81dbf4cb 100644
--- a/docs/FacetsSearchRequestContainer.md
+++ b/docs/FacetsSearchRequestContainer.md
@@ -3,11 +3,11 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**query** | [**list[SearchQuery]**](SearchQuery.md) | A list of queries by which to limit the search results. Entities that match ALL queries in this list constitute a set of 'entity search results'. All facets listed in the 'facets' search parameter of all entities within 'entity search results' are scanned to produce the search results (of facet values). | [optional]
-**limit** | **int** | The number of results to return. Default 100 | [optional]
-**facets** | **list[str]** | A list of facets (property keys) to return values from found in entities matching 'query'. Examples are 'tags', 'creatorId', etc |
**facet_query** | **str** | A string against which facet results are compared. If the facet result either CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned | [optional]
**facet_query_matching_method** | **str** | The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. | [optional]
+**facets** | **list[str]** | A list of facets (property keys) to return values from found in entities matching 'query'. Examples are 'tags', 'creatorId', etc |
+**limit** | **int** | The number of results to return. Default 100, Maximum allowed: 1000 | [optional]
+**query** | [**list[SearchQuery]**](SearchQuery.md) | A list of queries by which to limit the search results. Entities that match ALL queries in this list constitute a set of 'entity search results'. All facets listed in the 'facets' search parameter of all entities within 'entity search results' are scanned to produce the search results (of facet values). | [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/FastReaderBuilder.md b/docs/FastReaderBuilder.md
new file mode 100644
index 00000000..02ac2e68
--- /dev/null
+++ b/docs/FastReaderBuilder.md
@@ -0,0 +1,11 @@
+# FastReaderBuilder
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**class_prop_enabled** | **bool** | | [optional]
+**key_class_enabled** | **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/TeslaConfiguration.md b/docs/Field.md
similarity index 76%
rename from docs/TeslaConfiguration.md
rename to docs/Field.md
index 6fe5642b..493e47ac 100644
--- a/docs/TeslaConfiguration.md
+++ b/docs/Field.md
@@ -1,9 +1,9 @@
-# TeslaConfiguration
+# Field
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**email** | **str** | Email address for Tesla account login |
+**object_props** | **dict(str, object)** | | [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/GCPBillingConfiguration.md b/docs/GCPBillingConfiguration.md
new file mode 100644
index 00000000..cd6d0e14
--- /dev/null
+++ b/docs/GCPBillingConfiguration.md
@@ -0,0 +1,12 @@
+# GCPBillingConfiguration
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**gcp_api_key** | **str** | API key for Google Cloud Platform (GCP). Use 'saved_api_key' to retain existing API key when updating |
+**gcp_json_key** | **str** | Private key for a Google Cloud Platform (GCP) service account within your project. The account must at least be granted Monitoring Viewer permissions. This key must be in the JSON format generated by GCP. Use '{\"project_id\": \"%s\"}' to retain the existing key when updating. |
+**project_id** | **str** | The Google Cloud Platform (GCP) project id. |
+
+[[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/GCPConfiguration.md b/docs/GCPConfiguration.md
index 60750152..ef7bfe33 100644
--- a/docs/GCPConfiguration.md
+++ b/docs/GCPConfiguration.md
@@ -3,10 +3,15 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**gcp_json_key** | **str** | Private key for a Google Cloud Platform (GCP) service account within your project. The account must at least be granted Monitoring Viewer permissions. This key must be in the JSON format generated by GCP. |
-**project_id** | **str** | The Google Cloud Platform (GCP) project id. |
+**categories_to_fetch** | **list[str]** | A list of Google Cloud Platform (GCP) services (such as ComputeEngine, PubSub, etc) from which to pull metrics. Allowable values are APPENGINE, BIGQUERY, BIGTABLE, CLOUDFUNCTIONS, CLOUDIOT, CLOUDSQL, CLOUDTASKS, COMPUTE, CONTAINER, DATAFLOW, DATAPROC, DATASTORE, FIREBASEDATABASE, FIREBASEHOSTING, FIRESTORE, INTERCONNECT, KUBERNETES, LOADBALANCING, LOGGING, ML, MONITORING, PUBSUB, REDIS, ROUTER, SERVICERUNTIME, SPANNER, STORAGE, TPU, VPN | [optional]
+**custom_metric_prefix** | **list[str]** | List of custom metric prefix to fetch the data from | [optional]
+**disable_delta_counts** | **bool** | Whether to disable the ingestion of counts for GCP delta metrics. Ingestion is enabled by default. | [optional]
+**disable_histogram** | **bool** | Whether to disable the ingestion of histograms. Ingestion is enabled by default. | [optional]
+**disable_histogram_to_metric_conversion** | **bool** | Whether to disable the ingestion of bucket data for GCP distributions. Ingestion is enabled by default. | [optional]
+**gcp_json_key** | **str** | Private key for a Google Cloud Platform (GCP) service account within your project. The account must at least be granted Monitoring Viewer permissions. This key must be in the JSON format generated by GCP. Use '{\"project_id\": \"%s\"}' to retain the existing key when updating. |
+**histogram_grouping_function** | **list[str]** | List of histogram grouping function to fetch data from | [optional]
**metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [optional]
-**categories_to_fetch** | **list[str]** | A list of Google Cloud Platform (GCP) services (such as ComputeEngine, PubSub, etc) from which to pull metrics. Allowable values are APPENGINE, BIGQUERY, BIGTABLE, CLOUDFUNCTIONS, CLOUDIOT, CLOUDSQL, CLOUDTASKS, COMPUTE, CONTAINER, DATAFLOW, DATASTORE, FIREBASEDATABASE, FIREBASEHOSTING, LOGGING, ML, PUBSUB, ROUTER, SPANNER, STORAGE, VPN | [optional]
+**project_id** | **str** | The Google Cloud Platform (GCP) project id. |
[[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/HistoryEntry.md b/docs/HistoryEntry.md
index 9453f273..dde72c14 100644
--- a/docs/HistoryEntry.md
+++ b/docs/HistoryEntry.md
@@ -3,12 +3,12 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**change_description** | **list[str]** | | [optional]
**id** | **str** | | [optional]
**in_trash** | **bool** | | [optional]
-**version** | **int** | | [optional]
-**update_user** | **str** | | [optional]
**update_time** | **int** | | [optional]
-**change_description** | **list[str]** | | [optional]
+**update_user** | **str** | | [optional]
+**version** | **int** | | [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/HistoryResponse.md b/docs/HistoryResponse.md
index 9b431178..9fd740d3 100644
--- a/docs/HistoryResponse.md
+++ b/docs/HistoryResponse.md
@@ -3,13 +3,13 @@
## 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[HistoryEntry]**](HistoryEntry.md) | List of requested items | [optional]
-**offset** | **int** | | [optional]
**limit** | **int** | | [optional]
-**cursor** | **str** | The id at which the current (limited) search can be continued to obtain more matching items | [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]
**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/IngestionPolicyAlert.md b/docs/IngestionPolicyAlert.md
new file mode 100644
index 00000000..dba435a8
--- /dev/null
+++ b/docs/IngestionPolicyAlert.md
@@ -0,0 +1,94 @@
+# IngestionPolicyAlert
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**acl** | [**AccessControlListSimple**](AccessControlListSimple.md) | | [optional]
+**active_maintenance_windows** | **list[str]** | The names of the active maintenance windows that are affecting this alert | [optional]
+**additional_information** | **str** | User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc | [optional]
+**alert_chart_base** | **int** | The base of alert chart. A linear chart will have base as 1. A logarithmic chart will have the other base value.The value should be an integer and should greater than or equal to 1. | [optional]
+**alert_chart_description** | **str** | The description of alert chart. Different from alert additional info, this is used to describe the characteristics of the chart. | [optional]
+**alert_chart_units** | **str** | The y-axis unit of Alert chart. | [optional]
+**alert_sources** | [**list[AlertSource]**](AlertSource.md) | A list of queries represent multiple queries in alert. It must contains at least one query with AlertSourceType as CONDITION. | [optional]
+**alert_triage_dashboards** | [**list[AlertDashboard]**](AlertDashboard.md) | User-supplied dashboard and parameters to create dashboard links. Parameters must be specified as constants or variables. Constant parameters currently only supported | [optional]
+**alert_type** | **str** | Alert type. | [optional]
+**alerts_last_day** | **int** | | [optional]
+**alerts_last_month** | **int** | | [optional]
+**alerts_last_week** | **int** | | [optional]
+**application** | **list[str]** | Lists the applications from the failingHostLabelPair of the alert. | [optional]
+**chart_attributes** | [**JsonNode**](JsonNode.md) | Additional chart settings for the alert (e.g. pie chart has its chart settings in this section). | [optional]
+**chart_settings** | [**ChartSettings**](ChartSettings.md) | The old chart settings for the alert (e.g. chart type, chart range etc.). | [optional]
+**condition** | **str** | A Wavefront query that is evaluated at regular intervals (default 1m). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes |
+**condition_percentages** | **dict(str, int)** | Multi - alert conditions. | [optional]
+**condition_qb_enabled** | **bool** | Whether the condition query was created using the Query Builder. Default false | [optional]
+**condition_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true | [optional]
+**condition_query_type** | **str** | | [optional]
+**conditions** | **dict(str, str)** | Multi - alert conditions. | [optional]
+**conditions_threshold_operator** | **str** | |
+**create_user_id** | **str** | | [optional]
+**created** | **int** | When this alert was created, in epoch millis | [optional]
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**deleted** | **bool** | | [optional]
+**display_expression** | **str** | A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted | [optional]
+**display_expression_qb_enabled** | **bool** | Whether the display expression query was created using the Query Builder. Default false | [optional]
+**display_expression_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true | [optional]
+**display_expression_query_type** | **str** | | [optional]
+**enable_pd_incident_by_series** | **bool** | | [optional]
+**evaluate_realtime_data** | **bool** | Whether to alert on the real-time ingestion stream (may be noisy due to late data) | [optional]
+**event** | [**Event**](Event.md) | | [optional]
+**failing_host_label_pair_links** | **list[str]** | List of links to tracing applications that caused a failing series | [optional]
+**failing_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Failing host/metric pairs | [optional]
+**hidden** | **bool** | | [optional]
+**hosts_used** | **list[str]** | Number of hosts checked by the alert condition | [optional]
+**id** | **str** | | [optional]
+**in_maintenance_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Lists the sources that will not be checked for this alert, due to matching a maintenance window | [optional]
+**in_trash** | **bool** | | [optional]
+**include_obsolete_metrics** | **bool** | Whether to include obsolete metrics in alert query | [optional]
+**ingestion_policy_id** | **str** | Get the ingestion policy Id associated with ingestion policy alert. | [optional]
+**last_error_message** | **str** | The last error encountered when running this alert's condition query | [optional]
+**last_event_time** | **int** | Start time (in epoch millis) of the last event associated with this alert. | [optional]
+**last_failed_time** | **int** | The time of the last error encountered when running this alert's condition query, in epoch millis | [optional]
+**last_notification_millis** | **int** | When this alert last caused a notification, in epoch millis | [optional]
+**last_processed_millis** | **int** | The time when this alert was last checked, in epoch millis | [optional]
+**last_query_time** | **int** | Last query time of the alert, averaged on hourly basis | [optional]
+**metrics_used** | **list[str]** | Number of metrics checked by the alert condition | [optional]
+**minutes** | **int** | The number of consecutive minutes that a series matching the condition query must evaluate to \"true\" (non-zero value) before the alert fires |
+**modify_acl_access** | **bool** | Whether the user has modify ACL access to the alert. | [optional]
+**name** | **str** | |
+**no_data_event** | [**Event**](Event.md) | No data event related to the alert | [optional]
+**notificants** | **list[str]** | A derived field listing the webhook ids used by this alert | [optional]
+**notification_resend_frequency_minutes** | **int** | How often to re-trigger a continually failing alert. If absent or <= 0, no retriggering occurs | [optional]
+**num_points_in_failure_frame** | **int** | Number of points scanned in alert query time frame. | [optional]
+**orphan** | **bool** | | [optional]
+**points_scanned_at_last_query** | **int** | A derived field recording the number of data points scanned when the system last computed this alert's condition | [optional]
+**prefiring_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Lists the series that are starting to fail, defined as failing for greater than 50% of the checks in the window determined by the \"minutes\" parameter | [optional]
+**process_rate_minutes** | **int** | The interval between checks for this alert, in minutes. Defaults to 5 minutes | [optional]
+**query_failing** | **bool** | Whether there was an exception when the alert condition last ran | [optional]
+**query_syntax_error** | **bool** | Whether there was an query syntax exception when the alert condition last ran | [optional]
+**resolve_after_minutes** | **int** | The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" | [optional]
+**runbook_links** | **list[str]** | User-supplied runbook links for this alert. Useful for linking wiki page or documentation, etc to refer to when alert is triggered | [optional]
+**secure_metric_details** | **bool** | Whether to secure sensitive metric details and alert images in alert notifications, to not break Metrics Security. | [optional]
+**service** | **list[str]** | Lists the services from the failingHostLabelPair of the alert. | [optional]
+**severity** | **str** | Severity of the alert | [optional]
+**severity_list** | **list[str]** | Alert severity list for multi-threshold type. | [optional]
+**snoozed** | **int** | The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely | [optional]
+**sort_attr** | **int** | Attribute used for default alert sort that is derived from state and severity | [optional]
+**status** | **list[str]** | Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA | [optional]
+**system_alert_version** | **int** | If this is a system alert, the version of it | [optional]
+**system_owned** | **bool** | Whether this alert is system-owned and not writeable | [optional]
+**tagpaths** | **list[str]** | | [optional]
+**tags** | [**WFTags**](WFTags.md) | | [optional]
+**target** | **str** | The email address or integration endpoint (such as PagerDuty or web hook) to notify when the alert status changes. Comma-separated list of targets. Multiple target types can be in the list. Alert target format: ({email}|pd:{pd_key}|target:{alert target ID}). You cannot update this value. | [optional]
+**target_endpoints** | **list[str]** | | [optional]
+**target_info** | [**list[TargetInfo]**](TargetInfo.md) | List of alert targets display information that includes name, id and type. | [optional]
+**targets** | **dict(str, str)** | Targets for severity. | [optional]
+**triage_dashboards** | [**list[TriageDashboard]**](TriageDashboard.md) | Deprecated for alertTriageDashboards | [optional]
+**update_user_id** | **str** | The user that last updated this alert | [optional]
+**updated** | **int** | When the alert was last updated, in epoch millis | [optional]
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [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/IngestionPolicyMetadata.md b/docs/IngestionPolicyMetadata.md
new file mode 100644
index 00000000..5a72de73
--- /dev/null
+++ b/docs/IngestionPolicyMetadata.md
@@ -0,0 +1,12 @@
+# IngestionPolicyMetadata
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**customer** | **str** | ID of the customer to which the ingestion policy metadata belongs | [optional]
+**ingestion_policy_id** | **str** | The unique ID for the ingestion policy to which the metadata belongs | [optional]
+**usage_in_billing_period** | **int** | ingestion policy usage in billing period | [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/IngestionPolicyReadModel.md b/docs/IngestionPolicyReadModel.md
new file mode 100644
index 00000000..18a8213f
--- /dev/null
+++ b/docs/IngestionPolicyReadModel.md
@@ -0,0 +1,26 @@
+# IngestionPolicyReadModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**accounts** | [**list[AccessControlElement]**](AccessControlElement.md) | The accounts associated with the ingestion policy | [optional]
+**alert** | [**Alert**](Alert.md) | The alert object connected with the ingestion policy. | [optional]
+**customer** | **str** | ID of the customer to which the ingestion policy belongs | [optional]
+**description** | **str** | The description of the ingestion policy | [optional]
+**groups** | [**list[AccessControlElement]**](AccessControlElement.md) | The groups associated with the ingestion policy | [optional]
+**id** | **str** | The unique ID for the ingestion policy | [optional]
+**is_limited** | **bool** | Whether the ingestion policy is limited | [optional]
+**last_updated_account_id** | **str** | The account that updated this ingestion policy last time | [optional]
+**last_updated_ms** | **int** | The last time when the ingestion policy is updated, in epoch milliseconds | [optional]
+**limit_pps** | **int** | The PPS limit of the ingestion policy | [optional]
+**metadata** | [**IngestionPolicyMetadata**](IngestionPolicyMetadata.md) | metadata associated with the ingestion policy | [optional]
+**name** | **str** | The name of the ingestion policy | [optional]
+**namespaces** | **list[str]** | The namespaces associated with the ingestion policy | [optional]
+**point_tags** | [**list[Annotation]**](Annotation.md) | The point tags associated with the ingestion policy | [optional]
+**scope** | **str** | The scope of the ingestion policy | [optional]
+**sources** | **list[str]** | The sources associated with the ingestion policy | [optional]
+**tags_anded** | **bool** | Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the ingestion policy to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false | [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/IngestionPolicyWriteModel.md b/docs/IngestionPolicyWriteModel.md
new file mode 100644
index 00000000..caeb09e6
--- /dev/null
+++ b/docs/IngestionPolicyWriteModel.md
@@ -0,0 +1,25 @@
+# IngestionPolicyWriteModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**accounts** | **list[str]** | The accounts associated with the ingestion policy | [optional]
+**alert** | [**IngestionPolicyAlert**](IngestionPolicyAlert.md) | The alert DTO object associated with the ingestion policy. | [optional]
+**customer** | **str** | ID of the customer to which the ingestion policy belongs | [optional]
+**description** | **str** | The description of the ingestion policy | [optional]
+**groups** | **list[str]** | The groups associated with the ingestion policy | [optional]
+**id** | **str** | The unique ID for the ingestion policy | [optional]
+**is_limited** | **bool** | Whether the ingestion policy is limited | [optional]
+**last_updated_account_id** | **str** | The account that updated this ingestion policy last time | [optional]
+**last_updated_ms** | **int** | The last time when the ingestion policy is updated, in epoch milliseconds | [optional]
+**limit_pps** | **int** | The PPS limit of the ingestion policy | [optional]
+**name** | **str** | The name of the ingestion policy | [optional]
+**namespaces** | **list[str]** | The namespaces associated with the ingestion policy | [optional]
+**point_tags** | [**list[Annotation]**](Annotation.md) | The point tags associated with the ingestion policy | [optional]
+**scope** | **str** | The scope of the ingestion policy | [optional]
+**sources** | **list[str]** | The sources associated with the ingestion policy | [optional]
+**tags_anded** | **bool** | Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the ingestion policy to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false | [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/IngestionSpyApi.md b/docs/IngestionSpyApi.md
new file mode 100644
index 00000000..d63cbde2
--- /dev/null
+++ b/docs/IngestionSpyApi.md
@@ -0,0 +1,330 @@
+# wavefront_api_client.IngestionSpyApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**spy_on_delta_counters**](IngestionSpyApi.md#spy_on_delta_counters) | **GET** /api/spy/deltas | Gets new delta counters that are added to existing time series.
+[**spy_on_ephemeral_points**](IngestionSpyApi.md#spy_on_ephemeral_points) | **GET** /api/spy/ephemeral | Gets a sampling of new ephemeral metric data points that are added to existing time series.
+[**spy_on_histograms**](IngestionSpyApi.md#spy_on_histograms) | **GET** /api/spy/histograms | Gets new histograms that are added to existing time series.
+[**spy_on_id_creations**](IngestionSpyApi.md#spy_on_id_creations) | **GET** /api/spy/ids | Gets newly allocated IDs that correspond to new metric names, source names, point tags, or span tags. A new ID generally indicates that a new time series has been introduced.
+[**spy_on_points**](IngestionSpyApi.md#spy_on_points) | **GET** /api/spy/points | Gets a sampling of new metric data points that are added to existing time series.
+[**spy_on_spans**](IngestionSpyApi.md#spy_on_spans) | **GET** /api/spy/spans | Gets new spans with existing source names and span tags.
+
+
+# **spy_on_delta_counters**
+> spy_on_delta_counters(counter=counter, host=host, counter_tag_key=counter_tag_key, sampling=sampling)
+
+Gets new delta counters that are added to existing time series.
+
+Try it Out button won't work in this case, as it's a streaming API. Endpoint: https://.wavefront.com/api/spy/deltas.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import wavefront_api_client
+from wavefront_api_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = wavefront_api_client.IngestionSpyApi()
+counter = 'counter_example' # str | List a delta counter only if its name starts with the specified case-sensitive prefix. E.g., counter=orderShirt matches counters named orderShirt and orderShirts, but not OrderShirts. (optional)
+host = 'host_example' # str | List a delta counter only if the name of its source starts with the specified case-sensitive prefix. (optional)
+counter_tag_key = ['counter_tag_key_example'] # list[str] | List a delta counter only if it has the specified tag key. Add this parameter multiple times to specify multiple tags, e.g. counterTagKey=cluster&counterTagKey=shard put cluster in the first line, put shard in the second line as values (optional)
+sampling = 0.01 # float | (optional) (default to 0.01)
+
+try:
+ # Gets new delta counters that are added to existing time series.
+ api_instance.spy_on_delta_counters(counter=counter, host=host, counter_tag_key=counter_tag_key, sampling=sampling)
+except ApiException as e:
+ print("Exception when calling IngestionSpyApi->spy_on_delta_counters: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **counter** | **str**| List a delta counter only if its name starts with the specified case-sensitive prefix. E.g., counter=orderShirt matches counters named orderShirt and orderShirts, but not OrderShirts. | [optional]
+ **host** | **str**| List a delta counter only if the name of its source starts with the specified case-sensitive prefix. | [optional]
+ **counter_tag_key** | [**list[str]**](str.md)| List a delta counter only if it has the specified tag key. Add this parameter multiple times to specify multiple tags, e.g. counterTagKey=cluster&counterTagKey=shard put cluster in the first line, put shard in the second line as values | [optional]
+ **sampling** | **float**| | [optional] [default to 0.01]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain
+
+[[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)
+
+# **spy_on_ephemeral_points**
+> spy_on_ephemeral_points(metric=metric, host=host, point_tag_key=point_tag_key, sampling=sampling)
+
+Gets a sampling of new ephemeral metric data points that are added to existing time series.
+
+Try it Out button won't work in this case, as it's a streaming API. Endpoint: https://{ \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] } (optional)
+
+try:
+ # Update the metrics policy
+ api_response = api_instance.update_metrics_policy(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MetricsPolicyApi->update_metrics_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**MetricsPolicyWriteModel**](MetricsPolicyWriteModel.md)| Example Body: <pre>{ \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerMetricsPolicyReadModel**](ResponseContainerMetricsPolicyReadModel.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)
+
diff --git a/docs/MetricsPolicyReadModel.md b/docs/MetricsPolicyReadModel.md
new file mode 100644
index 00000000..5fcb35a0
--- /dev/null
+++ b/docs/MetricsPolicyReadModel.md
@@ -0,0 +1,14 @@
+# MetricsPolicyReadModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**customer** | **str** | The customer identifier of the security policy | [optional]
+**policy_rules** | [**list[PolicyRuleReadModel]**](PolicyRuleReadModel.md) | The list of policy rules of the metrics policy | [optional]
+**type** | **str** | The type of the security policy | [optional]
+**updated_epoch_millis** | **int** | The date time of the metrics policy update | [optional]
+**updater_id** | **str** | The id of the metrics policy updater | [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/MetricsPolicyWriteModel.md b/docs/MetricsPolicyWriteModel.md
new file mode 100644
index 00000000..d50e4e6e
--- /dev/null
+++ b/docs/MetricsPolicyWriteModel.md
@@ -0,0 +1,14 @@
+# MetricsPolicyWriteModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**customer** | **str** | The customer identifier of the security policy | [optional]
+**policy_rules** | [**list[PolicyRuleWriteModel]**](PolicyRuleWriteModel.md) | The policy rules of the metrics policy | [optional]
+**type** | **str** | The type of the security policy | [optional]
+**updated_epoch_millis** | **int** | The date time of the metrics policy update | [optional]
+**updater_id** | **str** | The id of the metrics policy updater | [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/Module.md b/docs/Module.md
new file mode 100644
index 00000000..4da2ad8f
--- /dev/null
+++ b/docs/Module.md
@@ -0,0 +1,18 @@
+# Module
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotations** | [**list[Annotation]**](Annotation.md) | | [optional]
+**class_loader** | [**ClassLoader**](ClassLoader.md) | | [optional]
+**declared_annotations** | [**list[Annotation]**](Annotation.md) | | [optional]
+**descriptor** | [**ModuleDescriptor**](ModuleDescriptor.md) | | [optional]
+**layer** | [**ModuleLayer**](ModuleLayer.md) | | [optional]
+**name** | **str** | | [optional]
+**named** | **bool** | | [optional]
+**native_access_enabled** | **bool** | | [optional]
+**packages** | **list[str]** | | [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/ModuleDescriptor.md b/docs/ModuleDescriptor.md
new file mode 100644
index 00000000..35eac493
--- /dev/null
+++ b/docs/ModuleDescriptor.md
@@ -0,0 +1,11 @@
+# ModuleDescriptor
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**automatic** | **bool** | | [optional]
+**open** | **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/ModuleLayer.md b/docs/ModuleLayer.md
new file mode 100644
index 00000000..14d8ceea
--- /dev/null
+++ b/docs/ModuleLayer.md
@@ -0,0 +1,9 @@
+# ModuleLayer
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[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/MonitoredApplicationApi.md b/docs/MonitoredApplicationApi.md
new file mode 100644
index 00000000..cf5e9665
--- /dev/null
+++ b/docs/MonitoredApplicationApi.md
@@ -0,0 +1,177 @@
+# wavefront_api_client.MonitoredApplicationApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_all_applications**](MonitoredApplicationApi.md#get_all_applications) | **GET** /api/v2/monitoredapplication | Get all monitored applications
+[**get_application**](MonitoredApplicationApi.md#get_application) | **GET** /api/v2/monitoredapplication/{application} | Get a specific application
+[**update_service**](MonitoredApplicationApi.md#update_service) | **PUT** /api/v2/monitoredapplication/{application} | Update a specific service
+
+
+# **get_all_applications**
+> ResponseContainerPagedMonitoredApplicationDTO get_all_applications(offset=offset, limit=limit)
+
+Get all monitored applications
+
+
+
+### 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.MonitoredApplicationApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all monitored applications
+ api_response = api_instance.get_all_applications(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredApplicationApi->get_all_applications: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedMonitoredApplicationDTO**](ResponseContainerPagedMonitoredApplicationDTO.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_application**
+> ResponseContainerMonitoredApplicationDTO get_application(application)
+
+Get a specific application
+
+
+
+### 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.MonitoredApplicationApi(wavefront_api_client.ApiClient(configuration))
+application = 'application_example' # str |
+
+try:
+ # Get a specific application
+ api_response = api_instance.get_application(application)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredApplicationApi->get_application: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application** | **str**| |
+
+### Return type
+
+[**ResponseContainerMonitoredApplicationDTO**](ResponseContainerMonitoredApplicationDTO.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)
+
+# **update_service**
+> ResponseContainerMonitoredApplicationDTO update_service(application, body=body)
+
+Update a specific service
+
+
+
+### 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.MonitoredApplicationApi(wavefront_api_client.ApiClient(configuration))
+application = 'application_example' # str |
+body = wavefront_api_client.MonitoredApplicationDTO() # MonitoredApplicationDTO | Example Body: { \"application\": \"beachshirts\", \"satisfiedLatencyMillis\": \"100000\", \"hidden\": \"false\" } (optional)
+
+try:
+ # Update a specific service
+ api_response = api_instance.update_service(application, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredApplicationApi->update_service: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application** | **str**| |
+ **body** | [**MonitoredApplicationDTO**](MonitoredApplicationDTO.md)| Example Body: <pre>{ \"application\": \"beachshirts\", \"satisfiedLatencyMillis\": \"100000\", \"hidden\": \"false\" }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerMonitoredApplicationDTO**](ResponseContainerMonitoredApplicationDTO.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)
+
diff --git a/docs/MonitoredApplicationDTO.md b/docs/MonitoredApplicationDTO.md
new file mode 100644
index 00000000..0818f654
--- /dev/null
+++ b/docs/MonitoredApplicationDTO.md
@@ -0,0 +1,18 @@
+# MonitoredApplicationDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**application** | **str** | Application Name of the monitored application |
+**created** | **int** | Created epoch of monitored application | [optional]
+**hidden** | **bool** | Monitored application is hidden or not | [optional]
+**last_reported** | **int** | Last reported epoch of monitored application | [optional]
+**last_updated** | **int** | Last update epoch of monitored application | [optional]
+**satisfied_latency_millis** | **int** | Satisfied latency of monitored application | [optional]
+**service_count** | **int** | Number of monitored service of monitored application | [optional]
+**status** | **str** | Status of monitored application | [optional]
+**update_user_id** | **str** | Last update user id of monitored application | [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/MonitoredCluster.md b/docs/MonitoredCluster.md
new file mode 100644
index 00000000..0fbf0c14
--- /dev/null
+++ b/docs/MonitoredCluster.md
@@ -0,0 +1,20 @@
+# MonitoredCluster
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**additional_tags** | **dict(str, str)** | | [optional]
+**alias** | **str** | ID of a monitored cluster that was merged into this one. | [optional]
+**components** | [**list[KubernetesComponent]**](KubernetesComponent.md) | | [optional]
+**deleted** | **bool** | | [optional]
+**id** | **str** | Id of monitored cluster which is same as actual cluster id |
+**last_updated** | **int** | | [optional]
+**monitored** | **bool** | | [optional]
+**name** | **str** | Name of the monitored cluster |
+**platform** | **str** | Monitored cluster type | [optional]
+**tags** | **list[str]** | | [optional]
+**version** | **str** | Version of monitored cluster | [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/MonitoredServiceApi.md b/docs/MonitoredServiceApi.md
new file mode 100644
index 00000000..07614027
--- /dev/null
+++ b/docs/MonitoredServiceApi.md
@@ -0,0 +1,413 @@
+# wavefront_api_client.MonitoredServiceApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**batch_update**](MonitoredServiceApi.md#batch_update) | **PUT** /api/v2/monitoredservice/services | Update multiple applications and services in a batch. Batch size is limited to 100.
+[**get_all_components**](MonitoredServiceApi.md#get_all_components) | **GET** /api/v2/monitoredservice/components | Get all monitored services with components
+[**get_all_services**](MonitoredServiceApi.md#get_all_services) | **GET** /api/v2/monitoredservice | Get all monitored services
+[**get_component**](MonitoredServiceApi.md#get_component) | **GET** /api/v2/monitoredservice/{application}/{service}/{component} | Get a specific application
+[**get_service**](MonitoredServiceApi.md#get_service) | **GET** /api/v2/monitoredservice/{application}/{service} | Get a specific application
+[**get_services_of_application**](MonitoredServiceApi.md#get_services_of_application) | **GET** /api/v2/monitoredservice/{application} | Get services for a specific application
+[**update_service**](MonitoredServiceApi.md#update_service) | **PUT** /api/v2/monitoredservice/{application}/{service} | Update a specific service
+
+
+# **batch_update**
+> ResponseContainer batch_update(body=body)
+
+Update multiple applications and services in a batch. Batch size is limited to 100.
+
+
+
+### 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.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
+body = [wavefront_api_client.MonitoredServiceDTO()] # list[MonitoredServiceDTO] | Example Body: [{ \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" },{ \"satisfiedLatencyMillis\": \"100\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }] (optional)
+
+try:
+ # Update multiple applications and services in a batch. Batch size is limited to 100.
+ api_response = api_instance.batch_update(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredServiceApi->batch_update: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**list[MonitoredServiceDTO]**](MonitoredServiceDTO.md)| Example Body: <pre>[{ \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" },{ \"satisfiedLatencyMillis\": \"100\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }]</pre> | [optional]
+
+### Return type
+
+[**ResponseContainer**](ResponseContainer.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)
+
+# **get_all_components**
+> ResponseContainerPagedMonitoredServiceDTO get_all_components(offset=offset, limit=limit)
+
+Get all monitored services with components
+
+
+
+### 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.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all monitored services with components
+ api_response = api_instance.get_all_components(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredServiceApi->get_all_components: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedMonitoredServiceDTO**](ResponseContainerPagedMonitoredServiceDTO.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_all_services**
+> ResponseContainerPagedMonitoredServiceDTO get_all_services(offset=offset, limit=limit)
+
+Get all monitored services
+
+
+
+### 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.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all monitored services
+ api_response = api_instance.get_all_services(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredServiceApi->get_all_services: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedMonitoredServiceDTO**](ResponseContainerPagedMonitoredServiceDTO.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_component**
+> ResponseContainerMonitoredServiceDTO get_component(application, service, component)
+
+Get a specific application
+
+
+
+### 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.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
+application = 'application_example' # str |
+service = 'service_example' # str |
+component = 'component_example' # str |
+
+try:
+ # Get a specific application
+ api_response = api_instance.get_component(application, service, component)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredServiceApi->get_component: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application** | **str**| |
+ **service** | **str**| |
+ **component** | **str**| |
+
+### Return type
+
+[**ResponseContainerMonitoredServiceDTO**](ResponseContainerMonitoredServiceDTO.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_service**
+> ResponseContainerMonitoredServiceDTO get_service(application, service)
+
+Get a specific application
+
+
+
+### 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.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
+application = 'application_example' # str |
+service = 'service_example' # str |
+
+try:
+ # Get a specific application
+ api_response = api_instance.get_service(application, service)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredServiceApi->get_service: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application** | **str**| |
+ **service** | **str**| |
+
+### Return type
+
+[**ResponseContainerMonitoredServiceDTO**](ResponseContainerMonitoredServiceDTO.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_services_of_application**
+> ResponseContainerPagedMonitoredServiceDTO get_services_of_application(application, include_component=include_component, offset=offset, limit=limit)
+
+Get services for a specific application
+
+
+
+### 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.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
+application = 'application_example' # str |
+include_component = false # bool | (optional) (default to false)
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get services for a specific application
+ api_response = api_instance.get_services_of_application(application, include_component=include_component, offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredServiceApi->get_services_of_application: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application** | **str**| |
+ **include_component** | **bool**| | [optional] [default to false]
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedMonitoredServiceDTO**](ResponseContainerPagedMonitoredServiceDTO.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)
+
+# **update_service**
+> ResponseContainerMonitoredServiceDTO update_service(application, service, body=body)
+
+Update a specific service
+
+
+
+### 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.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
+application = 'application_example' # str |
+service = 'service_example' # str |
+body = wavefront_api_client.MonitoredServiceDTO() # MonitoredServiceDTO | Example Body: { \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" } (optional)
+
+try:
+ # Update a specific service
+ api_response = api_instance.update_service(application, service, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MonitoredServiceApi->update_service: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application** | **str**| |
+ **service** | **str**| |
+ **body** | [**MonitoredServiceDTO**](MonitoredServiceDTO.md)| Example Body: <pre>{ \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerMonitoredServiceDTO**](ResponseContainerMonitoredServiceDTO.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)
+
diff --git a/docs/MonitoredServiceDTO.md b/docs/MonitoredServiceDTO.md
new file mode 100644
index 00000000..03147557
--- /dev/null
+++ b/docs/MonitoredServiceDTO.md
@@ -0,0 +1,26 @@
+# MonitoredServiceDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**application** | **str** | Application Name of the monitored service |
+**cluster** | **str** | Cluster of monitored service | [optional]
+**component** | **str** | Component Name of the monitored service |
+**created** | **int** | Created epoch of monitored service | [optional]
+**custom_dashboard_link** | **str** | Customer dashboard link | [optional]
+**favorite** | **bool** | favorite status of monitored service | [optional]
+**hidden** | **bool** | Monitored service is hidden or not | [optional]
+**id** | **str** | unique ID of monitored service | [optional]
+**last_reported** | **int** | Last reported epoch of monitored service | [optional]
+**last_updated** | **int** | Last update epoch of monitored service | [optional]
+**origin** | **str** | origin of monitored service | [optional]
+**satisfied_latency_millis** | **int** | Satisfied latency of monitored service | [optional]
+**service** | **str** | Service Name of the monitored service |
+**service_instance_count** | **int** | Service Instance count of the monitored service |
+**source** | **str** | Source of the monitored service |
+**status** | **str** | Status of monitored service | [optional]
+**update_user_id** | **str** | Last update user id of monitored service | [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/NewRelicConfiguration.md b/docs/NewRelicConfiguration.md
new file mode 100644
index 00000000..a49637d3
--- /dev/null
+++ b/docs/NewRelicConfiguration.md
@@ -0,0 +1,13 @@
+# NewRelicConfiguration
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**api_key** | **str** | New Relic REST API Key. |
+**app_filter_regex** | **str** | A regular expression that a application name must match (case-insensitively) in order to collect metrics. | [optional]
+**host_filter_regex** | **str** | A regular expression that a host name must match (case-insensitively) in order to collect metrics. | [optional]
+**new_relic_metric_filters** | [**list[NewRelicMetricFilters]**](NewRelicMetricFilters.md) | Application specific metric filter | [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/NewRelicMetricFilters.md b/docs/NewRelicMetricFilters.md
new file mode 100644
index 00000000..cb8e2283
--- /dev/null
+++ b/docs/NewRelicMetricFilters.md
@@ -0,0 +1,11 @@
+# NewRelicMetricFilters
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**app_name** | **str** | | [optional]
+**metric_filter_regex** | **str** | | [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/Notificant.md b/docs/Notificant.md
index 8f190b17..2c2694c0 100644
--- a/docs/Notificant.md
+++ b/docs/Notificant.md
@@ -3,21 +3,23 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**method** | **str** | The notification method used for notification target. |
-**id** | **str** | | [optional]
+**content_type** | **str** | The value of the Content-Type header of the webhook POST request. | [optional]
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**custom_http_headers** | **dict(str, str)** | A string->string map specifying the custom HTTP header key / value pairs that will be sent in the requests of this web hook | [optional]
**customer_id** | **str** | | [optional]
**description** | **str** | Description |
-**creator_id** | **str** | | [optional]
-**created_epoch_millis** | **int** | | [optional]
-**updated_epoch_millis** | **int** | | [optional]
+**email_subject** | **str** | The subject title of an email notification target | [optional]
+**id** | **str** | | [optional]
+**is_html_content** | **bool** | Determine whether the email alert target content is sent as html or text. | [optional]
+**method** | **str** | The notification method used for notification target. |
+**recipient** | **str** | The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point |
+**routes** | [**list[AlertRoute]**](AlertRoute.md) | List of routing targets that this notificant will notify. | [optional]
**template** | **str** | A mustache template that will form the body of the POST request, email and summary of the PagerDuty. |
-**updater_id** | **str** | | [optional]
**title** | **str** | Title |
**triggers** | **list[str]** | A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED |
-**recipient** | **str** | The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point |
-**custom_http_headers** | **dict(str, str)** | A string->string map specifying the custom HTTP header key / value pairs that will be sent in the requests of this web hook | [optional]
-**email_subject** | **str** | The subject title of an email notification target | [optional]
-**content_type** | **str** | The value of the Content-Type header of the webhook POST request. | [optional]
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [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/NotificantApi.md b/docs/NotificantApi.md
index d8ff00ca..55fb0828 100644
--- a/docs/NotificantApi.md
+++ b/docs/NotificantApi.md
@@ -1,6 +1,6 @@
# wavefront_api_client.NotificantApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -67,7 +67,7 @@ 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)
# **delete_notificant**
-> ResponseContainerNotificant delete_notificant(id)
+> ResponseContainerNotificant delete_notificant(id, unlink=unlink)
Delete a specific notification target
@@ -90,10 +90,11 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.NotificantApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
+unlink = false # bool | If set to true, explicitly deletes a notification target even if it’s in use by alerts.{ \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } } (optional)
+
+try:
+ # Create a search
+ api_response = api_instance.create_recent_app_map_search(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RecentAppMapSearchApi->create_recent_app_map_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**RecentAppMapSearch**](RecentAppMapSearch.md)| Example Body: <pre>{ \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerRecentAppMapSearch**](ResponseContainerRecentAppMapSearch.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)
+
+# **get_all_recent_app_map_searches**
+> ResponseContainerPagedRecentAppMapSearch get_all_recent_app_map_searches(offset=offset, limit=limit)
+
+Get all searches 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.RecentAppMapSearchApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 10 # int | (optional) (default to 10)
+
+try:
+ # Get all searches for a user
+ api_response = api_instance.get_all_recent_app_map_searches(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RecentAppMapSearchApi->get_all_recent_app_map_searches: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 10]
+
+### Return type
+
+[**ResponseContainerPagedRecentAppMapSearch**](ResponseContainerPagedRecentAppMapSearch.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_recent_app_map_search**
+> ResponseContainerRecentAppMapSearch get_recent_app_map_search(id)
+
+Get a specific search
+
+
+
+### 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.RecentAppMapSearchApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Get a specific search
+ api_response = api_instance.get_recent_app_map_search(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RecentAppMapSearchApi->get_recent_app_map_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerRecentAppMapSearch**](ResponseContainerRecentAppMapSearch.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)
+
diff --git a/docs/RecentTracesSearch.md b/docs/RecentTracesSearch.md
new file mode 100644
index 00000000..0e409d0c
--- /dev/null
+++ b/docs/RecentTracesSearch.md
@@ -0,0 +1,15 @@
+# RecentTracesSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**id** | **str** | | [optional]
+**search_filters** | [**AppSearchFilters**](AppSearchFilters.md) | The search filters. |
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [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/RecentTracesSearchApi.md b/docs/RecentTracesSearchApi.md
new file mode 100644
index 00000000..86c78cc9
--- /dev/null
+++ b/docs/RecentTracesSearchApi.md
@@ -0,0 +1,175 @@
+# wavefront_api_client.RecentTracesSearchApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_recent_traces_search**](RecentTracesSearchApi.md#create_recent_traces_search) | **POST** /api/v2/recenttracessearch | Create a search
+[**get_all_recent_traces_searches**](RecentTracesSearchApi.md#get_all_recent_traces_searches) | **GET** /api/v2/recenttracessearch | Get all searches for a user
+[**get_recent_traces_search**](RecentTracesSearchApi.md#get_recent_traces_search) | **GET** /api/v2/recenttracessearch/{id} | Get a specific search
+
+
+# **create_recent_traces_search**
+> ResponseContainerRecentTracesSearch create_recent_traces_search(body=body)
+
+Create a search
+
+
+
+### 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.RecentTracesSearchApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.RecentTracesSearch() # RecentTracesSearch | Example Body: { \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } } (optional)
+
+try:
+ # Create a search
+ api_response = api_instance.create_recent_traces_search(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RecentTracesSearchApi->create_recent_traces_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**RecentTracesSearch**](RecentTracesSearch.md)| Example Body: <pre>{ \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerRecentTracesSearch**](ResponseContainerRecentTracesSearch.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)
+
+# **get_all_recent_traces_searches**
+> ResponseContainerPagedRecentTracesSearch get_all_recent_traces_searches(offset=offset, limit=limit)
+
+Get all searches 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.RecentTracesSearchApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all searches for a user
+ api_response = api_instance.get_all_recent_traces_searches(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RecentTracesSearchApi->get_all_recent_traces_searches: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedRecentTracesSearch**](ResponseContainerPagedRecentTracesSearch.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_recent_traces_search**
+> ResponseContainerRecentTracesSearch get_recent_traces_search(id)
+
+Get a specific search
+
+
+
+### 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.RecentTracesSearchApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Get a specific search
+ api_response = api_instance.get_recent_traces_search(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RecentTracesSearchApi->get_recent_traces_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerRecentTracesSearch**](ResponseContainerRecentTracesSearch.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)
+
diff --git a/docs/RelatedAnomaly.md b/docs/RelatedAnomaly.md
new file mode 100644
index 00000000..d8456a5c
--- /dev/null
+++ b/docs/RelatedAnomaly.md
@@ -0,0 +1,34 @@
+# RelatedAnomaly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**chart_hash** | **str** | chart hash(as unique identifier) for this anomaly |
+**chart_link** | **str** | chart link for this anomaly | [optional]
+**col** | **int** | column number for this anomaly |
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**customer** | **str** | id of the customer to which this anomaly belongs | [optional]
+**dashboard_id** | **str** | dashboard id for this anomaly |
+**deleted** | **bool** | | [optional]
+**end_ms** | **int** | endMs for this anomaly |
+**hosts_used** | **list[str]** | list of hosts affected of this anomaly | [optional]
+**id** | **str** | unique id that defines this anomaly | [optional]
+**image_link** | **str** | image link for this anomaly | [optional]
+**metrics_used** | **list[str]** | list of metrics used of this anomaly | [optional]
+**model** | **str** | model for this anomaly | [optional]
+**original_stripes** | [**list[Stripe]**](Stripe.md) | list of originalStripe belongs to this anomaly | [optional]
+**param_hash** | **str** | param hash for this anomaly |
+**query_hash** | **str** | query hash for this anomaly |
+**_query_params** | **dict(str, str)** | map of query params belongs to this anomaly |
+**related_data** | [**RelatedData**](RelatedData.md) | Data concerning how this anomaly is related to the event in the request | [optional]
+**row** | **int** | row number for this anomaly |
+**section** | **int** | section number for this anomaly |
+**start_ms** | **int** | startMs for this anomaly |
+**updated_epoch_millis** | **int** | | [optional]
+**updated_ms** | **int** | updateMs for this anomaly |
+**updater_id** | **str** | | [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/RelatedData.md b/docs/RelatedData.md
new file mode 100644
index 00000000..4569e4bd
--- /dev/null
+++ b/docs/RelatedData.md
@@ -0,0 +1,17 @@
+# RelatedData
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**alert_description** | **str** | If this event is generated by an alert, the description of that alert. | [optional]
+**anomaly_chart_link** | **str** | Chart Link of the anomaly to which this event is related | [optional]
+**common_dimensions** | **list[str]** | Set of common dimensions between the 2 events, presented in key=value format | [optional]
+**common_metrics** | **list[str]** | Set of common metrics/labels between the 2 events or anomalies | [optional]
+**common_sources** | **list[str]** | Set of common sources between the 2 events or anomalies | [optional]
+**enhanced_score** | **float** | Enhanced score to sort related events and anomalies | [optional]
+**related_id** | **str** | ID of the event to which this event is related | [optional]
+**summary** | **str** | Text summary of why the two events are related | [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/RelatedEvent.md b/docs/RelatedEvent.md
new file mode 100644
index 00000000..d82db33e
--- /dev/null
+++ b/docs/RelatedEvent.md
@@ -0,0 +1,36 @@
+# RelatedEvent
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**alert_tags** | **list[str]** | The list of tags on the alert which created this event. | [optional]
+**annotations** | **dict(str, str)** | A string->string map of additional annotations on the event |
+**can_close** | **bool** | | [optional]
+**can_delete** | **bool** | | [optional]
+**computed_hlps** | [**list[SourceLabelPair]**](SourceLabelPair.md) | All the host/label/tags of the event. | [optional]
+**created_at** | **int** | | [optional]
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**creator_type** | **list[str]** | | [optional]
+**dimensions** | **dict(str, list[str])** | A string-><list of strings> map of additional dimension info on the event | [optional]
+**end_time** | **int** | End time of the event, in epoch millis. Set to startTime + 1 for an instantaneous event | [optional]
+**hosts** | **list[str]** | A list of sources/hosts affected by the event | [optional]
+**id** | **str** | | [optional]
+**is_ephemeral** | **bool** | Whether the event is an artificial event generated by a literal expression or alert backtesting, i.e. not stored in the Wavefront backend | [optional]
+**is_user_event** | **bool** | Whether this event was created by a user, versus the system. Default: system | [optional]
+**metrics_used** | **list[str]** | A list of metrics affected by the event | [optional]
+**name** | **str** | The name of the event. If 'annotations.prettyName' is present, 'name' will be equivalent to that value |
+**related_data** | [**RelatedData**](RelatedData.md) | Data concerning how this event is related to the event in the request | [optional]
+**running_state** | **str** | | [optional]
+**similarity_score** | **float** | similarity score | [optional]
+**start_time** | **int** | Start time of the event, in epoch millis. If the JSON value is missing or set to 0, startTime will be set to the current time |
+**summarized_events** | **int** | In some event queries, multiple events that occur nearly simultaneously are summarized under a single event. This value specifies the number of events summarized under this one | [optional]
+**table** | **str** | The customer to which the event belongs | [optional]
+**tags** | **list[str]** | A list of event tags | [optional]
+**updated_at** | **int** | | [optional]
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [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/RelatedEventTimeRange.md b/docs/RelatedEventTimeRange.md
new file mode 100644
index 00000000..b482ebc2
--- /dev/null
+++ b/docs/RelatedEventTimeRange.md
@@ -0,0 +1,11 @@
+# RelatedEventTimeRange
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**earliest_start_time_epoch_millis** | **int** | Start of search time window, in milliseconds since the Unix Epoch. Events whose start time occurs after this value will be returned. If no value is supplied, will return null | [optional]
+**latest_start_time_epoch_millis** | **int** | End of the search time window, in milliseconds since the Unix Epoch. Events whose start time occurs before this value will be returned. If no value is supplied, will return null | [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/ReportEventAnomalyDTO.md b/docs/ReportEventAnomalyDTO.md
new file mode 100644
index 00000000..e06caf01
--- /dev/null
+++ b/docs/ReportEventAnomalyDTO.md
@@ -0,0 +1,12 @@
+# ReportEventAnomalyDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**related_anomaly_dto** | [**RelatedAnomaly**](RelatedAnomaly.md) | | [optional]
+**related_event_dto** | [**RelatedEvent**](RelatedEvent.md) | | [optional]
+**similarity_score** | **float** | | [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/ResponseContainer.md b/docs/ResponseContainer.md
index 2f2d6594..00c1291d 100644
--- a/docs/ResponseContainer.md
+++ b/docs/ResponseContainer.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | **object** | | [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/ResponseContainerAccessPolicy.md b/docs/ResponseContainerAccessPolicy.md
new file mode 100644
index 00000000..47841d8c
--- /dev/null
+++ b/docs/ResponseContainerAccessPolicy.md
@@ -0,0 +1,12 @@
+# ResponseContainerAccessPolicy
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**AccessPolicy**](AccessPolicy.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/ResponseContainerAccessPolicyAction.md b/docs/ResponseContainerAccessPolicyAction.md
new file mode 100644
index 00000000..0be1778d
--- /dev/null
+++ b/docs/ResponseContainerAccessPolicyAction.md
@@ -0,0 +1,12 @@
+# ResponseContainerAccessPolicyAction
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | **str** | | [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/ResponseContainerAccount.md b/docs/ResponseContainerAccount.md
new file mode 100644
index 00000000..43825f2b
--- /dev/null
+++ b/docs/ResponseContainerAccount.md
@@ -0,0 +1,12 @@
+# ResponseContainerAccount
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**Account**](Account.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/ResponseContainerAlert.md b/docs/ResponseContainerAlert.md
index 03905081..5795056a 100644
--- a/docs/ResponseContainerAlert.md
+++ b/docs/ResponseContainerAlert.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**Alert**](Alert.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/ResponseContainerAlertAnalyticsSummary.md b/docs/ResponseContainerAlertAnalyticsSummary.md
new file mode 100644
index 00000000..dbf5c114
--- /dev/null
+++ b/docs/ResponseContainerAlertAnalyticsSummary.md
@@ -0,0 +1,12 @@
+# ResponseContainerAlertAnalyticsSummary
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**AlertAnalyticsSummary**](AlertAnalyticsSummary.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/ResponseContainerApiTokenModel.md b/docs/ResponseContainerApiTokenModel.md
new file mode 100644
index 00000000..644a5d4e
--- /dev/null
+++ b/docs/ResponseContainerApiTokenModel.md
@@ -0,0 +1,12 @@
+# ResponseContainerApiTokenModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**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/ResponseContainerCloudIntegration.md b/docs/ResponseContainerCloudIntegration.md
index c479064e..d4ea272c 100644
--- a/docs/ResponseContainerCloudIntegration.md
+++ b/docs/ResponseContainerCloudIntegration.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**CloudIntegration**](CloudIntegration.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/ResponseContainerClusterInfoDTO.md b/docs/ResponseContainerClusterInfoDTO.md
new file mode 100644
index 00000000..42b664ff
--- /dev/null
+++ b/docs/ResponseContainerClusterInfoDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerClusterInfoDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**ClusterInfoDTO**](ClusterInfoDTO.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/ResponseContainerDashboard.md b/docs/ResponseContainerDashboard.md
index 22ea290d..db288c49 100644
--- a/docs/ResponseContainerDashboard.md
+++ b/docs/ResponseContainerDashboard.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**Dashboard**](Dashboard.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 00000000..684fcddb
--- /dev/null
+++ b/docs/ResponseContainerDefaultSavedAppMapSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerDefaultSavedAppMapSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**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 00000000..0295312e
--- /dev/null
+++ b/docs/ResponseContainerDefaultSavedTracesSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerDefaultSavedTracesSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**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/ResponseContainerDerivedMetricDefinition.md b/docs/ResponseContainerDerivedMetricDefinition.md
index 2067247c..0ebbf9e4 100644
--- a/docs/ResponseContainerDerivedMetricDefinition.md
+++ b/docs/ResponseContainerDerivedMetricDefinition.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**DerivedMetricDefinition**](DerivedMetricDefinition.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/ResponseContainerEvent.md b/docs/ResponseContainerEvent.md
index e9cf5b50..81bf1cfc 100644
--- a/docs/ResponseContainerEvent.md
+++ b/docs/ResponseContainerEvent.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**Event**](Event.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/ResponseContainerExternalLink.md b/docs/ResponseContainerExternalLink.md
index 590cd278..dbbf3584 100644
--- a/docs/ResponseContainerExternalLink.md
+++ b/docs/ResponseContainerExternalLink.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**ExternalLink**](ExternalLink.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/ResponseContainerFacetResponse.md b/docs/ResponseContainerFacetResponse.md
index c1352995..7002e344 100644
--- a/docs/ResponseContainerFacetResponse.md
+++ b/docs/ResponseContainerFacetResponse.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**FacetResponse**](FacetResponse.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/ResponseContainerFacetsResponseContainer.md b/docs/ResponseContainerFacetsResponseContainer.md
index 3dad6031..494145a6 100644
--- a/docs/ResponseContainerFacetsResponseContainer.md
+++ b/docs/ResponseContainerFacetsResponseContainer.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**FacetsResponseContainer**](FacetsResponseContainer.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/ResponseContainerHistoryResponse.md b/docs/ResponseContainerHistoryResponse.md
index 1659544d..533ddf81 100644
--- a/docs/ResponseContainerHistoryResponse.md
+++ b/docs/ResponseContainerHistoryResponse.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**HistoryResponse**](HistoryResponse.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/ResponseContainerIngestionPolicyReadModel.md b/docs/ResponseContainerIngestionPolicyReadModel.md
new file mode 100644
index 00000000..21880684
--- /dev/null
+++ b/docs/ResponseContainerIngestionPolicyReadModel.md
@@ -0,0 +1,12 @@
+# ResponseContainerIngestionPolicyReadModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**IngestionPolicyReadModel**](IngestionPolicyReadModel.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/ResponseContainerIntegration.md b/docs/ResponseContainerIntegration.md
index b7f40d9d..f738aaa2 100644
--- a/docs/ResponseContainerIntegration.md
+++ b/docs/ResponseContainerIntegration.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**Integration**](Integration.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/ResponseContainerIntegrationStatus.md b/docs/ResponseContainerIntegrationStatus.md
index 4b6aa29e..9401a480 100644
--- a/docs/ResponseContainerIntegrationStatus.md
+++ b/docs/ResponseContainerIntegrationStatus.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**IntegrationStatus**](IntegrationStatus.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/ResponseContainerListAccessControlListReadDTO.md b/docs/ResponseContainerListAccessControlListReadDTO.md
new file mode 100644
index 00000000..173b1a21
--- /dev/null
+++ b/docs/ResponseContainerListAccessControlListReadDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerListAccessControlListReadDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**list[AccessControlListReadDTO]**](AccessControlListReadDTO.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/ResponseContainerListAlertErrorGroupInfo.md b/docs/ResponseContainerListAlertErrorGroupInfo.md
new file mode 100644
index 00000000..6b5a73f6
--- /dev/null
+++ b/docs/ResponseContainerListAlertErrorGroupInfo.md
@@ -0,0 +1,12 @@
+# ResponseContainerListAlertErrorGroupInfo
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**list[AlertErrorGroupInfo]**](AlertErrorGroupInfo.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 00000000..d325800e
--- /dev/null
+++ b/docs/ResponseContainerListApiTokenModel.md
@@ -0,0 +1,12 @@
+# ResponseContainerListApiTokenModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**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/ResponseContainerListIntegration.md b/docs/ResponseContainerListIntegration.md
new file mode 100644
index 00000000..28768dec
--- /dev/null
+++ b/docs/ResponseContainerListIntegration.md
@@ -0,0 +1,12 @@
+# ResponseContainerListIntegration
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**list[Integration]**](Integration.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/ResponseContainerListIntegrationManifestGroup.md b/docs/ResponseContainerListIntegrationManifestGroup.md
index 826bd1fe..52277a2d 100644
--- a/docs/ResponseContainerListIntegrationManifestGroup.md
+++ b/docs/ResponseContainerListIntegrationManifestGroup.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**list[IntegrationManifestGroup]**](IntegrationManifestGroup.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/ResponseContainerListNotificationMessages.md b/docs/ResponseContainerListNotificationMessages.md
new file mode 100644
index 00000000..5021a19a
--- /dev/null
+++ b/docs/ResponseContainerListNotificationMessages.md
@@ -0,0 +1,12 @@
+# ResponseContainerListNotificationMessages
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**list[NotificationMessages]**](NotificationMessages.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/ResponseContainerListServiceAccount.md b/docs/ResponseContainerListServiceAccount.md
new file mode 100644
index 00000000..393dc631
--- /dev/null
+++ b/docs/ResponseContainerListServiceAccount.md
@@ -0,0 +1,12 @@
+# ResponseContainerListServiceAccount
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**list[ServiceAccount]**](ServiceAccount.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/ResponseContainerListString.md b/docs/ResponseContainerListString.md
new file mode 100644
index 00000000..9c2ed305
--- /dev/null
+++ b/docs/ResponseContainerListString.md
@@ -0,0 +1,12 @@
+# ResponseContainerListString
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | **list[str]** | | [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/ResponseContainerListUserApiToken.md b/docs/ResponseContainerListUserApiToken.md
new file mode 100644
index 00000000..659fe453
--- /dev/null
+++ b/docs/ResponseContainerListUserApiToken.md
@@ -0,0 +1,12 @@
+# ResponseContainerListUserApiToken
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**list[UserApiToken]**](UserApiToken.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/ResponseContainerListUserDTO.md b/docs/ResponseContainerListUserDTO.md
new file mode 100644
index 00000000..dd699d31
--- /dev/null
+++ b/docs/ResponseContainerListUserDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerListUserDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**list[UserDTO]**](UserDTO.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/ResponseContainerMaintenanceWindow.md b/docs/ResponseContainerMaintenanceWindow.md
index 084cfdba..ce7e135b 100644
--- a/docs/ResponseContainerMaintenanceWindow.md
+++ b/docs/ResponseContainerMaintenanceWindow.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**MaintenanceWindow**](MaintenanceWindow.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/ResponseContainerMap.md b/docs/ResponseContainerMap.md
new file mode 100644
index 00000000..fbaa7590
--- /dev/null
+++ b/docs/ResponseContainerMap.md
@@ -0,0 +1,12 @@
+# ResponseContainerMap
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | **dict(str, object)** | | [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/ResponseContainerMapStringInteger.md b/docs/ResponseContainerMapStringInteger.md
index 943445de..27de6d33 100644
--- a/docs/ResponseContainerMapStringInteger.md
+++ b/docs/ResponseContainerMapStringInteger.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | **dict(str, int)** | | [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/ResponseContainerMapStringIntegrationStatus.md b/docs/ResponseContainerMapStringIntegrationStatus.md
index 3cc714f2..48ce7c30 100644
--- a/docs/ResponseContainerMapStringIntegrationStatus.md
+++ b/docs/ResponseContainerMapStringIntegrationStatus.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**dict(str, IntegrationStatus)**](IntegrationStatus.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/ResponseContainerMessage.md b/docs/ResponseContainerMessage.md
index 3c31f463..5370197c 100644
--- a/docs/ResponseContainerMessage.md
+++ b/docs/ResponseContainerMessage.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**Message**](Message.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/ResponseContainerMetricsPolicyReadModel.md b/docs/ResponseContainerMetricsPolicyReadModel.md
new file mode 100644
index 00000000..1b0405e8
--- /dev/null
+++ b/docs/ResponseContainerMetricsPolicyReadModel.md
@@ -0,0 +1,12 @@
+# ResponseContainerMetricsPolicyReadModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**MetricsPolicyReadModel**](MetricsPolicyReadModel.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/ResponseContainerMonitoredApplicationDTO.md b/docs/ResponseContainerMonitoredApplicationDTO.md
new file mode 100644
index 00000000..7202ebbb
--- /dev/null
+++ b/docs/ResponseContainerMonitoredApplicationDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerMonitoredApplicationDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**MonitoredApplicationDTO**](MonitoredApplicationDTO.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/ResponseContainerMonitoredCluster.md b/docs/ResponseContainerMonitoredCluster.md
new file mode 100644
index 00000000..74088620
--- /dev/null
+++ b/docs/ResponseContainerMonitoredCluster.md
@@ -0,0 +1,12 @@
+# ResponseContainerMonitoredCluster
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**MonitoredCluster**](MonitoredCluster.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/ResponseContainerMonitoredServiceDTO.md b/docs/ResponseContainerMonitoredServiceDTO.md
new file mode 100644
index 00000000..086575e0
--- /dev/null
+++ b/docs/ResponseContainerMonitoredServiceDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerMonitoredServiceDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**MonitoredServiceDTO**](MonitoredServiceDTO.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/ResponseContainerNotificant.md b/docs/ResponseContainerNotificant.md
index bb639a49..9fcf6cd8 100644
--- a/docs/ResponseContainerNotificant.md
+++ b/docs/ResponseContainerNotificant.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**Notificant**](Notificant.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/ResponseContainerPagedAccount.md b/docs/ResponseContainerPagedAccount.md
new file mode 100644
index 00000000..2377ab59
--- /dev/null
+++ b/docs/ResponseContainerPagedAccount.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedAccount
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedAccount**](PagedAccount.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/ResponseContainerPagedAlert.md b/docs/ResponseContainerPagedAlert.md
index ffc00f5f..7e53c4c1 100644
--- a/docs/ResponseContainerPagedAlert.md
+++ b/docs/ResponseContainerPagedAlert.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedAlert**](PagedAlert.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/ResponseContainerPagedAlertAnalyticsSummaryDetail.md b/docs/ResponseContainerPagedAlertAnalyticsSummaryDetail.md
new file mode 100644
index 00000000..20139274
--- /dev/null
+++ b/docs/ResponseContainerPagedAlertAnalyticsSummaryDetail.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedAlertAnalyticsSummaryDetail
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedAlertAnalyticsSummaryDetail**](PagedAlertAnalyticsSummaryDetail.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/ResponseContainerPagedAlertWithStats.md b/docs/ResponseContainerPagedAlertWithStats.md
index 20181077..ebf3c750 100644
--- a/docs/ResponseContainerPagedAlertWithStats.md
+++ b/docs/ResponseContainerPagedAlertWithStats.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedAlertWithStats**](PagedAlertWithStats.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/ResponseContainerPagedAnomaly.md b/docs/ResponseContainerPagedAnomaly.md
new file mode 100644
index 00000000..13693343
--- /dev/null
+++ b/docs/ResponseContainerPagedAnomaly.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedAnomaly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedAnomaly**](PagedAnomaly.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 00000000..145f0703
--- /dev/null
+++ b/docs/ResponseContainerPagedApiTokenModel.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedApiTokenModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**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/ResponseContainerPagedCloudIntegration.md b/docs/ResponseContainerPagedCloudIntegration.md
index 7f0729a8..828f617b 100644
--- a/docs/ResponseContainerPagedCloudIntegration.md
+++ b/docs/ResponseContainerPagedCloudIntegration.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedCloudIntegration**](PagedCloudIntegration.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/ResponseContainerPagedCustomerFacingUserObject.md b/docs/ResponseContainerPagedCustomerFacingUserObject.md
index 0cd24a11..cee95c05 100644
--- a/docs/ResponseContainerPagedCustomerFacingUserObject.md
+++ b/docs/ResponseContainerPagedCustomerFacingUserObject.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedCustomerFacingUserObject**](PagedCustomerFacingUserObject.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/ResponseContainerPagedDashboard.md b/docs/ResponseContainerPagedDashboard.md
index 8eb0a4ad..5643ecb8 100644
--- a/docs/ResponseContainerPagedDashboard.md
+++ b/docs/ResponseContainerPagedDashboard.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedDashboard**](PagedDashboard.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/ResponseContainerPagedDerivedMetricDefinition.md b/docs/ResponseContainerPagedDerivedMetricDefinition.md
index e23930d5..c9eb4881 100644
--- a/docs/ResponseContainerPagedDerivedMetricDefinition.md
+++ b/docs/ResponseContainerPagedDerivedMetricDefinition.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedDerivedMetricDefinition**](PagedDerivedMetricDefinition.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/ResponseContainerPagedDerivedMetricDefinitionWithStats.md b/docs/ResponseContainerPagedDerivedMetricDefinitionWithStats.md
index 10a622a6..581fbf09 100644
--- a/docs/ResponseContainerPagedDerivedMetricDefinitionWithStats.md
+++ b/docs/ResponseContainerPagedDerivedMetricDefinitionWithStats.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedDerivedMetricDefinitionWithStats**](PagedDerivedMetricDefinitionWithStats.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/ResponseContainerPagedEvent.md b/docs/ResponseContainerPagedEvent.md
index f9a89e88..5ba38934 100644
--- a/docs/ResponseContainerPagedEvent.md
+++ b/docs/ResponseContainerPagedEvent.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedEvent**](PagedEvent.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/ResponseContainerPagedExternalLink.md b/docs/ResponseContainerPagedExternalLink.md
index b863521c..ee008085 100644
--- a/docs/ResponseContainerPagedExternalLink.md
+++ b/docs/ResponseContainerPagedExternalLink.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedExternalLink**](PagedExternalLink.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/ResponseContainerPagedIngestionPolicyReadModel.md b/docs/ResponseContainerPagedIngestionPolicyReadModel.md
new file mode 100644
index 00000000..b32e3dab
--- /dev/null
+++ b/docs/ResponseContainerPagedIngestionPolicyReadModel.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedIngestionPolicyReadModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedIngestionPolicyReadModel**](PagedIngestionPolicyReadModel.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/ResponseContainerPagedIntegration.md b/docs/ResponseContainerPagedIntegration.md
index d8facd8f..de322ada 100644
--- a/docs/ResponseContainerPagedIntegration.md
+++ b/docs/ResponseContainerPagedIntegration.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedIntegration**](PagedIntegration.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/ResponseContainerPagedMaintenanceWindow.md b/docs/ResponseContainerPagedMaintenanceWindow.md
index b4bf80cd..fea99a47 100644
--- a/docs/ResponseContainerPagedMaintenanceWindow.md
+++ b/docs/ResponseContainerPagedMaintenanceWindow.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedMaintenanceWindow**](PagedMaintenanceWindow.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/ResponseContainerPagedMessage.md b/docs/ResponseContainerPagedMessage.md
index 2fe37609..1ec5280c 100644
--- a/docs/ResponseContainerPagedMessage.md
+++ b/docs/ResponseContainerPagedMessage.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedMessage**](PagedMessage.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/ResponseContainerPagedMonitoredApplicationDTO.md b/docs/ResponseContainerPagedMonitoredApplicationDTO.md
new file mode 100644
index 00000000..b6f3b42e
--- /dev/null
+++ b/docs/ResponseContainerPagedMonitoredApplicationDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedMonitoredApplicationDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedMonitoredApplicationDTO**](PagedMonitoredApplicationDTO.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/ResponseContainerPagedMonitoredCluster.md b/docs/ResponseContainerPagedMonitoredCluster.md
new file mode 100644
index 00000000..75d6ed04
--- /dev/null
+++ b/docs/ResponseContainerPagedMonitoredCluster.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedMonitoredCluster
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedMonitoredCluster**](PagedMonitoredCluster.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/ResponseContainerPagedMonitoredServiceDTO.md b/docs/ResponseContainerPagedMonitoredServiceDTO.md
new file mode 100644
index 00000000..74a5e523
--- /dev/null
+++ b/docs/ResponseContainerPagedMonitoredServiceDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedMonitoredServiceDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedMonitoredServiceDTO**](PagedMonitoredServiceDTO.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/ResponseContainerPagedNotificant.md b/docs/ResponseContainerPagedNotificant.md
index 801d7804..e3425a96 100644
--- a/docs/ResponseContainerPagedNotificant.md
+++ b/docs/ResponseContainerPagedNotificant.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedNotificant**](PagedNotificant.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/ResponseContainerPagedProxy.md b/docs/ResponseContainerPagedProxy.md
index 72728190..f4abab81 100644
--- a/docs/ResponseContainerPagedProxy.md
+++ b/docs/ResponseContainerPagedProxy.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedProxy**](PagedProxy.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/ResponseContainerPagedRecentAppMapSearch.md b/docs/ResponseContainerPagedRecentAppMapSearch.md
new file mode 100644
index 00000000..4ec79268
--- /dev/null
+++ b/docs/ResponseContainerPagedRecentAppMapSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedRecentAppMapSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedRecentAppMapSearch**](PagedRecentAppMapSearch.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/ResponseContainerPagedRecentTracesSearch.md b/docs/ResponseContainerPagedRecentTracesSearch.md
new file mode 100644
index 00000000..854f7220
--- /dev/null
+++ b/docs/ResponseContainerPagedRecentTracesSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedRecentTracesSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedRecentTracesSearch**](PagedRecentTracesSearch.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/ResponseContainerPagedRelatedEvent.md b/docs/ResponseContainerPagedRelatedEvent.md
new file mode 100644
index 00000000..a74f3f70
--- /dev/null
+++ b/docs/ResponseContainerPagedRelatedEvent.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedRelatedEvent
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedRelatedEvent**](PagedRelatedEvent.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/ResponseContainerPagedReportEventAnomalyDTO.md b/docs/ResponseContainerPagedReportEventAnomalyDTO.md
new file mode 100644
index 00000000..f785398a
--- /dev/null
+++ b/docs/ResponseContainerPagedReportEventAnomalyDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedReportEventAnomalyDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedReportEventAnomalyDTO**](PagedReportEventAnomalyDTO.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/ResponseContainerPagedRoleDTO.md b/docs/ResponseContainerPagedRoleDTO.md
new file mode 100644
index 00000000..68f23e25
--- /dev/null
+++ b/docs/ResponseContainerPagedRoleDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedRoleDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedRoleDTO**](PagedRoleDTO.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/ResponseContainerPagedSavedAppMapSearch.md b/docs/ResponseContainerPagedSavedAppMapSearch.md
new file mode 100644
index 00000000..8718bcd5
--- /dev/null
+++ b/docs/ResponseContainerPagedSavedAppMapSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedSavedAppMapSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedSavedAppMapSearch**](PagedSavedAppMapSearch.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/ResponseContainerPagedSavedAppMapSearchGroup.md b/docs/ResponseContainerPagedSavedAppMapSearchGroup.md
new file mode 100644
index 00000000..a9fa59f9
--- /dev/null
+++ b/docs/ResponseContainerPagedSavedAppMapSearchGroup.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedSavedAppMapSearchGroup
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedSavedAppMapSearchGroup**](PagedSavedAppMapSearchGroup.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/ResponseContainerPagedSavedSearch.md b/docs/ResponseContainerPagedSavedSearch.md
index 4469e296..f2a3faa2 100644
--- a/docs/ResponseContainerPagedSavedSearch.md
+++ b/docs/ResponseContainerPagedSavedSearch.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedSavedSearch**](PagedSavedSearch.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/ResponseContainerPagedSavedTracesSearch.md b/docs/ResponseContainerPagedSavedTracesSearch.md
new file mode 100644
index 00000000..a5813593
--- /dev/null
+++ b/docs/ResponseContainerPagedSavedTracesSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedSavedTracesSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedSavedTracesSearch**](PagedSavedTracesSearch.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/ResponseContainerPagedSavedTracesSearchGroup.md b/docs/ResponseContainerPagedSavedTracesSearchGroup.md
new file mode 100644
index 00000000..05f98d95
--- /dev/null
+++ b/docs/ResponseContainerPagedSavedTracesSearchGroup.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedSavedTracesSearchGroup
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedSavedTracesSearchGroup**](PagedSavedTracesSearchGroup.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/ResponseContainerPagedServiceAccount.md b/docs/ResponseContainerPagedServiceAccount.md
new file mode 100644
index 00000000..d26ef773
--- /dev/null
+++ b/docs/ResponseContainerPagedServiceAccount.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedServiceAccount
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedServiceAccount**](PagedServiceAccount.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/ResponseContainerPagedSource.md b/docs/ResponseContainerPagedSource.md
index d7b92acf..bb71fff2 100644
--- a/docs/ResponseContainerPagedSource.md
+++ b/docs/ResponseContainerPagedSource.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**PagedSource**](PagedSource.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/ResponseContainerPagedSpanSamplingPolicy.md b/docs/ResponseContainerPagedSpanSamplingPolicy.md
new file mode 100644
index 00000000..243f0d09
--- /dev/null
+++ b/docs/ResponseContainerPagedSpanSamplingPolicy.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedSpanSamplingPolicy
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedSpanSamplingPolicy**](PagedSpanSamplingPolicy.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/ResponseContainerPagedUserGroupModel.md b/docs/ResponseContainerPagedUserGroupModel.md
new file mode 100644
index 00000000..ccffc55e
--- /dev/null
+++ b/docs/ResponseContainerPagedUserGroupModel.md
@@ -0,0 +1,12 @@
+# ResponseContainerPagedUserGroupModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**PagedUserGroupModel**](PagedUserGroupModel.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/ResponseContainerProxy.md b/docs/ResponseContainerProxy.md
index 5dc9cb48..2379f01f 100644
--- a/docs/ResponseContainerProxy.md
+++ b/docs/ResponseContainerProxy.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**Proxy**](Proxy.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/ResponseContainerQueryTypeDTO.md b/docs/ResponseContainerQueryTypeDTO.md
new file mode 100644
index 00000000..80e4a0d8
--- /dev/null
+++ b/docs/ResponseContainerQueryTypeDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerQueryTypeDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**QueryTypeDTO**](QueryTypeDTO.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/ResponseContainerRecentAppMapSearch.md b/docs/ResponseContainerRecentAppMapSearch.md
new file mode 100644
index 00000000..821aa17e
--- /dev/null
+++ b/docs/ResponseContainerRecentAppMapSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerRecentAppMapSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**RecentAppMapSearch**](RecentAppMapSearch.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/ResponseContainerRecentTracesSearch.md b/docs/ResponseContainerRecentTracesSearch.md
new file mode 100644
index 00000000..c70fbaa2
--- /dev/null
+++ b/docs/ResponseContainerRecentTracesSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerRecentTracesSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**RecentTracesSearch**](RecentTracesSearch.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/ResponseContainerRoleDTO.md b/docs/ResponseContainerRoleDTO.md
new file mode 100644
index 00000000..77c933ac
--- /dev/null
+++ b/docs/ResponseContainerRoleDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerRoleDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**RoleDTO**](RoleDTO.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/ResponseContainerSavedAppMapSearch.md b/docs/ResponseContainerSavedAppMapSearch.md
new file mode 100644
index 00000000..7056fcf1
--- /dev/null
+++ b/docs/ResponseContainerSavedAppMapSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerSavedAppMapSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**SavedAppMapSearch**](SavedAppMapSearch.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/ResponseContainerSavedAppMapSearchGroup.md b/docs/ResponseContainerSavedAppMapSearchGroup.md
new file mode 100644
index 00000000..e30f8542
--- /dev/null
+++ b/docs/ResponseContainerSavedAppMapSearchGroup.md
@@ -0,0 +1,12 @@
+# ResponseContainerSavedAppMapSearchGroup
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**SavedAppMapSearchGroup**](SavedAppMapSearchGroup.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/ResponseContainerSavedSearch.md b/docs/ResponseContainerSavedSearch.md
index b2434bbc..93e5de77 100644
--- a/docs/ResponseContainerSavedSearch.md
+++ b/docs/ResponseContainerSavedSearch.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**SavedSearch**](SavedSearch.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/ResponseContainerSavedTracesSearch.md b/docs/ResponseContainerSavedTracesSearch.md
new file mode 100644
index 00000000..41db3688
--- /dev/null
+++ b/docs/ResponseContainerSavedTracesSearch.md
@@ -0,0 +1,12 @@
+# ResponseContainerSavedTracesSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**SavedTracesSearch**](SavedTracesSearch.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/ResponseContainerSavedTracesSearchGroup.md b/docs/ResponseContainerSavedTracesSearchGroup.md
new file mode 100644
index 00000000..235c987a
--- /dev/null
+++ b/docs/ResponseContainerSavedTracesSearchGroup.md
@@ -0,0 +1,12 @@
+# ResponseContainerSavedTracesSearchGroup
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**SavedTracesSearchGroup**](SavedTracesSearchGroup.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/ResponseContainerServiceAccount.md b/docs/ResponseContainerServiceAccount.md
new file mode 100644
index 00000000..79836916
--- /dev/null
+++ b/docs/ResponseContainerServiceAccount.md
@@ -0,0 +1,12 @@
+# ResponseContainerServiceAccount
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**ServiceAccount**](ServiceAccount.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/ResponseContainerSetBusinessFunction.md b/docs/ResponseContainerSetBusinessFunction.md
new file mode 100644
index 00000000..e7d4b8d4
--- /dev/null
+++ b/docs/ResponseContainerSetBusinessFunction.md
@@ -0,0 +1,12 @@
+# ResponseContainerSetBusinessFunction
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | **list[str]** | | [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/ResponseContainerSetSourceLabelPair.md b/docs/ResponseContainerSetSourceLabelPair.md
new file mode 100644
index 00000000..50d0051b
--- /dev/null
+++ b/docs/ResponseContainerSetSourceLabelPair.md
@@ -0,0 +1,12 @@
+# ResponseContainerSetSourceLabelPair
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**list[SourceLabelPair]**](SourceLabelPair.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/ResponseContainerSource.md b/docs/ResponseContainerSource.md
index a14d24c6..6bb9ec7f 100644
--- a/docs/ResponseContainerSource.md
+++ b/docs/ResponseContainerSource.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**Source**](Source.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/ResponseContainerSpanSamplingPolicy.md b/docs/ResponseContainerSpanSamplingPolicy.md
new file mode 100644
index 00000000..91de5b47
--- /dev/null
+++ b/docs/ResponseContainerSpanSamplingPolicy.md
@@ -0,0 +1,12 @@
+# ResponseContainerSpanSamplingPolicy
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**SpanSamplingPolicy**](SpanSamplingPolicy.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/ResponseContainerString.md b/docs/ResponseContainerString.md
new file mode 100644
index 00000000..d9ce827d
--- /dev/null
+++ b/docs/ResponseContainerString.md
@@ -0,0 +1,12 @@
+# ResponseContainerString
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | **str** | | [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/ResponseContainerTagsResponse.md b/docs/ResponseContainerTagsResponse.md
index b67fa0b0..b0669b9a 100644
--- a/docs/ResponseContainerTagsResponse.md
+++ b/docs/ResponseContainerTagsResponse.md
@@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | [**ResponseStatus**](ResponseStatus.md) | |
+**debug_info** | **list[str]** | | [optional]
**response** | [**TagsResponse**](TagsResponse.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/ResponseContainerUserApiToken.md b/docs/ResponseContainerUserApiToken.md
new file mode 100644
index 00000000..2a1c7d02
--- /dev/null
+++ b/docs/ResponseContainerUserApiToken.md
@@ -0,0 +1,12 @@
+# ResponseContainerUserApiToken
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**UserApiToken**](UserApiToken.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/ResponseContainerUserDTO.md b/docs/ResponseContainerUserDTO.md
new file mode 100644
index 00000000..3b8326f9
--- /dev/null
+++ b/docs/ResponseContainerUserDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerUserDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**UserDTO**](UserDTO.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/ResponseContainerUserGroupModel.md b/docs/ResponseContainerUserGroupModel.md
new file mode 100644
index 00000000..6de348a0
--- /dev/null
+++ b/docs/ResponseContainerUserGroupModel.md
@@ -0,0 +1,12 @@
+# ResponseContainerUserGroupModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**UserGroupModel**](UserGroupModel.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/ResponseContainerValidatedUsersDTO.md b/docs/ResponseContainerValidatedUsersDTO.md
new file mode 100644
index 00000000..46b93e62
--- /dev/null
+++ b/docs/ResponseContainerValidatedUsersDTO.md
@@ -0,0 +1,12 @@
+# ResponseContainerValidatedUsersDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**ValidatedUsersDTO**](ValidatedUsersDTO.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/ResponseContainerVoid.md b/docs/ResponseContainerVoid.md
new file mode 100644
index 00000000..1ccad8bf
--- /dev/null
+++ b/docs/ResponseContainerVoid.md
@@ -0,0 +1,12 @@
+# ResponseContainerVoid
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**debug_info** | **list[str]** | | [optional]
+**response** | [**Void**](Void.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/ResponseStatus.md b/docs/ResponseStatus.md
index b0cebc82..a910420b 100644
--- a/docs/ResponseStatus.md
+++ b/docs/ResponseStatus.md
@@ -3,9 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**result** | **str** | |
-**message** | **str** | Descriptive message of the status of this response | [optional]
**code** | **int** | HTTP Response code corresponding to this response |
+**message** | **str** | Descriptive message of the status of this response | [optional]
+**result** | **str** | |
[[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/RoleApi.md b/docs/RoleApi.md
new file mode 100644
index 00000000..1dfe1d2b
--- /dev/null
+++ b/docs/RoleApi.md
@@ -0,0 +1,515 @@
+# wavefront_api_client.RoleApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**add_assignees**](RoleApi.md#add_assignees) | **POST** /api/v2/role/{id}/addAssignees | Add accounts and groups to a role
+[**create_role**](RoleApi.md#create_role) | **POST** /api/v2/role | Create a role
+[**delete_role**](RoleApi.md#delete_role) | **DELETE** /api/v2/role/{id} | Delete a role by ID
+[**get_all_roles**](RoleApi.md#get_all_roles) | **GET** /api/v2/role | Get all roles
+[**get_role**](RoleApi.md#get_role) | **GET** /api/v2/role/{id} | Get a role by ID
+[**grant_permission_to_roles**](RoleApi.md#grant_permission_to_roles) | **POST** /api/v2/role/grant/{permission} | Grant a permission to roles
+[**remove_assignees**](RoleApi.md#remove_assignees) | **POST** /api/v2/role/{id}/removeAssignees | Remove accounts and groups from a role
+[**revoke_permission_from_roles**](RoleApi.md#revoke_permission_from_roles) | **POST** /api/v2/role/revoke/{permission} | Revoke a permission from roles
+[**update_role**](RoleApi.md#update_role) | **PUT** /api/v2/role/{id} | Update a role by ID
+
+
+# **add_assignees**
+> ResponseContainerRoleDTO add_assignees(id, body)
+
+Add accounts and groups to a role
+
+Assigns a role with a given ID to a list of user and service accounts and groups. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.RoleApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str | The ID of the role to assign. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs.
+body = [wavefront_api_client.list[str]()] # list[str] | A list of accounts and groups to add to the role.
+
+try:
+ # Add accounts and groups to a role
+ api_response = api_instance.add_assignees(id, body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RoleApi->add_assignees: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| The ID of the role to assign. If you don't know the role's ID, run the <code>Get all roles</code> API call to return all roles and their IDs. |
+ **body** | **list[str]**| A list of accounts and groups to add to the role. |
+
+### Return type
+
+[**ResponseContainerRoleDTO**](ResponseContainerRoleDTO.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_role**
+> ResponseContainerRoleDTO create_role(body)
+
+Create a role
+
+Creates a role with a specific unique name. Optionally, you can grant permissions to the role, assign the role to accounts and groups, specify a description, and configure the management properties of the role. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.RoleApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.RoleCreateDTO() # RoleCreateDTO | An example body for a role with all permissions: { \"name\": \"Role_name\", \"permissions\": [ \"agent_management\", \"alerts_management\", \"application_management\", \"batch_query_priority\", \"dashboard_management\", \"derived_metrics_management\", \"embedded_charts\", \"events_management\", \"external_links_management\", \"host_tag_management\", \"ingestion\", \"metrics_management\", \"monitored_application_service_management\", \"saml_sso_management\", \"token_management\", \"user_management\" ], \"description\": \"Role_description\" }
+
+try:
+ # Create a role
+ api_response = api_instance.create_role(body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RoleApi->create_role: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**RoleCreateDTO**](RoleCreateDTO.md)| An example body for a role with all permissions: <pre>{ \"name\": \"<i>Role_name</i>\", \"permissions\": [ \"agent_management\", \"alerts_management\", \"application_management\", \"batch_query_priority\", \"dashboard_management\", \"derived_metrics_management\", \"embedded_charts\", \"events_management\", \"external_links_management\", \"host_tag_management\", \"ingestion\", \"metrics_management\", \"monitored_application_service_management\", \"saml_sso_management\", \"token_management\", \"user_management\" ], \"description\": \"<i>Role_description</i>\" }</pre> |
+
+### Return type
+
+[**ResponseContainerRoleDTO**](ResponseContainerRoleDTO.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_role**
+> ResponseContainerRoleDTO delete_role(id)
+
+Delete a role by ID
+
+Deletes a role with a given ID. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.RoleApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str | The ID of the role to delete. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs.
+
+try:
+ # Delete a role by ID
+ api_response = api_instance.delete_role(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RoleApi->delete_role: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| The ID of the role to delete. If you don't know the role's ID, run the <code>Get all roles</code> API call to return all roles and their IDs. |
+
+### Return type
+
+[**ResponseContainerRoleDTO**](ResponseContainerRoleDTO.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)
+
+# **get_all_roles**
+> ResponseContainerPagedRoleDTO get_all_roles(offset=offset, limit=limit)
+
+Get all roles
+
+Returns all existing roles in the service instance with detailed information for each role, including assigned groups and accounts, management properties, permissions, name, ID, description, and the time of the last update and who has done it. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.RoleApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all roles
+ api_response = api_instance.get_all_roles(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RoleApi->get_all_roles: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedRoleDTO**](ResponseContainerPagedRoleDTO.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)
+
+# **get_role**
+> ResponseContainerRoleDTO get_role(id)
+
+Get a role by ID
+
+Returns the details of a role with a given ID. The response includes assigned groups and accounts, management properties, permissions, name, description, and the time of the last update and who has done it. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.RoleApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str | The ID of the role to get. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs.
+
+try:
+ # Get a role by ID
+ api_response = api_instance.get_role(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RoleApi->get_role: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| The ID of the role to get. If you don't know the role's ID, run the <code>Get all roles</code> API call to return all roles and their IDs. |
+
+### Return type
+
+[**ResponseContainerRoleDTO**](ResponseContainerRoleDTO.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)
+
+# **grant_permission_to_roles**
+> ResponseContainerRoleDTO grant_permission_to_roles(permission, body)
+
+Grant a permission to roles
+
+Grants a given permission to a list of roles. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.RoleApi(wavefront_api_client.ApiClient(configuration))
+permission = 'permission_example' # str | The permission to grant. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission.
+body = [wavefront_api_client.list[str]()] # list[str] | A list of role IDs to which to grant the permission.
+
+try:
+ # Grant a permission to roles
+ api_response = api_instance.grant_permission_to_roles(permission, body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RoleApi->grant_permission_to_roles: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **permission** | **str**| The permission to grant. Note that <code>host_tag_management</code> is the equivalent of the **Source Tag Management** permission, <code>monitored_application_service_management</code> is the equivalent of the **Integrations** permission, <code>agent_management</code> is the equivalent of the **Proxies** permission. |
+ **body** | **list[str]**| A list of role IDs to which to grant the permission. |
+
+### Return type
+
+[**ResponseContainerRoleDTO**](ResponseContainerRoleDTO.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_assignees**
+> ResponseContainerRoleDTO remove_assignees(id, body)
+
+Remove accounts and groups from a role
+
+Revokes a role with a given ID from a list of user and service accounts and groups. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.RoleApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str | The ID of the role to revoke. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs.
+body = [wavefront_api_client.list[str]()] # list[str] | A list of accounts and groups to remove from the role.
+
+try:
+ # Remove accounts and groups from a role
+ api_response = api_instance.remove_assignees(id, body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RoleApi->remove_assignees: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| The ID of the role to revoke. If you don't know the role's ID, run the <code>Get all roles</code> API call to return all roles and their IDs. |
+ **body** | **list[str]**| A list of accounts and groups to remove from the role. |
+
+### Return type
+
+[**ResponseContainerRoleDTO**](ResponseContainerRoleDTO.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_permission_from_roles**
+> ResponseContainerRoleDTO revoke_permission_from_roles(permission, body)
+
+Revoke a permission from roles
+
+Revokes a given permission from a list of roles. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.RoleApi(wavefront_api_client.ApiClient(configuration))
+permission = 'permission_example' # str | The permission to revoke. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission.
+body = [wavefront_api_client.list[str]()] # list[str] | A list of role IDs from which to revoke the permission.
+
+try:
+ # Revoke a permission from roles
+ api_response = api_instance.revoke_permission_from_roles(permission, body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RoleApi->revoke_permission_from_roles: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **permission** | **str**| The permission to revoke. Note that <code>host_tag_management</code> is the equivalent of the **Source Tag Management** permission, <code>monitored_application_service_management</code> is the equivalent of the **Integrations** permission, <code>agent_management</code> is the equivalent of the **Proxies** permission. |
+ **body** | **list[str]**| A list of role IDs from which to revoke the permission. |
+
+### Return type
+
+[**ResponseContainerRoleDTO**](ResponseContainerRoleDTO.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)
+
+# **update_role**
+> ResponseContainerRoleDTO update_role(id, body)
+
+Update a role by ID
+
+Updates a role with a given ID. You can update the assigned groups and accounts, management properties, permissions, ID, name, and description. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.RoleApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str | The ID of the role to update. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs.
+body = wavefront_api_client.RoleUpdateDTO() # RoleUpdateDTO | You can first run the Get a role by ID API call, and then you can copy and edit the response body. An example body for a role with all permissions: { \"id\": \"Role_ID\", \"name\": \"Role_name\", \"permissions\": [ \"agent_management\", \"alerts_management\", \"application_management\", \"batch_query_priority\", \"derived_metrics_management\", \"dashboard_management\", \"embedded_charts\", \"events_management\", \"external_links_management\", \"host_tag_management\", \"ingestion\", \"metrics_management\", \"monitored_application_service_management\", \"saml_sso_management\", \"token_management\", \"user_management\" ], \"description\": \"Role_description\" }
+
+try:
+ # Update a role by ID
+ api_response = api_instance.update_role(id, body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling RoleApi->update_role: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| The ID of the role to update. If you don't know the role's ID, run the <code>Get all roles</code> API call to return all roles and their IDs. |
+ **body** | [**RoleUpdateDTO**](RoleUpdateDTO.md)| You can first run the <code>Get a role by ID</code> API call, and then you can copy and edit the response body. An example body for a role with all permissions: <pre>{ \"id\": \"<i>Role_ID</i>\", \"name\": \"<i>Role_name</i>\", \"permissions\": [ \"agent_management\", \"alerts_management\", \"application_management\", \"batch_query_priority\", \"derived_metrics_management\", \"dashboard_management\", \"embedded_charts\", \"events_management\", \"external_links_management\", \"host_tag_management\", \"ingestion\", \"metrics_management\", \"monitored_application_service_management\", \"saml_sso_management\", \"token_management\", \"user_management\" ], \"description\": \"<i>Role_description</i>\" }</pre> |
+
+### Return type
+
+[**ResponseContainerRoleDTO**](ResponseContainerRoleDTO.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)
+
diff --git a/docs/RoleCreateDTO.md b/docs/RoleCreateDTO.md
new file mode 100644
index 00000000..3ea7a552
--- /dev/null
+++ b/docs/RoleCreateDTO.md
@@ -0,0 +1,12 @@
+# RoleCreateDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **str** | The description of the role | [optional]
+**name** | **str** | The name of the role | [optional]
+**permissions** | **list[str]** | List of permissions the role has been granted access to | [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/RoleDTO.md b/docs/RoleDTO.md
new file mode 100644
index 00000000..3d52ac80
--- /dev/null
+++ b/docs/RoleDTO.md
@@ -0,0 +1,21 @@
+# RoleDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_epoch_millis** | **int** | | [optional]
+**customer** | **str** | The id of the customer to which the role belongs | [optional]
+**description** | **str** | The description of the role | [optional]
+**id** | **str** | The unique identifier of the role | [optional]
+**last_updated_account_id** | **str** | The account that updated this role last time | [optional]
+**last_updated_ms** | **int** | The last time when the role is updated, in epoch milliseconds | [optional]
+**linked_accounts_count** | **int** | Total number of accounts that are linked to the role | [optional]
+**linked_groups_count** | **int** | Total number of groups that are linked to the role | [optional]
+**name** | **str** | The name of the role | [optional]
+**permissions** | **list[str]** | List of permissions the role has been granted access to | [optional]
+**sample_linked_accounts** | **list[str]** | A sample of the accounts assigned to this role. Please use the Role facet of the Account Search API to get the full list of accounts for this role | [optional]
+**sample_linked_groups** | [**list[UserGroup]**](UserGroup.md) | A sample of the groups assigned to this role. Please use the Role facet of the Group Search API to get the full list of groups for this role | [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/RoleUpdateDTO.md b/docs/RoleUpdateDTO.md
new file mode 100644
index 00000000..51472291
--- /dev/null
+++ b/docs/RoleUpdateDTO.md
@@ -0,0 +1,13 @@
+# RoleUpdateDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **str** | The description of the role | [optional]
+**id** | **str** | The unique identifier of the role | [optional]
+**name** | **str** | The name of the role | [optional]
+**permissions** | **list[str]** | List of permissions the role has been granted access to | [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/SavedAppMapSearch.md b/docs/SavedAppMapSearch.md
new file mode 100644
index 00000000..0bb69b97
--- /dev/null
+++ b/docs/SavedAppMapSearch.md
@@ -0,0 +1,17 @@
+# SavedAppMapSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**deleted** | **bool** | | [optional]
+**id** | **str** | | [optional]
+**name** | **str** | Name of the search |
+**search_filters** | [**AppSearchFilters**](AppSearchFilters.md) | The search filters. |
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [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/SavedAppMapSearchApi.md b/docs/SavedAppMapSearchApi.md
new file mode 100644
index 00000000..57e6268c
--- /dev/null
+++ b/docs/SavedAppMapSearchApi.md
@@ -0,0 +1,617 @@
+# wavefront_api_client.SavedAppMapSearchApi
+
+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
+[**get_all_saved_app_map_searches_for_user**](SavedAppMapSearchApi.md#get_all_saved_app_map_searches_for_user) | **GET** /api/v2/savedappmapsearch/owned | Get all searches for a user
+[**get_saved_app_map_search**](SavedAppMapSearchApi.md#get_saved_app_map_search) | **GET** /api/v2/savedappmapsearch/{id} | Get a specific search
+[**update_saved_app_map_search**](SavedAppMapSearchApi.md#update_saved_app_map_search) | **PUT** /api/v2/savedappmapsearch/{id} | Update a search
+[**update_saved_app_map_search_for_user**](SavedAppMapSearchApi.md#update_saved_app_map_search_for_user) | **PUT** /api/v2/savedappmapsearch/owned/{id} | Update a search belonging to the user
+
+
+# **create_saved_app_map_search**
+> ResponseContainerSavedAppMapSearch create_saved_app_map_search(body=body)
+
+Create a search
+
+
+
+### 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))
+body = wavefront_api_client.SavedAppMapSearch() # SavedAppMapSearch | Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } } (optional)
+
+try:
+ # Create a search
+ api_response = api_instance.create_saved_app_map_search(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchApi->create_saved_app_map_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SavedAppMapSearch**](SavedAppMapSearch.md)| Example Body: <pre>{ \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearch**](ResponseContainerSavedAppMapSearch.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_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)
+
+Delete a search
+
+
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Delete a search
+ api_response = api_instance.delete_saved_app_map_search(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchApi->delete_saved_app_map_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearch**](ResponseContainerSavedAppMapSearch.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_for_user**
+> ResponseContainerSavedAppMapSearch delete_saved_app_map_search_for_user(id)
+
+Delete a search belonging to the 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))
+id = 'id_example' # str |
+
+try:
+ # Delete a search belonging to the user
+ api_response = api_instance.delete_saved_app_map_search_for_user(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchApi->delete_saved_app_map_search_for_user: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearch**](ResponseContainerSavedAppMapSearch.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)
+
+# **get_all_saved_app_map_searches**
+> ResponseContainerPagedSavedAppMapSearch get_all_saved_app_map_searches(offset=offset, limit=limit)
+
+Get all searches 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.SavedAppMapSearchApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all searches for a customer
+ api_response = api_instance.get_all_saved_app_map_searches(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchApi->get_all_saved_app_map_searches: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSavedAppMapSearch**](ResponseContainerPagedSavedAppMapSearch.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_all_saved_app_map_searches_for_user**
+> ResponseContainerPagedSavedAppMapSearch get_all_saved_app_map_searches_for_user(offset=offset, limit=limit)
+
+Get all searches 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))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all searches for a user
+ api_response = api_instance.get_all_saved_app_map_searches_for_user(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchApi->get_all_saved_app_map_searches_for_user: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSavedAppMapSearch**](ResponseContainerPagedSavedAppMapSearch.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_saved_app_map_search**
+> ResponseContainerSavedAppMapSearch get_saved_app_map_search(id)
+
+Get a specific search
+
+
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Get a specific search
+ api_response = api_instance.get_saved_app_map_search(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchApi->get_saved_app_map_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearch**](ResponseContainerSavedAppMapSearch.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)
+
+# **update_saved_app_map_search**
+> ResponseContainerSavedAppMapSearch update_saved_app_map_search(id, body=body)
+
+Update a search
+
+
+
+### 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))
+id = 'id_example' # str |
+body = wavefront_api_client.SavedAppMapSearch() # SavedAppMapSearch | Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } } (optional)
+
+try:
+ # Update a search
+ api_response = api_instance.update_saved_app_map_search(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchApi->update_saved_app_map_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**SavedAppMapSearch**](SavedAppMapSearch.md)| Example Body: <pre>{ \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearch**](ResponseContainerSavedAppMapSearch.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)
+
+# **update_saved_app_map_search_for_user**
+> ResponseContainerSavedAppMapSearch update_saved_app_map_search_for_user(id, body=body)
+
+Update a search belonging to the 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))
+id = 'id_example' # str |
+body = wavefront_api_client.SavedAppMapSearch() # SavedAppMapSearch | Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } } (optional)
+
+try:
+ # Update a search belonging to the user
+ api_response = api_instance.update_saved_app_map_search_for_user(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchApi->update_saved_app_map_search_for_user: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**SavedAppMapSearch**](SavedAppMapSearch.md)| Example Body: <pre>{ \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearch**](ResponseContainerSavedAppMapSearch.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)
+
diff --git a/docs/SavedAppMapSearchGroup.md b/docs/SavedAppMapSearchGroup.md
new file mode 100644
index 00000000..c696b0b0
--- /dev/null
+++ b/docs/SavedAppMapSearchGroup.md
@@ -0,0 +1,16 @@
+# SavedAppMapSearchGroup
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**id** | **str** | | [optional]
+**name** | **str** | Name of the search group |
+**search_filters** | **list[str]** | | [optional]
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [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/SavedAppMapSearchGroupApi.md b/docs/SavedAppMapSearchGroupApi.md
new file mode 100644
index 00000000..eeafb5bd
--- /dev/null
+++ b/docs/SavedAppMapSearchGroupApi.md
@@ -0,0 +1,460 @@
+# wavefront_api_client.SavedAppMapSearchGroupApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**add_saved_app_map_search_to_group**](SavedAppMapSearchGroupApi.md#add_saved_app_map_search_to_group) | **POST** /api/v2/savedappmapsearchgroup/{id}/addSearch/{searchId} | Add a search to a search group
+[**create_saved_app_map_search_group**](SavedAppMapSearchGroupApi.md#create_saved_app_map_search_group) | **POST** /api/v2/savedappmapsearchgroup | Create a search group
+[**delete_saved_app_map_search_group**](SavedAppMapSearchGroupApi.md#delete_saved_app_map_search_group) | **DELETE** /api/v2/savedappmapsearchgroup/{id} | Delete a search group
+[**get_all_saved_app_map_search_group**](SavedAppMapSearchGroupApi.md#get_all_saved_app_map_search_group) | **GET** /api/v2/savedappmapsearchgroup | Get all search groups for a user
+[**get_saved_app_map_search_group**](SavedAppMapSearchGroupApi.md#get_saved_app_map_search_group) | **GET** /api/v2/savedappmapsearchgroup/{id} | Get a specific search group
+[**get_saved_app_map_searches_for_group**](SavedAppMapSearchGroupApi.md#get_saved_app_map_searches_for_group) | **GET** /api/v2/savedappmapsearchgroup/{id}/searches | Get all searches for a search group
+[**remove_saved_app_map_search_from_group**](SavedAppMapSearchGroupApi.md#remove_saved_app_map_search_from_group) | **POST** /api/v2/savedappmapsearchgroup/{id}/removeSearch/{searchId} | Remove a search from a search group
+[**update_saved_app_map_search_group**](SavedAppMapSearchGroupApi.md#update_saved_app_map_search_group) | **PUT** /api/v2/savedappmapsearchgroup/{id} | Update a search group
+
+
+# **add_saved_app_map_search_to_group**
+> ResponseContainer add_saved_app_map_search_to_group(id, search_id)
+
+Add a search to a search group
+
+
+
+### 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.SavedAppMapSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+search_id = 'search_id_example' # str |
+
+try:
+ # Add a search to a search group
+ api_response = api_instance.add_saved_app_map_search_to_group(id, search_id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchGroupApi->add_saved_app_map_search_to_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **search_id** | **str**| |
+
+### Return type
+
+[**ResponseContainer**](ResponseContainer.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)
+
+# **create_saved_app_map_search_group**
+> ResponseContainerSavedAppMapSearchGroup create_saved_app_map_search_group(body=body)
+
+Create a search group
+
+
+
+### 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.SavedAppMapSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.SavedAppMapSearchGroup() # SavedAppMapSearchGroup | Example Body: { \"name\": \"Search Group 1\" } (optional)
+
+try:
+ # Create a search group
+ api_response = api_instance.create_saved_app_map_search_group(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchGroupApi->create_saved_app_map_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SavedAppMapSearchGroup**](SavedAppMapSearchGroup.md)| Example Body: <pre>{ \"name\": \"Search Group 1\" }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearchGroup**](ResponseContainerSavedAppMapSearchGroup.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_group**
+> ResponseContainerSavedAppMapSearchGroup delete_saved_app_map_search_group(id)
+
+Delete a search group
+
+
+
+### 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.SavedAppMapSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Delete a search group
+ api_response = api_instance.delete_saved_app_map_search_group(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchGroupApi->delete_saved_app_map_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearchGroup**](ResponseContainerSavedAppMapSearchGroup.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)
+
+# **get_all_saved_app_map_search_group**
+> ResponseContainerPagedSavedAppMapSearchGroup get_all_saved_app_map_search_group(offset=offset, limit=limit)
+
+Get all search groups 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.SavedAppMapSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all search groups for a user
+ api_response = api_instance.get_all_saved_app_map_search_group(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchGroupApi->get_all_saved_app_map_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSavedAppMapSearchGroup**](ResponseContainerPagedSavedAppMapSearchGroup.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_saved_app_map_search_group**
+> ResponseContainerSavedAppMapSearchGroup get_saved_app_map_search_group(id)
+
+Get a specific search group
+
+
+
+### 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.SavedAppMapSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Get a specific search group
+ api_response = api_instance.get_saved_app_map_search_group(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchGroupApi->get_saved_app_map_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearchGroup**](ResponseContainerSavedAppMapSearchGroup.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_saved_app_map_searches_for_group**
+> ResponseContainerPagedSavedAppMapSearch get_saved_app_map_searches_for_group(id, offset=offset, limit=limit)
+
+Get all searches for a search group
+
+
+
+### 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.SavedAppMapSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all searches for a search group
+ api_response = api_instance.get_saved_app_map_searches_for_group(id, offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchGroupApi->get_saved_app_map_searches_for_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSavedAppMapSearch**](ResponseContainerPagedSavedAppMapSearch.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)
+
+# **remove_saved_app_map_search_from_group**
+> ResponseContainer remove_saved_app_map_search_from_group(id, search_id)
+
+Remove a search from a search group
+
+
+
+### 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.SavedAppMapSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+search_id = 'search_id_example' # str |
+
+try:
+ # Remove a search from a search group
+ api_response = api_instance.remove_saved_app_map_search_from_group(id, search_id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchGroupApi->remove_saved_app_map_search_from_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **search_id** | **str**| |
+
+### Return type
+
+[**ResponseContainer**](ResponseContainer.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)
+
+# **update_saved_app_map_search_group**
+> ResponseContainerSavedAppMapSearchGroup update_saved_app_map_search_group(id, body=body)
+
+Update a search group
+
+
+
+### 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.SavedAppMapSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+body = wavefront_api_client.SavedAppMapSearchGroup() # SavedAppMapSearchGroup | Example Body: { \"name\": \"Search Group 1\" } (optional)
+
+try:
+ # Update a search group
+ api_response = api_instance.update_saved_app_map_search_group(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedAppMapSearchGroupApi->update_saved_app_map_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**SavedAppMapSearchGroup**](SavedAppMapSearchGroup.md)| Example Body: <pre>{ \"name\": \"Search Group 1\" }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedAppMapSearchGroup**](ResponseContainerSavedAppMapSearchGroup.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)
+
diff --git a/docs/SavedSearch.md b/docs/SavedSearch.md
index 5e24421b..1cb3b582 100644
--- a/docs/SavedSearch.md
+++ b/docs/SavedSearch.md
@@ -3,14 +3,14 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**entity_type** | **str** | The Wavefront entity type over which to search |
**id** | **str** | | [optional]
**query** | **dict(str, str)** | The map corresponding to the search query. The key is the name of the query, and the value is a JSON representation of the query |
-**creator_id** | **str** | | [optional]
-**created_epoch_millis** | **int** | | [optional]
**updated_epoch_millis** | **int** | | [optional]
**updater_id** | **str** | | [optional]
**user_id** | **str** | The user for whom this search is saved | [optional]
-**entity_type** | **str** | The Wavefront entity type over which to search |
[[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/SavedSearchApi.md b/docs/SavedSearchApi.md
index f11a9d48..0ae6d144 100644
--- a/docs/SavedSearchApi.md
+++ b/docs/SavedSearchApi.md
@@ -1,6 +1,6 @@
# wavefront_api_client.SavedSearchApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/SavedTracesSearch.md b/docs/SavedTracesSearch.md
new file mode 100644
index 00000000..ea5bfffa
--- /dev/null
+++ b/docs/SavedTracesSearch.md
@@ -0,0 +1,17 @@
+# SavedTracesSearch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**deleted** | **bool** | | [optional]
+**id** | **str** | | [optional]
+**name** | **str** | Name of the search | [optional]
+**search_filters** | [**AppSearchFilters**](AppSearchFilters.md) | The search filters. |
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [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/SavedTracesSearchApi.md b/docs/SavedTracesSearchApi.md
new file mode 100644
index 00000000..e19105dd
--- /dev/null
+++ b/docs/SavedTracesSearchApi.md
@@ -0,0 +1,617 @@
+# wavefront_api_client.SavedTracesSearchApi
+
+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
+[**get_all_saved_traces_searches_for_user**](SavedTracesSearchApi.md#get_all_saved_traces_searches_for_user) | **GET** /api/v2/savedtracessearch/owned | Get all searches for a user
+[**get_saved_traces_search**](SavedTracesSearchApi.md#get_saved_traces_search) | **GET** /api/v2/savedtracessearch/{id} | Get a specific search
+[**update_saved_traces_search**](SavedTracesSearchApi.md#update_saved_traces_search) | **PUT** /api/v2/savedtracessearch/{id} | Update a search
+[**update_saved_traces_search_for_user**](SavedTracesSearchApi.md#update_saved_traces_search_for_user) | **PUT** /api/v2/savedtracessearch/owned/{id} | Update a search belonging to the user
+
+
+# **create_saved_traces_search**
+> ResponseContainerSavedTracesSearch create_saved_traces_search(body=body)
+
+Create a search
+
+
+
+### 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))
+body = wavefront_api_client.SavedTracesSearch() # SavedTracesSearch | Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } } (optional)
+
+try:
+ # Create a search
+ api_response = api_instance.create_saved_traces_search(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchApi->create_saved_traces_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SavedTracesSearch**](SavedTracesSearch.md)| Example Body: <pre>{ \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedTracesSearch**](ResponseContainerSavedTracesSearch.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_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)
+
+Delete a search
+
+
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Delete a search
+ api_response = api_instance.delete_saved_traces_search(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchApi->delete_saved_traces_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedTracesSearch**](ResponseContainerSavedTracesSearch.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_traces_search_for_user**
+> ResponseContainerSavedTracesSearch delete_saved_traces_search_for_user(id)
+
+Delete a search belonging to the 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))
+id = 'id_example' # str |
+
+try:
+ # Delete a search belonging to the user
+ api_response = api_instance.delete_saved_traces_search_for_user(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchApi->delete_saved_traces_search_for_user: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedTracesSearch**](ResponseContainerSavedTracesSearch.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)
+
+# **get_all_saved_traces_searches**
+> ResponseContainerPagedSavedTracesSearch get_all_saved_traces_searches(offset=offset, limit=limit)
+
+Get all searches 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.SavedTracesSearchApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all searches for a customer
+ api_response = api_instance.get_all_saved_traces_searches(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchApi->get_all_saved_traces_searches: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSavedTracesSearch**](ResponseContainerPagedSavedTracesSearch.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_all_saved_traces_searches_for_user**
+> ResponseContainerPagedSavedTracesSearch get_all_saved_traces_searches_for_user(offset=offset, limit=limit)
+
+Get all searches 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))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all searches for a user
+ api_response = api_instance.get_all_saved_traces_searches_for_user(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchApi->get_all_saved_traces_searches_for_user: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSavedTracesSearch**](ResponseContainerPagedSavedTracesSearch.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_saved_traces_search**
+> ResponseContainerSavedTracesSearch get_saved_traces_search(id)
+
+Get a specific search
+
+
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Get a specific search
+ api_response = api_instance.get_saved_traces_search(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchApi->get_saved_traces_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedTracesSearch**](ResponseContainerSavedTracesSearch.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)
+
+# **update_saved_traces_search**
+> ResponseContainerSavedTracesSearch update_saved_traces_search(id, body=body)
+
+Update a search
+
+
+
+### 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))
+id = 'id_example' # str |
+body = wavefront_api_client.SavedTracesSearch() # SavedTracesSearch | Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } } (optional)
+
+try:
+ # Update a search
+ api_response = api_instance.update_saved_traces_search(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchApi->update_saved_traces_search: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**SavedTracesSearch**](SavedTracesSearch.md)| Example Body: <pre>{ \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedTracesSearch**](ResponseContainerSavedTracesSearch.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)
+
+# **update_saved_traces_search_for_user**
+> ResponseContainerSavedTracesSearch update_saved_traces_search_for_user(id, body=body)
+
+Update a search belonging to the 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))
+id = 'id_example' # str |
+body = wavefront_api_client.SavedTracesSearch() # SavedTracesSearch | Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } } (optional)
+
+try:
+ # Update a search belonging to the user
+ api_response = api_instance.update_saved_traces_search_for_user(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchApi->update_saved_traces_search_for_user: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**SavedTracesSearch**](SavedTracesSearch.md)| Example Body: <pre>{ \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedTracesSearch**](ResponseContainerSavedTracesSearch.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)
+
diff --git a/docs/SavedTracesSearchGroup.md b/docs/SavedTracesSearchGroup.md
new file mode 100644
index 00000000..8d0afba4
--- /dev/null
+++ b/docs/SavedTracesSearchGroup.md
@@ -0,0 +1,16 @@
+# SavedTracesSearchGroup
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**id** | **str** | | [optional]
+**name** | **str** | Name of the search group |
+**search_filters** | **list[str]** | | [optional]
+**updated_epoch_millis** | **int** | | [optional]
+**updater_id** | **str** | | [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/SavedTracesSearchGroupApi.md b/docs/SavedTracesSearchGroupApi.md
new file mode 100644
index 00000000..e648c833
--- /dev/null
+++ b/docs/SavedTracesSearchGroupApi.md
@@ -0,0 +1,460 @@
+# wavefront_api_client.SavedTracesSearchGroupApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**add_saved_traces_search_to_group**](SavedTracesSearchGroupApi.md#add_saved_traces_search_to_group) | **POST** /api/v2/savedtracessearchgroup/{id}/addSearch/{searchId} | Add a search to a search group
+[**create_saved_traces_search_group**](SavedTracesSearchGroupApi.md#create_saved_traces_search_group) | **POST** /api/v2/savedtracessearchgroup | Create a search group
+[**delete_saved_traces_search_group**](SavedTracesSearchGroupApi.md#delete_saved_traces_search_group) | **DELETE** /api/v2/savedtracessearchgroup/{id} | Delete a search group
+[**get_all_saved_traces_search_group**](SavedTracesSearchGroupApi.md#get_all_saved_traces_search_group) | **GET** /api/v2/savedtracessearchgroup | Get all search groups for a user
+[**get_saved_traces_search_group**](SavedTracesSearchGroupApi.md#get_saved_traces_search_group) | **GET** /api/v2/savedtracessearchgroup/{id} | Get a specific search group
+[**get_saved_traces_searches_for_group**](SavedTracesSearchGroupApi.md#get_saved_traces_searches_for_group) | **GET** /api/v2/savedtracessearchgroup/{id}/searches | Get all searches for a search group
+[**remove_saved_traces_search_from_group**](SavedTracesSearchGroupApi.md#remove_saved_traces_search_from_group) | **POST** /api/v2/savedtracessearchgroup/{id}/removeSearch/{searchId} | Remove a search from a search group
+[**update_saved_traces_search_group**](SavedTracesSearchGroupApi.md#update_saved_traces_search_group) | **PUT** /api/v2/savedtracessearchgroup/{id} | Update a search group
+
+
+# **add_saved_traces_search_to_group**
+> ResponseContainer add_saved_traces_search_to_group(id, search_id)
+
+Add a search to a search group
+
+
+
+### 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.SavedTracesSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+search_id = 'search_id_example' # str |
+
+try:
+ # Add a search to a search group
+ api_response = api_instance.add_saved_traces_search_to_group(id, search_id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchGroupApi->add_saved_traces_search_to_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **search_id** | **str**| |
+
+### Return type
+
+[**ResponseContainer**](ResponseContainer.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)
+
+# **create_saved_traces_search_group**
+> ResponseContainerSavedTracesSearchGroup create_saved_traces_search_group(body=body)
+
+Create a search group
+
+
+
+### 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.SavedTracesSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.SavedTracesSearchGroup() # SavedTracesSearchGroup | Example Body: { \"name\": \"Search Group 1\" } (optional)
+
+try:
+ # Create a search group
+ api_response = api_instance.create_saved_traces_search_group(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchGroupApi->create_saved_traces_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SavedTracesSearchGroup**](SavedTracesSearchGroup.md)| Example Body: <pre>{ \"name\": \"Search Group 1\" }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedTracesSearchGroup**](ResponseContainerSavedTracesSearchGroup.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_traces_search_group**
+> ResponseContainerSavedTracesSearchGroup delete_saved_traces_search_group(id)
+
+Delete a search group
+
+
+
+### 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.SavedTracesSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Delete a search group
+ api_response = api_instance.delete_saved_traces_search_group(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchGroupApi->delete_saved_traces_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedTracesSearchGroup**](ResponseContainerSavedTracesSearchGroup.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)
+
+# **get_all_saved_traces_search_group**
+> ResponseContainerPagedSavedTracesSearchGroup get_all_saved_traces_search_group(offset=offset, limit=limit)
+
+Get all search groups 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.SavedTracesSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all search groups for a user
+ api_response = api_instance.get_all_saved_traces_search_group(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchGroupApi->get_all_saved_traces_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSavedTracesSearchGroup**](ResponseContainerPagedSavedTracesSearchGroup.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_saved_traces_search_group**
+> ResponseContainerSavedTracesSearchGroup get_saved_traces_search_group(id)
+
+Get a specific search group
+
+
+
+### 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.SavedTracesSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Get a specific search group
+ api_response = api_instance.get_saved_traces_search_group(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchGroupApi->get_saved_traces_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSavedTracesSearchGroup**](ResponseContainerSavedTracesSearchGroup.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_saved_traces_searches_for_group**
+> ResponseContainerPagedSavedTracesSearch get_saved_traces_searches_for_group(id, offset=offset, limit=limit)
+
+Get all searches for a search group
+
+
+
+### 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.SavedTracesSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all searches for a search group
+ api_response = api_instance.get_saved_traces_searches_for_group(id, offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchGroupApi->get_saved_traces_searches_for_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSavedTracesSearch**](ResponseContainerPagedSavedTracesSearch.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)
+
+# **remove_saved_traces_search_from_group**
+> ResponseContainer remove_saved_traces_search_from_group(id, search_id)
+
+Remove a search from a search group
+
+
+
+### 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.SavedTracesSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+search_id = 'search_id_example' # str |
+
+try:
+ # Remove a search from a search group
+ api_response = api_instance.remove_saved_traces_search_from_group(id, search_id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchGroupApi->remove_saved_traces_search_from_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **search_id** | **str**| |
+
+### Return type
+
+[**ResponseContainer**](ResponseContainer.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)
+
+# **update_saved_traces_search_group**
+> ResponseContainerSavedTracesSearchGroup update_saved_traces_search_group(id, body=body)
+
+Update a search group
+
+
+
+### 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.SavedTracesSearchGroupApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+body = wavefront_api_client.SavedTracesSearchGroup() # SavedTracesSearchGroup | Example Body: { \"name\": \"Search Group 1\" } (optional)
+
+try:
+ # Update a search group
+ api_response = api_instance.update_saved_traces_search_group(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SavedTracesSearchGroupApi->update_saved_traces_search_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**SavedTracesSearchGroup**](SavedTracesSearchGroup.md)| Example Body: <pre>{ \"name\": \"Search Group 1\" }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSavedTracesSearchGroup**](ResponseContainerSavedTracesSearchGroup.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)
+
diff --git a/docs/Schema.md b/docs/Schema.md
new file mode 100644
index 00000000..0641889c
--- /dev/null
+++ b/docs/Schema.md
@@ -0,0 +1,27 @@
+# Schema
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**aliases** | **list[str]** | | [optional]
+**doc** | **str** | | [optional]
+**element_type** | [**Schema**](Schema.md) | | [optional]
+**enum_default** | **str** | | [optional]
+**enum_symbols** | **list[str]** | | [optional]
+**error** | **bool** | | [optional]
+**fields** | [**list[Field]**](Field.md) | | [optional]
+**fixed_size** | **int** | | [optional]
+**full_name** | **str** | | [optional]
+**logical_type** | [**LogicalType**](LogicalType.md) | | [optional]
+**name** | **str** | | [optional]
+**namespace** | **str** | | [optional]
+**nullable** | **bool** | | [optional]
+**object_props** | **dict(str, object)** | | [optional]
+**type** | **str** | | [optional]
+**types** | [**list[Schema]**](Schema.md) | | [optional]
+**union** | **bool** | | [optional]
+**value_type** | [**Schema**](Schema.md) | | [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/SearchApi.md b/docs/SearchApi.md
index e2d1e58c..8d2204c7 100644
--- a/docs/SearchApi.md
+++ b/docs/SearchApi.md
@@ -1,13 +1,19 @@
# wavefront_api_client.SearchApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**search_account_entities**](SearchApi.md#search_account_entities) | **POST** /api/v2/search/account | Search over a customer's accounts
+[**search_account_for_facet**](SearchApi.md#search_account_for_facet) | **POST** /api/v2/search/account/{facet} | Lists the values of a specific facet over the customer's accounts
+[**search_account_for_facets**](SearchApi.md#search_account_for_facets) | **POST** /api/v2/search/account/facets | Lists the values of one or more facets over the customer's accounts
[**search_alert_deleted_entities**](SearchApi.md#search_alert_deleted_entities) | **POST** /api/v2/search/alert/deleted | Search over a customer's deleted alerts
[**search_alert_deleted_for_facet**](SearchApi.md#search_alert_deleted_for_facet) | **POST** /api/v2/search/alert/deleted/{facet} | Lists the values of a specific facet over the customer's deleted alerts
[**search_alert_deleted_for_facets**](SearchApi.md#search_alert_deleted_for_facets) | **POST** /api/v2/search/alert/deleted/facets | Lists the values of one or more facets over the customer's deleted alerts
[**search_alert_entities**](SearchApi.md#search_alert_entities) | **POST** /api/v2/search/alert | Search over a customer's non-deleted alerts
+[**search_alert_execution_summary_entities**](SearchApi.md#search_alert_execution_summary_entities) | **POST** /api/v2/search/alert-analytics-summary | Search over a customer's alert executions summaries
+[**search_alert_execution_summary_for_facet**](SearchApi.md#search_alert_execution_summary_for_facet) | **POST** /api/v2/search/alert-analytics-summary/{facet} | Lists the values of a specific facet over the customer's alert executions summaries
+[**search_alert_execution_summary_for_facets**](SearchApi.md#search_alert_execution_summary_for_facets) | **POST** /api/v2/search/alert-analytics-summary/facets | Lists the values of one or more facets over the customer's alert executions summaries
[**search_alert_for_facet**](SearchApi.md#search_alert_for_facet) | **POST** /api/v2/search/alert/{facet} | Lists the values of a specific facet over the customer's non-deleted alerts
[**search_alert_for_facets**](SearchApi.md#search_alert_for_facets) | **POST** /api/v2/search/alert/facets | Lists the values of one or more facets over the customer's non-deleted alerts
[**search_cloud_integration_deleted_entities**](SearchApi.md#search_cloud_integration_deleted_entities) | **POST** /api/v2/search/cloudintegration/deleted | Search over a customer's deleted cloud integrations
@@ -25,9 +31,18 @@ Method | HTTP request | Description
[**search_external_link_entities**](SearchApi.md#search_external_link_entities) | **POST** /api/v2/search/extlink | Search over a customer's external links
[**search_external_links_for_facet**](SearchApi.md#search_external_links_for_facet) | **POST** /api/v2/search/extlink/{facet} | Lists the values of a specific facet over the customer's external links
[**search_external_links_for_facets**](SearchApi.md#search_external_links_for_facets) | **POST** /api/v2/search/extlink/facets | Lists the values of one or more facets over the customer's external links
+[**search_ingestion_policy_entities**](SearchApi.md#search_ingestion_policy_entities) | **POST** /api/v2/search/ingestionpolicy | Search over a customer's ingestion policies
+[**search_ingestion_policy_for_facet**](SearchApi.md#search_ingestion_policy_for_facet) | **POST** /api/v2/search/ingestionpolicy/{facet} | Lists the values of a specific facet over the customer's ingestion policies
+[**search_ingestion_policy_for_facets**](SearchApi.md#search_ingestion_policy_for_facets) | **POST** /api/v2/search/ingestionpolicy/facets | Lists the values of one or more facets over the customer's ingestion policies
[**search_maintenance_window_entities**](SearchApi.md#search_maintenance_window_entities) | **POST** /api/v2/search/maintenancewindow | Search over a customer's maintenance windows
[**search_maintenance_window_for_facet**](SearchApi.md#search_maintenance_window_for_facet) | **POST** /api/v2/search/maintenancewindow/{facet} | Lists the values of a specific facet over the customer's maintenance windows
[**search_maintenance_window_for_facets**](SearchApi.md#search_maintenance_window_for_facets) | **POST** /api/v2/search/maintenancewindow/facets | Lists the values of one or more facets over the customer's maintenance windows
+[**search_monitored_application_entities**](SearchApi.md#search_monitored_application_entities) | **POST** /api/v2/search/monitoredapplication | Search over all the customer's non-deleted monitored applications
+[**search_monitored_application_for_facet**](SearchApi.md#search_monitored_application_for_facet) | **POST** /api/v2/search/monitoredapplication/{facet} | Lists the values of a specific facet over the customer's non-deleted monitored application
+[**search_monitored_application_for_facets**](SearchApi.md#search_monitored_application_for_facets) | **POST** /api/v2/search/monitoredapplication/facets | Lists the values of one or more facets over the customer's non-deleted monitored clusters
+[**search_monitored_service_entities**](SearchApi.md#search_monitored_service_entities) | **POST** /api/v2/search/monitoredservice | Search over all the customer's non-deleted monitored services
+[**search_monitored_service_for_facet**](SearchApi.md#search_monitored_service_for_facet) | **POST** /api/v2/search/monitoredservice/{facet} | Lists the values of a specific facet over the customer's non-deleted monitored application
+[**search_monitored_service_for_facets**](SearchApi.md#search_monitored_service_for_facets) | **POST** /api/v2/search/monitoredservice/facets | Lists the values of one or more facets over the customer's non-deleted monitored clusters
[**search_notficant_for_facets**](SearchApi.md#search_notficant_for_facets) | **POST** /api/v2/search/notificant/facets | Lists the values of one or more facets over the customer's notificants
[**search_notificant_entities**](SearchApi.md#search_notificant_entities) | **POST** /api/v2/search/notificant | Search over a customer's notificants
[**search_notificant_for_facet**](SearchApi.md#search_notificant_for_facet) | **POST** /api/v2/search/notificant/{facet} | Lists the values of a specific facet over the customer's notificants
@@ -37,30 +52,56 @@ Method | HTTP request | Description
[**search_proxy_entities**](SearchApi.md#search_proxy_entities) | **POST** /api/v2/search/proxy | Search over a customer's non-deleted proxies
[**search_proxy_for_facet**](SearchApi.md#search_proxy_for_facet) | **POST** /api/v2/search/proxy/{facet} | Lists the values of a specific facet over the customer's non-deleted proxies
[**search_proxy_for_facets**](SearchApi.md#search_proxy_for_facets) | **POST** /api/v2/search/proxy/facets | Lists the values of one or more facets over the customer's non-deleted proxies
-[**search_registered_query_deleted_entities**](SearchApi.md#search_registered_query_deleted_entities) | **POST** /api/v2/search/derivedmetricdefinition/deleted | Search over a customer's deleted derived metric definitions
-[**search_registered_query_deleted_for_facet**](SearchApi.md#search_registered_query_deleted_for_facet) | **POST** /api/v2/search/derivedmetricdefinition/deleted/{facet} | Lists the values of a specific facet over the customer's deleted derived metric definitions
-[**search_registered_query_deleted_for_facets**](SearchApi.md#search_registered_query_deleted_for_facets) | **POST** /api/v2/search/derivedmetricdefinition/deleted/facets | Lists the values of one or more facets over the customer's deleted derived metric definitions
-[**search_registered_query_entities**](SearchApi.md#search_registered_query_entities) | **POST** /api/v2/search/derivedmetricdefinition | Search over a customer's non-deleted derived metric definitions
-[**search_registered_query_for_facet**](SearchApi.md#search_registered_query_for_facet) | **POST** /api/v2/search/derivedmetricdefinition/{facet} | Lists the values of a specific facet over the customer's non-deleted derived metric definitions
-[**search_registered_query_for_facets**](SearchApi.md#search_registered_query_for_facets) | **POST** /api/v2/search/derivedmetricdefinition/facets | Lists the values of one or more facets over the customer's non-deleted derived metric definition
+[**search_registered_query_deleted_entities**](SearchApi.md#search_registered_query_deleted_entities) | **POST** /api/v2/search/derivedmetric/deleted | Search over a customer's deleted derived metric definitions
+[**search_registered_query_deleted_for_facet**](SearchApi.md#search_registered_query_deleted_for_facet) | **POST** /api/v2/search/derivedmetric/deleted/{facet} | Lists the values of a specific facet over the customer's deleted derived metric definitions
+[**search_registered_query_deleted_for_facets**](SearchApi.md#search_registered_query_deleted_for_facets) | **POST** /api/v2/search/derivedmetric/deleted/facets | Lists the values of one or more facets over the customer's deleted derived metric definitions
+[**search_registered_query_entities**](SearchApi.md#search_registered_query_entities) | **POST** /api/v2/search/derivedmetric | Search over a customer's non-deleted derived metric definitions
+[**search_registered_query_for_facet**](SearchApi.md#search_registered_query_for_facet) | **POST** /api/v2/search/derivedmetric/{facet} | Lists the values of a specific facet over the customer's non-deleted derived metric definitions
+[**search_registered_query_for_facets**](SearchApi.md#search_registered_query_for_facets) | **POST** /api/v2/search/derivedmetric/facets | Lists the values of one or more facets over the customer's non-deleted derived metric definition
+[**search_related_report_event_anomaly_entities**](SearchApi.md#search_related_report_event_anomaly_entities) | **POST** /api/v2/search/event/related/{eventId}/withAnomalies | List the related events and anomalies over a firing event
+[**search_related_report_event_entities**](SearchApi.md#search_related_report_event_entities) | **POST** /api/v2/search/event/related/{eventId} | List the related events over a firing event
[**search_report_event_entities**](SearchApi.md#search_report_event_entities) | **POST** /api/v2/search/event | Search over a customer's events
[**search_report_event_for_facet**](SearchApi.md#search_report_event_for_facet) | **POST** /api/v2/search/event/{facet} | Lists the values of a specific facet over the customer's events
[**search_report_event_for_facets**](SearchApi.md#search_report_event_for_facets) | **POST** /api/v2/search/event/facets | Lists the values of one or more facets over the customer's events
+[**search_role_entities**](SearchApi.md#search_role_entities) | **POST** /api/v2/search/role | Search over a customer's roles
+[**search_role_for_facet**](SearchApi.md#search_role_for_facet) | **POST** /api/v2/search/role/{facet} | Lists the values of a specific facet over the customer's roles
+[**search_role_for_facets**](SearchApi.md#search_role_for_facets) | **POST** /api/v2/search/role/facets | Lists the values of one or more facets over the customer's roles
+[**search_saved_app_map_entities**](SearchApi.md#search_saved_app_map_entities) | **POST** /api/v2/search/savedappmapsearch | Search over all the customer's non-deleted saved app map searches
+[**search_saved_app_map_for_facet**](SearchApi.md#search_saved_app_map_for_facet) | **POST** /api/v2/search/savedappmapsearch/{facet} | Lists the values of a specific facet over the customer's non-deleted app map searches
+[**search_saved_app_map_for_facets**](SearchApi.md#search_saved_app_map_for_facets) | **POST** /api/v2/search/savedappmapsearch/facets | Lists the values of one or more facets over the customer's non-deleted app map searches
+[**search_saved_traces_entities**](SearchApi.md#search_saved_traces_entities) | **POST** /api/v2/search/savedtracessearch | Search over all the customer's non-deleted saved traces searches
+[**search_service_account_entities**](SearchApi.md#search_service_account_entities) | **POST** /api/v2/search/serviceaccount | Search over a customer's service accounts
+[**search_service_account_for_facet**](SearchApi.md#search_service_account_for_facet) | **POST** /api/v2/search/serviceaccount/{facet} | Lists the values of a specific facet over the customer's service accounts
+[**search_service_account_for_facets**](SearchApi.md#search_service_account_for_facets) | **POST** /api/v2/search/serviceaccount/facets | Lists the values of one or more facets over the customer's service accounts
+[**search_span_sampling_policy_deleted_entities**](SearchApi.md#search_span_sampling_policy_deleted_entities) | **POST** /api/v2/search/spansamplingpolicy/deleted | Search over a customer's deleted span sampling policies
+[**search_span_sampling_policy_deleted_for_facet**](SearchApi.md#search_span_sampling_policy_deleted_for_facet) | **POST** /api/v2/search/spansamplingpolicy/deleted/{facet} | Lists the values of a specific facet over the customer's deleted span sampling policies
+[**search_span_sampling_policy_deleted_for_facets**](SearchApi.md#search_span_sampling_policy_deleted_for_facets) | **POST** /api/v2/search/spansamplingpolicy/deleted/facets | Lists the values of one or more facets over the customer's deleted span sampling policies
+[**search_span_sampling_policy_entities**](SearchApi.md#search_span_sampling_policy_entities) | **POST** /api/v2/search/spansamplingpolicy | Search over a customer's non-deleted span sampling policies
+[**search_span_sampling_policy_for_facet**](SearchApi.md#search_span_sampling_policy_for_facet) | **POST** /api/v2/search/spansamplingpolicy/{facet} | Lists the values of a specific facet over the customer's non-deleted span sampling policies
+[**search_span_sampling_policy_for_facets**](SearchApi.md#search_span_sampling_policy_for_facets) | **POST** /api/v2/search/spansamplingpolicy/facets | Lists the values of one or more facets over the customer's non-deleted span sampling policies
[**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
[**search_user_for_facet**](SearchApi.md#search_user_for_facet) | **POST** /api/v2/search/user/{facet} | Lists the values of a specific facet over the customer's users
[**search_user_for_facets**](SearchApi.md#search_user_for_facets) | **POST** /api/v2/search/user/facets | Lists the values of one or more facets over the customer's users
+[**search_user_group_entities**](SearchApi.md#search_user_group_entities) | **POST** /api/v2/search/usergroup | Search over a customer's user groups
+[**search_user_group_for_facet**](SearchApi.md#search_user_group_for_facet) | **POST** /api/v2/search/usergroup/{facet} | Lists the values of a specific facet over the customer's user groups
+[**search_user_group_for_facets**](SearchApi.md#search_user_group_for_facets) | **POST** /api/v2/search/usergroup/facets | Lists the values of one or more facets over the customer's user groups
[**search_web_hook_entities**](SearchApi.md#search_web_hook_entities) | **POST** /api/v2/search/webhook | Search over a customer's webhooks
[**search_web_hook_for_facet**](SearchApi.md#search_web_hook_for_facet) | **POST** /api/v2/search/webhook/{facet} | Lists the values of a specific facet over the customer's webhooks
[**search_webhook_for_facets**](SearchApi.md#search_webhook_for_facets) | **POST** /api/v2/search/webhook/facets | Lists the values of one or more facets over the customer's webhooks
-# **search_alert_deleted_entities**
-> ResponseContainerPagedAlert search_alert_deleted_entities(body=body)
+# **search_account_entities**
+> ResponseContainerPagedAccount search_account_entities(body=body)
-Search over a customer's deleted alerts
+Search over a customer's accounts
@@ -83,11 +124,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's deleted alerts
- api_response = api_instance.search_alert_deleted_entities(body=body)
+ # Search over a customer's accounts
+ api_response = api_instance.search_account_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_alert_deleted_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_account_entities: %s\n" % e)
```
### Parameters
@@ -98,7 +139,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedAlert**](ResponseContainerPagedAlert.md)
+[**ResponseContainerPagedAccount**](ResponseContainerPagedAccount.md)
### Authorization
@@ -111,10 +152,10 @@ 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_alert_deleted_for_facet**
-> ResponseContainerFacetResponse search_alert_deleted_for_facet(facet, body=body)
+# **search_account_for_facet**
+> ResponseContainerFacetResponse search_account_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's deleted alerts
+Lists the values of a specific facet over the customer's accounts
@@ -138,11 +179,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's deleted alerts
- api_response = api_instance.search_alert_deleted_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's accounts
+ api_response = api_instance.search_account_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_alert_deleted_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_account_for_facet: %s\n" % e)
```
### Parameters
@@ -167,10 +208,10 @@ 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_alert_deleted_for_facets**
-> ResponseContainerFacetsResponseContainer search_alert_deleted_for_facets(body=body)
+# **search_account_for_facets**
+> ResponseContainerFacetsResponseContainer search_account_for_facets(body=body)
-Lists the values of one or more facets over the customer's deleted alerts
+Lists the values of one or more facets over the customer's accounts
@@ -193,11 +234,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's deleted alerts
- api_response = api_instance.search_alert_deleted_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's accounts
+ api_response = api_instance.search_account_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_alert_deleted_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_account_for_facets: %s\n" % e)
```
### Parameters
@@ -221,10 +262,10 @@ 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_alert_entities**
-> ResponseContainerPagedAlertWithStats search_alert_entities(body=body)
+# **search_alert_deleted_entities**
+> ResponseContainerPagedAlert search_alert_deleted_entities(body=body)
-Search over a customer's non-deleted alerts
+Search over a customer's deleted alerts
@@ -247,11 +288,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's non-deleted alerts
- api_response = api_instance.search_alert_entities(body=body)
+ # Search over a customer's deleted alerts
+ api_response = api_instance.search_alert_deleted_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_alert_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_alert_deleted_entities: %s\n" % e)
```
### Parameters
@@ -262,7 +303,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedAlertWithStats**](ResponseContainerPagedAlertWithStats.md)
+[**ResponseContainerPagedAlert**](ResponseContainerPagedAlert.md)
### Authorization
@@ -275,10 +316,10 @@ 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_alert_for_facet**
-> ResponseContainerFacetResponse search_alert_for_facet(facet, body=body)
+# **search_alert_deleted_for_facet**
+> ResponseContainerFacetResponse search_alert_deleted_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's non-deleted alerts
+Lists the values of a specific facet over the customer's deleted alerts
@@ -302,11 +343,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's non-deleted alerts
- api_response = api_instance.search_alert_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's deleted alerts
+ api_response = api_instance.search_alert_deleted_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_alert_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_alert_deleted_for_facet: %s\n" % e)
```
### Parameters
@@ -331,10 +372,10 @@ 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_alert_for_facets**
-> ResponseContainerFacetsResponseContainer search_alert_for_facets(body=body)
+# **search_alert_deleted_for_facets**
+> ResponseContainerFacetsResponseContainer search_alert_deleted_for_facets(body=body)
-Lists the values of one or more facets over the customer's non-deleted alerts
+Lists the values of one or more facets over the customer's deleted alerts
@@ -357,11 +398,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's non-deleted alerts
- api_response = api_instance.search_alert_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's deleted alerts
+ api_response = api_instance.search_alert_deleted_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_alert_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_alert_deleted_for_facets: %s\n" % e)
```
### Parameters
@@ -385,10 +426,10 @@ 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_cloud_integration_deleted_entities**
-> ResponseContainerPagedCloudIntegration search_cloud_integration_deleted_entities(body=body)
+# **search_alert_entities**
+> ResponseContainerPagedAlertWithStats search_alert_entities(body=body)
-Search over a customer's deleted cloud integrations
+Search over a customer's non-deleted alerts
@@ -411,11 +452,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's deleted cloud integrations
- api_response = api_instance.search_cloud_integration_deleted_entities(body=body)
+ # Search over a customer's non-deleted alerts
+ api_response = api_instance.search_alert_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_cloud_integration_deleted_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_alert_entities: %s\n" % e)
```
### Parameters
@@ -426,7 +467,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedCloudIntegration**](ResponseContainerPagedCloudIntegration.md)
+[**ResponseContainerPagedAlertWithStats**](ResponseContainerPagedAlertWithStats.md)
### Authorization
@@ -439,10 +480,10 @@ 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_cloud_integration_deleted_for_facet**
-> ResponseContainerFacetResponse search_cloud_integration_deleted_for_facet(facet, body=body)
+# **search_alert_execution_summary_entities**
+> ResponseContainerPagedAlertAnalyticsSummaryDetail search_alert_execution_summary_entities(start, end=end, body=body)
-Lists the values of a specific facet over the customer's deleted cloud integrations
+Search over a customer's alert executions summaries
@@ -462,27 +503,29 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# 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)
+start = 789 # int | Start time in epoch seconds
+end = 789 # int | End time in epoch seconds (optional)
+body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Lists the values of a specific facet over the customer's deleted cloud integrations
- api_response = api_instance.search_cloud_integration_deleted_for_facet(facet, body=body)
+ # Search over a customer's alert executions summaries
+ api_response = api_instance.search_alert_execution_summary_entities(start, end=end, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_cloud_integration_deleted_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_alert_execution_summary_entities: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **facet** | **str**| |
- **body** | [**FacetSearchRequestContainer**](FacetSearchRequestContainer.md)| | [optional]
+ **start** | **int**| Start time in epoch seconds |
+ **end** | **int**| End time in epoch seconds | [optional]
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
### Return type
-[**ResponseContainerFacetResponse**](ResponseContainerFacetResponse.md)
+[**ResponseContainerPagedAlertAnalyticsSummaryDetail**](ResponseContainerPagedAlertAnalyticsSummaryDetail.md)
### Authorization
@@ -495,10 +538,10 @@ 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_cloud_integration_deleted_for_facets**
-> ResponseContainerFacetsResponseContainer search_cloud_integration_deleted_for_facets(body=body)
+# **search_alert_execution_summary_for_facet**
+> ResponseContainerFacetResponse search_alert_execution_summary_for_facet(facet, start, end=end, body=body)
-Lists the values of one or more facets over the customer's deleted cloud integrations
+Lists the values of a specific facet over the customer's alert executions summaries
@@ -518,25 +561,31 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# 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)
+facet = 'facet_example' # str |
+start = 789 # int | Start time in epoch seconds
+end = 789 # int | End time in epoch seconds (optional)
+body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's deleted cloud integrations
- api_response = api_instance.search_cloud_integration_deleted_for_facets(body=body)
+ # Lists the values of a specific facet over the customer's alert executions summaries
+ api_response = api_instance.search_alert_execution_summary_for_facet(facet, start, end=end, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_cloud_integration_deleted_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_alert_execution_summary_for_facet: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**FacetsSearchRequestContainer**](FacetsSearchRequestContainer.md)| | [optional]
+ **facet** | **str**| |
+ **start** | **int**| Start time in epoch seconds |
+ **end** | **int**| End time in epoch seconds | [optional]
+ **body** | [**FacetSearchRequestContainer**](FacetSearchRequestContainer.md)| | [optional]
### Return type
-[**ResponseContainerFacetsResponseContainer**](ResponseContainerFacetsResponseContainer.md)
+[**ResponseContainerFacetResponse**](ResponseContainerFacetResponse.md)
### Authorization
@@ -549,10 +598,10 @@ 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_cloud_integration_entities**
-> ResponseContainerPagedCloudIntegration search_cloud_integration_entities(body=body)
+# **search_alert_execution_summary_for_facets**
+> ResponseContainerFacetsResponseContainer search_alert_execution_summary_for_facets(start, end=end, body=body)
-Search over a customer's non-deleted cloud integrations
+Lists the values of one or more facets over the customer's alert executions summaries
@@ -572,25 +621,29 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# 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)
+start = 789 # int | Start time in epoch seconds
+end = 789 # int | End time in epoch seconds (optional)
+body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Search over a customer's non-deleted cloud integrations
- api_response = api_instance.search_cloud_integration_entities(body=body)
+ # Lists the values of one or more facets over the customer's alert executions summaries
+ api_response = api_instance.search_alert_execution_summary_for_facets(start, end=end, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_cloud_integration_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_alert_execution_summary_for_facets: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+ **start** | **int**| Start time in epoch seconds |
+ **end** | **int**| End time in epoch seconds | [optional]
+ **body** | [**FacetsSearchRequestContainer**](FacetsSearchRequestContainer.md)| | [optional]
### Return type
-[**ResponseContainerPagedCloudIntegration**](ResponseContainerPagedCloudIntegration.md)
+[**ResponseContainerFacetsResponseContainer**](ResponseContainerFacetsResponseContainer.md)
### Authorization
@@ -603,10 +656,10 @@ 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_cloud_integration_for_facet**
-> ResponseContainerFacetResponse search_cloud_integration_for_facet(facet, body=body)
+# **search_alert_for_facet**
+> ResponseContainerFacetResponse search_alert_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's non-deleted cloud integrations
+Lists the values of a specific facet over the customer's non-deleted alerts
@@ -630,11 +683,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's non-deleted cloud integrations
- api_response = api_instance.search_cloud_integration_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's non-deleted alerts
+ api_response = api_instance.search_alert_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_cloud_integration_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_alert_for_facet: %s\n" % e)
```
### Parameters
@@ -659,10 +712,10 @@ 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_cloud_integration_for_facets**
-> ResponseContainerFacetsResponseContainer search_cloud_integration_for_facets(body=body)
+# **search_alert_for_facets**
+> ResponseContainerFacetsResponseContainer search_alert_for_facets(body=body)
-Lists the values of one or more facets over the customer's non-deleted cloud integrations
+Lists the values of one or more facets over the customer's non-deleted alerts
@@ -685,11 +738,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's non-deleted cloud integrations
- api_response = api_instance.search_cloud_integration_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's non-deleted alerts
+ api_response = api_instance.search_alert_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_cloud_integration_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_alert_for_facets: %s\n" % e)
```
### Parameters
@@ -713,10 +766,10 @@ 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_dashboard_deleted_entities**
-> ResponseContainerPagedDashboard search_dashboard_deleted_entities(body=body)
+# **search_cloud_integration_deleted_entities**
+> ResponseContainerPagedCloudIntegration search_cloud_integration_deleted_entities(body=body)
-Search over a customer's deleted dashboards
+Search over a customer's deleted cloud integrations
@@ -739,11 +792,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's deleted dashboards
- api_response = api_instance.search_dashboard_deleted_entities(body=body)
+ # Search over a customer's deleted cloud integrations
+ api_response = api_instance.search_cloud_integration_deleted_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_dashboard_deleted_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_cloud_integration_deleted_entities: %s\n" % e)
```
### Parameters
@@ -754,7 +807,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedDashboard**](ResponseContainerPagedDashboard.md)
+[**ResponseContainerPagedCloudIntegration**](ResponseContainerPagedCloudIntegration.md)
### Authorization
@@ -767,10 +820,10 @@ 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_dashboard_deleted_for_facet**
-> ResponseContainerFacetResponse search_dashboard_deleted_for_facet(facet, body=body)
+# **search_cloud_integration_deleted_for_facet**
+> ResponseContainerFacetResponse search_cloud_integration_deleted_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's deleted dashboards
+Lists the values of a specific facet over the customer's deleted cloud integrations
@@ -794,11 +847,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's deleted dashboards
- api_response = api_instance.search_dashboard_deleted_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's deleted cloud integrations
+ api_response = api_instance.search_cloud_integration_deleted_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_dashboard_deleted_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_cloud_integration_deleted_for_facet: %s\n" % e)
```
### Parameters
@@ -823,10 +876,10 @@ 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_dashboard_deleted_for_facets**
-> ResponseContainerFacetsResponseContainer search_dashboard_deleted_for_facets(body=body)
+# **search_cloud_integration_deleted_for_facets**
+> ResponseContainerFacetsResponseContainer search_cloud_integration_deleted_for_facets(body=body)
-Lists the values of one or more facets over the customer's deleted dashboards
+Lists the values of one or more facets over the customer's deleted cloud integrations
@@ -849,11 +902,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's deleted dashboards
- api_response = api_instance.search_dashboard_deleted_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's deleted cloud integrations
+ api_response = api_instance.search_cloud_integration_deleted_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_dashboard_deleted_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_cloud_integration_deleted_for_facets: %s\n" % e)
```
### Parameters
@@ -877,10 +930,10 @@ 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_dashboard_entities**
-> ResponseContainerPagedDashboard search_dashboard_entities(body=body)
+# **search_cloud_integration_entities**
+> ResponseContainerPagedCloudIntegration search_cloud_integration_entities(body=body)
-Search over a customer's non-deleted dashboards
+Search over a customer's non-deleted cloud integrations
@@ -903,11 +956,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's non-deleted dashboards
- api_response = api_instance.search_dashboard_entities(body=body)
+ # Search over a customer's non-deleted cloud integrations
+ api_response = api_instance.search_cloud_integration_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_dashboard_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_cloud_integration_entities: %s\n" % e)
```
### Parameters
@@ -918,7 +971,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedDashboard**](ResponseContainerPagedDashboard.md)
+[**ResponseContainerPagedCloudIntegration**](ResponseContainerPagedCloudIntegration.md)
### Authorization
@@ -931,10 +984,10 @@ 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_dashboard_for_facet**
-> ResponseContainerFacetResponse search_dashboard_for_facet(facet, body=body)
+# **search_cloud_integration_for_facet**
+> ResponseContainerFacetResponse search_cloud_integration_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's non-deleted dashboards
+Lists the values of a specific facet over the customer's non-deleted cloud integrations
@@ -958,11 +1011,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's non-deleted dashboards
- api_response = api_instance.search_dashboard_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's non-deleted cloud integrations
+ api_response = api_instance.search_cloud_integration_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_dashboard_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_cloud_integration_for_facet: %s\n" % e)
```
### Parameters
@@ -987,10 +1040,10 @@ 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_dashboard_for_facets**
-> ResponseContainerFacetsResponseContainer search_dashboard_for_facets(body=body)
+# **search_cloud_integration_for_facets**
+> ResponseContainerFacetsResponseContainer search_cloud_integration_for_facets(body=body)
-Lists the values of one or more facets over the customer's non-deleted dashboards
+Lists the values of one or more facets over the customer's non-deleted cloud integrations
@@ -1013,11 +1066,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's non-deleted dashboards
- api_response = api_instance.search_dashboard_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's non-deleted cloud integrations
+ api_response = api_instance.search_cloud_integration_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_dashboard_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_cloud_integration_for_facets: %s\n" % e)
```
### Parameters
@@ -1041,10 +1094,10 @@ 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_external_link_entities**
-> ResponseContainerPagedExternalLink search_external_link_entities(body=body)
+# **search_dashboard_deleted_entities**
+> ResponseContainerPagedDashboard search_dashboard_deleted_entities(body=body)
-Search over a customer's external links
+Search over a customer's deleted dashboards
@@ -1067,11 +1120,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's external links
- api_response = api_instance.search_external_link_entities(body=body)
+ # Search over a customer's deleted dashboards
+ api_response = api_instance.search_dashboard_deleted_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_external_link_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_dashboard_deleted_entities: %s\n" % e)
```
### Parameters
@@ -1082,7 +1135,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedExternalLink**](ResponseContainerPagedExternalLink.md)
+[**ResponseContainerPagedDashboard**](ResponseContainerPagedDashboard.md)
### Authorization
@@ -1095,10 +1148,10 @@ 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_external_links_for_facet**
-> ResponseContainerFacetResponse search_external_links_for_facet(facet, body=body)
+# **search_dashboard_deleted_for_facet**
+> ResponseContainerFacetResponse search_dashboard_deleted_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's external links
+Lists the values of a specific facet over the customer's deleted dashboards
@@ -1122,11 +1175,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's external links
- api_response = api_instance.search_external_links_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's deleted dashboards
+ api_response = api_instance.search_dashboard_deleted_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_external_links_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_dashboard_deleted_for_facet: %s\n" % e)
```
### Parameters
@@ -1151,10 +1204,10 @@ 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_external_links_for_facets**
-> ResponseContainerFacetsResponseContainer search_external_links_for_facets(body=body)
+# **search_dashboard_deleted_for_facets**
+> ResponseContainerFacetsResponseContainer search_dashboard_deleted_for_facets(body=body)
-Lists the values of one or more facets over the customer's external links
+Lists the values of one or more facets over the customer's deleted dashboards
@@ -1177,11 +1230,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's external links
- api_response = api_instance.search_external_links_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's deleted dashboards
+ api_response = api_instance.search_dashboard_deleted_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_external_links_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_dashboard_deleted_for_facets: %s\n" % e)
```
### Parameters
@@ -1205,10 +1258,10 @@ 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_maintenance_window_entities**
-> ResponseContainerPagedMaintenanceWindow search_maintenance_window_entities(body=body)
+# **search_dashboard_entities**
+> ResponseContainerPagedDashboard search_dashboard_entities(body=body)
-Search over a customer's maintenance windows
+Search over a customer's non-deleted dashboards
@@ -1231,11 +1284,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's maintenance windows
- api_response = api_instance.search_maintenance_window_entities(body=body)
+ # Search over a customer's non-deleted dashboards
+ api_response = api_instance.search_dashboard_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_maintenance_window_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_dashboard_entities: %s\n" % e)
```
### Parameters
@@ -1246,7 +1299,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedMaintenanceWindow**](ResponseContainerPagedMaintenanceWindow.md)
+[**ResponseContainerPagedDashboard**](ResponseContainerPagedDashboard.md)
### Authorization
@@ -1259,10 +1312,10 @@ 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_maintenance_window_for_facet**
-> ResponseContainerFacetResponse search_maintenance_window_for_facet(facet, body=body)
+# **search_dashboard_for_facet**
+> ResponseContainerFacetResponse search_dashboard_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's maintenance windows
+Lists the values of a specific facet over the customer's non-deleted dashboards
@@ -1286,11 +1339,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's maintenance windows
- api_response = api_instance.search_maintenance_window_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's non-deleted dashboards
+ api_response = api_instance.search_dashboard_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_maintenance_window_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_dashboard_for_facet: %s\n" % e)
```
### Parameters
@@ -1315,10 +1368,10 @@ 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_maintenance_window_for_facets**
-> ResponseContainerFacetsResponseContainer search_maintenance_window_for_facets(body=body)
+# **search_dashboard_for_facets**
+> ResponseContainerFacetsResponseContainer search_dashboard_for_facets(body=body)
-Lists the values of one or more facets over the customer's maintenance windows
+Lists the values of one or more facets over the customer's non-deleted dashboards
@@ -1341,11 +1394,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's maintenance windows
- api_response = api_instance.search_maintenance_window_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's non-deleted dashboards
+ api_response = api_instance.search_dashboard_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_maintenance_window_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_dashboard_for_facets: %s\n" % e)
```
### Parameters
@@ -1369,10 +1422,120 @@ 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_notficant_for_facets**
-> ResponseContainerFacetsResponseContainer search_notficant_for_facets(body=body)
+# **search_external_link_entities**
+> ResponseContainerPagedExternalLink search_external_link_entities(body=body)
-Lists the values of one or more facets over the customer's notificants
+Search over a customer's external links
+
+
+
+### 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 external links
+ api_response = api_instance.search_external_link_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_external_link_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedExternalLink**](ResponseContainerPagedExternalLink.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_external_links_for_facet**
+> ResponseContainerFacetResponse search_external_links_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's external links
+
+
+
+### 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 external links
+ api_response = api_instance.search_external_links_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_external_links_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_external_links_for_facets**
+> ResponseContainerFacetsResponseContainer search_external_links_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's external links
@@ -1395,11 +1558,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's notificants
- api_response = api_instance.search_notficant_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's external links
+ api_response = api_instance.search_external_links_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_notficant_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_external_links_for_facets: %s\n" % e)
```
### Parameters
@@ -1423,10 +1586,2198 @@ 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_notificant_entities**
-> ResponseContainerPagedNotificant search_notificant_entities(body=body)
+# **search_ingestion_policy_entities**
+> ResponseContainerPagedIngestionPolicyReadModel search_ingestion_policy_entities(body=body)
+
+Search over a customer's ingestion policies
+
+
+
+### 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 ingestion policies
+ api_response = api_instance.search_ingestion_policy_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_ingestion_policy_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedIngestionPolicyReadModel**](ResponseContainerPagedIngestionPolicyReadModel.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_ingestion_policy_for_facet**
+> ResponseContainerFacetResponse search_ingestion_policy_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's ingestion policies
+
+
+
+### 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 ingestion policies
+ api_response = api_instance.search_ingestion_policy_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_ingestion_policy_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_ingestion_policy_for_facets**
+> ResponseContainerFacetsResponseContainer search_ingestion_policy_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's ingestion policies
+
+
+
+### 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 ingestion policies
+ api_response = api_instance.search_ingestion_policy_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_ingestion_policy_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_maintenance_window_entities**
+> ResponseContainerPagedMaintenanceWindow search_maintenance_window_entities(body=body)
+
+Search over a customer's maintenance windows
+
+
+
+### 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 maintenance windows
+ api_response = api_instance.search_maintenance_window_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_maintenance_window_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedMaintenanceWindow**](ResponseContainerPagedMaintenanceWindow.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_maintenance_window_for_facet**
+> ResponseContainerFacetResponse search_maintenance_window_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's maintenance windows
+
+
+
+### 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 maintenance windows
+ api_response = api_instance.search_maintenance_window_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_maintenance_window_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_maintenance_window_for_facets**
+> ResponseContainerFacetsResponseContainer search_maintenance_window_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's maintenance windows
+
+
+
+### 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 maintenance windows
+ api_response = api_instance.search_maintenance_window_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_maintenance_window_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_monitored_application_entities**
+> ResponseContainerPagedMonitoredApplicationDTO search_monitored_application_entities(body=body)
+
+Search over all the customer's non-deleted monitored applications
+
+
+
+### 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 all the customer's non-deleted monitored applications
+ api_response = api_instance.search_monitored_application_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_monitored_application_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedMonitoredApplicationDTO**](ResponseContainerPagedMonitoredApplicationDTO.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_monitored_application_for_facet**
+> ResponseContainerFacetResponse search_monitored_application_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's non-deleted monitored application
+
+
+
+### 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 non-deleted monitored application
+ api_response = api_instance.search_monitored_application_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_monitored_application_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_monitored_application_for_facets**
+> ResponseContainerFacetsResponseContainer search_monitored_application_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's non-deleted monitored clusters
+
+
+
+### 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 non-deleted monitored clusters
+ api_response = api_instance.search_monitored_application_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_monitored_application_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_monitored_service_entities**
+> ResponseContainerPagedMonitoredServiceDTO search_monitored_service_entities(body=body)
+
+Search over all the customer's non-deleted monitored services
+
+
+
+### 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 all the customer's non-deleted monitored services
+ api_response = api_instance.search_monitored_service_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_monitored_service_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedMonitoredServiceDTO**](ResponseContainerPagedMonitoredServiceDTO.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_monitored_service_for_facet**
+> ResponseContainerFacetResponse search_monitored_service_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's non-deleted monitored application
+
+
+
+### 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 non-deleted monitored application
+ api_response = api_instance.search_monitored_service_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_monitored_service_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_monitored_service_for_facets**
+> ResponseContainerFacetsResponseContainer search_monitored_service_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's non-deleted monitored clusters
+
+
+
+### 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 non-deleted monitored clusters
+ api_response = api_instance.search_monitored_service_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_monitored_service_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_notficant_for_facets**
+> ResponseContainerFacetsResponseContainer search_notficant_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's notificants
+
+
+
+### 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 notificants
+ api_response = api_instance.search_notficant_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_notficant_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_notificant_entities**
+> ResponseContainerPagedNotificant search_notificant_entities(body=body)
+
+Search over a customer's notificants
+
+
+
+### 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 notificants
+ api_response = api_instance.search_notificant_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_notificant_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedNotificant**](ResponseContainerPagedNotificant.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_notificant_for_facet**
+> ResponseContainerFacetResponse search_notificant_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's notificants
+
+
+
+### 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 notificants
+ api_response = api_instance.search_notificant_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_notificant_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_proxy_deleted_entities**
+> ResponseContainerPagedProxy search_proxy_deleted_entities(body=body)
+
+Search over a customer's deleted proxies
+
+
+
+### 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 deleted proxies
+ api_response = api_instance.search_proxy_deleted_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_proxy_deleted_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedProxy**](ResponseContainerPagedProxy.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_proxy_deleted_for_facet**
+> ResponseContainerFacetResponse search_proxy_deleted_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's deleted proxies
+
+
+
+### 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 deleted proxies
+ api_response = api_instance.search_proxy_deleted_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_proxy_deleted_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_proxy_deleted_for_facets**
+> ResponseContainerFacetsResponseContainer search_proxy_deleted_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's deleted proxies
+
+
+
+### 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 deleted proxies
+ api_response = api_instance.search_proxy_deleted_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_proxy_deleted_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_proxy_entities**
+> ResponseContainerPagedProxy search_proxy_entities(body=body)
+
+Search over a customer's non-deleted proxies
+
+
+
+### 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 non-deleted proxies
+ api_response = api_instance.search_proxy_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_proxy_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedProxy**](ResponseContainerPagedProxy.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_proxy_for_facet**
+> ResponseContainerFacetResponse search_proxy_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's non-deleted proxies
+
+
+
+### 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 non-deleted proxies
+ api_response = api_instance.search_proxy_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_proxy_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_proxy_for_facets**
+> ResponseContainerFacetsResponseContainer search_proxy_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's non-deleted proxies
+
+
+
+### 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 non-deleted proxies
+ api_response = api_instance.search_proxy_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_proxy_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_registered_query_deleted_entities**
+> ResponseContainerPagedDerivedMetricDefinition search_registered_query_deleted_entities(body=body)
+
+Search over a customer's deleted derived metric definitions
+
+
+
+### 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 deleted derived metric definitions
+ api_response = api_instance.search_registered_query_deleted_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_registered_query_deleted_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedDerivedMetricDefinition**](ResponseContainerPagedDerivedMetricDefinition.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_registered_query_deleted_for_facet**
+> ResponseContainerFacetResponse search_registered_query_deleted_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's deleted derived metric definitions
+
+
+
+### 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 deleted derived metric definitions
+ api_response = api_instance.search_registered_query_deleted_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_registered_query_deleted_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_registered_query_deleted_for_facets**
+> ResponseContainerFacetsResponseContainer search_registered_query_deleted_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's deleted derived metric definitions
+
+
+
+### 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 deleted derived metric definitions
+ api_response = api_instance.search_registered_query_deleted_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_registered_query_deleted_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_registered_query_entities**
+> ResponseContainerPagedDerivedMetricDefinitionWithStats search_registered_query_entities(body=body)
+
+Search over a customer's non-deleted derived metric definitions
+
+
+
+### 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 non-deleted derived metric definitions
+ api_response = api_instance.search_registered_query_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_registered_query_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedDerivedMetricDefinitionWithStats**](ResponseContainerPagedDerivedMetricDefinitionWithStats.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_registered_query_for_facet**
+> ResponseContainerFacetResponse search_registered_query_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's non-deleted derived metric definitions
+
+
+
+### 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 non-deleted derived metric definitions
+ api_response = api_instance.search_registered_query_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_registered_query_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_registered_query_for_facets**
+> ResponseContainerFacetsResponseContainer search_registered_query_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's non-deleted derived metric definition
+
+
+
+### 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 non-deleted derived metric definition
+ api_response = api_instance.search_registered_query_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_registered_query_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_related_report_event_anomaly_entities**
+> ResponseContainerPagedReportEventAnomalyDTO search_related_report_event_anomaly_entities(event_id, body=body)
+
+List the related events and anomalies over a firing event
+
+
+
+### 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))
+event_id = 'event_id_example' # str |
+body = wavefront_api_client.EventSearchRequest() # EventSearchRequest | (optional)
+
+try:
+ # List the related events and anomalies over a firing event
+ api_response = api_instance.search_related_report_event_anomaly_entities(event_id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_related_report_event_anomaly_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **event_id** | **str**| |
+ **body** | [**EventSearchRequest**](EventSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedReportEventAnomalyDTO**](ResponseContainerPagedReportEventAnomalyDTO.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_related_report_event_entities**
+> ResponseContainerPagedRelatedEvent search_related_report_event_entities(event_id, body=body)
+
+List the related events over a firing event
+
+
+
+### 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))
+event_id = 'event_id_example' # str |
+body = wavefront_api_client.EventSearchRequest() # EventSearchRequest | (optional)
+
+try:
+ # List the related events over a firing event
+ api_response = api_instance.search_related_report_event_entities(event_id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_related_report_event_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **event_id** | **str**| |
+ **body** | [**EventSearchRequest**](EventSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedRelatedEvent**](ResponseContainerPagedRelatedEvent.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_report_event_entities**
+> ResponseContainerPagedEvent search_report_event_entities(body=body)
+
+Search over a customer's events
+
+
+
+### 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.EventSearchRequest() # EventSearchRequest | (optional)
+
+try:
+ # Search over a customer's events
+ api_response = api_instance.search_report_event_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_report_event_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**EventSearchRequest**](EventSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedEvent**](ResponseContainerPagedEvent.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_report_event_for_facet**
+> ResponseContainerFacetResponse search_report_event_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's events
+
+
+
+### 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 events
+ api_response = api_instance.search_report_event_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_report_event_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_report_event_for_facets**
+> ResponseContainerFacetsResponseContainer search_report_event_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's events
+
+
+
+### 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 events
+ api_response = api_instance.search_report_event_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_report_event_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_role_entities**
+> ResponseContainerPagedRoleDTO search_role_entities(body=body)
+
+Search over a customer's roles
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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 roles
+ api_response = api_instance.search_role_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_role_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedRoleDTO**](ResponseContainerPagedRoleDTO.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_role_for_facet**
+> ResponseContainerFacetResponse search_role_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's roles
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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 roles
+ api_response = api_instance.search_role_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_role_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_role_for_facets**
+> ResponseContainerFacetsResponseContainer search_role_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's roles
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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 roles
+ api_response = api_instance.search_role_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_role_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_saved_app_map_entities**
+> ResponseContainerPagedSavedAppMapSearch search_saved_app_map_entities(body=body)
+
+Search over all the customer's non-deleted saved app map searches
+
+
+
+### 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 all the customer's non-deleted saved app map searches
+ api_response = api_instance.search_saved_app_map_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_saved_app_map_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedSavedAppMapSearch**](ResponseContainerPagedSavedAppMapSearch.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_saved_app_map_for_facet**
+> ResponseContainerFacetResponse search_saved_app_map_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's non-deleted app map searches
+
+
+
+### 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 non-deleted app map searches
+ api_response = api_instance.search_saved_app_map_for_facet(facet, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_saved_app_map_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_saved_app_map_for_facets**
+> ResponseContainerFacetsResponseContainer search_saved_app_map_for_facets(body=body)
+
+Lists the values of one or more facets over the customer's non-deleted app map searches
+
+
+
+### 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 non-deleted app map searches
+ api_response = api_instance.search_saved_app_map_for_facets(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_saved_app_map_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_saved_traces_entities**
+> ResponseContainerPagedSavedTracesSearch search_saved_traces_entities(body=body)
+
+Search over all the customer's non-deleted saved traces searches
+
+
+
+### 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 all the customer's non-deleted saved traces searches
+ api_response = api_instance.search_saved_traces_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_saved_traces_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedSavedTracesSearch**](ResponseContainerPagedSavedTracesSearch.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_service_account_entities**
+> ResponseContainerPagedServiceAccount search_service_account_entities(body=body)
+
+Search over a customer's service 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.SearchApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
+
+try:
+ # Search over a customer's service accounts
+ api_response = api_instance.search_service_account_entities(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SearchApi->search_service_account_entities: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+
+### Return type
+
+[**ResponseContainerPagedServiceAccount**](ResponseContainerPagedServiceAccount.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 over a customer's notificants
+# **search_service_account_for_facet**
+> ResponseContainerFacetResponse search_service_account_for_facet(facet, body=body)
+
+Lists the values of a specific facet over the customer's service accounts
@@ -1446,25 +3797,27 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# 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)
+facet = 'facet_example' # str |
+body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Search over a customer's notificants
- api_response = api_instance.search_notificant_entities(body=body)
+ # Lists the values of a specific facet over the customer's service accounts
+ api_response = api_instance.search_service_account_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_notificant_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_service_account_for_facet: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+ **facet** | **str**| |
+ **body** | [**FacetSearchRequestContainer**](FacetSearchRequestContainer.md)| | [optional]
### Return type
-[**ResponseContainerPagedNotificant**](ResponseContainerPagedNotificant.md)
+[**ResponseContainerFacetResponse**](ResponseContainerFacetResponse.md)
### Authorization
@@ -1477,10 +3830,10 @@ 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_notificant_for_facet**
-> ResponseContainerFacetResponse search_notificant_for_facet(facet, body=body)
+# **search_service_account_for_facets**
+> ResponseContainerFacetsResponseContainer search_service_account_for_facets(body=body)
-Lists the values of a specific facet over the customer's notificants
+Lists the values of one or more facets over the customer's service accounts
@@ -1500,27 +3853,25 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# 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)
+body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's notificants
- api_response = api_instance.search_notificant_for_facet(facet, body=body)
+ # Lists the values of one or more facets over the customer's service accounts
+ api_response = api_instance.search_service_account_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_notificant_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_service_account_for_facets: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **facet** | **str**| |
- **body** | [**FacetSearchRequestContainer**](FacetSearchRequestContainer.md)| | [optional]
+ **body** | [**FacetsSearchRequestContainer**](FacetsSearchRequestContainer.md)| | [optional]
### Return type
-[**ResponseContainerFacetResponse**](ResponseContainerFacetResponse.md)
+[**ResponseContainerFacetsResponseContainer**](ResponseContainerFacetsResponseContainer.md)
### Authorization
@@ -1533,10 +3884,10 @@ 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_proxy_deleted_entities**
-> ResponseContainerPagedProxy search_proxy_deleted_entities(body=body)
+# **search_span_sampling_policy_deleted_entities**
+> ResponseContainerPagedSpanSamplingPolicy search_span_sampling_policy_deleted_entities(body=body)
-Search over a customer's deleted proxies
+Search over a customer's deleted span sampling policies
@@ -1559,11 +3910,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's deleted proxies
- api_response = api_instance.search_proxy_deleted_entities(body=body)
+ # Search over a customer's deleted span sampling policies
+ api_response = api_instance.search_span_sampling_policy_deleted_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_proxy_deleted_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_span_sampling_policy_deleted_entities: %s\n" % e)
```
### Parameters
@@ -1574,7 +3925,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedProxy**](ResponseContainerPagedProxy.md)
+[**ResponseContainerPagedSpanSamplingPolicy**](ResponseContainerPagedSpanSamplingPolicy.md)
### Authorization
@@ -1587,10 +3938,10 @@ 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_proxy_deleted_for_facet**
-> ResponseContainerFacetResponse search_proxy_deleted_for_facet(facet, body=body)
+# **search_span_sampling_policy_deleted_for_facet**
+> ResponseContainerFacetResponse search_span_sampling_policy_deleted_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's deleted proxies
+Lists the values of a specific facet over the customer's deleted span sampling policies
@@ -1614,11 +3965,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's deleted proxies
- api_response = api_instance.search_proxy_deleted_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's deleted span sampling policies
+ api_response = api_instance.search_span_sampling_policy_deleted_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_proxy_deleted_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_span_sampling_policy_deleted_for_facet: %s\n" % e)
```
### Parameters
@@ -1643,10 +3994,10 @@ 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_proxy_deleted_for_facets**
-> ResponseContainerFacetsResponseContainer search_proxy_deleted_for_facets(body=body)
+# **search_span_sampling_policy_deleted_for_facets**
+> ResponseContainerFacetsResponseContainer search_span_sampling_policy_deleted_for_facets(body=body)
-Lists the values of one or more facets over the customer's deleted proxies
+Lists the values of one or more facets over the customer's deleted span sampling policies
@@ -1669,11 +4020,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's deleted proxies
- api_response = api_instance.search_proxy_deleted_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's deleted span sampling policies
+ api_response = api_instance.search_span_sampling_policy_deleted_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_proxy_deleted_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_span_sampling_policy_deleted_for_facets: %s\n" % e)
```
### Parameters
@@ -1697,10 +4048,10 @@ 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_proxy_entities**
-> ResponseContainerPagedProxy search_proxy_entities(body=body)
+# **search_span_sampling_policy_entities**
+> ResponseContainerPagedSpanSamplingPolicy search_span_sampling_policy_entities(body=body)
-Search over a customer's non-deleted proxies
+Search over a customer's non-deleted span sampling policies
@@ -1723,11 +4074,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's non-deleted proxies
- api_response = api_instance.search_proxy_entities(body=body)
+ # Search over a customer's non-deleted span sampling policies
+ api_response = api_instance.search_span_sampling_policy_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_proxy_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_span_sampling_policy_entities: %s\n" % e)
```
### Parameters
@@ -1738,7 +4089,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedProxy**](ResponseContainerPagedProxy.md)
+[**ResponseContainerPagedSpanSamplingPolicy**](ResponseContainerPagedSpanSamplingPolicy.md)
### Authorization
@@ -1751,10 +4102,10 @@ 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_proxy_for_facet**
-> ResponseContainerFacetResponse search_proxy_for_facet(facet, body=body)
+# **search_span_sampling_policy_for_facet**
+> ResponseContainerFacetResponse search_span_sampling_policy_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's non-deleted proxies
+Lists the values of a specific facet over the customer's non-deleted span sampling policies
@@ -1778,11 +4129,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's non-deleted proxies
- api_response = api_instance.search_proxy_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's non-deleted span sampling policies
+ api_response = api_instance.search_span_sampling_policy_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_proxy_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_span_sampling_policy_for_facet: %s\n" % e)
```
### Parameters
@@ -1807,10 +4158,10 @@ 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_proxy_for_facets**
-> ResponseContainerFacetsResponseContainer search_proxy_for_facets(body=body)
+# **search_span_sampling_policy_for_facets**
+> ResponseContainerFacetsResponseContainer search_span_sampling_policy_for_facets(body=body)
-Lists the values of one or more facets over the customer's non-deleted proxies
+Lists the values of one or more facets over the customer's non-deleted span sampling policies
@@ -1833,11 +4184,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's non-deleted proxies
- api_response = api_instance.search_proxy_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's non-deleted span sampling policies
+ api_response = api_instance.search_span_sampling_policy_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_proxy_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_span_sampling_policy_for_facets: %s\n" % e)
```
### Parameters
@@ -1861,10 +4212,10 @@ 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_registered_query_deleted_entities**
-> ResponseContainerPagedDerivedMetricDefinition search_registered_query_deleted_entities(body=body)
+# **search_tagged_source_entities**
+> ResponseContainerPagedSource search_tagged_source_entities(body=body)
-Search over a customer's deleted derived metric definitions
+Search over a customer's sources
@@ -1884,25 +4235,25 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# 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)
+body = wavefront_api_client.SourceSearchRequestContainer() # SourceSearchRequestContainer | (optional)
try:
- # Search over a customer's deleted derived metric definitions
- api_response = api_instance.search_registered_query_deleted_entities(body=body)
+ # Search over a customer's sources
+ api_response = api_instance.search_tagged_source_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_registered_query_deleted_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_tagged_source_entities: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
+ **body** | [**SourceSearchRequestContainer**](SourceSearchRequestContainer.md)| | [optional]
### Return type
-[**ResponseContainerPagedDerivedMetricDefinition**](ResponseContainerPagedDerivedMetricDefinition.md)
+[**ResponseContainerPagedSource**](ResponseContainerPagedSource.md)
### Authorization
@@ -1915,10 +4266,10 @@ 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_registered_query_deleted_for_facet**
-> ResponseContainerFacetResponse search_registered_query_deleted_for_facet(facet, body=body)
+# **search_tagged_source_for_facet**
+> ResponseContainerFacetResponse search_tagged_source_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's deleted derived metric definitions
+Lists the values of a specific facet over the customer's sources
@@ -1942,11 +4293,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's deleted derived metric definitions
- api_response = api_instance.search_registered_query_deleted_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's sources
+ api_response = api_instance.search_tagged_source_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_registered_query_deleted_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_tagged_source_for_facet: %s\n" % e)
```
### Parameters
@@ -1971,10 +4322,10 @@ 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_registered_query_deleted_for_facets**
-> ResponseContainerFacetsResponseContainer search_registered_query_deleted_for_facets(body=body)
+# **search_tagged_source_for_facets**
+> ResponseContainerFacetsResponseContainer search_tagged_source_for_facets(body=body)
-Lists the values of one or more facets over the customer's deleted derived metric definitions
+Lists the values of one or more facets over the customer's sources
@@ -1997,11 +4348,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's deleted derived metric definitions
- api_response = api_instance.search_registered_query_deleted_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's sources
+ api_response = api_instance.search_tagged_source_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_registered_query_deleted_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_tagged_source_for_facets: %s\n" % e)
```
### Parameters
@@ -2025,10 +4376,10 @@ 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_registered_query_entities**
-> ResponseContainerPagedDerivedMetricDefinitionWithStats search_registered_query_entities(body=body)
+# **search_token_entities**
+> ResponseContainerPagedApiTokenModel search_token_entities(body=body)
-Search over a customer's non-deleted derived metric definitions
+Search over a customer's api tokens
@@ -2051,11 +4402,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's non-deleted derived metric definitions
- api_response = api_instance.search_registered_query_entities(body=body)
+ # 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_registered_query_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_token_entities: %s\n" % e)
```
### Parameters
@@ -2066,7 +4417,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedDerivedMetricDefinitionWithStats**](ResponseContainerPagedDerivedMetricDefinitionWithStats.md)
+[**ResponseContainerPagedApiTokenModel**](ResponseContainerPagedApiTokenModel.md)
### Authorization
@@ -2079,10 +4430,10 @@ 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_registered_query_for_facet**
-> ResponseContainerFacetResponse search_registered_query_for_facet(facet, body=body)
+# **search_token_for_facet**
+> ResponseContainerFacetResponse search_token_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's non-deleted derived metric definitions
+Lists the values of a specific facet over the customer's api tokens
@@ -2106,11 +4457,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's non-deleted derived metric definitions
- api_response = api_instance.search_registered_query_for_facet(facet, body=body)
+ # 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_registered_query_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_token_for_facet: %s\n" % e)
```
### Parameters
@@ -2135,10 +4486,10 @@ 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_registered_query_for_facets**
-> ResponseContainerFacetsResponseContainer search_registered_query_for_facets(body=body)
+# **search_token_for_facets**
+> ResponseContainerFacetsResponseContainer search_token_for_facets(body=body)
-Lists the values of one or more facets over the customer's non-deleted derived metric definition
+Lists the values of one or more facets over the customer's api tokens
@@ -2161,11 +4512,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's non-deleted derived metric definition
- api_response = api_instance.search_registered_query_for_facets(body=body)
+ # 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_registered_query_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_token_for_facets: %s\n" % e)
```
### Parameters
@@ -2189,64 +4540,10 @@ 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_report_event_entities**
-> ResponseContainerPagedEvent search_report_event_entities(body=body)
-
-Search over a customer's events
-
-
-
-### 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.EventSearchRequest() # EventSearchRequest | (optional)
-
-try:
- # Search over a customer's events
- api_response = api_instance.search_report_event_entities(body=body)
- pprint(api_response)
-except ApiException as e:
- print("Exception when calling SearchApi->search_report_event_entities: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**EventSearchRequest**](EventSearchRequest.md)| | [optional]
-
-### Return type
-
-[**ResponseContainerPagedEvent**](ResponseContainerPagedEvent.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_report_event_for_facet**
-> ResponseContainerFacetResponse search_report_event_for_facet(facet, body=body)
+# **search_traces_map_for_facet**
+> ResponseContainerFacetResponse search_traces_map_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's events
+Lists the values of a specific facet over the customer's non-deleted traces searches
@@ -2270,11 +4567,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's events
- api_response = api_instance.search_report_event_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's non-deleted traces searches
+ api_response = api_instance.search_traces_map_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_report_event_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_traces_map_for_facet: %s\n" % e)
```
### Parameters
@@ -2299,10 +4596,10 @@ 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_report_event_for_facets**
-> ResponseContainerFacetsResponseContainer search_report_event_for_facets(body=body)
+# **search_traces_map_for_facets**
+> ResponseContainerFacetsResponseContainer search_traces_map_for_facets(body=body)
-Lists the values of one or more facets over the customer's events
+Lists the values of one or more facets over the customer's non-deleted traces searches
@@ -2325,11 +4622,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's events
- api_response = api_instance.search_report_event_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's non-deleted traces searches
+ api_response = api_instance.search_traces_map_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_report_event_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_traces_map_for_facets: %s\n" % e)
```
### Parameters
@@ -2353,12 +4650,12 @@ 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_tagged_source_entities**
-> ResponseContainerPagedSource search_tagged_source_entities(body=body)
-
-Search over a customer's sources
+# **search_user_entities**
+> ResponseContainerPagedCustomerFacingUserObject search_user_entities(body=body)
+Search over a customer's users
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
### Example
```python
@@ -2376,25 +4673,25 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(configuration))
-body = wavefront_api_client.SourceSearchRequestContainer() # SourceSearchRequestContainer | (optional)
+body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's sources
- api_response = api_instance.search_tagged_source_entities(body=body)
+ # Search over a customer's users
+ api_response = api_instance.search_user_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_tagged_source_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_user_entities: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**SourceSearchRequestContainer**](SourceSearchRequestContainer.md)| | [optional]
+ **body** | [**SortableSearchRequest**](SortableSearchRequest.md)| | [optional]
### Return type
-[**ResponseContainerPagedSource**](ResponseContainerPagedSource.md)
+[**ResponseContainerPagedCustomerFacingUserObject**](ResponseContainerPagedCustomerFacingUserObject.md)
### Authorization
@@ -2407,12 +4704,12 @@ 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_tagged_source_for_facet**
-> ResponseContainerFacetResponse search_tagged_source_for_facet(facet, body=body)
-
-Lists the values of a specific facet over the customer's sources
+# **search_user_for_facet**
+> ResponseContainerFacetResponse search_user_for_facet(facet, body=body)
+Lists the values of a specific facet over the customer's users
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
### Example
```python
@@ -2434,11 +4731,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's sources
- api_response = api_instance.search_tagged_source_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's users
+ api_response = api_instance.search_user_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_tagged_source_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_user_for_facet: %s\n" % e)
```
### Parameters
@@ -2463,12 +4760,12 @@ 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_tagged_source_for_facets**
-> ResponseContainerFacetsResponseContainer search_tagged_source_for_facets(body=body)
-
-Lists the values of one or more facets over the customer's sources
+# **search_user_for_facets**
+> ResponseContainerFacetsResponseContainer search_user_for_facets(body=body)
+Lists the values of one or more facets over the customer's users
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
### Example
```python
@@ -2489,11 +4786,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's sources
- api_response = api_instance.search_tagged_source_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's users
+ api_response = api_instance.search_user_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_tagged_source_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_user_for_facets: %s\n" % e)
```
### Parameters
@@ -2517,10 +4814,10 @@ 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_user_entities**
-> ResponseContainerPagedCustomerFacingUserObject search_user_entities(body=body)
+# **search_user_group_entities**
+> ResponseContainerPagedUserGroupModel search_user_group_entities(body=body)
-Search over a customer's users
+Search over a customer's user groups
@@ -2543,11 +4840,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.SortableSearchRequest() # SortableSearchRequest | (optional)
try:
- # Search over a customer's users
- api_response = api_instance.search_user_entities(body=body)
+ # Search over a customer's user groups
+ api_response = api_instance.search_user_group_entities(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_user_entities: %s\n" % e)
+ print("Exception when calling SearchApi->search_user_group_entities: %s\n" % e)
```
### Parameters
@@ -2558,7 +4855,7 @@ Name | Type | Description | Notes
### Return type
-[**ResponseContainerPagedCustomerFacingUserObject**](ResponseContainerPagedCustomerFacingUserObject.md)
+[**ResponseContainerPagedUserGroupModel**](ResponseContainerPagedUserGroupModel.md)
### Authorization
@@ -2571,10 +4868,10 @@ 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_user_for_facet**
-> ResponseContainerFacetResponse search_user_for_facet(facet, body=body)
+# **search_user_group_for_facet**
+> ResponseContainerFacetResponse search_user_group_for_facet(facet, body=body)
-Lists the values of a specific facet over the customer's users
+Lists the values of a specific facet over the customer's user groups
@@ -2598,11 +4895,11 @@ facet = 'facet_example' # str |
body = wavefront_api_client.FacetSearchRequestContainer() # FacetSearchRequestContainer | (optional)
try:
- # Lists the values of a specific facet over the customer's users
- api_response = api_instance.search_user_for_facet(facet, body=body)
+ # Lists the values of a specific facet over the customer's user groups
+ api_response = api_instance.search_user_group_for_facet(facet, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_user_for_facet: %s\n" % e)
+ print("Exception when calling SearchApi->search_user_group_for_facet: %s\n" % e)
```
### Parameters
@@ -2627,10 +4924,10 @@ 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_user_for_facets**
-> ResponseContainerFacetsResponseContainer search_user_for_facets(body=body)
+# **search_user_group_for_facets**
+> ResponseContainerFacetsResponseContainer search_user_group_for_facets(body=body)
-Lists the values of one or more facets over the customer's users
+Lists the values of one or more facets over the customer's user groups
@@ -2653,11 +4950,11 @@ api_instance = wavefront_api_client.SearchApi(wavefront_api_client.ApiClient(con
body = wavefront_api_client.FacetsSearchRequestContainer() # FacetsSearchRequestContainer | (optional)
try:
- # Lists the values of one or more facets over the customer's users
- api_response = api_instance.search_user_for_facets(body=body)
+ # Lists the values of one or more facets over the customer's user groups
+ api_response = api_instance.search_user_group_for_facets(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling SearchApi->search_user_for_facets: %s\n" % e)
+ print("Exception when calling SearchApi->search_user_group_for_facets: %s\n" % e)
```
### Parameters
diff --git a/docs/SearchQuery.md b/docs/SearchQuery.md
index aa3c07f2..66b9a30a 100644
--- a/docs/SearchQuery.md
+++ b/docs/SearchQuery.md
@@ -3,9 +3,13 @@
## 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 |
-**value** | **str** | The entity facet value for which to search |
**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]
[[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/SecurityPolicyApi.md b/docs/SecurityPolicyApi.md
new file mode 100644
index 00000000..37b5d742
--- /dev/null
+++ b/docs/SecurityPolicyApi.md
@@ -0,0 +1,566 @@
+# wavefront_api_client.SecurityPolicyApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_metrics_policy**](SecurityPolicyApi.md#get_metrics_policy) | **GET** /api/v2/metricspolicy | Get the metrics policy
+[**get_metrics_policy_by_version**](SecurityPolicyApi.md#get_metrics_policy_by_version) | **GET** /api/v2/metricspolicy/history/{version} | Get a specific historical version of a metrics policy
+[**get_metrics_policy_history**](SecurityPolicyApi.md#get_metrics_policy_history) | **GET** /api/v2/metricspolicy/history | Get the version history of metrics policy
+[**get_security_policy**](SecurityPolicyApi.md#get_security_policy) | **GET** /api/v2/securitypolicy/{type} | Get the security policy
+[**get_security_policy_by_version**](SecurityPolicyApi.md#get_security_policy_by_version) | **GET** /api/v2/securitypolicy/{type}/history/{version} | Get a specific historical version of a security policy
+[**get_security_policy_history**](SecurityPolicyApi.md#get_security_policy_history) | **GET** /api/v2/securitypolicy/{type}/history | Get the version history of security policy
+[**revert_metrics_policy_by_version**](SecurityPolicyApi.md#revert_metrics_policy_by_version) | **POST** /api/v2/metricspolicy/revert/{version} | Revert to a specific historical version of a metrics policy
+[**revert_security_policy_by_version**](SecurityPolicyApi.md#revert_security_policy_by_version) | **POST** /api/v2/securitypolicy/{type}/revert/{version} | Revert to a specific historical version of a security policy
+[**update_metrics_policy**](SecurityPolicyApi.md#update_metrics_policy) | **PUT** /api/v2/metricspolicy | Update the metrics policy
+[**update_security_policy**](SecurityPolicyApi.md#update_security_policy) | **PUT** /api/v2/securitypolicy/{type} | Update the security policy
+
+
+# **get_metrics_policy**
+> ResponseContainerMetricsPolicyReadModel get_metrics_policy()
+
+Get the metrics policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+
+try:
+ # Get the metrics policy
+ api_response = api_instance.get_metrics_policy()
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->get_metrics_policy: %s\n" % e)
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**ResponseContainerMetricsPolicyReadModel**](ResponseContainerMetricsPolicyReadModel.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)
+
+# **get_metrics_policy_by_version**
+> ResponseContainerMetricsPolicyReadModel get_metrics_policy_by_version(version)
+
+Get a specific historical version of a metrics policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+version = 789 # int |
+
+try:
+ # Get a specific historical version of a metrics policy
+ api_response = api_instance.get_metrics_policy_by_version(version)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->get_metrics_policy_by_version: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **version** | **int**| |
+
+### Return type
+
+[**ResponseContainerMetricsPolicyReadModel**](ResponseContainerMetricsPolicyReadModel.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)
+
+# **get_metrics_policy_history**
+> ResponseContainerHistoryResponse get_metrics_policy_history(offset=offset, limit=limit)
+
+Get the version history of metrics policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get the version history of metrics policy
+ api_response = api_instance.get_metrics_policy_history(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->get_metrics_policy_history: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerHistoryResponse**](ResponseContainerHistoryResponse.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)
+
+# **get_security_policy**
+> ResponseContainerMetricsPolicyReadModel get_security_policy(type)
+
+Get the security policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+type = 'type_example' # str |
+
+try:
+ # Get the security policy
+ api_response = api_instance.get_security_policy(type)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->get_security_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **type** | **str**| |
+
+### Return type
+
+[**ResponseContainerMetricsPolicyReadModel**](ResponseContainerMetricsPolicyReadModel.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)
+
+# **get_security_policy_by_version**
+> ResponseContainerMetricsPolicyReadModel get_security_policy_by_version(type, version)
+
+Get a specific historical version of a security policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+type = 'type_example' # str |
+version = 789 # int |
+
+try:
+ # Get a specific historical version of a security policy
+ api_response = api_instance.get_security_policy_by_version(type, version)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->get_security_policy_by_version: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **type** | **str**| |
+ **version** | **int**| |
+
+### Return type
+
+[**ResponseContainerMetricsPolicyReadModel**](ResponseContainerMetricsPolicyReadModel.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)
+
+# **get_security_policy_history**
+> ResponseContainerHistoryResponse get_security_policy_history(type, offset=offset, limit=limit)
+
+Get the version history of security policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+type = 'type_example' # str |
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get the version history of security policy
+ api_response = api_instance.get_security_policy_history(type, offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->get_security_policy_history: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **type** | **str**| |
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerHistoryResponse**](ResponseContainerHistoryResponse.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)
+
+# **revert_metrics_policy_by_version**
+> ResponseContainerMetricsPolicyReadModel revert_metrics_policy_by_version(version)
+
+Revert to a specific historical version of a metrics policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+version = 789 # int |
+
+try:
+ # Revert to a specific historical version of a metrics policy
+ api_response = api_instance.revert_metrics_policy_by_version(version)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->revert_metrics_policy_by_version: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **version** | **int**| |
+
+### Return type
+
+[**ResponseContainerMetricsPolicyReadModel**](ResponseContainerMetricsPolicyReadModel.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)
+
+# **revert_security_policy_by_version**
+> ResponseContainerMetricsPolicyReadModel revert_security_policy_by_version(type, version)
+
+Revert to a specific historical version of a security policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+type = 'type_example' # str |
+version = 789 # int |
+
+try:
+ # Revert to a specific historical version of a security policy
+ api_response = api_instance.revert_security_policy_by_version(type, version)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->revert_security_policy_by_version: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **type** | **str**| |
+ **version** | **int**| |
+
+### Return type
+
+[**ResponseContainerMetricsPolicyReadModel**](ResponseContainerMetricsPolicyReadModel.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)
+
+# **update_metrics_policy**
+> ResponseContainerMetricsPolicyReadModel update_metrics_policy(body=body)
+
+Update the metrics policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.MetricsPolicyWriteModel() # MetricsPolicyWriteModel | Example Body: { \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] } (optional)
+
+try:
+ # Update the metrics policy
+ api_response = api_instance.update_metrics_policy(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->update_metrics_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**MetricsPolicyWriteModel**](MetricsPolicyWriteModel.md)| Example Body: <pre>{ \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerMetricsPolicyReadModel**](ResponseContainerMetricsPolicyReadModel.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)
+
+# **update_security_policy**
+> ResponseContainerMetricsPolicyReadModel update_security_policy(type, body=body)
+
+Update the security policy
+
+
+
+### 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.SecurityPolicyApi(wavefront_api_client.ApiClient(configuration))
+type = 'type_example' # str |
+body = wavefront_api_client.MetricsPolicyWriteModel() # MetricsPolicyWriteModel | Example Body: { \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] } (optional)
+
+try:
+ # Update the security policy
+ api_response = api_instance.update_security_policy(type, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SecurityPolicyApi->update_security_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **type** | **str**| |
+ **body** | [**MetricsPolicyWriteModel**](MetricsPolicyWriteModel.md)| Example Body: <pre>{ \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerMetricsPolicyReadModel**](ResponseContainerMetricsPolicyReadModel.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)
+
diff --git a/docs/ServiceAccount.md b/docs/ServiceAccount.md
new file mode 100644
index 00000000..830bc16f
--- /dev/null
+++ b/docs/ServiceAccount.md
@@ -0,0 +1,19 @@
+# ServiceAccount
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**active** | **bool** | The state of the service account. |
+**description** | **str** | The description of the service account. | [optional]
+**groups** | **list[str]** | The list of service account's permissions. | [optional]
+**identifier** | **str** | The unique identifier of a service account. |
+**last_used** | **int** | The last time when a token of the service account was used. | [optional]
+**roles** | [**list[RoleDTO]**](RoleDTO.md) | The list of service account's roles. | [optional]
+**tokens** | [**list[UserApiToken]**](UserApiToken.md) | The service account's API tokens. | [optional]
+**united_permissions** | **list[str]** | The list of account's permissions assigned directly or through united roles assigned to it | [optional]
+**united_roles** | **list[str]** | The list of account's roles assigned directly or through user groups assigned to it | [optional]
+**user_groups** | [**list[UserGroup]**](UserGroup.md) | The list of service account's user groups. | [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/ServiceAccountWrite.md b/docs/ServiceAccountWrite.md
new file mode 100644
index 00000000..ba5598c3
--- /dev/null
+++ b/docs/ServiceAccountWrite.md
@@ -0,0 +1,16 @@
+# ServiceAccountWrite
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**active** | **bool** | The current state of the service account. | [optional]
+**description** | **str** | The description of the service account to be created. | [optional]
+**groups** | **list[str]** | The list of permissions, the service account will be granted. | [optional]
+**identifier** | **str** | The unique identifier for a service account. |
+**roles** | **list[str]** | The list of role ids, the service account will be added to.\" | [optional]
+**tokens** | **list[str]** | The service account's API tokens. | [optional]
+**user_groups** | **list[str]** | The list of user group ids, the service account will be added to. | [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/Setup.md b/docs/Setup.md
new file mode 100644
index 00000000..18f73c5f
--- /dev/null
+++ b/docs/Setup.md
@@ -0,0 +1,13 @@
+# Setup
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **str** | Setup description |
+**file_path** | **str** | Relative file path to the setup.md file |
+**title** | **str** | Setup title | [optional]
+**type** | **str** | Setup Type |
+
+[[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/SnowflakeConfiguration.md b/docs/SnowflakeConfiguration.md
new file mode 100644
index 00000000..6b7d4bb5
--- /dev/null
+++ b/docs/SnowflakeConfiguration.md
@@ -0,0 +1,16 @@
+# SnowflakeConfiguration
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**account_id** | **str** | Snowflake AccountID |
+**metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [optional]
+**password** | **str** | Snowflake Password | [optional]
+**private_key** | **str** | Snowflake Private Key |
+**role** | **str** | Role to be used while querying snowflake database | [optional]
+**user_name** | **str** | Snowflake Username |
+**warehouse** | **str** | Warehouse to be used while querying snowflake database | [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/SortableSearchRequest.md b/docs/SortableSearchRequest.md
index 8d7a49aa..28ea1b4e 100644
--- a/docs/SortableSearchRequest.md
+++ b/docs/SortableSearchRequest.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**limit** | **int** | The number of results to return. Default: 100 | [optional]
+**limit** | **int** | The number of results to return. Default: 100, Maximum allowed: 1000 | [optional]
**offset** | **int** | The number of results to skip before returning values. Default: 0 | [optional]
**query** | [**list[SearchQuery]**](SearchQuery.md) | A list of queries by which to limit the search results. Entities that match ALL queries in the list are returned | [optional]
**sort** | [**Sorting**](Sorting.md) | | [optional]
diff --git a/docs/Sorting.md b/docs/Sorting.md
index f0c64d73..447bb51a 100644
--- a/docs/Sorting.md
+++ b/docs/Sorting.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ascending** | **bool** | Whether to sort ascending. If undefined, sorting is not guaranteed |
-**field** | **str** | The facet by which to sort |
**default** | **bool** | Whether this sort requests the default ranking order. Ascending/descending does not matter if this attribute is true. | [optional]
+**field** | **str** | The facet by which to sort |
[[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/Source.md b/docs/Source.md
index afd45a48..92ac653d 100644
--- a/docs/Source.md
+++ b/docs/Source.md
@@ -3,16 +3,16 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **str** | id of this source, must be exactly equivalent to 'sourceName' |
+**created_epoch_millis** | **int** | | [optional]
+**creator_id** | **str** | | [optional]
+**description** | **str** | Description of this source | [optional]
**hidden** | **bool** | A derived field denoting whether this source has been hidden (e.g. excluding it from query autocomplete among other things) | [optional]
+**id** | **str** | id of this source, must be exactly equivalent to 'sourceName' |
+**marked_new_epoch_millis** | **int** | Epoch Millis when this source was marked as ~status.new | [optional]
+**source_name** | **str** | The name of the source, usually set by ingested telemetry |
**tags** | **dict(str, bool)** | A Map (String -> boolean) Representing the source tags associated with this source. To create a tag, set it as a KEY in this map, with associated value equal to true | [optional]
-**description** | **str** | Description of this source | [optional]
-**creator_id** | **str** | | [optional]
-**created_epoch_millis** | **int** | | [optional]
**updated_epoch_millis** | **int** | | [optional]
**updater_id** | **str** | | [optional]
-**marked_new_epoch_millis** | **int** | Epoch Millis when this source was marked as ~status.new | [optional]
-**source_name** | **str** | The name of the source, usually set by ingested telemetry |
[[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/SourceApi.md b/docs/SourceApi.md
index 271162f7..2c8d42a0 100644
--- a/docs/SourceApi.md
+++ b/docs/SourceApi.md
@@ -1,6 +1,6 @@
# wavefront_api_client.SourceApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -205,7 +205,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.SourceApi(wavefront_api_client.ApiClient(configuration))
cursor = 'cursor_example' # str | (optional)
-limit = 100 # int | (optional) (default to 100)
+limit = 100 # int | max limit: 1000 (optional) (default to 100)
try:
# Get all sources for a customer
@@ -220,7 +220,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**cursor** | **str**| | [optional]
- **limit** | **int**| | [optional] [default to 100]
+ **limit** | **int**| max limit: 1000 | [optional] [default to 100]
### Return type
diff --git a/docs/SourceLabelPair.md b/docs/SourceLabelPair.md
index 8ba5c55b..14c7e8e6 100644
--- a/docs/SourceLabelPair.md
+++ b/docs/SourceLabelPair.md
@@ -3,11 +3,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**firing** | **int** | | [optional]
**host** | **str** | Source (or host). \"Source\" and \"host\" are synonyms in current versions of wavefront, but the host terminology is deprecated | [optional]
-**tags** | **dict(str, str)** | | [optional]
**label** | **str** | | [optional]
-**firing** | **int** | | [optional]
**observed** | **int** | | [optional]
+**severity** | **str** | | [optional]
+**start_time** | **int** | Start time of this failing HLP, in epoch millis. | [optional]
+**tags** | **dict(str, str)** | | [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/SourceSearchRequestContainer.md b/docs/SourceSearchRequestContainer.md
index 882e27a7..2e880a2d 100644
--- a/docs/SourceSearchRequestContainer.md
+++ b/docs/SourceSearchRequestContainer.md
@@ -4,7 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cursor** | **str** | The id (exclusive) from which search results resume returning. Users should supply an entity 'id' to this property. Its main purpose is to resume where a previous search left off because of the 'limit' parameter. If a user supplies the last id in a set of results to cursor, while keeping the query the same, the system will return the next page of results | [optional]
-**limit** | **int** | | [optional]
+**include_obsolete** | **bool** | Whether to fetch obsolete sources. Default: false | [optional]
+**limit** | **int** | The number of results to return. Default: 100 | [optional]
**query** | [**list[SearchQuery]**](SearchQuery.md) | A list of queries by which to limit the search results | [optional]
**sort_sources_ascending** | **bool** | Whether to sort source results ascending lexigraphically by id/sourceName. Default: true | [optional]
diff --git a/docs/Span.md b/docs/Span.md
new file mode 100644
index 00000000..d90d95d8
--- /dev/null
+++ b/docs/Span.md
@@ -0,0 +1,16 @@
+# Span
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotations** | **list[dict(str, str)]** | Annotations (key-value pairs) of this span | [optional]
+**duration_ms** | **int** | Span duration (in milliseconds) | [optional]
+**host** | **str** | Source/Host of this span | [optional]
+**name** | **str** | Span name | [optional]
+**span_id** | **str** | Span ID | [optional]
+**start_ms** | **int** | Span start time (in milliseconds) | [optional]
+**trace_id** | **str** | Trace ID | [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/SpanSamplingPolicy.md b/docs/SpanSamplingPolicy.md
new file mode 100644
index 00000000..c5bc8802
--- /dev/null
+++ b/docs/SpanSamplingPolicy.md
@@ -0,0 +1,20 @@
+# SpanSamplingPolicy
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**active** | **bool** | Whether span sampling policy is active | [optional]
+**created_epoch_millis** | **int** | Created time of the span sampling policy | [optional]
+**creator_id** | **str** | Creator user of the span sampling policy | [optional]
+**deleted** | **bool** | Whether span sampling policy is soft-deleted, can be modified with delete/undelete api | [optional]
+**description** | **str** | Span sampling policy description | [optional]
+**expression** | **str** | Span sampling policy expression |
+**id** | **str** | Unique identifier of the span sampling policy |
+**name** | **str** | Span sampling policy name |
+**sampling_percent** | **int** | Sampling percent of policy, 100 means keeping all the spans that matches the policy | [optional]
+**updated_epoch_millis** | **int** | Last updated time of the span sampling policy | [optional]
+**updater_id** | **str** | Updater user of the span sampling policy | [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/SpanSamplingPolicyApi.md b/docs/SpanSamplingPolicyApi.md
new file mode 100644
index 00000000..0d2be76b
--- /dev/null
+++ b/docs/SpanSamplingPolicyApi.md
@@ -0,0 +1,515 @@
+# wavefront_api_client.SpanSamplingPolicyApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_span_sampling_policy**](SpanSamplingPolicyApi.md#create_span_sampling_policy) | **POST** /api/v2/spansamplingpolicy | Create a span sampling policy
+[**delete_span_sampling_policy**](SpanSamplingPolicyApi.md#delete_span_sampling_policy) | **DELETE** /api/v2/spansamplingpolicy/{id} | Delete a specific span sampling policy
+[**get_all_deleted_span_sampling_policy**](SpanSamplingPolicyApi.md#get_all_deleted_span_sampling_policy) | **GET** /api/v2/spansamplingpolicy/deleted | Get all deleted sampling policies for a customer
+[**get_all_span_sampling_policy**](SpanSamplingPolicyApi.md#get_all_span_sampling_policy) | **GET** /api/v2/spansamplingpolicy | Get all sampling policies for a customer
+[**get_span_sampling_policy**](SpanSamplingPolicyApi.md#get_span_sampling_policy) | **GET** /api/v2/spansamplingpolicy/{id} | Get a specific span sampling policy
+[**get_span_sampling_policy_history**](SpanSamplingPolicyApi.md#get_span_sampling_policy_history) | **GET** /api/v2/spansamplingpolicy/{id}/history | Get the version history of a specific sampling policy
+[**get_span_sampling_policy_version**](SpanSamplingPolicyApi.md#get_span_sampling_policy_version) | **GET** /api/v2/spansamplingpolicy/{id}/history/{version} | Get a specific historical version of a specific sampling policy
+[**undelete_span_sampling_policy**](SpanSamplingPolicyApi.md#undelete_span_sampling_policy) | **POST** /api/v2/spansamplingpolicy/{id}/undelete | Restore a deleted span sampling policy
+[**update_span_sampling_policy**](SpanSamplingPolicyApi.md#update_span_sampling_policy) | **PUT** /api/v2/spansamplingpolicy/{id} | Update a specific span sampling policy
+
+
+# **create_span_sampling_policy**
+> ResponseContainerSpanSamplingPolicy create_span_sampling_policy(body=body)
+
+Create a span sampling policy
+
+
+
+### 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.SpanSamplingPolicyApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.SpanSamplingPolicy() # SpanSamplingPolicy | Example Body: { \"name\": \"Test\", \"id\": \"test\", \"active\": false, \"expression\": \"{{sourceName}}='localhost'\", \"description\": \"test description\", \"samplingPercent\": 100 } (optional)
+
+try:
+ # Create a span sampling policy
+ api_response = api_instance.create_span_sampling_policy(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SpanSamplingPolicyApi->create_span_sampling_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SpanSamplingPolicy**](SpanSamplingPolicy.md)| Example Body: <pre>{ \"name\": \"Test\", \"id\": \"test\", \"active\": false, \"expression\": \"{{sourceName}}='localhost'\", \"description\": \"test description\", \"samplingPercent\": 100 }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSpanSamplingPolicy**](ResponseContainerSpanSamplingPolicy.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_span_sampling_policy**
+> ResponseContainerSpanSamplingPolicy delete_span_sampling_policy(id)
+
+Delete a specific span sampling policy
+
+
+
+### 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.SpanSamplingPolicyApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Delete a specific span sampling policy
+ api_response = api_instance.delete_span_sampling_policy(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SpanSamplingPolicyApi->delete_span_sampling_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSpanSamplingPolicy**](ResponseContainerSpanSamplingPolicy.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_all_deleted_span_sampling_policy**
+> ResponseContainerPagedSpanSamplingPolicy get_all_deleted_span_sampling_policy(offset=offset, limit=limit)
+
+Get all deleted sampling policies 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.SpanSamplingPolicyApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all deleted sampling policies for a customer
+ api_response = api_instance.get_all_deleted_span_sampling_policy(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SpanSamplingPolicyApi->get_all_deleted_span_sampling_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSpanSamplingPolicy**](ResponseContainerPagedSpanSamplingPolicy.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_all_span_sampling_policy**
+> ResponseContainerPagedSpanSamplingPolicy get_all_span_sampling_policy(offset=offset, limit=limit)
+
+Get all sampling policies 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.SpanSamplingPolicyApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all sampling policies for a customer
+ api_response = api_instance.get_all_span_sampling_policy(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SpanSamplingPolicyApi->get_all_span_sampling_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedSpanSamplingPolicy**](ResponseContainerPagedSpanSamplingPolicy.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_span_sampling_policy**
+> ResponseContainerSpanSamplingPolicy get_span_sampling_policy(id)
+
+Get a specific span sampling policy
+
+
+
+### 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.SpanSamplingPolicyApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Get a specific span sampling policy
+ api_response = api_instance.get_span_sampling_policy(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SpanSamplingPolicyApi->get_span_sampling_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSpanSamplingPolicy**](ResponseContainerSpanSamplingPolicy.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_span_sampling_policy_history**
+> ResponseContainerHistoryResponse get_span_sampling_policy_history(id, offset=offset, limit=limit)
+
+Get the version history of a specific sampling policy
+
+
+
+### 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.SpanSamplingPolicyApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get the version history of a specific sampling policy
+ api_response = api_instance.get_span_sampling_policy_history(id, offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SpanSamplingPolicyApi->get_span_sampling_policy_history: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerHistoryResponse**](ResponseContainerHistoryResponse.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_span_sampling_policy_version**
+> ResponseContainerSpanSamplingPolicy get_span_sampling_policy_version(id, version)
+
+Get a specific historical version of a specific sampling policy
+
+
+
+### 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.SpanSamplingPolicyApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+version = 789 # int |
+
+try:
+ # Get a specific historical version of a specific sampling policy
+ api_response = api_instance.get_span_sampling_policy_version(id, version)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SpanSamplingPolicyApi->get_span_sampling_policy_version: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **version** | **int**| |
+
+### Return type
+
+[**ResponseContainerSpanSamplingPolicy**](ResponseContainerSpanSamplingPolicy.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)
+
+# **undelete_span_sampling_policy**
+> ResponseContainerSpanSamplingPolicy undelete_span_sampling_policy(id)
+
+Restore a deleted span sampling policy
+
+
+
+### 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.SpanSamplingPolicyApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Restore a deleted span sampling policy
+ api_response = api_instance.undelete_span_sampling_policy(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SpanSamplingPolicyApi->undelete_span_sampling_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerSpanSamplingPolicy**](ResponseContainerSpanSamplingPolicy.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)
+
+# **update_span_sampling_policy**
+> ResponseContainerSpanSamplingPolicy update_span_sampling_policy(id, body=body)
+
+Update a specific span sampling policy
+
+
+
+### 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.SpanSamplingPolicyApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+body = wavefront_api_client.SpanSamplingPolicy() # SpanSamplingPolicy | Example Body: { \"name\": \"Test\", \"id\": \"test\", \"active\": false, \"expression\": \"{{sourceName}}='localhost'\", \"description\": \"test description\", \"samplingPercent\": 100 } (optional)
+
+try:
+ # Update a specific span sampling policy
+ api_response = api_instance.update_span_sampling_policy(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SpanSamplingPolicyApi->update_span_sampling_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**SpanSamplingPolicy**](SpanSamplingPolicy.md)| Example Body: <pre>{ \"name\": \"Test\", \"id\": \"test\", \"active\": false, \"expression\": \"{{sourceName}}='localhost'\", \"description\": \"test description\", \"samplingPercent\": 100 }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerSpanSamplingPolicy**](ResponseContainerSpanSamplingPolicy.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)
+
diff --git a/docs/SpecificData.md b/docs/SpecificData.md
new file mode 100644
index 00000000..8c2eace0
--- /dev/null
+++ b/docs/SpecificData.md
@@ -0,0 +1,13 @@
+# SpecificData
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**class_loader** | [**ClassLoader**](ClassLoader.md) | | [optional]
+**conversions** | [**list[ConversionObject]**](ConversionObject.md) | | [optional]
+**fast_reader_builder** | [**FastReaderBuilder**](FastReaderBuilder.md) | | [optional]
+**fast_reader_enabled** | **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/StatsModel.md b/docs/StatsModelInternalUse.md
similarity index 78%
rename from docs/StatsModel.md
rename to docs/StatsModelInternalUse.md
index 61e51af3..1cfdde1f 100644
--- a/docs/StatsModel.md
+++ b/docs/StatsModelInternalUse.md
@@ -1,23 +1,27 @@
-# StatsModel
+# StatsModelInternalUse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**keys** | **int** | | [optional]
-**points** | **int** | | [optional]
-**summaries** | **int** | | [optional]
-**queries** | **int** | | [optional]
**buffer_keys** | **int** | | [optional]
+**cached_compacted_points** | **int** | | [optional]
**compacted_keys** | **int** | | [optional]
-**skipped_compacted_keys** | **int** | | [optional]
**compacted_points** | **int** | | [optional]
-**cached_compacted_keys** | **int** | | [optional]
-**latency** | **int** | | [optional]
-**s3_keys** | **int** | | [optional]
**cpu_ns** | **int** | | [optional]
-**metrics_used** | **int** | | [optional]
+**distributions** | **int** | | [optional]
+**edges** | **int** | | [optional]
**hosts_used** | **int** | | [optional]
+**keys** | **int** | | [optional]
+**latency** | **int** | | [optional]
+**metrics** | **int** | | [optional]
+**metrics_used** | **int** | | [optional]
+**points** | **int** | | [optional]
+**queries** | **int** | | [optional]
**query_tasks** | **int** | | [optional]
+**s3_keys** | **int** | | [optional]
+**skipped_compacted_keys** | **int** | | [optional]
+**spans** | **int** | | [optional]
+**summaries** | **int** | | [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/Stripe.md b/docs/Stripe.md
new file mode 100644
index 00000000..b6991c4f
--- /dev/null
+++ b/docs/Stripe.md
@@ -0,0 +1,13 @@
+# Stripe
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**end_ms** | **int** | endMs for this stripe |
+**image_link** | **str** | image link for this stripe |
+**model** | **str** | model for this stripe |
+**start_ms** | **int** | startMs for this stripe |
+
+[[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/TagsResponse.md b/docs/TagsResponse.md
index bd0e0d26..11ba33ce 100644
--- a/docs/TagsResponse.md
+++ b/docs/TagsResponse.md
@@ -3,13 +3,13 @@
## 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[str]** | List of requested items | [optional]
-**offset** | **int** | | [optional]
**limit** | **int** | | [optional]
-**cursor** | **str** | The id at which the current (limited) search can be continued to obtain more matching items | [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]
**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/TargetInfo.md b/docs/TargetInfo.md
index 3c13dcf4..40a795e2 100644
--- a/docs/TargetInfo.md
+++ b/docs/TargetInfo.md
@@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**method** | **str** | Notification method of the alert target | [optional]
**id** | **str** | ID of the alert target | [optional]
+**method** | **str** | Notification method of the alert target | [optional]
**name** | **str** | Name of the alert target | [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/Timeseries.md b/docs/Timeseries.md
index 96c26ba3..33d9569f 100644
--- a/docs/Timeseries.md
+++ b/docs/Timeseries.md
@@ -3,10 +3,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**label** | **str** | Label of this timeseries | [optional]
+**data** | **list[list[float]]** | Data returned by this time series. This is returned as a list of points, where each point is represented as a two-element list with 1st element being the timestamp in epoch SECONDS and the 2nd element being the numeric value of the series at the timestamp | [optional]
**host** | **str** | Source/Host of this timeseries | [optional]
+**label** | **str** | Label of this timeseries | [optional]
**tags** | **dict(str, str)** | Tags (key-value annotations) of this timeseries | [optional]
-**data** | **list[list[float]]** | Data returned by this time series. This is returned as a list of points, where each point is represented as a two-element list with 1st element being the timestamp in epoch SECONDS and the 2nd element being the numeric value of the series at the timestamp | [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/Trace.md b/docs/Trace.md
new file mode 100644
index 00000000..83f0ab97
--- /dev/null
+++ b/docs/Trace.md
@@ -0,0 +1,14 @@
+# Trace
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**end_ms** | **int** | Trace end time (in milliseconds) | [optional]
+**spans** | [**list[Span]**](Span.md) | Spans associated with this trace | [optional]
+**start_ms** | **int** | Trace start time (in milliseconds) | [optional]
+**total_duration_ms** | **int** | Trace total duration (in milliseconds) | [optional]
+**trace_id** | **str** | Trace ID | [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/TriageDashboard.md b/docs/TriageDashboard.md
new file mode 100644
index 00000000..075cbde9
--- /dev/null
+++ b/docs/TriageDashboard.md
@@ -0,0 +1,12 @@
+# TriageDashboard
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dashboard_id** | **str** | | [optional]
+**description** | **str** | | [optional]
+**parameters** | **dict(str, str)** | | [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/TupleResult.md b/docs/TupleResult.md
new file mode 100644
index 00000000..3763298e
--- /dev/null
+++ b/docs/TupleResult.md
@@ -0,0 +1,11 @@
+# TupleResult
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**key** | **list[str]** | The keys used to surface the dimensions. | [optional]
+**value_list** | [**list[TupleValueResult]**](TupleValueResult.md) | All the possible value combination satisfying the provided keys and their respective counts from the query keys. | [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/TupleValueResult.md b/docs/TupleValueResult.md
new file mode 100644
index 00000000..43d7dece
--- /dev/null
+++ b/docs/TupleValueResult.md
@@ -0,0 +1,11 @@
+# TupleValueResult
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**count** | **int** | The count of the values appearing in the query keys. | [optional]
+**value** | **list[str]** | The possible values for a given key list. | [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/UsageApi.md b/docs/UsageApi.md
new file mode 100644
index 00000000..4b5c2161
--- /dev/null
+++ b/docs/UsageApi.md
@@ -0,0 +1,516 @@
+# wavefront_api_client.UsageApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_ingestion_policy**](UsageApi.md#create_ingestion_policy) | **POST** /api/v2/usage/ingestionpolicy | Create a specific ingestion policy
+[**delete_ingestion_policy**](UsageApi.md#delete_ingestion_policy) | **DELETE** /api/v2/usage/ingestionpolicy/{id} | Delete a specific ingestion policy
+[**export_csv**](UsageApi.md#export_csv) | **GET** /api/v2/usage/exportcsv | Export a CSV report
+[**get_all_ingestion_policies**](UsageApi.md#get_all_ingestion_policies) | **GET** /api/v2/usage/ingestionpolicy | Get all ingestion policies for a customer
+[**get_ingestion_policy**](UsageApi.md#get_ingestion_policy) | **GET** /api/v2/usage/ingestionpolicy/{id} | Get a specific ingestion policy
+[**get_ingestion_policy_by_version**](UsageApi.md#get_ingestion_policy_by_version) | **GET** /api/v2/usage/ingestionpolicy/{id}/history/{version} | Get a specific historical version of a ingestion policy
+[**get_ingestion_policy_history**](UsageApi.md#get_ingestion_policy_history) | **GET** /api/v2/usage/ingestionpolicy/{id}/history | Get the version history of ingestion policy
+[**revert_ingestion_policy_by_version**](UsageApi.md#revert_ingestion_policy_by_version) | **POST** /api/v2/usage/ingestionpolicy/{id}/revert/{version} | Revert to a specific historical version of a ingestion policy
+[**update_ingestion_policy**](UsageApi.md#update_ingestion_policy) | **PUT** /api/v2/usage/ingestionpolicy/{id} | Update a specific ingestion policy
+
+
+# **create_ingestion_policy**
+> ResponseContainerIngestionPolicyReadModel create_ingestion_policy(body=body)
+
+Create a specific ingestion policy
+
+
+
+### 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.UsageApi(wavefront_api_client.ApiClient(configuration))
+body = wavefront_api_client.IngestionPolicyWriteModel() # IngestionPolicyWriteModel | Example Body: { \"name\": \"Ingestion policy name\", \"description\": \"Ingestion policy description\", \"scope\": \"GROUP\", \"groups\": [\"g1\",\"g2\"], \"isLimited\": \"true\", \"limitPPS\": \"1000\", \"alert\": { \"name\": \"Alert Name\", \"targets\": { \"severe\": \"user1@mail.com\" }, \"conditionPercentages\": { \"info\": 70, \"warn\": 90 }, \"minutes\": 5, \"resolveAfterMinutes\": 2, \"evaluateRealtimeData\": false, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] }, \"conditionsThresholdOperator\": \">\" } } (optional)
+
+try:
+ # Create a specific ingestion policy
+ api_response = api_instance.create_ingestion_policy(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UsageApi->create_ingestion_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**IngestionPolicyWriteModel**](IngestionPolicyWriteModel.md)| Example Body: <pre>{ \"name\": \"Ingestion policy name\", \"description\": \"Ingestion policy description\", \"scope\": \"GROUP\", \"groups\": [\"g1\",\"g2\"], \"isLimited\": \"true\", \"limitPPS\": \"1000\", \"alert\": { \"name\": \"Alert Name\", \"targets\": { \"severe\": \"user1@mail.com\" }, \"conditionPercentages\": { \"info\": 70, \"warn\": 90 }, \"minutes\": 5, \"resolveAfterMinutes\": 2, \"evaluateRealtimeData\": false, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] }, \"conditionsThresholdOperator\": \">\" } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerIngestionPolicyReadModel**](ResponseContainerIngestionPolicyReadModel.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_ingestion_policy**
+> ResponseContainerIngestionPolicyReadModel delete_ingestion_policy(id)
+
+Delete a specific ingestion policy
+
+
+
+### 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.UsageApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Delete a specific ingestion policy
+ api_response = api_instance.delete_ingestion_policy(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UsageApi->delete_ingestion_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerIngestionPolicyReadModel**](ResponseContainerIngestionPolicyReadModel.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)
+
+# **export_csv**
+> export_csv(start_time, end_time=end_time)
+
+Export a CSV report
+
+
+
+### 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.UsageApi(wavefront_api_client.ApiClient(configuration))
+start_time = 789 # int | start time in epoch seconds
+end_time = 789 # int | end time in epoch seconds, null to use now (optional)
+
+try:
+ # Export a CSV report
+ api_instance.export_csv(start_time, end_time=end_time)
+except ApiException as e:
+ print("Exception when calling UsageApi->export_csv: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start_time** | **int**| start time in epoch seconds |
+ **end_time** | **int**| end time in epoch seconds, null to use now | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/csv
+
+[[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_all_ingestion_policies**
+> ResponseContainerPagedIngestionPolicyReadModel get_all_ingestion_policies(offset=offset, limit=limit)
+
+Get all ingestion policies 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.UsageApi(wavefront_api_client.ApiClient(configuration))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all ingestion policies for a customer
+ api_response = api_instance.get_all_ingestion_policies(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UsageApi->get_all_ingestion_policies: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedIngestionPolicyReadModel**](ResponseContainerPagedIngestionPolicyReadModel.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)
+
+# **get_ingestion_policy**
+> ResponseContainerIngestionPolicyReadModel get_ingestion_policy(id)
+
+Get a specific ingestion policy
+
+
+
+### 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.UsageApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Get a specific ingestion policy
+ api_response = api_instance.get_ingestion_policy(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UsageApi->get_ingestion_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerIngestionPolicyReadModel**](ResponseContainerIngestionPolicyReadModel.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)
+
+# **get_ingestion_policy_by_version**
+> ResponseContainerIngestionPolicyReadModel get_ingestion_policy_by_version(id, version)
+
+Get a specific historical version of a ingestion policy
+
+
+
+### 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.UsageApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+version = 789 # int |
+
+try:
+ # Get a specific historical version of a ingestion policy
+ api_response = api_instance.get_ingestion_policy_by_version(id, version)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UsageApi->get_ingestion_policy_by_version: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **version** | **int**| |
+
+### Return type
+
+[**ResponseContainerIngestionPolicyReadModel**](ResponseContainerIngestionPolicyReadModel.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)
+
+# **get_ingestion_policy_history**
+> ResponseContainerHistoryResponse get_ingestion_policy_history(id, offset=offset, limit=limit)
+
+Get the version history of ingestion policy
+
+
+
+### 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.UsageApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get the version history of ingestion policy
+ api_response = api_instance.get_ingestion_policy_history(id, offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UsageApi->get_ingestion_policy_history: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerHistoryResponse**](ResponseContainerHistoryResponse.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)
+
+# **revert_ingestion_policy_by_version**
+> ResponseContainerIngestionPolicyReadModel revert_ingestion_policy_by_version(id, version)
+
+Revert to a specific historical version of a ingestion policy
+
+
+
+### 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.UsageApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+version = 789 # int |
+
+try:
+ # Revert to a specific historical version of a ingestion policy
+ api_response = api_instance.revert_ingestion_policy_by_version(id, version)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UsageApi->revert_ingestion_policy_by_version: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **version** | **int**| |
+
+### Return type
+
+[**ResponseContainerIngestionPolicyReadModel**](ResponseContainerIngestionPolicyReadModel.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)
+
+# **update_ingestion_policy**
+> ResponseContainerIngestionPolicyReadModel update_ingestion_policy(id, body=body)
+
+Update a specific ingestion policy
+
+
+
+### 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.UsageApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+body = wavefront_api_client.IngestionPolicyWriteModel() # IngestionPolicyWriteModel | Example Body: { \"name\": \"Ingestion policy name\", \"description\": \"Ingestion policy description\", \"scope\": \"GROUP\", \"groups\": [\"g1\",\"g2\"], \"isLimited\": \"true\", \"limitPPS\": \"1000\", \"alert\": { \"name\": \"Alert Name\", \"targets\": { \"severe\": \"user1@mail.com\" }, \"conditionPercentages\": { \"info\": 70, \"warn\": 90 }, \"minutes\": 5, \"resolveAfterMinutes\": 2, \"evaluateRealtimeData\": false, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] }, \"conditionsThresholdOperator\": \">\" } } (optional)
+
+try:
+ # Update a specific ingestion policy
+ api_response = api_instance.update_ingestion_policy(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UsageApi->update_ingestion_policy: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**IngestionPolicyWriteModel**](IngestionPolicyWriteModel.md)| Example Body: <pre>{ \"name\": \"Ingestion policy name\", \"description\": \"Ingestion policy description\", \"scope\": \"GROUP\", \"groups\": [\"g1\",\"g2\"], \"isLimited\": \"true\", \"limitPPS\": \"1000\", \"alert\": { \"name\": \"Alert Name\", \"targets\": { \"severe\": \"user1@mail.com\" }, \"conditionPercentages\": { \"info\": 70, \"warn\": 90 }, \"minutes\": 5, \"resolveAfterMinutes\": 2, \"evaluateRealtimeData\": false, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] }, \"conditionsThresholdOperator\": \">\" } }</pre> | [optional]
+
+### Return type
+
+[**ResponseContainerIngestionPolicyReadModel**](ResponseContainerIngestionPolicyReadModel.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)
+
diff --git a/docs/UserApi.md b/docs/UserApi.md
index a530ef5d..6d8ab448 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -1,23 +1,88 @@
# wavefront_api_client.UserApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**create_or_update_user**](UserApi.md#create_or_update_user) | **POST** /api/v2/user | Creates or updates a user
-[**delete_user**](UserApi.md#delete_user) | **DELETE** /api/v2/user/{id} | Deletes a user identified by id
-[**get_all_user**](UserApi.md#get_all_user) | **GET** /api/v2/user | Get all users
-[**get_user**](UserApi.md#get_user) | **GET** /api/v2/user/{id} | Retrieves a user by identifier (email addr)
-[**grant_user_permission**](UserApi.md#grant_user_permission) | **POST** /api/v2/user/{id}/grant | Grants a specific user permission
-[**revoke_user_permission**](UserApi.md#revoke_user_permission) | **POST** /api/v2/user/{id}/revoke | Revokes a specific user permission
+[**add_user_to_user_groups**](UserApi.md#add_user_to_user_groups) | **POST** /api/v2/user/{id}/addUserGroups | Adds specific groups to the user or service account
+[**create_user**](UserApi.md#create_user) | **POST** /api/v2/user | Creates an user if the user doesn't already exist.
+[**delete_multiple_users**](UserApi.md#delete_multiple_users) | **POST** /api/v2/user/deleteUsers | Deletes multiple users or service accounts
+[**delete_user**](UserApi.md#delete_user) | **DELETE** /api/v2/user/{id} | Deletes a user or service account identified by id
+[**get_all_users**](UserApi.md#get_all_users) | **GET** /api/v2/user | Get all users
+[**get_user**](UserApi.md#get_user) | **GET** /api/v2/user/{id} | Retrieves a user by identifier (email address)
+[**get_user_business_functions**](UserApi.md#get_user_business_functions) | **GET** /api/v2/user/{id}/businessFunctions | Returns business functions of a specific user or service account.
+[**grant_permission_to_users**](UserApi.md#grant_permission_to_users) | **POST** /api/v2/user/grant/{permission} | Grants a specific permission to multiple users or service accounts
+[**grant_user_permission**](UserApi.md#grant_user_permission) | **POST** /api/v2/user/{id}/grant | Grants a specific permission to user or service account
+[**invite_users**](UserApi.md#invite_users) | **POST** /api/v2/user/invite | Invite users with given user groups and permissions.
+[**remove_user_from_user_groups**](UserApi.md#remove_user_from_user_groups) | **POST** /api/v2/user/{id}/removeUserGroups | Removes specific groups from the user or service account
+[**revoke_permission_from_users**](UserApi.md#revoke_permission_from_users) | **POST** /api/v2/user/revoke/{permission} | Revokes a specific permission from multiple users or service accounts
+[**revoke_user_permission**](UserApi.md#revoke_user_permission) | **POST** /api/v2/user/{id}/revoke | Revokes a specific permission from user or service account
+[**update_user**](UserApi.md#update_user) | **PUT** /api/v2/user/{id} | Update user with given user groups, permissions and ingestion policy.
+[**validate_users**](UserApi.md#validate_users) | **POST** /api/v2/user/validateUsers | Returns valid users and service accounts, also invalid identifiers from the given list
+
+
+# **add_user_to_user_groups**
+> UserModel add_user_to_user_groups(id, body=body)
+
+Adds specific groups to the user or service account
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+### 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.UserApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | The list of groups that should be added to the account (optional)
+
+try:
+ # Adds specific groups to the user or service account
+ api_response = api_instance.add_user_to_user_groups(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserApi->add_user_to_user_groups: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| The list of groups that should be added to the account | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
-# **create_or_update_user**
-> UserModel create_or_update_user(send_email=send_email, body=body)
+[[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)
-Creates or updates a user
+# **create_user**
+> UserModel create_user(send_email=send_email, body=body)
+Creates an user if the user doesn't already exist.
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
### Example
```python
@@ -36,14 +101,14 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.UserApi(wavefront_api_client.ApiClient(configuration))
send_email = true # bool | Whether to send email notification to the user, if created. Default: false (optional)
-body = wavefront_api_client.UserToCreate() # UserToCreate | Example Body: { \"emailAddress\": \"user@example.com\", \"groups\": [ \"browse\" ] } (optional)
+body = wavefront_api_client.UserToCreate() # UserToCreate | Example Body: { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } (optional)
try:
- # Creates or updates a user
- api_response = api_instance.create_or_update_user(send_email=send_email, body=body)
+ # Creates an user if the user doesn't already exist.
+ api_response = api_instance.create_user(send_email=send_email, body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling UserApi->create_or_update_user: %s\n" % e)
+ print("Exception when calling UserApi->create_user: %s\n" % e)
```
### Parameters
@@ -51,7 +116,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**send_email** | **bool**| Whether to send email notification to the user, if created. Default: false | [optional]
- **body** | [**UserToCreate**](UserToCreate.md)| Example Body: <pre>{ \"emailAddress\": \"user@example.com\", \"groups\": [ \"browse\" ] }</pre> | [optional]
+ **body** | [**UserToCreate**](UserToCreate.md)| Example Body: <pre>{ \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], }</pre> | [optional]
### Return type
@@ -68,12 +133,66 @@ 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)
+# **delete_multiple_users**
+> ResponseContainerListString delete_multiple_users(body=body)
+
+Deletes multiple users or service accounts
+
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service 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.UserApi(wavefront_api_client.ApiClient(configuration))
+body = [wavefront_api_client.list[str]()] # list[str] | identifiers of list of users which should be deleted (optional)
+
+try:
+ # Deletes multiple users or service accounts
+ api_response = api_instance.delete_multiple_users(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserApi->delete_multiple_users: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **list[str]**| identifiers of list of users which should be deleted | [optional]
+
+### Return type
+
+[**ResponseContainerListString**](ResponseContainerListString.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_user**
> delete_user(id)
-Deletes a user identified by id
-
+Deletes a user or service account identified by id
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts.
### Example
```python
@@ -94,7 +213,7 @@ api_instance = wavefront_api_client.UserApi(wavefront_api_client.ApiClient(confi
id = 'id_example' # str |
try:
- # Deletes a user identified by id
+ # Deletes a user or service account identified by id
api_instance.delete_user(id)
except ApiException as e:
print("Exception when calling UserApi->delete_user: %s\n" % e)
@@ -121,12 +240,12 @@ void (empty response body)
[[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_all_user**
-> list[UserModel] get_all_user()
+# **get_all_users**
+> list[UserModel] get_all_users()
Get all users
-Returns all users
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
### Example
```python
@@ -147,10 +266,10 @@ api_instance = wavefront_api_client.UserApi(wavefront_api_client.ApiClient(confi
try:
# Get all users
- api_response = api_instance.get_all_user()
+ api_response = api_instance.get_all_users()
pprint(api_response)
except ApiException as e:
- print("Exception when calling UserApi->get_all_user: %s\n" % e)
+ print("Exception when calling UserApi->get_all_users: %s\n" % e)
```
### Parameters
@@ -174,9 +293,9 @@ This endpoint does not need any parameter.
# **get_user**
> UserModel get_user(id)
-Retrieves a user by identifier (email addr)
-
+Retrieves a user by identifier (email address)
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
### Example
```python
@@ -197,7 +316,7 @@ api_instance = wavefront_api_client.UserApi(wavefront_api_client.ApiClient(confi
id = 'id_example' # str |
try:
- # Retrieves a user by identifier (email addr)
+ # Retrieves a user by identifier (email address)
api_response = api_instance.get_user(id)
pprint(api_response)
except ApiException as e:
@@ -225,12 +344,122 @@ 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)
+# **get_user_business_functions**
+> UserModel get_user_business_functions(id)
+
+Returns business functions of a specific user or service account.
+
+
+
+### 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.UserApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+
+try:
+ # Returns business functions of a specific user or service account.
+ api_response = api_instance.get_user_business_functions(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserApi->get_user_business_functions: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**UserModel**](UserModel.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)
+
+# **grant_permission_to_users**
+> UserModel grant_permission_to_users(permission, body=body)
+
+Grants a specific permission to multiple users or service accounts
+
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service 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.UserApi(wavefront_api_client.ApiClient(configuration))
+permission = 'permission_example' # str | Permission to grant to the users. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission
+body = [wavefront_api_client.list[str]()] # list[str] | List of users which should be granted by specified permission (optional)
+
+try:
+ # Grants a specific permission to multiple users or service accounts
+ api_response = api_instance.grant_permission_to_users(permission, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserApi->grant_permission_to_users: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **permission** | **str**| Permission to grant to the users. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission |
+ **body** | **list[str]**| List of users which should be granted by specified permission | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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)
+
# **grant_user_permission**
> UserModel grant_user_permission(id, group=group)
-Grants a specific user permission
-
+Grants a specific permission to user or service account
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts.
### Example
```python
@@ -249,10 +478,10 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.UserApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
-group = 'group_example' # str | Permission group to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission (optional)
+group = 'group_example' # str | Permission group to grant to the account. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission (optional)
try:
- # Grants a specific user permission
+ # Grants a specific permission to user or service account
api_response = api_instance.grant_user_permission(id, group=group)
pprint(api_response)
except ApiException as e:
@@ -264,7 +493,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
- **group** | **str**| Permission group to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission | [optional]
+ **group** | **str**| Permission group to grant to the account. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission | [optional]
### Return type
@@ -281,12 +510,178 @@ 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)
+# **invite_users**
+> UserModel invite_users(body=body)
+
+Invite users with given user groups and permissions.
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.UserApi(wavefront_api_client.ApiClient(configuration))
+body = [wavefront_api_client.UserToCreate()] # list[UserToCreate] | Example Body: [ { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } ] (optional)
+
+try:
+ # Invite users with given user groups and permissions.
+ api_response = api_instance.invite_users(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserApi->invite_users: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**list[UserToCreate]**](UserToCreate.md)| Example Body: <pre>[ { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } ]</pre> | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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_user_from_user_groups**
+> UserModel remove_user_from_user_groups(id, body=body)
+
+Removes specific groups from the user or service account
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.UserApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | The list of groups that should be removed from the account (optional)
+
+try:
+ # Removes specific groups from the user or service account
+ api_response = api_instance.remove_user_from_user_groups(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserApi->remove_user_from_user_groups: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| The list of groups that should be removed from the account | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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_permission_from_users**
+> UserModel revoke_permission_from_users(permission, body=body)
+
+Revokes a specific permission from multiple users or service accounts
+
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service 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.UserApi(wavefront_api_client.ApiClient(configuration))
+permission = 'permission_example' # str | Permission to revoke from the accounts. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission
+body = [wavefront_api_client.list[str]()] # list[str] | List of users or service accounts which should be revoked by specified permission (optional)
+
+try:
+ # Revokes a specific permission from multiple users or service accounts
+ api_response = api_instance.revoke_permission_from_users(permission, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserApi->revoke_permission_from_users: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **permission** | **str**| Permission to revoke from the accounts. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission |
+ **body** | **list[str]**| List of users or service accounts which should be revoked by specified permission | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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_user_permission**
> UserModel revoke_user_permission(id, group=group)
-Revokes a specific user permission
-
+Revokes a specific permission from user or service account
+Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts.
### Example
```python
@@ -308,7 +703,7 @@ id = 'id_example' # str |
group = 'group_example' # str | (optional)
try:
- # Revokes a specific user permission
+ # Revokes a specific permission from user or service account
api_response = api_instance.revoke_user_permission(id, group=group)
pprint(api_response)
except ApiException as e:
@@ -337,3 +732,113 @@ 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)
+# **update_user**
+> UserModel update_user(id, body=body)
+
+Update user with given user groups, permissions and ingestion policy.
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.UserApi(wavefront_api_client.ApiClient(configuration))
+id = 'id_example' # str |
+body = wavefront_api_client.UserRequestDTO() # UserRequestDTO | Example Body: { \"identifier\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ] } (optional)
+
+try:
+ # Update user with given user groups, permissions and ingestion policy.
+ api_response = api_instance.update_user(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserApi->update_user: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**UserRequestDTO**](UserRequestDTO.md)| Example Body: <pre>{ \"identifier\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ] }</pre> | [optional]
+
+### Return type
+
+[**UserModel**](UserModel.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)
+
+# **validate_users**
+> ResponseContainerValidatedUsersDTO validate_users(body=body)
+
+Returns valid users and service accounts, also invalid identifiers from the given list
+
+
+
+### 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.UserApi(wavefront_api_client.ApiClient(configuration))
+body = [wavefront_api_client.list[str]()] # list[str] | (optional)
+
+try:
+ # Returns valid users and service accounts, also invalid identifiers from the given list
+ api_response = api_instance.validate_users(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserApi->validate_users: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **list[str]**| | [optional]
+
+### Return type
+
+[**ResponseContainerValidatedUsersDTO**](ResponseContainerValidatedUsersDTO.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)
+
diff --git a/docs/UserApiToken.md b/docs/UserApiToken.md
new file mode 100644
index 00000000..1c55cd31
--- /dev/null
+++ b/docs/UserApiToken.md
@@ -0,0 +1,15 @@
+# UserApiToken
+
+## 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]
+**date_generated** | **int** | The generation date of the token. | [optional]
+**last_used** | **int** | The last time this token was used | [optional]
+**token_id** | **str** | The identifier of the user API token |
+**token_name** | **str** | The name of the user API 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/UserDTO.md b/docs/UserDTO.md
new file mode 100644
index 00000000..77186082
--- /dev/null
+++ b/docs/UserDTO.md
@@ -0,0 +1,16 @@
+# UserDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**customer** | **str** | | [optional]
+**groups** | **list[str]** | | [optional]
+**identifier** | **str** | | [optional]
+**last_successful_login** | **int** | | [optional]
+**roles** | [**list[RoleDTO]**](RoleDTO.md) | | [optional]
+**sso_id** | **str** | | [optional]
+**user_groups** | [**list[UserGroup]**](UserGroup.md) | | [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/UserGroup.md b/docs/UserGroup.md
new file mode 100644
index 00000000..76f1fdb3
--- /dev/null
+++ b/docs/UserGroup.md
@@ -0,0 +1,17 @@
+# UserGroup
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**customer** | **str** | ID of the customer to which the user group belongs | [optional]
+**description** | **str** | The description of the user group | [optional]
+**id** | **str** | Unique ID for the user group | [optional]
+**name** | **str** | Name of the user group | [optional]
+**properties** | [**UserGroupPropertiesDTO**](UserGroupPropertiesDTO.md) | The properties of the user group(name editable, users editable, etc.) | [optional]
+**roles** | [**list[RoleDTO]**](RoleDTO.md) | List of roles the user group has been linked to | [optional]
+**user_count** | **int** | Total number of users that are members of the user group | [optional]
+**users** | **list[str]** | List of Users that are members of the user group. Maybe incomplete. | [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/UserGroupApi.md b/docs/UserGroupApi.md
new file mode 100644
index 00000000..792c0d83
--- /dev/null
+++ b/docs/UserGroupApi.md
@@ -0,0 +1,515 @@
+# wavefront_api_client.UserGroupApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**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_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_roles_to_user_group**
+> ResponseContainerUserGroupModel add_roles_to_user_group(id, body=body)
+
+Add multiple roles to a specific user group
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | List of roles that should be added to user group (optional)
+
+try:
+ # Add multiple roles to a specific user group
+ api_response = api_instance.add_roles_to_user_group(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserGroupApi->add_roles_to_user_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| List of roles that should be added to user group | [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_users_to_user_group**
+> ResponseContainerUserGroupModel add_users_to_user_group(id, body=body)
+
+Add multiple users to a specific user group
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | List of users that should be added to user group (optional)
+
+try:
+ # Add multiple users to a specific user group
+ api_response = api_instance.add_users_to_user_group(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserGroupApi->add_users_to_user_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| List of users that should be added to user group | [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)
+
+# **create_user_group**
+> ResponseContainerUserGroupModel create_user_group(body=body)
+
+Create a specific user group
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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.UserGroupWrite() # UserGroupWrite | Example Body: { \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" } (optional)
+
+try:
+ # Create a specific user group
+ api_response = api_instance.create_user_group(body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserGroupApi->create_user_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**UserGroupWrite**](UserGroupWrite.md)| Example Body: <pre>{ \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" }</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)
+
+# **delete_user_group**
+> ResponseContainerUserGroupModel delete_user_group(id)
+
+Delete a specific user group
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Delete a specific user group
+ api_response = api_instance.delete_user_group(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserGroupApi->delete_user_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerUserGroupModel**](ResponseContainerUserGroupModel.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_all_user_groups**
+> ResponseContainerPagedUserGroupModel get_all_user_groups(offset=offset, limit=limit)
+
+Get all user groups for a customer
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+offset = 0 # int | (optional) (default to 0)
+limit = 100 # int | (optional) (default to 100)
+
+try:
+ # Get all user groups for a customer
+ api_response = api_instance.get_all_user_groups(offset=offset, limit=limit)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserGroupApi->get_all_user_groups: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **offset** | **int**| | [optional] [default to 0]
+ **limit** | **int**| | [optional] [default to 100]
+
+### Return type
+
+[**ResponseContainerPagedUserGroupModel**](ResponseContainerPagedUserGroupModel.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_user_group**
+> ResponseContainerUserGroupModel get_user_group(id)
+
+Get a specific user group
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+
+try:
+ # Get a specific user group
+ api_response = api_instance.get_user_group(id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserGroupApi->get_user_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+
+### Return type
+
+[**ResponseContainerUserGroupModel**](ResponseContainerUserGroupModel.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)
+
+# **remove_roles_from_user_group**
+> ResponseContainerUserGroupModel remove_roles_from_user_group(id, body=body)
+
+Remove multiple roles from a specific user group
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | List of roles that should be removed from user group (optional)
+
+try:
+ # Remove multiple roles from a specific user group
+ api_response = api_instance.remove_roles_from_user_group(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserGroupApi->remove_roles_from_user_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| List of roles that should be removed from user group | [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_users_from_user_group**
+> ResponseContainerUserGroupModel remove_users_from_user_group(id, body=body)
+
+Remove multiple users from a specific user group
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = [wavefront_api_client.list[str]()] # list[str] | List of users that should be removed from user group (optional)
+
+try:
+ # Remove multiple users from a specific user group
+ api_response = api_instance.remove_users_from_user_group(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserGroupApi->remove_users_from_user_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | **list[str]**| List of users that should be removed from user group | [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)
+
+# **update_user_group**
+> ResponseContainerUserGroupModel update_user_group(id, body=body)
+
+Update a specific user group
+
+Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
+
+### 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))
+id = 'id_example' # str |
+body = wavefront_api_client.UserGroupWrite() # UserGroupWrite | Example Body: { \"id\": \"UserGroup identifier\", \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" } (optional)
+
+try:
+ # Update a specific user group
+ api_response = api_instance.update_user_group(id, body=body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling UserGroupApi->update_user_group: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| |
+ **body** | [**UserGroupWrite**](UserGroupWrite.md)| Example Body: <pre>{ \"id\": \"UserGroup identifier\", \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" }</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)
+
diff --git a/docs/UserGroupModel.md b/docs/UserGroupModel.md
new file mode 100644
index 00000000..b8cfca69
--- /dev/null
+++ b/docs/UserGroupModel.md
@@ -0,0 +1,19 @@
+# UserGroupModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_epoch_millis** | **int** | | [optional]
+**customer** | **str** | The id of the customer to which the user group belongs | [optional]
+**description** | **str** | The description of the user group | [optional]
+**id** | **str** | The unique identifier of the user group | [optional]
+**name** | **str** | The name of the user group |
+**properties** | [**UserGroupPropertiesDTO**](UserGroupPropertiesDTO.md) | The properties of the user group(name editable, users editable, etc.) | [optional]
+**role_count** | **int** | Total number of roles that are linked the the user group | [optional]
+**roles** | [**list[RoleDTO]**](RoleDTO.md) | List of roles that are linked to the user group. | [optional]
+**user_count** | **int** | Total number of users that are members of the user group | [optional]
+**users** | **list[str]** | List(may be incomplete) of users that are members of the user group. | [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/UserGroupPropertiesDTO.md b/docs/UserGroupPropertiesDTO.md
new file mode 100644
index 00000000..830cf10b
--- /dev/null
+++ b/docs/UserGroupPropertiesDTO.md
@@ -0,0 +1,12 @@
+# UserGroupPropertiesDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name_editable** | **bool** | | [optional]
+**roles_editable** | **bool** | | [optional]
+**users_editable** | **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/UserGroupWrite.md b/docs/UserGroupWrite.md
new file mode 100644
index 00000000..e73e9024
--- /dev/null
+++ b/docs/UserGroupWrite.md
@@ -0,0 +1,15 @@
+# UserGroupWrite
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_epoch_millis** | **int** | | [optional]
+**customer** | **str** | The id of the customer to which the user group belongs | [optional]
+**description** | **str** | The description of the user group | [optional]
+**id** | **str** | The unique identifier of the user group | [optional]
+**name** | **str** | The name of the user group |
+**role_ids** | **list[str]** | List of role IDs the user group has been linked to. |
+
+[[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/UserModel.md b/docs/UserModel.md
index 309e3f75..af67d616 100644
--- a/docs/UserModel.md
+++ b/docs/UserModel.md
@@ -3,9 +3,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**identifier** | **str** | The unique identifier of this user, which must be their valid email address |
**customer** | **str** | The id of the customer to which this user belongs |
**groups** | **list[str]** | The permissions granted to this user |
+**identifier** | **str** | The unique identifier of this user, which must be their valid email address |
+**last_successful_login** | **int** | | [optional]
+**roles** | [**list[RoleDTO]**](RoleDTO.md) | | [optional]
+**sso_id** | **str** | | [optional]
+**user_groups** | [**list[UserGroup]**](UserGroup.md) | The list of user groups the user belongs to |
[[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/UserRequestDTO.md b/docs/UserRequestDTO.md
new file mode 100644
index 00000000..26ccc8cc
--- /dev/null
+++ b/docs/UserRequestDTO.md
@@ -0,0 +1,16 @@
+# UserRequestDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**credential** | **str** | | [optional]
+**customer** | **str** | | [optional]
+**groups** | **list[str]** | | [optional]
+**identifier** | **str** | | [optional]
+**roles** | **list[str]** | | [optional]
+**sso_id** | **str** | | [optional]
+**user_groups** | **list[str]** | | [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/UserToCreate.md b/docs/UserToCreate.md
index 0b4ae56f..1a27925d 100644
--- a/docs/UserToCreate.md
+++ b/docs/UserToCreate.md
@@ -3,8 +3,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**email_address** | **str** | The (unique) identifier of the user to create. Must be a valid email address |
-**groups** | **list[str]** | List of permission groups to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission. Possible values are browse, agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management |
+**email_address** | **str** | The (unique) identifier of the user to create. Must be a valid email address |
+**groups** | **list[str]** | List of permission groups to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission. Possible values are log_management, dashboard_management, events_management, alerts_management, derived_metrics_management, host_tag_management, agent_management, token_management, ingestion, user_management, embedded_charts, metrics_management, external_links_management, application_management, batch_query_priority, saml_sso_management, monitored_application_service_management |
+**roles** | **list[str]** | The list of role ids, the user will be added to. | [optional]
+**user_groups** | **list[str]** | List of user groups to this user. |
[[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/ValidatedUsersDTO.md b/docs/ValidatedUsersDTO.md
new file mode 100644
index 00000000..6f5542f9
--- /dev/null
+++ b/docs/ValidatedUsersDTO.md
@@ -0,0 +1,11 @@
+# ValidatedUsersDTO
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**invalid_identifiers** | **list[str]** | | [optional]
+**valid_users** | [**list[UserDTO]**](UserDTO.md) | | [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/Void.md b/docs/Void.md
new file mode 100644
index 00000000..d167d3a7
--- /dev/null
+++ b/docs/Void.md
@@ -0,0 +1,9 @@
+# Void
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[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/VropsConfiguration.md b/docs/VropsConfiguration.md
new file mode 100644
index 00000000..b4fdb3df
--- /dev/null
+++ b/docs/VropsConfiguration.md
@@ -0,0 +1,15 @@
+# VropsConfiguration
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**adapter_names** | **dict(str, list[str])** | Adapter names: Metrics will be fetched of only these adapter if given | [optional]
+**base_url** | **str** | The base url for vrops api, Default : https://www.mgmt.cloud.vmware.com/vrops-cloud | [optional]
+**categories_to_fetch** | **list[str]** | A list of vRops Adpater and Resource kind to fetch metrics. Allowable values are VMWARE_DATASTORE, VMWARE_DATASTORE) | [optional]
+**metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [optional]
+**organization_id** | **str** | OrganizationID will be derived from api token | [optional]
+**vrops_api_token** | **str** | The vRops API Token |
+
+[[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/WavefrontApi.md b/docs/WavefrontApi.md
new file mode 100644
index 00000000..9fc496ef
--- /dev/null
+++ b/docs/WavefrontApi.md
@@ -0,0 +1,59 @@
+# wavefront_api_client.WavefrontApi
+
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_cluster_info**](WavefrontApi.md#get_cluster_info) | **GET** /api/v2/cluster/info | API endpoint to get cluster info
+
+
+# **get_cluster_info**
+> ResponseContainerClusterInfoDTO get_cluster_info()
+
+API endpoint to get cluster info
+
+
+
+### 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.WavefrontApi(wavefront_api_client.ApiClient(configuration))
+
+try:
+ # API endpoint to get cluster info
+ api_response = api_instance.get_cluster_info()
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling WavefrontApi->get_cluster_info: %s\n" % e)
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**ResponseContainerClusterInfoDTO**](ResponseContainerClusterInfoDTO.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)
+
diff --git a/docs/WebhookApi.md b/docs/WebhookApi.md
index feec29f4..42476ca4 100644
--- a/docs/WebhookApi.md
+++ b/docs/WebhookApi.md
@@ -1,6 +1,6 @@
# wavefront_api_client.WebhookApi
-All URIs are relative to *https://localhost*
+All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -66,7 +66,7 @@ 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)
# **delete_webhook**
-> ResponseContainerNotificant delete_webhook(id)
+> ResponseContainerNotificant delete_webhook(id, unlink=unlink)
Delete a specific webhook
@@ -89,10 +89,11 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.WebhookApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
+unlink = false # bool | (optional) (default to false)
try:
# Delete a specific webhook
- api_response = api_instance.delete_webhook(id)
+ api_response = api_instance.delete_webhook(id, unlink=unlink)
pprint(api_response)
except ApiException as e:
print("Exception when calling WebhookApi->delete_webhook: %s\n" % e)
@@ -103,6 +104,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
+ **unlink** | **bool**| | [optional] [default to false]
### Return type
diff --git a/example.py b/example.py
deleted file mode 100644
index 976e99f4..00000000
--- a/example.py
+++ /dev/null
@@ -1,17 +0,0 @@
-
-import wavefront_api_client as wave_api
-
-base_url = 'https://try.wavefront.com'
-api_key = 'YOUR_API_KEY'
-
-config = wave_api.Configuration()
-config.host = base_url
-client = wave_api.ApiClient(configuration=config, header_name='Authorization', header_value='Bearer ' + api_key)
-
-# instantiate source API
-
-source_api = wave_api.SourceApi(client)
-
-sources = source_api.get_all_source()
-
-print sources
diff --git a/generate_client b/generate_client
new file mode 100755
index 00000000..68c09409
--- /dev/null
+++ b/generate_client
@@ -0,0 +1,88 @@
+#!/bin/bash
+
+function _exit {
+ echo "$1" >&2
+ exit 1
+}
+
+# Exit if cluster name was not specified as a first argument.
+[[ "$1" ]] || _exit "Please specify cluster as an argument."
+
+CGEN_NAME="swagger-codegen-cli"
+CGEN_VER="2.4.32" # For 3.x use CGEN_VER="3.0.42"
+CGEN_JAR_NAME="${CGEN_NAME}-${CGEN_VER}.jar"
+CGEN_JAR_URL="https://search.maven.org/remotecontent?filepath=\
+io/swagger/swagger-codegen-cli/${CGEN_VER}/${CGEN_JAR_NAME}"
+# io/swagger/codegen/v3/swagger-codegen-cli/${CGEN_VER}/${CGEN_JAR_NAME}"
+# Uncomment above if you'd like to use swagger-codegen-cli version 3.x
+
+CONFIG_FILE=".swagger-codegen/config.json"
+EXTRA_PROPS="basePath=https://YOUR_INSTANCE.wavefront.com"
+EXTRA_PROPS+=",infoEmail=chitimba@wavefront.com"
+
+SWGR_JSON="swagger.json"
+SWGR_URL="https://$1.wavefront.com/api/v2/${SWGR_JSON}"
+VERSION_URL="https://$1.wavefront.com/auth/forgetPassword"
+
+PYTHON=$(command -v python3 || command -v python)
+
+# Make sure required python version and curl tool are present or exit.
+$PYTHON -V | grep -q "Python 3" || _exit "Python ^^^ is obsolete. Aborting."
+[[ "$(command -v curl)" ]] || _exit "The curl command was not found. Aborting."
+
+# Check if config file exists in '.swagger-codegen' directory.
+[[ -f "${CONFIG_FILE}" ]] || _exit "File '${CONFIG_FILE}' not found."
+
+# Get the current version from the config file.
+CONFIG_VER=$($PYTHON -c "import json, sys;\
+ sys.stdout.write(json.load(sys.stdin)['packageVersion'][2:]+'\n')"\
+ < "${CONFIG_FILE}"
+)
+echo "Fetching the current version from '$1' cluster..."
+SERVER_VER=$(curl -s "${VERSION_URL}" | grep 'version: ' |\
+ grep -o '[0-9]\+\.[0-9]\+')
+
+echo "Current Version on server is: ${SERVER_VER}"
+echo "Current Version in config is: ${CONFIG_VER}"
+
+if [[ -z "${CONFIG_VER}" || -z "${SERVER_VER}" ]]; then
+ _exit "Unable to determine the version for '$1' cluster."
+elif [[ "${CONFIG_VER}" == "${SERVER_VER}" ]]; then
+ echo "No Version Change Detected. Bye."
+else
+ echo "Version change detected from ${CONFIG_VER} to ${SERVER_VER}..."
+ TEMP_DIR_NAME="$(mktemp -d)"
+ SWAGGER_FILE="${TEMP_DIR_NAME}/${SWGR_JSON}"
+ CGEN_JAR_BINARY="${TEMP_DIR_NAME}/${CGEN_JAR_NAME}"
+
+ echo "Step 1: Fetching the latest swagger-codegen..."
+ curl -Ls "${CGEN_JAR_URL}" -o "${CGEN_JAR_BINARY}"
+
+ echo "Step 2: Fetching the config from '${SWGR_URL}'..."
+ curl -s "${SWGR_URL}" | $PYTHON -m json.tool --sort-keys > "${SWAGGER_FILE}"
+
+ # Exit if swagger file is missing at this point.
+ [[ -f "${SWAGGER_FILE}" ]] || _exit "Failed to fetch ${SWGR_JSON}."
+
+ echo "Step 3: Generating the client..."
+ java -jar "${CGEN_JAR_BINARY}" generate -l python \
+ -c "${CONFIG_FILE}" -i "${SWAGGER_FILE}" \
+ --additional-properties "${EXTRA_PROPS}"
+
+ echo "Step 4: Checking if anything has changed..."
+ if [[ -n "$(git status --porcelain)" ]]; then # non-zero diff detected.
+ echo "Step 5: Updating the version in the config..."
+ sed -ie "s/${CONFIG_VER//./\\.}/${SERVER_VER//./\\.}/" "${CONFIG_FILE}"
+
+ echo "Step 6: Generating the updated client..."
+ java -jar "${CGEN_JAR_BINARY}" generate -l python \
+ -c "${CONFIG_FILE}" -i "${SWAGGER_FILE}" \
+ --additional-properties "${EXTRA_PROPS}"
+
+ echo "Step 7: Committing the updated files..."
+ git add -A && git commit -am "Autogenerated Update v2.${SERVER_VER}."
+
+ echo "Please run git push in order to push commit to GitHub... Bye."
+ fi
+ echo "Cleaning up..." && rm -rv "${TEMP_DIR_NAME}"
+fi
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index bafdc075..00000000
--- a/requirements.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-certifi >= 14.05.14
-six >= 1.10
-python_dateutil >= 2.5.3
-setuptools >= 21.0.0
-urllib3 >= 1.15.1
diff --git a/setup.py b/setup.py
index 50e6fe1f..79c425ac 100644
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "wavefront-api-client" -VERSION = "2.3.1" +VERSION = "2.223.1" # To install the library, run the following # # python setup.py install @@ -22,19 +22,25 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] +REQUIRES = [ + "certifi>=2017.4.17", + "python-dateutil>=2.1", + "six>=1.10", + "urllib3>=1.23" +] + setup( name=NAME, version=VERSION, - description="Wavefront Public API", - author_email="", + description="Tanzu Observability REST API Documentation", + author_email="chitimba@wavefront.com", url="https://github.com/wavefrontHQ/python-client", - keywords=["Swagger", "Wavefront Public API"], + keywords=["Swagger", "Tanzu Observability REST API Documentation"], install_requires=REQUIRES, packages=find_packages(), include_package_data=True, long_description="""\ - <p>The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.</p><p>For legacy versions of the Wavefront API, see the <a href=\"/api-docs/ui/deprecated\">legacy API documentation</a>.</p> # noqa: E501 + <p>The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.</p><p>When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see <a href=\"http://docs.wavefront.com/using_wavefront_api.html\">Use the Tanzu Observability REST API.</a></p> # noqa: E501 """ ) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 00000000..2702246c --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 00000000..576f56f8 --- /dev/null +++ b/test/__init__.py @@ -0,0 +1 @@ +# coding: utf-8 \ No newline at end of file diff --git a/test/test_access_control_element.py b/test/test_access_control_element.py new file mode 100644 index 00000000..e1a56d01 --- /dev/null +++ b/test/test_access_control_element.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.access_control_element import AccessControlElement # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAccessControlElement(unittest.TestCase): + """AccessControlElement unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccessControlElement(self): + """Test AccessControlElement""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.access_control_element.AccessControlElement() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_access_control_list_read_dto.py b/test/test_access_control_list_read_dto.py new file mode 100644 index 00000000..2912a972 --- /dev/null +++ b/test/test_access_control_list_read_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.access_control_list_read_dto import AccessControlListReadDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAccessControlListReadDTO(unittest.TestCase): + """AccessControlListReadDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccessControlListReadDTO(self): + """Test AccessControlListReadDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.access_control_list_read_dto.AccessControlListReadDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_access_control_list_simple.py b/test/test_access_control_list_simple.py new file mode 100644 index 00000000..28aabf25 --- /dev/null +++ b/test/test_access_control_list_simple.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.access_control_list_simple import AccessControlListSimple # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAccessControlListSimple(unittest.TestCase): + """AccessControlListSimple unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccessControlListSimple(self): + """Test AccessControlListSimple""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.access_control_list_simple.AccessControlListSimple() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_access_control_list_write_dto.py b/test/test_access_control_list_write_dto.py new file mode 100644 index 00000000..7a740648 --- /dev/null +++ b/test/test_access_control_list_write_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.access_control_list_write_dto import AccessControlListWriteDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAccessControlListWriteDTO(unittest.TestCase): + """AccessControlListWriteDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccessControlListWriteDTO(self): + """Test AccessControlListWriteDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.access_control_list_write_dto.AccessControlListWriteDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_access_policy.py b/test/test_access_policy.py new file mode 100644 index 00000000..b2ba2938 --- /dev/null +++ b/test/test_access_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.access_policy import AccessPolicy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAccessPolicy(unittest.TestCase): + """AccessPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccessPolicy(self): + """Test AccessPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.access_policy.AccessPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_access_policy_api.py b/test/test_access_policy_api.py new file mode 100644 index 00000000..be77cce1 --- /dev/null +++ b/test/test_access_policy_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.access_policy_api import AccessPolicyApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAccessPolicyApi(unittest.TestCase): + """AccessPolicyApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.access_policy_api.AccessPolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_access_policy(self): + """Test case for get_access_policy + + Get the access policy # noqa: E501 + """ + pass + + def test_update_access_policy(self): + """Test case for update_access_policy + + Update the access policy # noqa: E501 + """ + pass + + def test_validate_url(self): + """Test case for validate_url + + Validate a given url and ip address # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_access_policy_rule_dto.py b/test/test_access_policy_rule_dto.py new file mode 100644 index 00000000..f0ef1ad0 --- /dev/null +++ b/test/test_access_policy_rule_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.access_policy_rule_dto import AccessPolicyRuleDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAccessPolicyRuleDTO(unittest.TestCase): + """AccessPolicyRuleDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccessPolicyRuleDTO(self): + """Test AccessPolicyRuleDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.access_policy_rule_dto.AccessPolicyRuleDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_account.py b/test/test_account.py new file mode 100644 index 00000000..f5e2de6d --- /dev/null +++ b/test/test_account.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.account import Account # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAccount(unittest.TestCase): + """Account unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccount(self): + """Test Account""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.account.Account() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_account__user_and_service_account_api.py b/test/test_account__user_and_service_account_api.py new file mode 100644 index 00000000..cc036526 --- /dev/null +++ b/test/test_account__user_and_service_account_api.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.account__user_and_service_account_api import AccountUserAndServiceAccountApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAccountUserAndServiceAccountApi(unittest.TestCase): + """AccountUserAndServiceAccountApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.account__user_and_service_account_api.AccountUserAndServiceAccountApi() # noqa: E501 + + def tearDown(self): + pass + + def test_activate_account(self): + """Test case for activate_account + + Activates the given service account # noqa: E501 + """ + pass + + def test_add_account_to_roles(self): + """Test case for add_account_to_roles + + Adds specific roles to the account (user or service account) # noqa: E501 + """ + pass + + def test_add_account_to_user_groups(self): + """Test case for add_account_to_user_groups + + Adds specific groups to the account (user or service account) # noqa: E501 + """ + pass + + def test_create_or_update_user_account(self): + """Test case for create_or_update_user_account + + Creates or updates a user account # noqa: E501 + """ + pass + + def test_create_service_account(self): + """Test case for create_service_account + + Creates a service account # noqa: E501 + """ + pass + + def test_deactivate_account(self): + """Test case for deactivate_account + + Deactivates the given service account # noqa: E501 + """ + pass + + def test_delete_account(self): + """Test case for delete_account + + Deletes an account (user or service account) identified by id # noqa: E501 + """ + pass + + def test_delete_multiple_accounts(self): + """Test case for delete_multiple_accounts + + Deletes multiple accounts (users or service accounts) # noqa: E501 + """ + pass + + def test_get_account(self): + """Test case for get_account + + Get a specific account (user or service account) # noqa: E501 + """ + pass + + def test_get_account_business_functions(self): + """Test case for get_account_business_functions + + Returns business functions of a specific account (user or service account). # noqa: E501 + """ + pass + + def test_get_all_accounts(self): + """Test case for get_all_accounts + + Get all accounts (users and service accounts) of a customer # noqa: E501 + """ + pass + + def test_get_all_service_accounts(self): + """Test case for get_all_service_accounts + + Get all service accounts # noqa: E501 + """ + pass + + def test_get_all_user_accounts(self): + """Test case for get_all_user_accounts + + Get all user accounts # noqa: E501 + """ + pass + + def test_get_service_account(self): + """Test case for get_service_account + + Retrieves a service account by identifier # noqa: E501 + """ + pass + + def test_get_user_account(self): + """Test case for get_user_account + + Retrieves a user by identifier (email address) # noqa: E501 + """ + pass + + def test_get_users_with_accounts_permission(self): + """Test case for get_users_with_accounts_permission + + Get all users with Accounts permission # noqa: E501 + """ + pass + + def test_grant_account_permission(self): + """Test case for grant_account_permission + + Grants a specific permission to account (user or service account) # noqa: E501 + """ + pass + + def test_grant_permission_to_accounts(self): + """Test case for grant_permission_to_accounts + + Grant a permission to accounts (users or service accounts) # noqa: E501 + """ + pass + + def test_invite_user_accounts(self): + """Test case for invite_user_accounts + + Invite user accounts with given user groups and permissions. # noqa: E501 + """ + pass + + def test_remove_account_from_roles(self): + """Test case for remove_account_from_roles + + Removes specific roles from the account (user or service account) # noqa: E501 + """ + pass + + def test_remove_account_from_user_groups(self): + """Test case for remove_account_from_user_groups + + Removes specific groups from the account (user or service account) # noqa: E501 + """ + pass + + def test_revoke_account_permission(self): + """Test case for revoke_account_permission + + Revokes a specific permission from account (user or service account) # noqa: E501 + """ + pass + + def test_revoke_permission_from_accounts(self): + """Test case for revoke_permission_from_accounts + + Revoke a permission from accounts (users or service accounts) # noqa: E501 + """ + pass + + def test_update_service_account(self): + """Test case for update_service_account + + Updates the service account # noqa: E501 + """ + pass + + def test_update_user_account(self): + """Test case for update_user_account + + Update user with given user groups and permissions. # noqa: E501 + """ + pass + + def test_validate_accounts(self): + """Test case for validate_accounts + + Returns valid accounts (users and service accounts), also invalid identifiers from the given list # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert.py b/test/test_alert.py new file mode 100644 index 00000000..ac013331 --- /dev/null +++ b/test/test_alert.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert import Alert # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlert(unittest.TestCase): + """Alert unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlert(self): + """Test Alert""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert.Alert() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_analytics_api.py b/test/test_alert_analytics_api.py new file mode 100644 index 00000000..298bdab9 --- /dev/null +++ b/test/test_alert_analytics_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.alert_analytics_api import AlertAnalyticsApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertAnalyticsApi(unittest.TestCase): + """AlertAnalyticsApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.alert_analytics_api.AlertAnalyticsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_active_no_target_alert_summary_details(self): + """Test case for get_active_no_target_alert_summary_details + + Get Active No Target Alert Summary for a customer # noqa: E501 + """ + pass + + def test_get_alert_analytics_errors_summary(self): + """Test case for get_alert_analytics_errors_summary + + Get Alert Analytics errors summary # noqa: E501 + """ + pass + + def test_get_alert_analytics_summary(self): + """Test case for get_alert_analytics_summary + + Get Alert Analytics Summary for a customer # noqa: E501 + """ + pass + + def test_get_failed_alert_summary_details(self): + """Test case for get_failed_alert_summary_details + + Get Failed Alert Summary Details for a customer # noqa: E501 + """ + pass + + def test_get_no_data_alert_summary_details(self): + """Test case for get_no_data_alert_summary_details + + Get No Data Alert Summary for a customer # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_analytics_summary.py b/test/test_alert_analytics_summary.py new file mode 100644 index 00000000..feda5365 --- /dev/null +++ b/test/test_alert_analytics_summary.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert_analytics_summary import AlertAnalyticsSummary # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertAnalyticsSummary(unittest.TestCase): + """AlertAnalyticsSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlertAnalyticsSummary(self): + """Test AlertAnalyticsSummary""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert_analytics_summary.AlertAnalyticsSummary() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_analytics_summary_detail.py b/test/test_alert_analytics_summary_detail.py new file mode 100644 index 00000000..33acce91 --- /dev/null +++ b/test/test_alert_analytics_summary_detail.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert_analytics_summary_detail import AlertAnalyticsSummaryDetail # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertAnalyticsSummaryDetail(unittest.TestCase): + """AlertAnalyticsSummaryDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlertAnalyticsSummaryDetail(self): + """Test AlertAnalyticsSummaryDetail""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert_analytics_summary_detail.AlertAnalyticsSummaryDetail() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_api.py b/test/test_alert_api.py new file mode 100644 index 00000000..1ae0d95d --- /dev/null +++ b/test/test_alert_api.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.alert_api import AlertApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertApi(unittest.TestCase): + """AlertApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.alert_api.AlertApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_alert_access(self): + """Test case for add_alert_access + + Adds the specified ids to the given alerts' ACL # noqa: E501 + """ + pass + + def test_add_alert_tag(self): + """Test case for add_alert_tag + + Add a tag to a specific alert # noqa: E501 + """ + pass + + def test_check_query_type(self): + """Test case for check_query_type + + Return the type of provided query. # noqa: E501 + """ + pass + + def test_clone_alert(self): + """Test case for clone_alert + + Clones the specified alert # noqa: E501 + """ + pass + + def test_create_alert(self): + """Test case for create_alert + + Create a specific alert # noqa: E501 + """ + pass + + def test_delete_alert(self): + """Test case for delete_alert + + Delete a specific alert # noqa: E501 + """ + pass + + def test_get_alert(self): + """Test case for get_alert + + Get a specific alert # noqa: E501 + """ + pass + + def test_get_alert_access_control_list(self): + """Test case for get_alert_access_control_list + + Get Access Control Lists' union for the specified alerts # noqa: E501 + """ + pass + + def test_get_alert_history(self): + """Test case for get_alert_history + + Get the version history of a specific alert # noqa: E501 + """ + pass + + def test_get_alert_tags(self): + """Test case for get_alert_tags + + Get all tags associated with a specific alert # noqa: E501 + """ + pass + + def test_get_alert_version(self): + """Test case for get_alert_version + + Get a specific historical version of a specific alert # noqa: E501 + """ + pass + + def test_get_alerts_summary(self): + """Test case for get_alerts_summary + + Count alerts of various statuses for a customer # noqa: E501 + """ + pass + + def test_get_all_alert(self): + """Test case for get_all_alert + + Get all alerts for a customer # noqa: E501 + """ + pass + + def test_hide_alert(self): + """Test case for hide_alert + + Hide a specific integration alert # noqa: E501 + """ + pass + + def test_preview_alert_notification(self): + """Test case for preview_alert_notification + + Get all the notification preview for a specific alert # noqa: E501 + """ + pass + + def test_remove_alert_access(self): + """Test case for remove_alert_access + + Removes the specified ids from the given alerts' ACL # noqa: E501 + """ + pass + + def test_remove_alert_tag(self): + """Test case for remove_alert_tag + + Remove a tag from a specific alert # noqa: E501 + """ + pass + + def test_set_alert_acl(self): + """Test case for set_alert_acl + + Set ACL for the specified alerts # noqa: E501 + """ + pass + + def test_set_alert_tags(self): + """Test case for set_alert_tags + + Set all tags associated with a specific alert # noqa: E501 + """ + pass + + def test_snooze_alert(self): + """Test case for snooze_alert + + Snooze a specific alert for some number of seconds # noqa: E501 + """ + pass + + def test_undelete_alert(self): + """Test case for undelete_alert + + Undelete a specific alert # noqa: E501 + """ + pass + + def test_unhide_alert(self): + """Test case for unhide_alert + + Unhide a specific integration alert # noqa: E501 + """ + pass + + def test_unsnooze_alert(self): + """Test case for unsnooze_alert + + Unsnooze a specific alert # noqa: E501 + """ + pass + + def test_update_alert(self): + """Test case for update_alert + + Update a specific alert # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_dashboard.py b/test/test_alert_dashboard.py new file mode 100644 index 00000000..ddb248f7 --- /dev/null +++ b/test/test_alert_dashboard.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert_dashboard import AlertDashboard # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertDashboard(unittest.TestCase): + """AlertDashboard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlertDashboard(self): + """Test AlertDashboard""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert_dashboard.AlertDashboard() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_error_group_info.py b/test/test_alert_error_group_info.py new file mode 100644 index 00000000..9d9e75a9 --- /dev/null +++ b/test/test_alert_error_group_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert_error_group_info import AlertErrorGroupInfo # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertErrorGroupInfo(unittest.TestCase): + """AlertErrorGroupInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlertErrorGroupInfo(self): + """Test AlertErrorGroupInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert_error_group_info.AlertErrorGroupInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_error_group_summary.py b/test/test_alert_error_group_summary.py new file mode 100644 index 00000000..c3eae5a5 --- /dev/null +++ b/test/test_alert_error_group_summary.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert_error_group_summary import AlertErrorGroupSummary # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertErrorGroupSummary(unittest.TestCase): + """AlertErrorGroupSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlertErrorGroupSummary(self): + """Test AlertErrorGroupSummary""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert_error_group_summary.AlertErrorGroupSummary() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_error_summary.py b/test/test_alert_error_summary.py new file mode 100644 index 00000000..0c90023f --- /dev/null +++ b/test/test_alert_error_summary.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert_error_summary import AlertErrorSummary # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertErrorSummary(unittest.TestCase): + """AlertErrorSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlertErrorSummary(self): + """Test AlertErrorSummary""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert_error_summary.AlertErrorSummary() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_min.py b/test/test_alert_min.py new file mode 100644 index 00000000..8ddd0ce2 --- /dev/null +++ b/test/test_alert_min.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert_min import AlertMin # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertMin(unittest.TestCase): + """AlertMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlertMin(self): + """Test AlertMin""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert_min.AlertMin() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_route.py b/test/test_alert_route.py new file mode 100644 index 00000000..0f820dfd --- /dev/null +++ b/test/test_alert_route.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert_route import AlertRoute # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertRoute(unittest.TestCase): + """AlertRoute unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlertRoute(self): + """Test AlertRoute""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert_route.AlertRoute() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alert_source.py b/test/test_alert_source.py new file mode 100644 index 00000000..44f7a1eb --- /dev/null +++ b/test/test_alert_source.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.alert_source import AlertSource # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAlertSource(unittest.TestCase): + """AlertSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAlertSource(self): + """Test AlertSource""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.alert_source.AlertSource() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_annotation.py b/test/test_annotation.py new file mode 100644 index 00000000..7f45a466 --- /dev/null +++ b/test/test_annotation.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.annotation import Annotation # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAnnotation(unittest.TestCase): + """Annotation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnnotation(self): + """Test Annotation""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.annotation.Annotation() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_anomaly.py b/test/test_anomaly.py new file mode 100644 index 00000000..6a791740 --- /dev/null +++ b/test/test_anomaly.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.anomaly import Anomaly # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAnomaly(unittest.TestCase): + """Anomaly unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnomaly(self): + """Test Anomaly""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.anomaly.Anomaly() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_token_api.py b/test/test_api_token_api.py new file mode 100644 index 00000000..e2c560d9 --- /dev/null +++ b/test/test_api_token_api.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.api_token_api import ApiTokenApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestApiTokenApi(unittest.TestCase): + """ApiTokenApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.api_token_api.ApiTokenApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_token(self): + """Test case for create_token + + Create new api token # noqa: E501 + """ + pass + + def test_delete_customer_token(self): + """Test case for delete_customer_token + + Delete the specified api token for a customer # noqa: E501 + """ + pass + + def test_delete_token(self): + """Test case for delete_token + + Delete the specified api token # noqa: E501 + """ + pass + + def test_delete_token_service_account(self): + """Test case for delete_token_service_account + + Delete the specified api token of the given service account # noqa: E501 + """ + pass + + def test_generate_token_service_account(self): + """Test case for generate_token_service_account + + Create a new api token for the service account # noqa: E501 + """ + pass + + def test_get_all_tokens(self): + """Test case for get_all_tokens + + Get all api tokens for a user # noqa: E501 + """ + pass + + def test_get_customer_token(self): + """Test case for get_customer_token + + Get the specified api token for a customer # noqa: E501 + """ + pass + + def test_get_customer_tokens(self): + """Test case for get_customer_tokens + + Get all api tokens for a customer # noqa: E501 + """ + pass + + def test_get_tokens_service_account(self): + """Test case for get_tokens_service_account + + Get all api tokens for the given service account # noqa: E501 + """ + pass + + def test_update_token_name(self): + """Test case for update_token_name + + Update the name of the specified api token # noqa: E501 + """ + pass + + def test_update_token_name_service_account(self): + """Test case for update_token_name_service_account + + Update the name of the specified api token for the given service account # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_token_model.py b/test/test_api_token_model.py new file mode 100644 index 00000000..ef553dde --- /dev/null +++ b/test/test_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_app_dynamics_configuration.py b/test/test_app_dynamics_configuration.py new file mode 100644 index 00000000..9efcd552 --- /dev/null +++ b/test/test_app_dynamics_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.app_dynamics_configuration import AppDynamicsConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAppDynamicsConfiguration(unittest.TestCase): + """AppDynamicsConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppDynamicsConfiguration(self): + """Test AppDynamicsConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.app_dynamics_configuration.AppDynamicsConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_app_search_filter.py b/test/test_app_search_filter.py new file mode 100644 index 00000000..53f3d139 --- /dev/null +++ b/test/test_app_search_filter.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.app_search_filter import AppSearchFilter # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAppSearchFilter(unittest.TestCase): + """AppSearchFilter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppSearchFilter(self): + """Test AppSearchFilter""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.app_search_filter.AppSearchFilter() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_app_search_filter_value.py b/test/test_app_search_filter_value.py new file mode 100644 index 00000000..f95da99d --- /dev/null +++ b/test/test_app_search_filter_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.app_search_filter_value import AppSearchFilterValue # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAppSearchFilterValue(unittest.TestCase): + """AppSearchFilterValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppSearchFilterValue(self): + """Test AppSearchFilterValue""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.app_search_filter_value.AppSearchFilterValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_app_search_filters.py b/test/test_app_search_filters.py new file mode 100644 index 00000000..bd6de6a8 --- /dev/null +++ b/test/test_app_search_filters.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.app_search_filters import AppSearchFilters # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAppSearchFilters(unittest.TestCase): + """AppSearchFilters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppSearchFilters(self): + """Test AppSearchFilters""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.app_search_filters.AppSearchFilters() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_aws_base_credentials.py b/test/test_aws_base_credentials.py new file mode 100644 index 00000000..989a3817 --- /dev/null +++ b/test/test_aws_base_credentials.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.aws_base_credentials import AWSBaseCredentials # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAWSBaseCredentials(unittest.TestCase): + """AWSBaseCredentials unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAWSBaseCredentials(self): + """Test AWSBaseCredentials""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.aws_base_credentials.AWSBaseCredentials() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_azure_activity_log_configuration.py b/test/test_azure_activity_log_configuration.py new file mode 100644 index 00000000..79430080 --- /dev/null +++ b/test/test_azure_activity_log_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.azure_activity_log_configuration import AzureActivityLogConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAzureActivityLogConfiguration(unittest.TestCase): + """AzureActivityLogConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAzureActivityLogConfiguration(self): + """Test AzureActivityLogConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.azure_activity_log_configuration.AzureActivityLogConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_azure_base_credentials.py b/test/test_azure_base_credentials.py new file mode 100644 index 00000000..601e7c04 --- /dev/null +++ b/test/test_azure_base_credentials.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.azure_base_credentials import AzureBaseCredentials # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAzureBaseCredentials(unittest.TestCase): + """AzureBaseCredentials unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAzureBaseCredentials(self): + """Test AzureBaseCredentials""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.azure_base_credentials.AzureBaseCredentials() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_azure_configuration.py b/test/test_azure_configuration.py new file mode 100644 index 00000000..6ee110fe --- /dev/null +++ b/test/test_azure_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.azure_configuration import AzureConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestAzureConfiguration(unittest.TestCase): + """AzureConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAzureConfiguration(self): + """Test AzureConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.azure_configuration.AzureConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_chart.py b/test/test_chart.py new file mode 100644 index 00000000..62959874 --- /dev/null +++ b/test/test_chart.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.chart import Chart # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestChart(unittest.TestCase): + """Chart unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testChart(self): + """Test Chart""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.chart.Chart() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_chart_settings.py b/test/test_chart_settings.py new file mode 100644 index 00000000..28e74200 --- /dev/null +++ b/test/test_chart_settings.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.chart_settings import ChartSettings # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestChartSettings(unittest.TestCase): + """ChartSettings unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testChartSettings(self): + """Test ChartSettings""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.chart_settings.ChartSettings() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_chart_source_query.py b/test/test_chart_source_query.py new file mode 100644 index 00000000..dd550c02 --- /dev/null +++ b/test/test_chart_source_query.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.chart_source_query import ChartSourceQuery # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestChartSourceQuery(unittest.TestCase): + """ChartSourceQuery unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testChartSourceQuery(self): + """Test ChartSourceQuery""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.chart_source_query.ChartSourceQuery() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_class_loader.py b/test/test_class_loader.py new file mode 100644 index 00000000..b918e351 --- /dev/null +++ b/test/test_class_loader.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.class_loader import ClassLoader # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestClassLoader(unittest.TestCase): + """ClassLoader unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClassLoader(self): + """Test ClassLoader""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.class_loader.ClassLoader() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cloud_integration.py b/test/test_cloud_integration.py new file mode 100644 index 00000000..552a9ad9 --- /dev/null +++ b/test/test_cloud_integration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.cloud_integration import CloudIntegration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestCloudIntegration(unittest.TestCase): + """CloudIntegration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudIntegration(self): + """Test CloudIntegration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.cloud_integration.CloudIntegration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cloud_integration_api.py b/test/test_cloud_integration_api.py new file mode 100644 index 00000000..9f779884 --- /dev/null +++ b/test/test_cloud_integration_api.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.cloud_integration_api import CloudIntegrationApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestCloudIntegrationApi(unittest.TestCase): + """CloudIntegrationApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.cloud_integration_api.CloudIntegrationApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_aws_external_id(self): + """Test case for create_aws_external_id + + Create an external id # noqa: E501 + """ + pass + + def test_create_cloud_integration(self): + """Test case for create_cloud_integration + + Create a cloud integration # noqa: E501 + """ + pass + + def test_delete_aws_external_id(self): + """Test case for delete_aws_external_id + + DELETEs an external id that was created by Wavefront # noqa: E501 + """ + pass + + def test_delete_cloud_integration(self): + """Test case for delete_cloud_integration + + Delete a specific cloud integration # noqa: E501 + """ + pass + + def test_disable_cloud_integration(self): + """Test case for disable_cloud_integration + + Disable a specific cloud integration # noqa: E501 + """ + pass + + def test_enable_cloud_integration(self): + """Test case for enable_cloud_integration + + Enable a specific cloud integration # noqa: E501 + """ + pass + + def test_get_all_cloud_integration(self): + """Test case for get_all_cloud_integration + + Get all cloud integrations for a customer # noqa: E501 + """ + pass + + def test_get_aws_external_id(self): + """Test case for get_aws_external_id + + GETs (confirms) a valid external id that was created by Wavefront # noqa: E501 + """ + pass + + def test_get_cloud_integration(self): + """Test case for get_cloud_integration + + Get a specific cloud integration # noqa: E501 + """ + pass + + def test_undelete_cloud_integration(self): + """Test case for undelete_cloud_integration + + Undelete a specific cloud integration # noqa: E501 + """ + pass + + def test_update_cloud_integration(self): + """Test case for update_cloud_integration + + Update a specific cloud integration # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cloud_trail_configuration.py b/test/test_cloud_trail_configuration.py new file mode 100644 index 00000000..d363a2b1 --- /dev/null +++ b/test/test_cloud_trail_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.cloud_trail_configuration import CloudTrailConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestCloudTrailConfiguration(unittest.TestCase): + """CloudTrailConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudTrailConfiguration(self): + """Test CloudTrailConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.cloud_trail_configuration.CloudTrailConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cloud_watch_configuration.py b/test/test_cloud_watch_configuration.py new file mode 100644 index 00000000..0dd330b1 --- /dev/null +++ b/test/test_cloud_watch_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.cloud_watch_configuration import CloudWatchConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestCloudWatchConfiguration(unittest.TestCase): + """CloudWatchConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudWatchConfiguration(self): + """Test CloudWatchConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.cloud_watch_configuration.CloudWatchConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cluster_info_dto.py b/test/test_cluster_info_dto.py new file mode 100644 index 00000000..3bee8751 --- /dev/null +++ b/test/test_cluster_info_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.cluster_info_dto import ClusterInfoDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestClusterInfoDTO(unittest.TestCase): + """ClusterInfoDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterInfoDTO(self): + """Test ClusterInfoDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.cluster_info_dto.ClusterInfoDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_conversion.py b/test/test_conversion.py new file mode 100644 index 00000000..4b7b8b92 --- /dev/null +++ b/test/test_conversion.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.conversion import Conversion # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestConversion(unittest.TestCase): + """Conversion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConversion(self): + """Test Conversion""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.conversion.Conversion() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_conversion_object.py b/test/test_conversion_object.py new file mode 100644 index 00000000..d8db0566 --- /dev/null +++ b/test/test_conversion_object.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.conversion_object import ConversionObject # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestConversionObject(unittest.TestCase): + """ConversionObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConversionObject(self): + """Test ConversionObject""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.conversion_object.ConversionObject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_customer_facing_user_object.py b/test/test_customer_facing_user_object.py new file mode 100644 index 00000000..47848fe1 --- /dev/null +++ b/test/test_customer_facing_user_object.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.customer_facing_user_object import CustomerFacingUserObject # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestCustomerFacingUserObject(unittest.TestCase): + """CustomerFacingUserObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCustomerFacingUserObject(self): + """Test CustomerFacingUserObject""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.customer_facing_user_object.CustomerFacingUserObject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard.py b/test/test_dashboard.py new file mode 100644 index 00000000..b9bb275b --- /dev/null +++ b/test/test_dashboard.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.dashboard import Dashboard # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDashboard(unittest.TestCase): + """Dashboard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboard(self): + """Test Dashboard""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.dashboard.Dashboard() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_api.py b/test/test_dashboard_api.py new file mode 100644 index 00000000..070b5608 --- /dev/null +++ b/test/test_dashboard_api.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.dashboard_api import DashboardApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDashboardApi(unittest.TestCase): + """DashboardApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.dashboard_api.DashboardApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_dashboard_access(self): + """Test case for add_dashboard_access + + Adds the specified ids to the given dashboards' ACL # noqa: E501 + """ + pass + + def test_add_dashboard_tag(self): + """Test case for add_dashboard_tag + + Add a tag to a specific dashboard # noqa: E501 + """ + pass + + def test_create_dashboard(self): + """Test case for create_dashboard + + Create a specific dashboard # noqa: E501 + """ + pass + + def test_delete_dashboard(self): + """Test case for delete_dashboard + + Delete a specific dashboard # noqa: E501 + """ + pass + + def test_favorite_dashboard(self): + """Test case for favorite_dashboard + + Mark a dashboard as favorite # noqa: E501 + """ + pass + + def test_get_all_dashboard(self): + """Test case for get_all_dashboard + + Get all dashboards for a customer # noqa: E501 + """ + pass + + def test_get_dashboard(self): + """Test case for get_dashboard + + Get a specific dashboard # noqa: E501 + """ + pass + + def test_get_dashboard_access_control_list(self): + """Test case for get_dashboard_access_control_list + + Get list of Access Control Lists for the specified dashboards # noqa: E501 + """ + pass + + def test_get_dashboard_history(self): + """Test case for get_dashboard_history + + Get the version history of a specific dashboard # noqa: E501 + """ + pass + + def test_get_dashboard_tags(self): + """Test case for get_dashboard_tags + + Get all tags associated with a specific dashboard # noqa: E501 + """ + pass + + def test_get_dashboard_version(self): + """Test case for get_dashboard_version + + Get a specific version of a specific dashboard # noqa: E501 + """ + pass + + def test_remove_dashboard_access(self): + """Test case for remove_dashboard_access + + Removes the specified ids from the given dashboards' ACL # noqa: E501 + """ + pass + + def test_remove_dashboard_tag(self): + """Test case for remove_dashboard_tag + + Remove a tag from a specific dashboard # noqa: E501 + """ + pass + + def test_set_dashboard_acl(self): + """Test case for set_dashboard_acl + + Set ACL for the specified dashboards # noqa: E501 + """ + pass + + def test_set_dashboard_tags(self): + """Test case for set_dashboard_tags + + Set all tags associated with a specific dashboard # noqa: E501 + """ + pass + + def test_undelete_dashboard(self): + """Test case for undelete_dashboard + + Undelete a specific dashboard # noqa: E501 + """ + pass + + def test_unfavorite_dashboard(self): + """Test case for unfavorite_dashboard + + Unmark a dashboard as favorite # noqa: E501 + """ + pass + + def test_update_dashboard(self): + """Test case for update_dashboard + + Update a specific dashboard # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_min.py b/test/test_dashboard_min.py new file mode 100644 index 00000000..8086861b --- /dev/null +++ b/test/test_dashboard_min.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.dashboard_min import DashboardMin # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDashboardMin(unittest.TestCase): + """DashboardMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardMin(self): + """Test DashboardMin""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.dashboard_min.DashboardMin() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_parameter_value.py b/test/test_dashboard_parameter_value.py new file mode 100644 index 00000000..48cbf642 --- /dev/null +++ b/test/test_dashboard_parameter_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.dashboard_parameter_value import DashboardParameterValue # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDashboardParameterValue(unittest.TestCase): + """DashboardParameterValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardParameterValue(self): + """Test DashboardParameterValue""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.dashboard_parameter_value.DashboardParameterValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_section.py b/test/test_dashboard_section.py new file mode 100644 index 00000000..91768c3c --- /dev/null +++ b/test/test_dashboard_section.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.dashboard_section import DashboardSection # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDashboardSection(unittest.TestCase): + """DashboardSection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardSection(self): + """Test DashboardSection""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.dashboard_section.DashboardSection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_section_row.py b/test/test_dashboard_section_row.py new file mode 100644 index 00000000..340d8a4a --- /dev/null +++ b/test/test_dashboard_section_row.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.dashboard_section_row import DashboardSectionRow # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDashboardSectionRow(unittest.TestCase): + """DashboardSectionRow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardSectionRow(self): + """Test DashboardSectionRow""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.dashboard_section_row.DashboardSectionRow() # 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 00000000..2d1f348b --- /dev/null +++ b/test/test_default_saved_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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 00000000..cf64716d --- /dev/null +++ b/test/test_default_saved_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_derived_metric_api.py b/test/test_derived_metric_api.py new file mode 100644 index 00000000..d601fc0a --- /dev/null +++ b/test/test_derived_metric_api.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.derived_metric_api import DerivedMetricApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDerivedMetricApi(unittest.TestCase): + """DerivedMetricApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.derived_metric_api.DerivedMetricApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_tag_to_derived_metric(self): + """Test case for add_tag_to_derived_metric + + Add a tag to a specific Derived Metric # noqa: E501 + """ + pass + + def test_create_derived_metric(self): + """Test case for create_derived_metric + + Create a specific derived metric definition # noqa: E501 + """ + pass + + def test_delete_derived_metric(self): + """Test case for delete_derived_metric + + Delete a specific derived metric definition # noqa: E501 + """ + pass + + def test_get_all_derived_metrics(self): + """Test case for get_all_derived_metrics + + Get all derived metric definitions for a customer # noqa: E501 + """ + pass + + def test_get_derived_metric(self): + """Test case for get_derived_metric + + Get a specific registered query # noqa: E501 + """ + pass + + def test_get_derived_metric_by_version(self): + """Test case for get_derived_metric_by_version + + Get a specific historical version of a specific derived metric definition # noqa: E501 + """ + pass + + def test_get_derived_metric_history(self): + """Test case for get_derived_metric_history + + Get the version history of a specific derived metric definition # noqa: E501 + """ + pass + + def test_get_derived_metric_tags(self): + """Test case for get_derived_metric_tags + + Get all tags associated with a specific derived metric definition # noqa: E501 + """ + pass + + def test_remove_tag_from_derived_metric(self): + """Test case for remove_tag_from_derived_metric + + Remove a tag from a specific Derived Metric # noqa: E501 + """ + pass + + def test_set_derived_metric_tags(self): + """Test case for set_derived_metric_tags + + Set all tags associated with a specific derived metric definition # noqa: E501 + """ + pass + + def test_undelete_derived_metric(self): + """Test case for undelete_derived_metric + + Undelete a specific derived metric definition # noqa: E501 + """ + pass + + def test_update_derived_metric(self): + """Test case for update_derived_metric + + Update a specific derived metric definition # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_derived_metric_definition.py b/test/test_derived_metric_definition.py new file mode 100644 index 00000000..a5eaffef --- /dev/null +++ b/test/test_derived_metric_definition.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.derived_metric_definition import DerivedMetricDefinition # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDerivedMetricDefinition(unittest.TestCase): + """DerivedMetricDefinition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDerivedMetricDefinition(self): + """Test DerivedMetricDefinition""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.derived_metric_definition.DerivedMetricDefinition() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_direct_ingestion_api.py b/test/test_direct_ingestion_api.py new file mode 100644 index 00000000..01807b92 --- /dev/null +++ b/test/test_direct_ingestion_api.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.direct_ingestion_api import DirectIngestionApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDirectIngestionApi(unittest.TestCase): + """DirectIngestionApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.direct_ingestion_api.DirectIngestionApi() # noqa: E501 + + def tearDown(self): + pass + + def test_report(self): + """Test case for report + + Directly ingest data/data stream with specified format # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dynatrace_configuration.py b/test/test_dynatrace_configuration.py new file mode 100644 index 00000000..22f3391b --- /dev/null +++ b/test/test_dynatrace_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.dynatrace_configuration import DynatraceConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestDynatraceConfiguration(unittest.TestCase): + """DynatraceConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDynatraceConfiguration(self): + """Test DynatraceConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.dynatrace_configuration.DynatraceConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ec2_configuration.py b/test/test_ec2_configuration.py new file mode 100644 index 00000000..aaf73975 --- /dev/null +++ b/test/test_ec2_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.ec2_configuration import EC2Configuration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestEC2Configuration(unittest.TestCase): + """EC2Configuration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEC2Configuration(self): + """Test EC2Configuration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.ec2_configuration.EC2Configuration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_event.py b/test/test_event.py new file mode 100644 index 00000000..f622b7c8 --- /dev/null +++ b/test/test_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.event import Event # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestEvent(unittest.TestCase): + """Event unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEvent(self): + """Test Event""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.event.Event() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_event_api.py b/test/test_event_api.py new file mode 100644 index 00000000..f40cfa02 --- /dev/null +++ b/test/test_event_api.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.event_api import EventApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestEventApi(unittest.TestCase): + """EventApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.event_api.EventApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_event_tag(self): + """Test case for add_event_tag + + Add a tag to a specific event # noqa: E501 + """ + pass + + def test_close_user_event(self): + """Test case for close_user_event + + Close a specific event # noqa: E501 + """ + pass + + def test_create_event(self): + """Test case for create_event + + Create a specific event # noqa: E501 + """ + pass + + def test_delete_user_event(self): + """Test case for delete_user_event + + Delete a specific user event # noqa: E501 + """ + pass + + def test_get_alert_event_queries_slug(self): + """Test case for get_alert_event_queries_slug + + If the specified event is associated with an alert, returns a slug encoding the queries having to do with that alert firing or resolution # noqa: E501 + """ + pass + + def test_get_alert_firing_details(self): + """Test case for get_alert_firing_details + + Return details of a particular alert firing, including all the series that fired during the referred alert firing # noqa: E501 + """ + pass + + def test_get_alert_firing_events(self): + """Test case for get_alert_firing_events + + Get firings events of an alert within a time range # noqa: E501 + """ + pass + + def test_get_all_events_with_time_range(self): + """Test case for get_all_events_with_time_range + + List all the events for a customer within a time range # noqa: E501 + """ + pass + + def test_get_event(self): + """Test case for get_event + + Get a specific event # noqa: E501 + """ + pass + + def test_get_event_tags(self): + """Test case for get_event_tags + + Get all tags associated with a specific event # noqa: E501 + """ + pass + + def test_get_related_events_with_time_span(self): + """Test case for get_related_events_with_time_span + + List all related events for a specific firing event with a time span of one hour # noqa: E501 + """ + pass + + def test_remove_event_tag(self): + """Test case for remove_event_tag + + Remove a tag from a specific event # noqa: E501 + """ + pass + + def test_set_event_tags(self): + """Test case for set_event_tags + + Set all tags associated with a specific event # noqa: E501 + """ + pass + + def test_update_user_event(self): + """Test case for update_user_event + + Update a specific user event. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_event_search_request.py b/test/test_event_search_request.py new file mode 100644 index 00000000..c9ff1f6a --- /dev/null +++ b/test/test_event_search_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.event_search_request import EventSearchRequest # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestEventSearchRequest(unittest.TestCase): + """EventSearchRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventSearchRequest(self): + """Test EventSearchRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.event_search_request.EventSearchRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_event_time_range.py b/test/test_event_time_range.py new file mode 100644 index 00000000..62f54c7a --- /dev/null +++ b/test/test_event_time_range.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.event_time_range import EventTimeRange # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestEventTimeRange(unittest.TestCase): + """EventTimeRange unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventTimeRange(self): + """Test EventTimeRange""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.event_time_range.EventTimeRange() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_external_link.py b/test/test_external_link.py new file mode 100644 index 00000000..8a6a8533 --- /dev/null +++ b/test/test_external_link.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.external_link import ExternalLink # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestExternalLink(unittest.TestCase): + """ExternalLink unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExternalLink(self): + """Test ExternalLink""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.external_link.ExternalLink() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_external_link_api.py b/test/test_external_link_api.py new file mode 100644 index 00000000..21d256b6 --- /dev/null +++ b/test/test_external_link_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.external_link_api import ExternalLinkApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestExternalLinkApi(unittest.TestCase): + """ExternalLinkApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.external_link_api.ExternalLinkApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_external_link(self): + """Test case for create_external_link + + Create a specific external link # noqa: E501 + """ + pass + + def test_delete_external_link(self): + """Test case for delete_external_link + + Delete a specific external link # noqa: E501 + """ + pass + + def test_get_all_external_link(self): + """Test case for get_all_external_link + + Get all external links for a customer # noqa: E501 + """ + pass + + def test_get_external_link(self): + """Test case for get_external_link + + Get a specific external link # noqa: E501 + """ + pass + + def test_update_external_link(self): + """Test case for update_external_link + + Update a specific external link # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_facet_response.py b/test/test_facet_response.py new file mode 100644 index 00000000..ccd12ae4 --- /dev/null +++ b/test/test_facet_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.facet_response import FacetResponse # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestFacetResponse(unittest.TestCase): + """FacetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFacetResponse(self): + """Test FacetResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.facet_response.FacetResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_facet_search_request_container.py b/test/test_facet_search_request_container.py new file mode 100644 index 00000000..4b70d60a --- /dev/null +++ b/test/test_facet_search_request_container.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.facet_search_request_container import FacetSearchRequestContainer # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestFacetSearchRequestContainer(unittest.TestCase): + """FacetSearchRequestContainer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFacetSearchRequestContainer(self): + """Test FacetSearchRequestContainer""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.facet_search_request_container.FacetSearchRequestContainer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_facets_response_container.py b/test/test_facets_response_container.py new file mode 100644 index 00000000..eea5448b --- /dev/null +++ b/test/test_facets_response_container.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.facets_response_container import FacetsResponseContainer # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestFacetsResponseContainer(unittest.TestCase): + """FacetsResponseContainer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFacetsResponseContainer(self): + """Test FacetsResponseContainer""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.facets_response_container.FacetsResponseContainer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_facets_search_request_container.py b/test/test_facets_search_request_container.py new file mode 100644 index 00000000..da82b90b --- /dev/null +++ b/test/test_facets_search_request_container.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.facets_search_request_container import FacetsSearchRequestContainer # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestFacetsSearchRequestContainer(unittest.TestCase): + """FacetsSearchRequestContainer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFacetsSearchRequestContainer(self): + """Test FacetsSearchRequestContainer""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.facets_search_request_container.FacetsSearchRequestContainer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_fast_reader_builder.py b/test/test_fast_reader_builder.py new file mode 100644 index 00000000..505b385e --- /dev/null +++ b/test/test_fast_reader_builder.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.fast_reader_builder import FastReaderBuilder # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestFastReaderBuilder(unittest.TestCase): + """FastReaderBuilder unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFastReaderBuilder(self): + """Test FastReaderBuilder""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.fast_reader_builder.FastReaderBuilder() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_field.py b/test/test_field.py new file mode 100644 index 00000000..2e0bcbe4 --- /dev/null +++ b/test/test_field.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.field import Field # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestField(unittest.TestCase): + """Field unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testField(self): + """Test Field""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.field.Field() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_gcp_billing_configuration.py b/test/test_gcp_billing_configuration.py new file mode 100644 index 00000000..5a02817e --- /dev/null +++ b/test/test_gcp_billing_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.gcp_billing_configuration import GCPBillingConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestGCPBillingConfiguration(unittest.TestCase): + """GCPBillingConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGCPBillingConfiguration(self): + """Test GCPBillingConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.gcp_billing_configuration.GCPBillingConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_gcp_configuration.py b/test/test_gcp_configuration.py new file mode 100644 index 00000000..84f304da --- /dev/null +++ b/test/test_gcp_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.gcp_configuration import GCPConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestGCPConfiguration(unittest.TestCase): + """GCPConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGCPConfiguration(self): + """Test GCPConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.gcp_configuration.GCPConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_history_entry.py b/test/test_history_entry.py new file mode 100644 index 00000000..78ebe58a --- /dev/null +++ b/test/test_history_entry.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.history_entry import HistoryEntry # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestHistoryEntry(unittest.TestCase): + """HistoryEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHistoryEntry(self): + """Test HistoryEntry""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.history_entry.HistoryEntry() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_history_response.py b/test/test_history_response.py new file mode 100644 index 00000000..869fdc2e --- /dev/null +++ b/test/test_history_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.history_response import HistoryResponse # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestHistoryResponse(unittest.TestCase): + """HistoryResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHistoryResponse(self): + """Test HistoryResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.history_response.HistoryResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ingestion_policy_alert.py b/test/test_ingestion_policy_alert.py new file mode 100644 index 00000000..ec09f377 --- /dev/null +++ b/test/test_ingestion_policy_alert.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.ingestion_policy_alert import IngestionPolicyAlert # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIngestionPolicyAlert(unittest.TestCase): + """IngestionPolicyAlert unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIngestionPolicyAlert(self): + """Test IngestionPolicyAlert""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.ingestion_policy_alert.IngestionPolicyAlert() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ingestion_policy_metadata.py b/test/test_ingestion_policy_metadata.py new file mode 100644 index 00000000..494453ee --- /dev/null +++ b/test/test_ingestion_policy_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.ingestion_policy_metadata import IngestionPolicyMetadata # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIngestionPolicyMetadata(unittest.TestCase): + """IngestionPolicyMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIngestionPolicyMetadata(self): + """Test IngestionPolicyMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.ingestion_policy_metadata.IngestionPolicyMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ingestion_policy_read_model.py b/test/test_ingestion_policy_read_model.py new file mode 100644 index 00000000..b167646c --- /dev/null +++ b/test/test_ingestion_policy_read_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.ingestion_policy_read_model import IngestionPolicyReadModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIngestionPolicyReadModel(unittest.TestCase): + """IngestionPolicyReadModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIngestionPolicyReadModel(self): + """Test IngestionPolicyReadModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.ingestion_policy_read_model.IngestionPolicyReadModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ingestion_policy_write_model.py b/test/test_ingestion_policy_write_model.py new file mode 100644 index 00000000..6addcb26 --- /dev/null +++ b/test/test_ingestion_policy_write_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.ingestion_policy_write_model import IngestionPolicyWriteModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIngestionPolicyWriteModel(unittest.TestCase): + """IngestionPolicyWriteModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIngestionPolicyWriteModel(self): + """Test IngestionPolicyWriteModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.ingestion_policy_write_model.IngestionPolicyWriteModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ingestion_spy_api.py b/test/test_ingestion_spy_api.py new file mode 100644 index 00000000..e71b2925 --- /dev/null +++ b/test/test_ingestion_spy_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.ingestion_spy_api import IngestionSpyApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIngestionSpyApi(unittest.TestCase): + """IngestionSpyApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.ingestion_spy_api.IngestionSpyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_spy_on_delta_counters(self): + """Test case for spy_on_delta_counters + + Gets new delta counters that are added to existing time series. # noqa: E501 + """ + pass + + def test_spy_on_histograms(self): + """Test case for spy_on_histograms + + Gets new histograms that are added to existing time series. # noqa: E501 + """ + pass + + def test_spy_on_id_creations(self): + """Test case for spy_on_id_creations + + Gets newly allocated IDs that correspond to new metric names, source names, point tags, or span tags. A new ID generally indicates that a new time series has been introduced. # noqa: E501 + """ + pass + + def test_spy_on_points(self): + """Test case for spy_on_points + + Gets a sampling of new metric data points that are added to existing time series. # noqa: E501 + """ + pass + + def test_spy_on_spans(self): + """Test case for spy_on_spans + + Gets new spans with existing source names and span tags. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_install_alerts.py b/test/test_install_alerts.py new file mode 100644 index 00000000..453eeb79 --- /dev/null +++ b/test/test_install_alerts.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.install_alerts import InstallAlerts # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestInstallAlerts(unittest.TestCase): + """InstallAlerts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInstallAlerts(self): + """Test InstallAlerts""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.install_alerts.InstallAlerts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_integration.py b/test/test_integration.py new file mode 100644 index 00000000..caa0ade7 --- /dev/null +++ b/test/test_integration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.integration import Integration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIntegration(unittest.TestCase): + """Integration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIntegration(self): + """Test Integration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.integration.Integration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_integration_alert.py b/test/test_integration_alert.py new file mode 100644 index 00000000..dc061719 --- /dev/null +++ b/test/test_integration_alert.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.integration_alert import IntegrationAlert # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIntegrationAlert(unittest.TestCase): + """IntegrationAlert unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIntegrationAlert(self): + """Test IntegrationAlert""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.integration_alert.IntegrationAlert() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_integration_alias.py b/test/test_integration_alias.py new file mode 100644 index 00000000..f4bdd8ca --- /dev/null +++ b/test/test_integration_alias.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.integration_alias import IntegrationAlias # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIntegrationAlias(unittest.TestCase): + """IntegrationAlias unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIntegrationAlias(self): + """Test IntegrationAlias""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.integration_alias.IntegrationAlias() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_integration_api.py b/test/test_integration_api.py new file mode 100644 index 00000000..974fa41f --- /dev/null +++ b/test/test_integration_api.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.integration_api import IntegrationApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIntegrationApi(unittest.TestCase): + """IntegrationApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.integration_api.IntegrationApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_all_integration(self): + """Test case for get_all_integration + + Gets a flat list of all Wavefront integrations available, along with their status # noqa: E501 + """ + pass + + def test_get_all_integration_in_manifests(self): + """Test case for get_all_integration_in_manifests + + Gets all Wavefront integrations as structured in their integration manifests, along with their status and content # noqa: E501 + """ + pass + + def test_get_all_integration_in_manifests_min(self): + """Test case for get_all_integration_in_manifests_min + + Gets all Wavefront integrations as structured in their integration manifests. # noqa: E501 + """ + pass + + def test_get_all_integration_statuses(self): + """Test case for get_all_integration_statuses + + Gets the status of all Wavefront integrations # noqa: E501 + """ + pass + + def test_get_installed_integration(self): + """Test case for get_installed_integration + + Gets a flat list of all Integrations that are installed, along with their status # noqa: E501 + """ + pass + + def test_get_integration(self): + """Test case for get_integration + + Gets a single Wavefront integration by its id, along with its status # noqa: E501 + """ + pass + + def test_get_integration_status(self): + """Test case for get_integration_status + + Gets the status of a single Wavefront integration # noqa: E501 + """ + pass + + def test_install_all_integration_alerts(self): + """Test case for install_all_integration_alerts + + Enable all alerts associated with this integration # noqa: E501 + """ + pass + + def test_install_integration(self): + """Test case for install_integration + + Installs a Wavefront integration # noqa: E501 + """ + pass + + def test_uninstall_all_integration_alerts(self): + """Test case for uninstall_all_integration_alerts + + Disable all alerts associated with this integration # noqa: E501 + """ + pass + + def test_uninstall_integration(self): + """Test case for uninstall_integration + + Uninstalls a Wavefront integration # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_integration_dashboard.py b/test/test_integration_dashboard.py new file mode 100644 index 00000000..f0c21bcf --- /dev/null +++ b/test/test_integration_dashboard.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.integration_dashboard import IntegrationDashboard # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIntegrationDashboard(unittest.TestCase): + """IntegrationDashboard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIntegrationDashboard(self): + """Test IntegrationDashboard""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.integration_dashboard.IntegrationDashboard() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_integration_manifest_group.py b/test/test_integration_manifest_group.py new file mode 100644 index 00000000..6a383953 --- /dev/null +++ b/test/test_integration_manifest_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.integration_manifest_group import IntegrationManifestGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIntegrationManifestGroup(unittest.TestCase): + """IntegrationManifestGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIntegrationManifestGroup(self): + """Test IntegrationManifestGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.integration_manifest_group.IntegrationManifestGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_integration_metrics.py b/test/test_integration_metrics.py new file mode 100644 index 00000000..10bc8983 --- /dev/null +++ b/test/test_integration_metrics.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.integration_metrics import IntegrationMetrics # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIntegrationMetrics(unittest.TestCase): + """IntegrationMetrics unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIntegrationMetrics(self): + """Test IntegrationMetrics""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.integration_metrics.IntegrationMetrics() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_integration_status.py b/test/test_integration_status.py new file mode 100644 index 00000000..01f93a5d --- /dev/null +++ b/test/test_integration_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.integration_status import IntegrationStatus # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestIntegrationStatus(unittest.TestCase): + """IntegrationStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIntegrationStatus(self): + """Test IntegrationStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.integration_status.IntegrationStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_json_node.py b/test/test_json_node.py new file mode 100644 index 00000000..57bf9768 --- /dev/null +++ b/test/test_json_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.json_node import JsonNode # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestJsonNode(unittest.TestCase): + """JsonNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJsonNode(self): + """Test JsonNode""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.json_node.JsonNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kubernetes_component.py b/test/test_kubernetes_component.py new file mode 100644 index 00000000..0e09f545 --- /dev/null +++ b/test/test_kubernetes_component.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.kubernetes_component import KubernetesComponent # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestKubernetesComponent(unittest.TestCase): + """KubernetesComponent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKubernetesComponent(self): + """Test KubernetesComponent""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.kubernetes_component.KubernetesComponent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kubernetes_component_status.py b/test/test_kubernetes_component_status.py new file mode 100644 index 00000000..3880eb06 --- /dev/null +++ b/test/test_kubernetes_component_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.kubernetes_component_status import KubernetesComponentStatus # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestKubernetesComponentStatus(unittest.TestCase): + """KubernetesComponentStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKubernetesComponentStatus(self): + """Test KubernetesComponentStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.kubernetes_component_status.KubernetesComponentStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_logical_type.py b/test/test_logical_type.py new file mode 100644 index 00000000..9efb074d --- /dev/null +++ b/test/test_logical_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.logical_type import LogicalType # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestLogicalType(unittest.TestCase): + """LogicalType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLogicalType(self): + """Test LogicalType""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.logical_type.LogicalType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_logs_sort.py b/test/test_logs_sort.py new file mode 100644 index 00000000..082fe19a --- /dev/null +++ b/test/test_logs_sort.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.logs_sort import LogsSort # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestLogsSort(unittest.TestCase): + """LogsSort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLogsSort(self): + """Test LogsSort""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.logs_sort.LogsSort() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_logs_table.py b/test/test_logs_table.py new file mode 100644 index 00000000..963b9319 --- /dev/null +++ b/test/test_logs_table.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.logs_table import LogsTable # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestLogsTable(unittest.TestCase): + """LogsTable unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLogsTable(self): + """Test LogsTable""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.logs_table.LogsTable() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_maintenance_window.py b/test/test_maintenance_window.py new file mode 100644 index 00000000..e37af154 --- /dev/null +++ b/test/test_maintenance_window.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.maintenance_window import MaintenanceWindow # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMaintenanceWindow(unittest.TestCase): + """MaintenanceWindow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMaintenanceWindow(self): + """Test MaintenanceWindow""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.maintenance_window.MaintenanceWindow() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_maintenance_window_api.py b/test/test_maintenance_window_api.py new file mode 100644 index 00000000..1ecc46d6 --- /dev/null +++ b/test/test_maintenance_window_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.maintenance_window_api import MaintenanceWindowApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMaintenanceWindowApi(unittest.TestCase): + """MaintenanceWindowApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.maintenance_window_api.MaintenanceWindowApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_maintenance_window(self): + """Test case for create_maintenance_window + + Create a maintenance window # noqa: E501 + """ + pass + + def test_delete_maintenance_window(self): + """Test case for delete_maintenance_window + + Delete a specific maintenance window # noqa: E501 + """ + pass + + def test_get_all_maintenance_window(self): + """Test case for get_all_maintenance_window + + Get all maintenance windows for a customer # noqa: E501 + """ + pass + + def test_get_maintenance_window(self): + """Test case for get_maintenance_window + + Get a specific maintenance window # noqa: E501 + """ + pass + + def test_update_maintenance_window(self): + """Test case for update_maintenance_window + + Update a specific maintenance window # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_message.py b/test/test_message.py new file mode 100644 index 00000000..5bc58988 --- /dev/null +++ b/test/test_message.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.message import Message # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMessage(unittest.TestCase): + """Message unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMessage(self): + """Test Message""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.message.Message() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_message_api.py b/test/test_message_api.py new file mode 100644 index 00000000..8a7078e5 --- /dev/null +++ b/test/test_message_api.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.message_api import MessageApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMessageApi(unittest.TestCase): + """MessageApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.message_api.MessageApi() # noqa: E501 + + def tearDown(self): + pass + + def test_user_get_messages(self): + """Test case for user_get_messages + + Gets messages applicable to the current user, i.e. within time range and distribution scope # noqa: E501 + """ + pass + + def test_user_read_message(self): + """Test case for user_read_message + + Mark a specific message as read # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_metric_api.py b/test/test_metric_api.py new file mode 100644 index 00000000..60812efd --- /dev/null +++ b/test/test_metric_api.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.metric_api import MetricApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMetricApi(unittest.TestCase): + """MetricApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.metric_api.MetricApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_metric_details(self): + """Test case for get_metric_details + + Get more details on a metric, including reporting sources and approximate last time reported # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_metric_details.py b/test/test_metric_details.py new file mode 100644 index 00000000..da398bf9 --- /dev/null +++ b/test/test_metric_details.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.metric_details import MetricDetails # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMetricDetails(unittest.TestCase): + """MetricDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMetricDetails(self): + """Test MetricDetails""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.metric_details.MetricDetails() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_metric_details_response.py b/test/test_metric_details_response.py new file mode 100644 index 00000000..46c78f92 --- /dev/null +++ b/test/test_metric_details_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.metric_details_response import MetricDetailsResponse # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMetricDetailsResponse(unittest.TestCase): + """MetricDetailsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMetricDetailsResponse(self): + """Test MetricDetailsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.metric_details_response.MetricDetailsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_metric_status.py b/test/test_metric_status.py new file mode 100644 index 00000000..4c8f743e --- /dev/null +++ b/test/test_metric_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.metric_status import MetricStatus # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMetricStatus(unittest.TestCase): + """MetricStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMetricStatus(self): + """Test MetricStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.metric_status.MetricStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_metrics_policy_api.py b/test/test_metrics_policy_api.py new file mode 100644 index 00000000..0180c883 --- /dev/null +++ b/test/test_metrics_policy_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.metrics_policy_api import MetricsPolicyApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMetricsPolicyApi(unittest.TestCase): + """MetricsPolicyApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.metrics_policy_api.MetricsPolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_metrics_policy(self): + """Test case for get_metrics_policy + + Get the metrics policy # noqa: E501 + """ + pass + + def test_get_metrics_policy_by_version(self): + """Test case for get_metrics_policy_by_version + + Get a specific historical version of a metrics policy # noqa: E501 + """ + pass + + def test_get_metrics_policy_history(self): + """Test case for get_metrics_policy_history + + Get the version history of metrics policy # noqa: E501 + """ + pass + + def test_revert_metrics_policy_by_version(self): + """Test case for revert_metrics_policy_by_version + + Revert to a specific historical version of a metrics policy # noqa: E501 + """ + pass + + def test_update_metrics_policy(self): + """Test case for update_metrics_policy + + Update the metrics policy # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_metrics_policy_read_model.py b/test/test_metrics_policy_read_model.py new file mode 100644 index 00000000..708b516c --- /dev/null +++ b/test/test_metrics_policy_read_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.metrics_policy_read_model import MetricsPolicyReadModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMetricsPolicyReadModel(unittest.TestCase): + """MetricsPolicyReadModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMetricsPolicyReadModel(self): + """Test MetricsPolicyReadModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.metrics_policy_read_model.MetricsPolicyReadModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_metrics_policy_write_model.py b/test/test_metrics_policy_write_model.py new file mode 100644 index 00000000..8281c36a --- /dev/null +++ b/test/test_metrics_policy_write_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.metrics_policy_write_model import MetricsPolicyWriteModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMetricsPolicyWriteModel(unittest.TestCase): + """MetricsPolicyWriteModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMetricsPolicyWriteModel(self): + """Test MetricsPolicyWriteModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.metrics_policy_write_model.MetricsPolicyWriteModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_module.py b/test/test_module.py new file mode 100644 index 00000000..707a6fef --- /dev/null +++ b/test/test_module.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.module import Module # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestModule(unittest.TestCase): + """Module unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testModule(self): + """Test Module""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.module.Module() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_module_descriptor.py b/test/test_module_descriptor.py new file mode 100644 index 00000000..d1f7ecdd --- /dev/null +++ b/test/test_module_descriptor.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.module_descriptor import ModuleDescriptor # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestModuleDescriptor(unittest.TestCase): + """ModuleDescriptor unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testModuleDescriptor(self): + """Test ModuleDescriptor""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.module_descriptor.ModuleDescriptor() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_module_layer.py b/test/test_module_layer.py new file mode 100644 index 00000000..9590c0bb --- /dev/null +++ b/test/test_module_layer.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.module_layer import ModuleLayer # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestModuleLayer(unittest.TestCase): + """ModuleLayer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testModuleLayer(self): + """Test ModuleLayer""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.module_layer.ModuleLayer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitored_application_api.py b/test/test_monitored_application_api.py new file mode 100644 index 00000000..ddfef547 --- /dev/null +++ b/test/test_monitored_application_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.monitored_application_api import MonitoredApplicationApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMonitoredApplicationApi(unittest.TestCase): + """MonitoredApplicationApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.monitored_application_api.MonitoredApplicationApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_all_applications(self): + """Test case for get_all_applications + + Get all monitored services # noqa: E501 + """ + pass + + def test_get_application(self): + """Test case for get_application + + Get a specific application # noqa: E501 + """ + pass + + def test_update_service(self): + """Test case for update_service + + Update a specific service # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitored_application_dto.py b/test/test_monitored_application_dto.py new file mode 100644 index 00000000..fe5346f3 --- /dev/null +++ b/test/test_monitored_application_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.monitored_application_dto import MonitoredApplicationDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMonitoredApplicationDTO(unittest.TestCase): + """MonitoredApplicationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMonitoredApplicationDTO(self): + """Test MonitoredApplicationDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.monitored_application_dto.MonitoredApplicationDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitored_cluster.py b/test/test_monitored_cluster.py new file mode 100644 index 00000000..c1c2f416 --- /dev/null +++ b/test/test_monitored_cluster.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.monitored_cluster import MonitoredCluster # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMonitoredCluster(unittest.TestCase): + """MonitoredCluster unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMonitoredCluster(self): + """Test MonitoredCluster""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.monitored_cluster.MonitoredCluster() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitored_service_api.py b/test/test_monitored_service_api.py new file mode 100644 index 00000000..3ed0e00f --- /dev/null +++ b/test/test_monitored_service_api.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.monitored_service_api import MonitoredServiceApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMonitoredServiceApi(unittest.TestCase): + """MonitoredServiceApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.monitored_service_api.MonitoredServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_batch_update(self): + """Test case for batch_update + + Update multiple applications and services in a batch. Batch size is limited to 100. # noqa: E501 + """ + pass + + def test_get_all_components(self): + """Test case for get_all_components + + Get all monitored services with components # noqa: E501 + """ + pass + + def test_get_all_services(self): + """Test case for get_all_services + + Get all monitored services # noqa: E501 + """ + pass + + def test_get_component(self): + """Test case for get_component + + Get a specific application # noqa: E501 + """ + pass + + def test_get_service(self): + """Test case for get_service + + Get a specific application # noqa: E501 + """ + pass + + def test_get_services_of_application(self): + """Test case for get_services_of_application + + Get a specific application # noqa: E501 + """ + pass + + def test_update_service(self): + """Test case for update_service + + Update a specific service # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitored_service_dto.py b/test/test_monitored_service_dto.py new file mode 100644 index 00000000..e87d41c4 --- /dev/null +++ b/test/test_monitored_service_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.monitored_service_dto import MonitoredServiceDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestMonitoredServiceDTO(unittest.TestCase): + """MonitoredServiceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMonitoredServiceDTO(self): + """Test MonitoredServiceDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.monitored_service_dto.MonitoredServiceDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_new_relic_configuration.py b/test/test_new_relic_configuration.py new file mode 100644 index 00000000..02e8e02b --- /dev/null +++ b/test/test_new_relic_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.new_relic_configuration import NewRelicConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestNewRelicConfiguration(unittest.TestCase): + """NewRelicConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNewRelicConfiguration(self): + """Test NewRelicConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.new_relic_configuration.NewRelicConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_new_relic_metric_filters.py b/test/test_new_relic_metric_filters.py new file mode 100644 index 00000000..d03fa119 --- /dev/null +++ b/test/test_new_relic_metric_filters.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.new_relic_metric_filters import NewRelicMetricFilters # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestNewRelicMetricFilters(unittest.TestCase): + """NewRelicMetricFilters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNewRelicMetricFilters(self): + """Test NewRelicMetricFilters""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.new_relic_metric_filters.NewRelicMetricFilters() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_notificant.py b/test/test_notificant.py new file mode 100644 index 00000000..980980d6 --- /dev/null +++ b/test/test_notificant.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.notificant import Notificant # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestNotificant(unittest.TestCase): + """Notificant unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNotificant(self): + """Test Notificant""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.notificant.Notificant() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_notificant_api.py b/test/test_notificant_api.py new file mode 100644 index 00000000..32eb4468 --- /dev/null +++ b/test/test_notificant_api.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.notificant_api import NotificantApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestNotificantApi(unittest.TestCase): + """NotificantApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.notificant_api.NotificantApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_notificant(self): + """Test case for create_notificant + + Create a notification target # noqa: E501 + """ + pass + + def test_delete_notificant(self): + """Test case for delete_notificant + + Delete a specific notification target # noqa: E501 + """ + pass + + def test_get_all_notificants(self): + """Test case for get_all_notificants + + Get all notification targets for a customer # noqa: E501 + """ + pass + + def test_get_notificant(self): + """Test case for get_notificant + + Get a specific notification target # noqa: E501 + """ + pass + + def test_test_notificant(self): + """Test case for test_notificant + + Test a specific notification target # noqa: E501 + """ + pass + + def test_update_notificant(self): + """Test case for update_notificant + + Update a specific notification target # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_notification_messages.py b/test/test_notification_messages.py new file mode 100644 index 00000000..accd2dde --- /dev/null +++ b/test/test_notification_messages.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.notification_messages import NotificationMessages # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestNotificationMessages(unittest.TestCase): + """NotificationMessages unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNotificationMessages(self): + """Test NotificationMessages""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.notification_messages.NotificationMessages() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_package.py b/test/test_package.py new file mode 100644 index 00000000..a27ab42d --- /dev/null +++ b/test/test_package.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.package import Package # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPackage(unittest.TestCase): + """Package unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPackage(self): + """Test Package""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.package.Package() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged.py b/test/test_paged.py new file mode 100644 index 00000000..2ec754bc --- /dev/null +++ b/test/test_paged.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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 import Paged # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPaged(unittest.TestCase): + """Paged unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPaged(self): + """Test Paged""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged.Paged() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_account.py b/test/test_paged_account.py new file mode 100644 index 00000000..d9d68b35 --- /dev/null +++ b/test/test_paged_account.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_account import PagedAccount # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedAccount(unittest.TestCase): + """PagedAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedAccount(self): + """Test PagedAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_account.PagedAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_alert.py b/test/test_paged_alert.py new file mode 100644 index 00000000..e1dd260f --- /dev/null +++ b/test/test_paged_alert.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_alert import PagedAlert # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedAlert(unittest.TestCase): + """PagedAlert unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedAlert(self): + """Test PagedAlert""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_alert.PagedAlert() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_alert_analytics_summary_detail.py b/test/test_paged_alert_analytics_summary_detail.py new file mode 100644 index 00000000..b6808fc1 --- /dev/null +++ b/test/test_paged_alert_analytics_summary_detail.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_alert_analytics_summary_detail import PagedAlertAnalyticsSummaryDetail # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedAlertAnalyticsSummaryDetail(unittest.TestCase): + """PagedAlertAnalyticsSummaryDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedAlertAnalyticsSummaryDetail(self): + """Test PagedAlertAnalyticsSummaryDetail""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_alert_analytics_summary_detail.PagedAlertAnalyticsSummaryDetail() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_alert_with_stats.py b/test/test_paged_alert_with_stats.py new file mode 100644 index 00000000..96593be8 --- /dev/null +++ b/test/test_paged_alert_with_stats.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_alert_with_stats import PagedAlertWithStats # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedAlertWithStats(unittest.TestCase): + """PagedAlertWithStats unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedAlertWithStats(self): + """Test PagedAlertWithStats""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_alert_with_stats.PagedAlertWithStats() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_anomaly.py b/test/test_paged_anomaly.py new file mode 100644 index 00000000..8651711d --- /dev/null +++ b/test/test_paged_anomaly.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_anomaly import PagedAnomaly # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedAnomaly(unittest.TestCase): + """PagedAnomaly unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedAnomaly(self): + """Test PagedAnomaly""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_anomaly.PagedAnomaly() # 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 00000000..079b4277 --- /dev/null +++ b/test/test_paged_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_paged_cloud_integration.py b/test/test_paged_cloud_integration.py new file mode 100644 index 00000000..5b6bca5a --- /dev/null +++ b/test/test_paged_cloud_integration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_cloud_integration import PagedCloudIntegration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedCloudIntegration(unittest.TestCase): + """PagedCloudIntegration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedCloudIntegration(self): + """Test PagedCloudIntegration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_cloud_integration.PagedCloudIntegration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_customer_facing_user_object.py b/test/test_paged_customer_facing_user_object.py new file mode 100644 index 00000000..c7363fa0 --- /dev/null +++ b/test/test_paged_customer_facing_user_object.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_customer_facing_user_object import PagedCustomerFacingUserObject # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedCustomerFacingUserObject(unittest.TestCase): + """PagedCustomerFacingUserObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedCustomerFacingUserObject(self): + """Test PagedCustomerFacingUserObject""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_customer_facing_user_object.PagedCustomerFacingUserObject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_dashboard.py b/test/test_paged_dashboard.py new file mode 100644 index 00000000..cfd0341b --- /dev/null +++ b/test/test_paged_dashboard.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_dashboard import PagedDashboard # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedDashboard(unittest.TestCase): + """PagedDashboard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedDashboard(self): + """Test PagedDashboard""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_dashboard.PagedDashboard() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_derived_metric_definition.py b/test/test_paged_derived_metric_definition.py new file mode 100644 index 00000000..999fc7da --- /dev/null +++ b/test/test_paged_derived_metric_definition.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_derived_metric_definition import PagedDerivedMetricDefinition # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedDerivedMetricDefinition(unittest.TestCase): + """PagedDerivedMetricDefinition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedDerivedMetricDefinition(self): + """Test PagedDerivedMetricDefinition""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_derived_metric_definition.PagedDerivedMetricDefinition() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_derived_metric_definition_with_stats.py b/test/test_paged_derived_metric_definition_with_stats.py new file mode 100644 index 00000000..a204825c --- /dev/null +++ b/test/test_paged_derived_metric_definition_with_stats.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_derived_metric_definition_with_stats import PagedDerivedMetricDefinitionWithStats # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedDerivedMetricDefinitionWithStats(unittest.TestCase): + """PagedDerivedMetricDefinitionWithStats unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedDerivedMetricDefinitionWithStats(self): + """Test PagedDerivedMetricDefinitionWithStats""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_derived_metric_definition_with_stats.PagedDerivedMetricDefinitionWithStats() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_event.py b/test/test_paged_event.py new file mode 100644 index 00000000..2fc9b5f8 --- /dev/null +++ b/test/test_paged_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_event import PagedEvent # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedEvent(unittest.TestCase): + """PagedEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedEvent(self): + """Test PagedEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_event.PagedEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_external_link.py b/test/test_paged_external_link.py new file mode 100644 index 00000000..83733119 --- /dev/null +++ b/test/test_paged_external_link.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_external_link import PagedExternalLink # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedExternalLink(unittest.TestCase): + """PagedExternalLink unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedExternalLink(self): + """Test PagedExternalLink""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_external_link.PagedExternalLink() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_ingestion_policy_read_model.py b/test/test_paged_ingestion_policy_read_model.py new file mode 100644 index 00000000..afeb1378 --- /dev/null +++ b/test/test_paged_ingestion_policy_read_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_ingestion_policy_read_model import PagedIngestionPolicyReadModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedIngestionPolicyReadModel(unittest.TestCase): + """PagedIngestionPolicyReadModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedIngestionPolicyReadModel(self): + """Test PagedIngestionPolicyReadModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_ingestion_policy_read_model.PagedIngestionPolicyReadModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_integration.py b/test/test_paged_integration.py new file mode 100644 index 00000000..3f137bab --- /dev/null +++ b/test/test_paged_integration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_integration import PagedIntegration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedIntegration(unittest.TestCase): + """PagedIntegration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedIntegration(self): + """Test PagedIntegration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_integration.PagedIntegration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_maintenance_window.py b/test/test_paged_maintenance_window.py new file mode 100644 index 00000000..eca79915 --- /dev/null +++ b/test/test_paged_maintenance_window.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_maintenance_window import PagedMaintenanceWindow # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedMaintenanceWindow(unittest.TestCase): + """PagedMaintenanceWindow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedMaintenanceWindow(self): + """Test PagedMaintenanceWindow""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_maintenance_window.PagedMaintenanceWindow() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_message.py b/test/test_paged_message.py new file mode 100644 index 00000000..401a00ff --- /dev/null +++ b/test/test_paged_message.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_message import PagedMessage # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedMessage(unittest.TestCase): + """PagedMessage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedMessage(self): + """Test PagedMessage""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_message.PagedMessage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_monitored_application_dto.py b/test/test_paged_monitored_application_dto.py new file mode 100644 index 00000000..7222cf25 --- /dev/null +++ b/test/test_paged_monitored_application_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_monitored_application_dto import PagedMonitoredApplicationDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedMonitoredApplicationDTO(unittest.TestCase): + """PagedMonitoredApplicationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedMonitoredApplicationDTO(self): + """Test PagedMonitoredApplicationDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_monitored_application_dto.PagedMonitoredApplicationDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_monitored_cluster.py b/test/test_paged_monitored_cluster.py new file mode 100644 index 00000000..b2e5a8df --- /dev/null +++ b/test/test_paged_monitored_cluster.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_monitored_cluster import PagedMonitoredCluster # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedMonitoredCluster(unittest.TestCase): + """PagedMonitoredCluster unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedMonitoredCluster(self): + """Test PagedMonitoredCluster""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_monitored_cluster.PagedMonitoredCluster() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_monitored_service_dto.py b/test/test_paged_monitored_service_dto.py new file mode 100644 index 00000000..fb68f5ad --- /dev/null +++ b/test/test_paged_monitored_service_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_monitored_service_dto import PagedMonitoredServiceDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedMonitoredServiceDTO(unittest.TestCase): + """PagedMonitoredServiceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedMonitoredServiceDTO(self): + """Test PagedMonitoredServiceDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_monitored_service_dto.PagedMonitoredServiceDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_notificant.py b/test/test_paged_notificant.py new file mode 100644 index 00000000..f134cac9 --- /dev/null +++ b/test/test_paged_notificant.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_notificant import PagedNotificant # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedNotificant(unittest.TestCase): + """PagedNotificant unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedNotificant(self): + """Test PagedNotificant""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_notificant.PagedNotificant() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_proxy.py b/test/test_paged_proxy.py new file mode 100644 index 00000000..9aae3939 --- /dev/null +++ b/test/test_paged_proxy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_proxy import PagedProxy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedProxy(unittest.TestCase): + """PagedProxy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedProxy(self): + """Test PagedProxy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_proxy.PagedProxy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_recent_app_map_search.py b/test/test_paged_recent_app_map_search.py new file mode 100644 index 00000000..cae45ad0 --- /dev/null +++ b/test/test_paged_recent_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_recent_app_map_search import PagedRecentAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedRecentAppMapSearch(unittest.TestCase): + """PagedRecentAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedRecentAppMapSearch(self): + """Test PagedRecentAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_recent_app_map_search.PagedRecentAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_recent_traces_search.py b/test/test_paged_recent_traces_search.py new file mode 100644 index 00000000..5eb3d73d --- /dev/null +++ b/test/test_paged_recent_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_recent_traces_search import PagedRecentTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedRecentTracesSearch(unittest.TestCase): + """PagedRecentTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedRecentTracesSearch(self): + """Test PagedRecentTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_recent_traces_search.PagedRecentTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_related_event.py b/test/test_paged_related_event.py new file mode 100644 index 00000000..978085e8 --- /dev/null +++ b/test/test_paged_related_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_related_event import PagedRelatedEvent # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedRelatedEvent(unittest.TestCase): + """PagedRelatedEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedRelatedEvent(self): + """Test PagedRelatedEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_related_event.PagedRelatedEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_report_event_anomaly_dto.py b/test/test_paged_report_event_anomaly_dto.py new file mode 100644 index 00000000..ca17a068 --- /dev/null +++ b/test/test_paged_report_event_anomaly_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_report_event_anomaly_dto import PagedReportEventAnomalyDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedReportEventAnomalyDTO(unittest.TestCase): + """PagedReportEventAnomalyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedReportEventAnomalyDTO(self): + """Test PagedReportEventAnomalyDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_report_event_anomaly_dto.PagedReportEventAnomalyDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_role_dto.py b/test/test_paged_role_dto.py new file mode 100644 index 00000000..064f312f --- /dev/null +++ b/test/test_paged_role_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_role_dto import PagedRoleDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedRoleDTO(unittest.TestCase): + """PagedRoleDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedRoleDTO(self): + """Test PagedRoleDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_role_dto.PagedRoleDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_saved_app_map_search.py b/test/test_paged_saved_app_map_search.py new file mode 100644 index 00000000..ba0a5347 --- /dev/null +++ b/test/test_paged_saved_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_app_map_search import PagedSavedAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedSavedAppMapSearch(unittest.TestCase): + """PagedSavedAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedSavedAppMapSearch(self): + """Test PagedSavedAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_saved_app_map_search.PagedSavedAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_saved_app_map_search_group.py b/test/test_paged_saved_app_map_search_group.py new file mode 100644 index 00000000..24aedc14 --- /dev/null +++ b/test/test_paged_saved_app_map_search_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_app_map_search_group import PagedSavedAppMapSearchGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedSavedAppMapSearchGroup(unittest.TestCase): + """PagedSavedAppMapSearchGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedSavedAppMapSearchGroup(self): + """Test PagedSavedAppMapSearchGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_saved_app_map_search_group.PagedSavedAppMapSearchGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_saved_search.py b/test/test_paged_saved_search.py new file mode 100644 index 00000000..dcae872b --- /dev/null +++ b/test/test_paged_saved_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_search import PagedSavedSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedSavedSearch(unittest.TestCase): + """PagedSavedSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedSavedSearch(self): + """Test PagedSavedSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_saved_search.PagedSavedSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_saved_traces_search.py b/test/test_paged_saved_traces_search.py new file mode 100644 index 00000000..27b2bd9c --- /dev/null +++ b/test/test_paged_saved_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_traces_search import PagedSavedTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedSavedTracesSearch(unittest.TestCase): + """PagedSavedTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedSavedTracesSearch(self): + """Test PagedSavedTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_saved_traces_search.PagedSavedTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_saved_traces_search_group.py b/test/test_paged_saved_traces_search_group.py new file mode 100644 index 00000000..3c12148e --- /dev/null +++ b/test/test_paged_saved_traces_search_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_traces_search_group import PagedSavedTracesSearchGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedSavedTracesSearchGroup(unittest.TestCase): + """PagedSavedTracesSearchGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedSavedTracesSearchGroup(self): + """Test PagedSavedTracesSearchGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_saved_traces_search_group.PagedSavedTracesSearchGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_service_account.py b/test/test_paged_service_account.py new file mode 100644 index 00000000..3cc5f0bc --- /dev/null +++ b/test/test_paged_service_account.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_service_account import PagedServiceAccount # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedServiceAccount(unittest.TestCase): + """PagedServiceAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedServiceAccount(self): + """Test PagedServiceAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_service_account.PagedServiceAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_source.py b/test/test_paged_source.py new file mode 100644 index 00000000..4b52faae --- /dev/null +++ b/test/test_paged_source.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_source import PagedSource # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedSource(unittest.TestCase): + """PagedSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedSource(self): + """Test PagedSource""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_source.PagedSource() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_span_sampling_policy.py b/test/test_paged_span_sampling_policy.py new file mode 100644 index 00000000..fb323e4b --- /dev/null +++ b/test/test_paged_span_sampling_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_span_sampling_policy import PagedSpanSamplingPolicy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedSpanSamplingPolicy(unittest.TestCase): + """PagedSpanSamplingPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedSpanSamplingPolicy(self): + """Test PagedSpanSamplingPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_span_sampling_policy.PagedSpanSamplingPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paged_user_group_model.py b/test/test_paged_user_group_model.py new file mode 100644 index 00000000..aa3f9a56 --- /dev/null +++ b/test/test_paged_user_group_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_user_group_model import PagedUserGroupModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPagedUserGroupModel(unittest.TestCase): + """PagedUserGroupModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagedUserGroupModel(self): + """Test PagedUserGroupModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.paged_user_group_model.PagedUserGroupModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_point.py b/test/test_point.py new file mode 100644 index 00000000..4158032e --- /dev/null +++ b/test/test_point.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.point import Point # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPoint(unittest.TestCase): + """Point unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoint(self): + """Test Point""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.point.Point() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policy_rule_read_model.py b/test/test_policy_rule_read_model.py new file mode 100644 index 00000000..fa684182 --- /dev/null +++ b/test/test_policy_rule_read_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.policy_rule_read_model import PolicyRuleReadModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPolicyRuleReadModel(unittest.TestCase): + """PolicyRuleReadModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPolicyRuleReadModel(self): + """Test PolicyRuleReadModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.policy_rule_read_model.PolicyRuleReadModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policy_rule_write_model.py b/test/test_policy_rule_write_model.py new file mode 100644 index 00000000..9f99dbc0 --- /dev/null +++ b/test/test_policy_rule_write_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.policy_rule_write_model import PolicyRuleWriteModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestPolicyRuleWriteModel(unittest.TestCase): + """PolicyRuleWriteModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPolicyRuleWriteModel(self): + """Test PolicyRuleWriteModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.policy_rule_write_model.PolicyRuleWriteModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_proxy.py b/test/test_proxy.py new file mode 100644 index 00000000..8adf10fe --- /dev/null +++ b/test/test_proxy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.proxy import Proxy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestProxy(unittest.TestCase): + """Proxy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProxy(self): + """Test Proxy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.proxy.Proxy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_proxy_api.py b/test/test_proxy_api.py new file mode 100644 index 00000000..43c9b17a --- /dev/null +++ b/test/test_proxy_api.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.proxy_api import ProxyApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestProxyApi(unittest.TestCase): + """ProxyApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.proxy_api.ProxyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_delete_proxy(self): + """Test case for delete_proxy + + Delete a specific proxy # noqa: E501 + """ + pass + + def test_get_all_proxy(self): + """Test case for get_all_proxy + + Get all proxies for a customer # noqa: E501 + """ + pass + + def test_get_proxy(self): + """Test case for get_proxy + + Get a specific proxy # noqa: E501 + """ + pass + + def test_get_proxy_config(self): + """Test case for get_proxy_config + + Get a specific proxy config # noqa: E501 + """ + pass + + def test_get_proxy_preprocessor_rules(self): + """Test case for get_proxy_preprocessor_rules + + Get a specific proxy preprocessor rules # noqa: E501 + """ + pass + + def test_undelete_proxy(self): + """Test case for undelete_proxy + + Undelete a specific proxy # noqa: E501 + """ + pass + + def test_update_proxy(self): + """Test case for update_proxy + + Update the name of a specific proxy # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_query_api.py b/test/test_query_api.py new file mode 100644 index 00000000..6ffae6c7 --- /dev/null +++ b/test/test_query_api.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.query_api import QueryApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestQueryApi(unittest.TestCase): + """QueryApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.query_api.QueryApi() # noqa: E501 + + def tearDown(self): + pass + + def test_query_api(self): + """Test case for query_api + + Perform a charting query against Wavefront servers that returns the appropriate points in the specified time window and granularity # noqa: E501 + """ + pass + + def test_query_raw(self): + """Test case for query_raw + + Perform a raw data query against Wavefront servers that returns second granularity points grouped by tags # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_query_event.py b/test/test_query_event.py new file mode 100644 index 00000000..11059486 --- /dev/null +++ b/test/test_query_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.query_event import QueryEvent # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestQueryEvent(unittest.TestCase): + """QueryEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQueryEvent(self): + """Test QueryEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.query_event.QueryEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_query_result.py b/test/test_query_result.py new file mode 100644 index 00000000..d57f1bd2 --- /dev/null +++ b/test/test_query_result.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.query_result import QueryResult # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestQueryResult(unittest.TestCase): + """QueryResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQueryResult(self): + """Test QueryResult""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.query_result.QueryResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_query_type_dto.py b/test/test_query_type_dto.py new file mode 100644 index 00000000..756d4e4d --- /dev/null +++ b/test/test_query_type_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.query_type_dto import QueryTypeDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestQueryTypeDTO(unittest.TestCase): + """QueryTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQueryTypeDTO(self): + """Test QueryTypeDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.query_type_dto.QueryTypeDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_raw_timeseries.py b/test/test_raw_timeseries.py new file mode 100644 index 00000000..15212e07 --- /dev/null +++ b/test/test_raw_timeseries.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.raw_timeseries import RawTimeseries # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRawTimeseries(unittest.TestCase): + """RawTimeseries unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRawTimeseries(self): + """Test RawTimeseries""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.raw_timeseries.RawTimeseries() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_recent_app_map_search.py b/test/test_recent_app_map_search.py new file mode 100644 index 00000000..7b7f74fb --- /dev/null +++ b/test/test_recent_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.recent_app_map_search import RecentAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRecentAppMapSearch(unittest.TestCase): + """RecentAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRecentAppMapSearch(self): + """Test RecentAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.recent_app_map_search.RecentAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_recent_app_map_search_api.py b/test/test_recent_app_map_search_api.py new file mode 100644 index 00000000..687edfa1 --- /dev/null +++ b/test/test_recent_app_map_search_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.recent_app_map_search_api import RecentAppMapSearchApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRecentAppMapSearchApi(unittest.TestCase): + """RecentAppMapSearchApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.recent_app_map_search_api.RecentAppMapSearchApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_recent_app_map_search(self): + """Test case for create_recent_app_map_search + + Create a search # noqa: E501 + """ + pass + + def test_get_all_recent_app_map_searches(self): + """Test case for get_all_recent_app_map_searches + + Get all searches for a user # noqa: E501 + """ + pass + + def test_get_recent_app_map_search(self): + """Test case for get_recent_app_map_search + + Get a specific search # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_recent_traces_search.py b/test/test_recent_traces_search.py new file mode 100644 index 00000000..80e2273d --- /dev/null +++ b/test/test_recent_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.recent_traces_search import RecentTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRecentTracesSearch(unittest.TestCase): + """RecentTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRecentTracesSearch(self): + """Test RecentTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.recent_traces_search.RecentTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_recent_traces_search_api.py b/test/test_recent_traces_search_api.py new file mode 100644 index 00000000..b9e3ad47 --- /dev/null +++ b/test/test_recent_traces_search_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.recent_traces_search_api import RecentTracesSearchApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRecentTracesSearchApi(unittest.TestCase): + """RecentTracesSearchApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.recent_traces_search_api.RecentTracesSearchApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_recent_traces_search(self): + """Test case for create_recent_traces_search + + Create a search # noqa: E501 + """ + pass + + def test_get_all_recent_traces_searches(self): + """Test case for get_all_recent_traces_searches + + Get all searches for a user # noqa: E501 + """ + pass + + def test_get_recent_traces_search(self): + """Test case for get_recent_traces_search + + Get a specific search # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_related_anomaly.py b/test/test_related_anomaly.py new file mode 100644 index 00000000..5fb15ea9 --- /dev/null +++ b/test/test_related_anomaly.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.related_anomaly import RelatedAnomaly # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRelatedAnomaly(unittest.TestCase): + """RelatedAnomaly unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRelatedAnomaly(self): + """Test RelatedAnomaly""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.related_anomaly.RelatedAnomaly() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_related_data.py b/test/test_related_data.py new file mode 100644 index 00000000..296d354d --- /dev/null +++ b/test/test_related_data.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.related_data import RelatedData # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRelatedData(unittest.TestCase): + """RelatedData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRelatedData(self): + """Test RelatedData""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.related_data.RelatedData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_related_event.py b/test/test_related_event.py new file mode 100644 index 00000000..7628794c --- /dev/null +++ b/test/test_related_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.related_event import RelatedEvent # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRelatedEvent(unittest.TestCase): + """RelatedEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRelatedEvent(self): + """Test RelatedEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.related_event.RelatedEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_related_event_time_range.py b/test/test_related_event_time_range.py new file mode 100644 index 00000000..a9d70337 --- /dev/null +++ b/test/test_related_event_time_range.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.related_event_time_range import RelatedEventTimeRange # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRelatedEventTimeRange(unittest.TestCase): + """RelatedEventTimeRange unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRelatedEventTimeRange(self): + """Test RelatedEventTimeRange""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.related_event_time_range.RelatedEventTimeRange() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_report_event_anomaly_dto.py b/test/test_report_event_anomaly_dto.py new file mode 100644 index 00000000..bd3d5420 --- /dev/null +++ b/test/test_report_event_anomaly_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.report_event_anomaly_dto import ReportEventAnomalyDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestReportEventAnomalyDTO(unittest.TestCase): + """ReportEventAnomalyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportEventAnomalyDTO(self): + """Test ReportEventAnomalyDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.report_event_anomaly_dto.ReportEventAnomalyDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container.py b/test/test_response_container.py new file mode 100644 index 00000000..71ce4ed6 --- /dev/null +++ b/test/test_response_container.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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 import ResponseContainer # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainer(unittest.TestCase): + """ResponseContainer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainer(self): + """Test ResponseContainer""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container.ResponseContainer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_access_policy.py b/test/test_response_container_access_policy.py new file mode 100644 index 00000000..1bb9da4f --- /dev/null +++ b/test/test_response_container_access_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_access_policy import ResponseContainerAccessPolicy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerAccessPolicy(unittest.TestCase): + """ResponseContainerAccessPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerAccessPolicy(self): + """Test ResponseContainerAccessPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_access_policy.ResponseContainerAccessPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_access_policy_action.py b/test/test_response_container_access_policy_action.py new file mode 100644 index 00000000..854d4c6e --- /dev/null +++ b/test/test_response_container_access_policy_action.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_access_policy_action import ResponseContainerAccessPolicyAction # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerAccessPolicyAction(unittest.TestCase): + """ResponseContainerAccessPolicyAction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerAccessPolicyAction(self): + """Test ResponseContainerAccessPolicyAction""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_access_policy_action.ResponseContainerAccessPolicyAction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_account.py b/test/test_response_container_account.py new file mode 100644 index 00000000..7cfbab84 --- /dev/null +++ b/test/test_response_container_account.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_account import ResponseContainerAccount # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerAccount(unittest.TestCase): + """ResponseContainerAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerAccount(self): + """Test ResponseContainerAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_account.ResponseContainerAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_alert.py b/test/test_response_container_alert.py new file mode 100644 index 00000000..e99a4078 --- /dev/null +++ b/test/test_response_container_alert.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_alert import ResponseContainerAlert # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerAlert(unittest.TestCase): + """ResponseContainerAlert unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerAlert(self): + """Test ResponseContainerAlert""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_alert.ResponseContainerAlert() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_alert_analytics_summary.py b/test/test_response_container_alert_analytics_summary.py new file mode 100644 index 00000000..3863a051 --- /dev/null +++ b/test/test_response_container_alert_analytics_summary.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_alert_analytics_summary import ResponseContainerAlertAnalyticsSummary # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerAlertAnalyticsSummary(unittest.TestCase): + """ResponseContainerAlertAnalyticsSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerAlertAnalyticsSummary(self): + """Test ResponseContainerAlertAnalyticsSummary""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_alert_analytics_summary.ResponseContainerAlertAnalyticsSummary() # 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 00000000..8d93526e --- /dev/null +++ b/test/test_response_container_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_cloud_integration.py b/test/test_response_container_cloud_integration.py new file mode 100644 index 00000000..ac96e0e9 --- /dev/null +++ b/test/test_response_container_cloud_integration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_cloud_integration import ResponseContainerCloudIntegration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerCloudIntegration(unittest.TestCase): + """ResponseContainerCloudIntegration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerCloudIntegration(self): + """Test ResponseContainerCloudIntegration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_cloud_integration.ResponseContainerCloudIntegration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_cluster_info_dto.py b/test/test_response_container_cluster_info_dto.py new file mode 100644 index 00000000..f750352c --- /dev/null +++ b/test/test_response_container_cluster_info_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_cluster_info_dto import ResponseContainerClusterInfoDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerClusterInfoDTO(unittest.TestCase): + """ResponseContainerClusterInfoDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerClusterInfoDTO(self): + """Test ResponseContainerClusterInfoDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_cluster_info_dto.ResponseContainerClusterInfoDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_dashboard.py b/test/test_response_container_dashboard.py new file mode 100644 index 00000000..6a3f2677 --- /dev/null +++ b/test/test_response_container_dashboard.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_dashboard import ResponseContainerDashboard # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerDashboard(unittest.TestCase): + """ResponseContainerDashboard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerDashboard(self): + """Test ResponseContainerDashboard""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_dashboard.ResponseContainerDashboard() # 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 00000000..80a6ef77 --- /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 REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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 00000000..cdb7175d --- /dev/null +++ b/test/test_response_container_default_saved_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_derived_metric_definition.py b/test/test_response_container_derived_metric_definition.py new file mode 100644 index 00000000..3f8f0a8d --- /dev/null +++ b/test/test_response_container_derived_metric_definition.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_derived_metric_definition import ResponseContainerDerivedMetricDefinition # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerDerivedMetricDefinition(unittest.TestCase): + """ResponseContainerDerivedMetricDefinition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerDerivedMetricDefinition(self): + """Test ResponseContainerDerivedMetricDefinition""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_derived_metric_definition.ResponseContainerDerivedMetricDefinition() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_event.py b/test/test_response_container_event.py new file mode 100644 index 00000000..4ff7617f --- /dev/null +++ b/test/test_response_container_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_event import ResponseContainerEvent # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerEvent(unittest.TestCase): + """ResponseContainerEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerEvent(self): + """Test ResponseContainerEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_event.ResponseContainerEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_external_link.py b/test/test_response_container_external_link.py new file mode 100644 index 00000000..d574e4f7 --- /dev/null +++ b/test/test_response_container_external_link.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_external_link import ResponseContainerExternalLink # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerExternalLink(unittest.TestCase): + """ResponseContainerExternalLink unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerExternalLink(self): + """Test ResponseContainerExternalLink""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_external_link.ResponseContainerExternalLink() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_facet_response.py b/test/test_response_container_facet_response.py new file mode 100644 index 00000000..6dd35b7d --- /dev/null +++ b/test/test_response_container_facet_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_facet_response import ResponseContainerFacetResponse # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerFacetResponse(unittest.TestCase): + """ResponseContainerFacetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerFacetResponse(self): + """Test ResponseContainerFacetResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_facet_response.ResponseContainerFacetResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_facets_response_container.py b/test/test_response_container_facets_response_container.py new file mode 100644 index 00000000..4dd475b3 --- /dev/null +++ b/test/test_response_container_facets_response_container.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_facets_response_container import ResponseContainerFacetsResponseContainer # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerFacetsResponseContainer(unittest.TestCase): + """ResponseContainerFacetsResponseContainer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerFacetsResponseContainer(self): + """Test ResponseContainerFacetsResponseContainer""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_facets_response_container.ResponseContainerFacetsResponseContainer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_history_response.py b/test/test_response_container_history_response.py new file mode 100644 index 00000000..7d314212 --- /dev/null +++ b/test/test_response_container_history_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_history_response import ResponseContainerHistoryResponse # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerHistoryResponse(unittest.TestCase): + """ResponseContainerHistoryResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerHistoryResponse(self): + """Test ResponseContainerHistoryResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_history_response.ResponseContainerHistoryResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_ingestion_policy_read_model.py b/test/test_response_container_ingestion_policy_read_model.py new file mode 100644 index 00000000..0201a64e --- /dev/null +++ b/test/test_response_container_ingestion_policy_read_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_ingestion_policy_read_model import ResponseContainerIngestionPolicyReadModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerIngestionPolicyReadModel(unittest.TestCase): + """ResponseContainerIngestionPolicyReadModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerIngestionPolicyReadModel(self): + """Test ResponseContainerIngestionPolicyReadModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_ingestion_policy_read_model.ResponseContainerIngestionPolicyReadModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_integration.py b/test/test_response_container_integration.py new file mode 100644 index 00000000..559aa783 --- /dev/null +++ b/test/test_response_container_integration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_integration import ResponseContainerIntegration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerIntegration(unittest.TestCase): + """ResponseContainerIntegration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerIntegration(self): + """Test ResponseContainerIntegration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_integration.ResponseContainerIntegration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_integration_status.py b/test/test_response_container_integration_status.py new file mode 100644 index 00000000..2b96f098 --- /dev/null +++ b/test/test_response_container_integration_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_integration_status import ResponseContainerIntegrationStatus # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerIntegrationStatus(unittest.TestCase): + """ResponseContainerIntegrationStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerIntegrationStatus(self): + """Test ResponseContainerIntegrationStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_integration_status.ResponseContainerIntegrationStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_list_access_control_list_read_dto.py b/test/test_response_container_list_access_control_list_read_dto.py new file mode 100644 index 00000000..e9fcf333 --- /dev/null +++ b/test/test_response_container_list_access_control_list_read_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_access_control_list_read_dto import ResponseContainerListAccessControlListReadDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListAccessControlListReadDTO(unittest.TestCase): + """ResponseContainerListAccessControlListReadDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListAccessControlListReadDTO(self): + """Test ResponseContainerListAccessControlListReadDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_access_control_list_read_dto.ResponseContainerListAccessControlListReadDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_list_alert_error_group_info.py b/test/test_response_container_list_alert_error_group_info.py new file mode 100644 index 00000000..4dcce524 --- /dev/null +++ b/test/test_response_container_list_alert_error_group_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_alert_error_group_info import ResponseContainerListAlertErrorGroupInfo # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListAlertErrorGroupInfo(unittest.TestCase): + """ResponseContainerListAlertErrorGroupInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListAlertErrorGroupInfo(self): + """Test ResponseContainerListAlertErrorGroupInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_alert_error_group_info.ResponseContainerListAlertErrorGroupInfo() # 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 00000000..fa2137e9 --- /dev/null +++ b/test/test_response_container_list_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_list_integration.py b/test/test_response_container_list_integration.py new file mode 100644 index 00000000..9f54feda --- /dev/null +++ b/test/test_response_container_list_integration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_integration import ResponseContainerListIntegration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListIntegration(unittest.TestCase): + """ResponseContainerListIntegration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListIntegration(self): + """Test ResponseContainerListIntegration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_integration.ResponseContainerListIntegration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_list_integration_manifest_group.py b/test/test_response_container_list_integration_manifest_group.py new file mode 100644 index 00000000..a2e70d88 --- /dev/null +++ b/test/test_response_container_list_integration_manifest_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_integration_manifest_group import ResponseContainerListIntegrationManifestGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListIntegrationManifestGroup(unittest.TestCase): + """ResponseContainerListIntegrationManifestGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListIntegrationManifestGroup(self): + """Test ResponseContainerListIntegrationManifestGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_integration_manifest_group.ResponseContainerListIntegrationManifestGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_list_notification_messages.py b/test/test_response_container_list_notification_messages.py new file mode 100644 index 00000000..6c81f185 --- /dev/null +++ b/test/test_response_container_list_notification_messages.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_notification_messages import ResponseContainerListNotificationMessages # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListNotificationMessages(unittest.TestCase): + """ResponseContainerListNotificationMessages unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListNotificationMessages(self): + """Test ResponseContainerListNotificationMessages""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_notification_messages.ResponseContainerListNotificationMessages() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_list_service_account.py b/test/test_response_container_list_service_account.py new file mode 100644 index 00000000..a5a65aff --- /dev/null +++ b/test/test_response_container_list_service_account.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_service_account import ResponseContainerListServiceAccount # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListServiceAccount(unittest.TestCase): + """ResponseContainerListServiceAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListServiceAccount(self): + """Test ResponseContainerListServiceAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_service_account.ResponseContainerListServiceAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_list_string.py b/test/test_response_container_list_string.py new file mode 100644 index 00000000..ace08523 --- /dev/null +++ b/test/test_response_container_list_string.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_string import ResponseContainerListString # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListString(unittest.TestCase): + """ResponseContainerListString unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListString(self): + """Test ResponseContainerListString""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_string.ResponseContainerListString() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_list_user_api_token.py b/test/test_response_container_list_user_api_token.py new file mode 100644 index 00000000..b8554ca3 --- /dev/null +++ b/test/test_response_container_list_user_api_token.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_user_api_token import ResponseContainerListUserApiToken # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListUserApiToken(unittest.TestCase): + """ResponseContainerListUserApiToken unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListUserApiToken(self): + """Test ResponseContainerListUserApiToken""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_user_api_token.ResponseContainerListUserApiToken() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_list_user_dto.py b/test/test_response_container_list_user_dto.py new file mode 100644 index 00000000..e64c4665 --- /dev/null +++ b/test/test_response_container_list_user_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_user_dto import ResponseContainerListUserDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerListUserDTO(unittest.TestCase): + """ResponseContainerListUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerListUserDTO(self): + """Test ResponseContainerListUserDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_list_user_dto.ResponseContainerListUserDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_maintenance_window.py b/test/test_response_container_maintenance_window.py new file mode 100644 index 00000000..12b3092d --- /dev/null +++ b/test/test_response_container_maintenance_window.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_maintenance_window import ResponseContainerMaintenanceWindow # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerMaintenanceWindow(unittest.TestCase): + """ResponseContainerMaintenanceWindow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerMaintenanceWindow(self): + """Test ResponseContainerMaintenanceWindow""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_maintenance_window.ResponseContainerMaintenanceWindow() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_map.py b/test/test_response_container_map.py new file mode 100644 index 00000000..8056b960 --- /dev/null +++ b/test/test_response_container_map.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_map import ResponseContainerMap # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerMap(unittest.TestCase): + """ResponseContainerMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerMap(self): + """Test ResponseContainerMap""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_map.ResponseContainerMap() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_map_string_integer.py b/test/test_response_container_map_string_integer.py new file mode 100644 index 00000000..3b0862cb --- /dev/null +++ b/test/test_response_container_map_string_integer.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_map_string_integer import ResponseContainerMapStringInteger # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerMapStringInteger(unittest.TestCase): + """ResponseContainerMapStringInteger unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerMapStringInteger(self): + """Test ResponseContainerMapStringInteger""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_map_string_integer.ResponseContainerMapStringInteger() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_map_string_integration_status.py b/test/test_response_container_map_string_integration_status.py new file mode 100644 index 00000000..cc38bd89 --- /dev/null +++ b/test/test_response_container_map_string_integration_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_map_string_integration_status import ResponseContainerMapStringIntegrationStatus # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerMapStringIntegrationStatus(unittest.TestCase): + """ResponseContainerMapStringIntegrationStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerMapStringIntegrationStatus(self): + """Test ResponseContainerMapStringIntegrationStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_map_string_integration_status.ResponseContainerMapStringIntegrationStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_message.py b/test/test_response_container_message.py new file mode 100644 index 00000000..d4ddbd22 --- /dev/null +++ b/test/test_response_container_message.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_message import ResponseContainerMessage # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerMessage(unittest.TestCase): + """ResponseContainerMessage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerMessage(self): + """Test ResponseContainerMessage""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_message.ResponseContainerMessage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_metrics_policy_read_model.py b/test/test_response_container_metrics_policy_read_model.py new file mode 100644 index 00000000..c8503e19 --- /dev/null +++ b/test/test_response_container_metrics_policy_read_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_metrics_policy_read_model import ResponseContainerMetricsPolicyReadModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerMetricsPolicyReadModel(unittest.TestCase): + """ResponseContainerMetricsPolicyReadModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerMetricsPolicyReadModel(self): + """Test ResponseContainerMetricsPolicyReadModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_metrics_policy_read_model.ResponseContainerMetricsPolicyReadModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_monitored_application_dto.py b/test/test_response_container_monitored_application_dto.py new file mode 100644 index 00000000..2bed96cf --- /dev/null +++ b/test/test_response_container_monitored_application_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_monitored_application_dto import ResponseContainerMonitoredApplicationDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerMonitoredApplicationDTO(unittest.TestCase): + """ResponseContainerMonitoredApplicationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerMonitoredApplicationDTO(self): + """Test ResponseContainerMonitoredApplicationDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_monitored_application_dto.ResponseContainerMonitoredApplicationDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_monitored_cluster.py b/test/test_response_container_monitored_cluster.py new file mode 100644 index 00000000..3d9ddb12 --- /dev/null +++ b/test/test_response_container_monitored_cluster.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_monitored_cluster import ResponseContainerMonitoredCluster # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerMonitoredCluster(unittest.TestCase): + """ResponseContainerMonitoredCluster unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerMonitoredCluster(self): + """Test ResponseContainerMonitoredCluster""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_monitored_cluster.ResponseContainerMonitoredCluster() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_monitored_service_dto.py b/test/test_response_container_monitored_service_dto.py new file mode 100644 index 00000000..1bca88b1 --- /dev/null +++ b/test/test_response_container_monitored_service_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_monitored_service_dto import ResponseContainerMonitoredServiceDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerMonitoredServiceDTO(unittest.TestCase): + """ResponseContainerMonitoredServiceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerMonitoredServiceDTO(self): + """Test ResponseContainerMonitoredServiceDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_monitored_service_dto.ResponseContainerMonitoredServiceDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_notificant.py b/test/test_response_container_notificant.py new file mode 100644 index 00000000..954f07a0 --- /dev/null +++ b/test/test_response_container_notificant.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_notificant import ResponseContainerNotificant # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerNotificant(unittest.TestCase): + """ResponseContainerNotificant unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerNotificant(self): + """Test ResponseContainerNotificant""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_notificant.ResponseContainerNotificant() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_account.py b/test/test_response_container_paged_account.py new file mode 100644 index 00000000..ec99eda5 --- /dev/null +++ b/test/test_response_container_paged_account.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_account import ResponseContainerPagedAccount # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedAccount(unittest.TestCase): + """ResponseContainerPagedAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedAccount(self): + """Test ResponseContainerPagedAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_account.ResponseContainerPagedAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_alert.py b/test/test_response_container_paged_alert.py new file mode 100644 index 00000000..37587f0c --- /dev/null +++ b/test/test_response_container_paged_alert.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_alert import ResponseContainerPagedAlert # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedAlert(unittest.TestCase): + """ResponseContainerPagedAlert unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedAlert(self): + """Test ResponseContainerPagedAlert""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_alert.ResponseContainerPagedAlert() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_alert_analytics_summary_detail.py b/test/test_response_container_paged_alert_analytics_summary_detail.py new file mode 100644 index 00000000..a0c0378c --- /dev/null +++ b/test/test_response_container_paged_alert_analytics_summary_detail.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_alert_analytics_summary_detail import ResponseContainerPagedAlertAnalyticsSummaryDetail # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedAlertAnalyticsSummaryDetail(unittest.TestCase): + """ResponseContainerPagedAlertAnalyticsSummaryDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedAlertAnalyticsSummaryDetail(self): + """Test ResponseContainerPagedAlertAnalyticsSummaryDetail""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_alert_analytics_summary_detail.ResponseContainerPagedAlertAnalyticsSummaryDetail() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_alert_with_stats.py b/test/test_response_container_paged_alert_with_stats.py new file mode 100644 index 00000000..f9c8beaf --- /dev/null +++ b/test/test_response_container_paged_alert_with_stats.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_alert_with_stats import ResponseContainerPagedAlertWithStats # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedAlertWithStats(unittest.TestCase): + """ResponseContainerPagedAlertWithStats unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedAlertWithStats(self): + """Test ResponseContainerPagedAlertWithStats""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_alert_with_stats.ResponseContainerPagedAlertWithStats() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_anomaly.py b/test/test_response_container_paged_anomaly.py new file mode 100644 index 00000000..9b81a3fa --- /dev/null +++ b/test/test_response_container_paged_anomaly.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_anomaly import ResponseContainerPagedAnomaly # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedAnomaly(unittest.TestCase): + """ResponseContainerPagedAnomaly unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedAnomaly(self): + """Test ResponseContainerPagedAnomaly""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_anomaly.ResponseContainerPagedAnomaly() # 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 00000000..32a7af61 --- /dev/null +++ b/test/test_response_container_paged_api_token_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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/test/test_response_container_paged_cloud_integration.py b/test/test_response_container_paged_cloud_integration.py new file mode 100644 index 00000000..daf0f46a --- /dev/null +++ b/test/test_response_container_paged_cloud_integration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_cloud_integration import ResponseContainerPagedCloudIntegration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedCloudIntegration(unittest.TestCase): + """ResponseContainerPagedCloudIntegration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedCloudIntegration(self): + """Test ResponseContainerPagedCloudIntegration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_cloud_integration.ResponseContainerPagedCloudIntegration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_customer_facing_user_object.py b/test/test_response_container_paged_customer_facing_user_object.py new file mode 100644 index 00000000..afeb2aac --- /dev/null +++ b/test/test_response_container_paged_customer_facing_user_object.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_customer_facing_user_object import ResponseContainerPagedCustomerFacingUserObject # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedCustomerFacingUserObject(unittest.TestCase): + """ResponseContainerPagedCustomerFacingUserObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedCustomerFacingUserObject(self): + """Test ResponseContainerPagedCustomerFacingUserObject""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_customer_facing_user_object.ResponseContainerPagedCustomerFacingUserObject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_dashboard.py b/test/test_response_container_paged_dashboard.py new file mode 100644 index 00000000..2956c021 --- /dev/null +++ b/test/test_response_container_paged_dashboard.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_dashboard import ResponseContainerPagedDashboard # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedDashboard(unittest.TestCase): + """ResponseContainerPagedDashboard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedDashboard(self): + """Test ResponseContainerPagedDashboard""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_dashboard.ResponseContainerPagedDashboard() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_derived_metric_definition.py b/test/test_response_container_paged_derived_metric_definition.py new file mode 100644 index 00000000..c3602fd1 --- /dev/null +++ b/test/test_response_container_paged_derived_metric_definition.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_derived_metric_definition import ResponseContainerPagedDerivedMetricDefinition # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedDerivedMetricDefinition(unittest.TestCase): + """ResponseContainerPagedDerivedMetricDefinition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedDerivedMetricDefinition(self): + """Test ResponseContainerPagedDerivedMetricDefinition""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_derived_metric_definition.ResponseContainerPagedDerivedMetricDefinition() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_derived_metric_definition_with_stats.py b/test/test_response_container_paged_derived_metric_definition_with_stats.py new file mode 100644 index 00000000..faad57a0 --- /dev/null +++ b/test/test_response_container_paged_derived_metric_definition_with_stats.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_derived_metric_definition_with_stats import ResponseContainerPagedDerivedMetricDefinitionWithStats # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedDerivedMetricDefinitionWithStats(unittest.TestCase): + """ResponseContainerPagedDerivedMetricDefinitionWithStats unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedDerivedMetricDefinitionWithStats(self): + """Test ResponseContainerPagedDerivedMetricDefinitionWithStats""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_derived_metric_definition_with_stats.ResponseContainerPagedDerivedMetricDefinitionWithStats() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_event.py b/test/test_response_container_paged_event.py new file mode 100644 index 00000000..94c45ac4 --- /dev/null +++ b/test/test_response_container_paged_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_event import ResponseContainerPagedEvent # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedEvent(unittest.TestCase): + """ResponseContainerPagedEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedEvent(self): + """Test ResponseContainerPagedEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_event.ResponseContainerPagedEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_external_link.py b/test/test_response_container_paged_external_link.py new file mode 100644 index 00000000..a5212917 --- /dev/null +++ b/test/test_response_container_paged_external_link.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_external_link import ResponseContainerPagedExternalLink # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedExternalLink(unittest.TestCase): + """ResponseContainerPagedExternalLink unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedExternalLink(self): + """Test ResponseContainerPagedExternalLink""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_external_link.ResponseContainerPagedExternalLink() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_ingestion_policy_read_model.py b/test/test_response_container_paged_ingestion_policy_read_model.py new file mode 100644 index 00000000..d48a863f --- /dev/null +++ b/test/test_response_container_paged_ingestion_policy_read_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_ingestion_policy_read_model import ResponseContainerPagedIngestionPolicyReadModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedIngestionPolicyReadModel(unittest.TestCase): + """ResponseContainerPagedIngestionPolicyReadModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedIngestionPolicyReadModel(self): + """Test ResponseContainerPagedIngestionPolicyReadModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_ingestion_policy_read_model.ResponseContainerPagedIngestionPolicyReadModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_integration.py b/test/test_response_container_paged_integration.py new file mode 100644 index 00000000..59bec7c0 --- /dev/null +++ b/test/test_response_container_paged_integration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_integration import ResponseContainerPagedIntegration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedIntegration(unittest.TestCase): + """ResponseContainerPagedIntegration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedIntegration(self): + """Test ResponseContainerPagedIntegration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_integration.ResponseContainerPagedIntegration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_maintenance_window.py b/test/test_response_container_paged_maintenance_window.py new file mode 100644 index 00000000..16163fdf --- /dev/null +++ b/test/test_response_container_paged_maintenance_window.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_maintenance_window import ResponseContainerPagedMaintenanceWindow # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedMaintenanceWindow(unittest.TestCase): + """ResponseContainerPagedMaintenanceWindow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedMaintenanceWindow(self): + """Test ResponseContainerPagedMaintenanceWindow""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_maintenance_window.ResponseContainerPagedMaintenanceWindow() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_message.py b/test/test_response_container_paged_message.py new file mode 100644 index 00000000..25d51fdc --- /dev/null +++ b/test/test_response_container_paged_message.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_message import ResponseContainerPagedMessage # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedMessage(unittest.TestCase): + """ResponseContainerPagedMessage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedMessage(self): + """Test ResponseContainerPagedMessage""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_message.ResponseContainerPagedMessage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_monitored_application_dto.py b/test/test_response_container_paged_monitored_application_dto.py new file mode 100644 index 00000000..db8404dd --- /dev/null +++ b/test/test_response_container_paged_monitored_application_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_monitored_application_dto import ResponseContainerPagedMonitoredApplicationDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedMonitoredApplicationDTO(unittest.TestCase): + """ResponseContainerPagedMonitoredApplicationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedMonitoredApplicationDTO(self): + """Test ResponseContainerPagedMonitoredApplicationDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_monitored_application_dto.ResponseContainerPagedMonitoredApplicationDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_monitored_cluster.py b/test/test_response_container_paged_monitored_cluster.py new file mode 100644 index 00000000..e9561bf3 --- /dev/null +++ b/test/test_response_container_paged_monitored_cluster.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_monitored_cluster import ResponseContainerPagedMonitoredCluster # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedMonitoredCluster(unittest.TestCase): + """ResponseContainerPagedMonitoredCluster unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedMonitoredCluster(self): + """Test ResponseContainerPagedMonitoredCluster""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_monitored_cluster.ResponseContainerPagedMonitoredCluster() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_monitored_service_dto.py b/test/test_response_container_paged_monitored_service_dto.py new file mode 100644 index 00000000..49834bbd --- /dev/null +++ b/test/test_response_container_paged_monitored_service_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_monitored_service_dto import ResponseContainerPagedMonitoredServiceDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedMonitoredServiceDTO(unittest.TestCase): + """ResponseContainerPagedMonitoredServiceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedMonitoredServiceDTO(self): + """Test ResponseContainerPagedMonitoredServiceDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_monitored_service_dto.ResponseContainerPagedMonitoredServiceDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_notificant.py b/test/test_response_container_paged_notificant.py new file mode 100644 index 00000000..873e91c7 --- /dev/null +++ b/test/test_response_container_paged_notificant.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_notificant import ResponseContainerPagedNotificant # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedNotificant(unittest.TestCase): + """ResponseContainerPagedNotificant unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedNotificant(self): + """Test ResponseContainerPagedNotificant""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_notificant.ResponseContainerPagedNotificant() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_proxy.py b/test/test_response_container_paged_proxy.py new file mode 100644 index 00000000..d9447b9c --- /dev/null +++ b/test/test_response_container_paged_proxy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_proxy import ResponseContainerPagedProxy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedProxy(unittest.TestCase): + """ResponseContainerPagedProxy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedProxy(self): + """Test ResponseContainerPagedProxy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_proxy.ResponseContainerPagedProxy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_recent_app_map_search.py b/test/test_response_container_paged_recent_app_map_search.py new file mode 100644 index 00000000..320cd2c2 --- /dev/null +++ b/test/test_response_container_paged_recent_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_recent_app_map_search import ResponseContainerPagedRecentAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedRecentAppMapSearch(unittest.TestCase): + """ResponseContainerPagedRecentAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedRecentAppMapSearch(self): + """Test ResponseContainerPagedRecentAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_recent_app_map_search.ResponseContainerPagedRecentAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_recent_traces_search.py b/test/test_response_container_paged_recent_traces_search.py new file mode 100644 index 00000000..3df9b7ec --- /dev/null +++ b/test/test_response_container_paged_recent_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_recent_traces_search import ResponseContainerPagedRecentTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedRecentTracesSearch(unittest.TestCase): + """ResponseContainerPagedRecentTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedRecentTracesSearch(self): + """Test ResponseContainerPagedRecentTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_recent_traces_search.ResponseContainerPagedRecentTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_related_event.py b/test/test_response_container_paged_related_event.py new file mode 100644 index 00000000..3623c4ad --- /dev/null +++ b/test/test_response_container_paged_related_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_related_event import ResponseContainerPagedRelatedEvent # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedRelatedEvent(unittest.TestCase): + """ResponseContainerPagedRelatedEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedRelatedEvent(self): + """Test ResponseContainerPagedRelatedEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_related_event.ResponseContainerPagedRelatedEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_report_event_anomaly_dto.py b/test/test_response_container_paged_report_event_anomaly_dto.py new file mode 100644 index 00000000..b081e9fc --- /dev/null +++ b/test/test_response_container_paged_report_event_anomaly_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_report_event_anomaly_dto import ResponseContainerPagedReportEventAnomalyDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedReportEventAnomalyDTO(unittest.TestCase): + """ResponseContainerPagedReportEventAnomalyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedReportEventAnomalyDTO(self): + """Test ResponseContainerPagedReportEventAnomalyDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_report_event_anomaly_dto.ResponseContainerPagedReportEventAnomalyDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_role_dto.py b/test/test_response_container_paged_role_dto.py new file mode 100644 index 00000000..54795612 --- /dev/null +++ b/test/test_response_container_paged_role_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_role_dto import ResponseContainerPagedRoleDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedRoleDTO(unittest.TestCase): + """ResponseContainerPagedRoleDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedRoleDTO(self): + """Test ResponseContainerPagedRoleDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_role_dto.ResponseContainerPagedRoleDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_saved_app_map_search.py b/test/test_response_container_paged_saved_app_map_search.py new file mode 100644 index 00000000..375c87d2 --- /dev/null +++ b/test/test_response_container_paged_saved_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_app_map_search import ResponseContainerPagedSavedAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedSavedAppMapSearch(unittest.TestCase): + """ResponseContainerPagedSavedAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedSavedAppMapSearch(self): + """Test ResponseContainerPagedSavedAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_saved_app_map_search.ResponseContainerPagedSavedAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_saved_app_map_search_group.py b/test/test_response_container_paged_saved_app_map_search_group.py new file mode 100644 index 00000000..9a84248c --- /dev/null +++ b/test/test_response_container_paged_saved_app_map_search_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_app_map_search_group import ResponseContainerPagedSavedAppMapSearchGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedSavedAppMapSearchGroup(unittest.TestCase): + """ResponseContainerPagedSavedAppMapSearchGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedSavedAppMapSearchGroup(self): + """Test ResponseContainerPagedSavedAppMapSearchGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_saved_app_map_search_group.ResponseContainerPagedSavedAppMapSearchGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_saved_search.py b/test/test_response_container_paged_saved_search.py new file mode 100644 index 00000000..40d28cef --- /dev/null +++ b/test/test_response_container_paged_saved_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_search import ResponseContainerPagedSavedSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedSavedSearch(unittest.TestCase): + """ResponseContainerPagedSavedSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedSavedSearch(self): + """Test ResponseContainerPagedSavedSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_saved_search.ResponseContainerPagedSavedSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_saved_traces_search.py b/test/test_response_container_paged_saved_traces_search.py new file mode 100644 index 00000000..2f738eff --- /dev/null +++ b/test/test_response_container_paged_saved_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_traces_search import ResponseContainerPagedSavedTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedSavedTracesSearch(unittest.TestCase): + """ResponseContainerPagedSavedTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedSavedTracesSearch(self): + """Test ResponseContainerPagedSavedTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_saved_traces_search.ResponseContainerPagedSavedTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_saved_traces_search_group.py b/test/test_response_container_paged_saved_traces_search_group.py new file mode 100644 index 00000000..eb4541fb --- /dev/null +++ b/test/test_response_container_paged_saved_traces_search_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_traces_search_group import ResponseContainerPagedSavedTracesSearchGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedSavedTracesSearchGroup(unittest.TestCase): + """ResponseContainerPagedSavedTracesSearchGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedSavedTracesSearchGroup(self): + """Test ResponseContainerPagedSavedTracesSearchGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_saved_traces_search_group.ResponseContainerPagedSavedTracesSearchGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_service_account.py b/test/test_response_container_paged_service_account.py new file mode 100644 index 00000000..7dab9286 --- /dev/null +++ b/test/test_response_container_paged_service_account.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_service_account import ResponseContainerPagedServiceAccount # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedServiceAccount(unittest.TestCase): + """ResponseContainerPagedServiceAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedServiceAccount(self): + """Test ResponseContainerPagedServiceAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_service_account.ResponseContainerPagedServiceAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_source.py b/test/test_response_container_paged_source.py new file mode 100644 index 00000000..b2db8963 --- /dev/null +++ b/test/test_response_container_paged_source.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_source import ResponseContainerPagedSource # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedSource(unittest.TestCase): + """ResponseContainerPagedSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedSource(self): + """Test ResponseContainerPagedSource""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_source.ResponseContainerPagedSource() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_span_sampling_policy.py b/test/test_response_container_paged_span_sampling_policy.py new file mode 100644 index 00000000..883771b0 --- /dev/null +++ b/test/test_response_container_paged_span_sampling_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_span_sampling_policy import ResponseContainerPagedSpanSamplingPolicy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedSpanSamplingPolicy(unittest.TestCase): + """ResponseContainerPagedSpanSamplingPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedSpanSamplingPolicy(self): + """Test ResponseContainerPagedSpanSamplingPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_span_sampling_policy.ResponseContainerPagedSpanSamplingPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_paged_user_group_model.py b/test/test_response_container_paged_user_group_model.py new file mode 100644 index 00000000..bcfcb010 --- /dev/null +++ b/test/test_response_container_paged_user_group_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_user_group_model import ResponseContainerPagedUserGroupModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerPagedUserGroupModel(unittest.TestCase): + """ResponseContainerPagedUserGroupModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerPagedUserGroupModel(self): + """Test ResponseContainerPagedUserGroupModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_paged_user_group_model.ResponseContainerPagedUserGroupModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_proxy.py b/test/test_response_container_proxy.py new file mode 100644 index 00000000..5b16ad08 --- /dev/null +++ b/test/test_response_container_proxy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_proxy import ResponseContainerProxy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerProxy(unittest.TestCase): + """ResponseContainerProxy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerProxy(self): + """Test ResponseContainerProxy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_proxy.ResponseContainerProxy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_query_type_dto.py b/test/test_response_container_query_type_dto.py new file mode 100644 index 00000000..32a2ec65 --- /dev/null +++ b/test/test_response_container_query_type_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_query_type_dto import ResponseContainerQueryTypeDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerQueryTypeDTO(unittest.TestCase): + """ResponseContainerQueryTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerQueryTypeDTO(self): + """Test ResponseContainerQueryTypeDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_query_type_dto.ResponseContainerQueryTypeDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_recent_app_map_search.py b/test/test_response_container_recent_app_map_search.py new file mode 100644 index 00000000..2dd0cea9 --- /dev/null +++ b/test/test_response_container_recent_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_recent_app_map_search import ResponseContainerRecentAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerRecentAppMapSearch(unittest.TestCase): + """ResponseContainerRecentAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerRecentAppMapSearch(self): + """Test ResponseContainerRecentAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_recent_app_map_search.ResponseContainerRecentAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_recent_traces_search.py b/test/test_response_container_recent_traces_search.py new file mode 100644 index 00000000..ea0f4c8b --- /dev/null +++ b/test/test_response_container_recent_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_recent_traces_search import ResponseContainerRecentTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerRecentTracesSearch(unittest.TestCase): + """ResponseContainerRecentTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerRecentTracesSearch(self): + """Test ResponseContainerRecentTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_recent_traces_search.ResponseContainerRecentTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_role_dto.py b/test/test_response_container_role_dto.py new file mode 100644 index 00000000..2e5a862a --- /dev/null +++ b/test/test_response_container_role_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_role_dto import ResponseContainerRoleDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerRoleDTO(unittest.TestCase): + """ResponseContainerRoleDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerRoleDTO(self): + """Test ResponseContainerRoleDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_role_dto.ResponseContainerRoleDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_saved_app_map_search.py b/test/test_response_container_saved_app_map_search.py new file mode 100644 index 00000000..b65764a5 --- /dev/null +++ b/test/test_response_container_saved_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_app_map_search import ResponseContainerSavedAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerSavedAppMapSearch(unittest.TestCase): + """ResponseContainerSavedAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerSavedAppMapSearch(self): + """Test ResponseContainerSavedAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_saved_app_map_search.ResponseContainerSavedAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_saved_app_map_search_group.py b/test/test_response_container_saved_app_map_search_group.py new file mode 100644 index 00000000..14aff98b --- /dev/null +++ b/test/test_response_container_saved_app_map_search_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_app_map_search_group import ResponseContainerSavedAppMapSearchGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerSavedAppMapSearchGroup(unittest.TestCase): + """ResponseContainerSavedAppMapSearchGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerSavedAppMapSearchGroup(self): + """Test ResponseContainerSavedAppMapSearchGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_saved_app_map_search_group.ResponseContainerSavedAppMapSearchGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_saved_search.py b/test/test_response_container_saved_search.py new file mode 100644 index 00000000..18b54c7b --- /dev/null +++ b/test/test_response_container_saved_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_search import ResponseContainerSavedSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerSavedSearch(unittest.TestCase): + """ResponseContainerSavedSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerSavedSearch(self): + """Test ResponseContainerSavedSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_saved_search.ResponseContainerSavedSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_saved_traces_search.py b/test/test_response_container_saved_traces_search.py new file mode 100644 index 00000000..f377d353 --- /dev/null +++ b/test/test_response_container_saved_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_traces_search import ResponseContainerSavedTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerSavedTracesSearch(unittest.TestCase): + """ResponseContainerSavedTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerSavedTracesSearch(self): + """Test ResponseContainerSavedTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_saved_traces_search.ResponseContainerSavedTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_saved_traces_search_group.py b/test/test_response_container_saved_traces_search_group.py new file mode 100644 index 00000000..63a79fbe --- /dev/null +++ b/test/test_response_container_saved_traces_search_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_saved_traces_search_group import ResponseContainerSavedTracesSearchGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerSavedTracesSearchGroup(unittest.TestCase): + """ResponseContainerSavedTracesSearchGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerSavedTracesSearchGroup(self): + """Test ResponseContainerSavedTracesSearchGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_saved_traces_search_group.ResponseContainerSavedTracesSearchGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_service_account.py b/test/test_response_container_service_account.py new file mode 100644 index 00000000..b74959f8 --- /dev/null +++ b/test/test_response_container_service_account.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_service_account import ResponseContainerServiceAccount # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerServiceAccount(unittest.TestCase): + """ResponseContainerServiceAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerServiceAccount(self): + """Test ResponseContainerServiceAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_service_account.ResponseContainerServiceAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_set_business_function.py b/test/test_response_container_set_business_function.py new file mode 100644 index 00000000..5158a682 --- /dev/null +++ b/test/test_response_container_set_business_function.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_set_business_function import ResponseContainerSetBusinessFunction # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerSetBusinessFunction(unittest.TestCase): + """ResponseContainerSetBusinessFunction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerSetBusinessFunction(self): + """Test ResponseContainerSetBusinessFunction""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_set_business_function.ResponseContainerSetBusinessFunction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_set_source_label_pair.py b/test/test_response_container_set_source_label_pair.py new file mode 100644 index 00000000..3710de1a --- /dev/null +++ b/test/test_response_container_set_source_label_pair.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_set_source_label_pair import ResponseContainerSetSourceLabelPair # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerSetSourceLabelPair(unittest.TestCase): + """ResponseContainerSetSourceLabelPair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerSetSourceLabelPair(self): + """Test ResponseContainerSetSourceLabelPair""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_set_source_label_pair.ResponseContainerSetSourceLabelPair() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_source.py b/test/test_response_container_source.py new file mode 100644 index 00000000..29bab659 --- /dev/null +++ b/test/test_response_container_source.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_source import ResponseContainerSource # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerSource(unittest.TestCase): + """ResponseContainerSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerSource(self): + """Test ResponseContainerSource""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_source.ResponseContainerSource() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_span_sampling_policy.py b/test/test_response_container_span_sampling_policy.py new file mode 100644 index 00000000..d3f76245 --- /dev/null +++ b/test/test_response_container_span_sampling_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_span_sampling_policy import ResponseContainerSpanSamplingPolicy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerSpanSamplingPolicy(unittest.TestCase): + """ResponseContainerSpanSamplingPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerSpanSamplingPolicy(self): + """Test ResponseContainerSpanSamplingPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_span_sampling_policy.ResponseContainerSpanSamplingPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_string.py b/test/test_response_container_string.py new file mode 100644 index 00000000..a51513da --- /dev/null +++ b/test/test_response_container_string.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_string import ResponseContainerString # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerString(unittest.TestCase): + """ResponseContainerString unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerString(self): + """Test ResponseContainerString""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_string.ResponseContainerString() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_tags_response.py b/test/test_response_container_tags_response.py new file mode 100644 index 00000000..cbb01ebf --- /dev/null +++ b/test/test_response_container_tags_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_tags_response import ResponseContainerTagsResponse # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerTagsResponse(unittest.TestCase): + """ResponseContainerTagsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerTagsResponse(self): + """Test ResponseContainerTagsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_tags_response.ResponseContainerTagsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_user_api_token.py b/test/test_response_container_user_api_token.py new file mode 100644 index 00000000..3a7d1163 --- /dev/null +++ b/test/test_response_container_user_api_token.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_user_api_token import ResponseContainerUserApiToken # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerUserApiToken(unittest.TestCase): + """ResponseContainerUserApiToken unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerUserApiToken(self): + """Test ResponseContainerUserApiToken""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_user_api_token.ResponseContainerUserApiToken() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_user_dto.py b/test/test_response_container_user_dto.py new file mode 100644 index 00000000..7f39c599 --- /dev/null +++ b/test/test_response_container_user_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_user_dto import ResponseContainerUserDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerUserDTO(unittest.TestCase): + """ResponseContainerUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerUserDTO(self): + """Test ResponseContainerUserDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_user_dto.ResponseContainerUserDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_user_group_model.py b/test/test_response_container_user_group_model.py new file mode 100644 index 00000000..1a463fc3 --- /dev/null +++ b/test/test_response_container_user_group_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_user_group_model import ResponseContainerUserGroupModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerUserGroupModel(unittest.TestCase): + """ResponseContainerUserGroupModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerUserGroupModel(self): + """Test ResponseContainerUserGroupModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_user_group_model.ResponseContainerUserGroupModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_validated_users_dto.py b/test/test_response_container_validated_users_dto.py new file mode 100644 index 00000000..96f8f2c0 --- /dev/null +++ b/test/test_response_container_validated_users_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_validated_users_dto import ResponseContainerValidatedUsersDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerValidatedUsersDTO(unittest.TestCase): + """ResponseContainerValidatedUsersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerValidatedUsersDTO(self): + """Test ResponseContainerValidatedUsersDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_validated_users_dto.ResponseContainerValidatedUsersDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_container_void.py b/test/test_response_container_void.py new file mode 100644 index 00000000..14accf30 --- /dev/null +++ b/test/test_response_container_void.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_void import ResponseContainerVoid # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseContainerVoid(unittest.TestCase): + """ResponseContainerVoid unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseContainerVoid(self): + """Test ResponseContainerVoid""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_container_void.ResponseContainerVoid() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_response_status.py b/test/test_response_status.py new file mode 100644 index 00000000..eb747d07 --- /dev/null +++ b/test/test_response_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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_status import ResponseStatus # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestResponseStatus(unittest.TestCase): + """ResponseStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseStatus(self): + """Test ResponseStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.response_status.ResponseStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_role_api.py b/test/test_role_api.py new file mode 100644 index 00000000..dd22f1a3 --- /dev/null +++ b/test/test_role_api.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.role_api import RoleApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRoleApi(unittest.TestCase): + """RoleApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.role_api.RoleApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_assignees(self): + """Test case for add_assignees + + Add accounts and groups to a role # noqa: E501 + """ + pass + + def test_create_role(self): + """Test case for create_role + + Create a role # noqa: E501 + """ + pass + + def test_delete_role(self): + """Test case for delete_role + + Delete a role by ID # noqa: E501 + """ + pass + + def test_get_all_roles(self): + """Test case for get_all_roles + + Get all roles # noqa: E501 + """ + pass + + def test_get_role(self): + """Test case for get_role + + Get a role by ID # noqa: E501 + """ + pass + + def test_grant_permission_to_roles(self): + """Test case for grant_permission_to_roles + + Grant a permission to roles # noqa: E501 + """ + pass + + def test_remove_assignees(self): + """Test case for remove_assignees + + Remove accounts and groups from a role # noqa: E501 + """ + pass + + def test_revoke_permission_from_roles(self): + """Test case for revoke_permission_from_roles + + Revoke a permission from roles # noqa: E501 + """ + pass + + def test_update_role(self): + """Test case for update_role + + Update a role by ID # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_role_create_dto.py b/test/test_role_create_dto.py new file mode 100644 index 00000000..bca46cf6 --- /dev/null +++ b/test/test_role_create_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.role_create_dto import RoleCreateDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRoleCreateDTO(unittest.TestCase): + """RoleCreateDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRoleCreateDTO(self): + """Test RoleCreateDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.role_create_dto.RoleCreateDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_role_dto.py b/test/test_role_dto.py new file mode 100644 index 00000000..1bb0ac0e --- /dev/null +++ b/test/test_role_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.role_dto import RoleDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRoleDTO(unittest.TestCase): + """RoleDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRoleDTO(self): + """Test RoleDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.role_dto.RoleDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_role_update_dto.py b/test/test_role_update_dto.py new file mode 100644 index 00000000..e349ef74 --- /dev/null +++ b/test/test_role_update_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.role_update_dto import RoleUpdateDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestRoleUpdateDTO(unittest.TestCase): + """RoleUpdateDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRoleUpdateDTO(self): + """Test RoleUpdateDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.role_update_dto.RoleUpdateDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_app_map_search.py b/test/test_saved_app_map_search.py new file mode 100644 index 00000000..06fbb438 --- /dev/null +++ b/test/test_saved_app_map_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.saved_app_map_search import SavedAppMapSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedAppMapSearch(unittest.TestCase): + """SavedAppMapSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSavedAppMapSearch(self): + """Test SavedAppMapSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.saved_app_map_search.SavedAppMapSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_app_map_search_api.py b/test/test_saved_app_map_search_api.py new file mode 100644 index 00000000..7ef637dd --- /dev/null +++ b/test/test_saved_app_map_search_api.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.saved_app_map_search_api import SavedAppMapSearchApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedAppMapSearchApi(unittest.TestCase): + """SavedAppMapSearchApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.saved_app_map_search_api.SavedAppMapSearchApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_saved_app_map_search(self): + """Test case for create_saved_app_map_search + + Create a search # noqa: E501 + """ + pass + + def test_default_app_map_search(self): + """Test case for default_app_map_search + + Get default app map search for a user # noqa: E501 + """ + pass + + def test_default_app_map_search_0(self): + """Test case for default_app_map_search_0 + + Set default app map search at user level # noqa: E501 + """ + pass + + def test_default_customer_app_map_search(self): + """Test case for default_customer_app_map_search + + Set default app map search at customer level # noqa: E501 + """ + pass + + def test_delete_saved_app_map_search(self): + """Test case for delete_saved_app_map_search + + Delete a search # noqa: E501 + """ + pass + + def test_delete_saved_app_map_search_for_user(self): + """Test case for delete_saved_app_map_search_for_user + + Delete a search belonging to the user # noqa: E501 + """ + pass + + def test_get_all_saved_app_map_searches(self): + """Test case for get_all_saved_app_map_searches + + Get all searches for a customer # noqa: E501 + """ + pass + + def test_get_all_saved_app_map_searches_for_user(self): + """Test case for get_all_saved_app_map_searches_for_user + + Get all searches for a user # noqa: E501 + """ + pass + + def test_get_saved_app_map_search(self): + """Test case for get_saved_app_map_search + + Get a specific search # noqa: E501 + """ + pass + + def test_update_saved_app_map_search(self): + """Test case for update_saved_app_map_search + + Update a search # noqa: E501 + """ + pass + + def test_update_saved_app_map_search_for_user(self): + """Test case for update_saved_app_map_search_for_user + + Update a search belonging to the user # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_app_map_search_group.py b/test/test_saved_app_map_search_group.py new file mode 100644 index 00000000..a9b08ed9 --- /dev/null +++ b/test/test_saved_app_map_search_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.saved_app_map_search_group import SavedAppMapSearchGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedAppMapSearchGroup(unittest.TestCase): + """SavedAppMapSearchGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSavedAppMapSearchGroup(self): + """Test SavedAppMapSearchGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.saved_app_map_search_group.SavedAppMapSearchGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_app_map_search_group_api.py b/test/test_saved_app_map_search_group_api.py new file mode 100644 index 00000000..05467563 --- /dev/null +++ b/test/test_saved_app_map_search_group_api.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.saved_app_map_search_group_api import SavedAppMapSearchGroupApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedAppMapSearchGroupApi(unittest.TestCase): + """SavedAppMapSearchGroupApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.saved_app_map_search_group_api.SavedAppMapSearchGroupApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_saved_app_map_search_to_group(self): + """Test case for add_saved_app_map_search_to_group + + Add a search to a search group # noqa: E501 + """ + pass + + def test_create_saved_app_map_search_group(self): + """Test case for create_saved_app_map_search_group + + Create a search group # noqa: E501 + """ + pass + + def test_delete_saved_app_map_search_group(self): + """Test case for delete_saved_app_map_search_group + + Delete a search group # noqa: E501 + """ + pass + + def test_get_all_saved_app_map_search_group(self): + """Test case for get_all_saved_app_map_search_group + + Get all search groups for a user # noqa: E501 + """ + pass + + def test_get_saved_app_map_search_group(self): + """Test case for get_saved_app_map_search_group + + Get a specific search group # noqa: E501 + """ + pass + + def test_get_saved_app_map_searches_for_group(self): + """Test case for get_saved_app_map_searches_for_group + + Get all searches for a search group # noqa: E501 + """ + pass + + def test_remove_saved_app_map_search_from_group(self): + """Test case for remove_saved_app_map_search_from_group + + Remove a search from a search group # noqa: E501 + """ + pass + + def test_update_saved_app_map_search_group(self): + """Test case for update_saved_app_map_search_group + + Update a search group # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_search.py b/test/test_saved_search.py new file mode 100644 index 00000000..efa7940f --- /dev/null +++ b/test/test_saved_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.saved_search import SavedSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedSearch(unittest.TestCase): + """SavedSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSavedSearch(self): + """Test SavedSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.saved_search.SavedSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_search_api.py b/test/test_saved_search_api.py new file mode 100644 index 00000000..b5863328 --- /dev/null +++ b/test/test_saved_search_api.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.saved_search_api import SavedSearchApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedSearchApi(unittest.TestCase): + """SavedSearchApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.saved_search_api.SavedSearchApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_saved_search(self): + """Test case for create_saved_search + + Create a saved search # noqa: E501 + """ + pass + + def test_delete_saved_search(self): + """Test case for delete_saved_search + + Delete a specific saved search # noqa: E501 + """ + pass + + def test_get_all_entity_type_saved_searches(self): + """Test case for get_all_entity_type_saved_searches + + Get all saved searches for a specific entity type for a user # noqa: E501 + """ + pass + + def test_get_all_saved_searches(self): + """Test case for get_all_saved_searches + + Get all saved searches for a user # noqa: E501 + """ + pass + + def test_get_saved_search(self): + """Test case for get_saved_search + + Get a specific saved search # noqa: E501 + """ + pass + + def test_update_saved_search(self): + """Test case for update_saved_search + + Update a specific saved search # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_traces_search.py b/test/test_saved_traces_search.py new file mode 100644 index 00000000..5b1aee26 --- /dev/null +++ b/test/test_saved_traces_search.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.saved_traces_search import SavedTracesSearch # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedTracesSearch(unittest.TestCase): + """SavedTracesSearch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSavedTracesSearch(self): + """Test SavedTracesSearch""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.saved_traces_search.SavedTracesSearch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_traces_search_api.py b/test/test_saved_traces_search_api.py new file mode 100644 index 00000000..c3c66551 --- /dev/null +++ b/test/test_saved_traces_search_api.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.saved_traces_search_api import SavedTracesSearchApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedTracesSearchApi(unittest.TestCase): + """SavedTracesSearchApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.saved_traces_search_api.SavedTracesSearchApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_saved_traces_search(self): + """Test case for create_saved_traces_search + + Create a search # noqa: E501 + """ + pass + + def test_default_app_map_search(self): + """Test case for default_app_map_search + + Set default traces search at user level # noqa: E501 + """ + pass + + def test_default_customer_traces_search(self): + """Test case for default_customer_traces_search + + Set default traces search at customer level # noqa: E501 + """ + pass + + def test_default_traces_search(self): + """Test case for default_traces_search + + Get default traces search for a user # noqa: E501 + """ + pass + + def test_delete_saved_traces_search(self): + """Test case for delete_saved_traces_search + + Delete a search # noqa: E501 + """ + pass + + def test_delete_saved_traces_search_for_user(self): + """Test case for delete_saved_traces_search_for_user + + Delete a search belonging to the user # noqa: E501 + """ + pass + + def test_get_all_saved_traces_searches(self): + """Test case for get_all_saved_traces_searches + + Get all searches for a customer # noqa: E501 + """ + pass + + def test_get_all_saved_traces_searches_for_user(self): + """Test case for get_all_saved_traces_searches_for_user + + Get all searches for a user # noqa: E501 + """ + pass + + def test_get_saved_traces_search(self): + """Test case for get_saved_traces_search + + Get a specific search # noqa: E501 + """ + pass + + def test_update_saved_traces_search(self): + """Test case for update_saved_traces_search + + Update a search # noqa: E501 + """ + pass + + def test_update_saved_traces_search_for_user(self): + """Test case for update_saved_traces_search_for_user + + Update a search belonging to the user # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_traces_search_group.py b/test/test_saved_traces_search_group.py new file mode 100644 index 00000000..707f9766 --- /dev/null +++ b/test/test_saved_traces_search_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.saved_traces_search_group import SavedTracesSearchGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedTracesSearchGroup(unittest.TestCase): + """SavedTracesSearchGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSavedTracesSearchGroup(self): + """Test SavedTracesSearchGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.saved_traces_search_group.SavedTracesSearchGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saved_traces_search_group_api.py b/test/test_saved_traces_search_group_api.py new file mode 100644 index 00000000..9fd9eff7 --- /dev/null +++ b/test/test_saved_traces_search_group_api.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.saved_traces_search_group_api import SavedTracesSearchGroupApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSavedTracesSearchGroupApi(unittest.TestCase): + """SavedTracesSearchGroupApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.saved_traces_search_group_api.SavedTracesSearchGroupApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_saved_traces_search_to_group(self): + """Test case for add_saved_traces_search_to_group + + Add a search to a search group # noqa: E501 + """ + pass + + def test_create_saved_traces_search_group(self): + """Test case for create_saved_traces_search_group + + Create a search group # noqa: E501 + """ + pass + + def test_delete_saved_traces_search_group(self): + """Test case for delete_saved_traces_search_group + + Delete a search group # noqa: E501 + """ + pass + + def test_get_all_saved_traces_search_group(self): + """Test case for get_all_saved_traces_search_group + + Get all search groups for a user # noqa: E501 + """ + pass + + def test_get_saved_traces_search_group(self): + """Test case for get_saved_traces_search_group + + Get a specific search group # noqa: E501 + """ + pass + + def test_get_saved_traces_searches_for_group(self): + """Test case for get_saved_traces_searches_for_group + + Get all searches for a search group # noqa: E501 + """ + pass + + def test_remove_saved_traces_search_from_group(self): + """Test case for remove_saved_traces_search_from_group + + Remove a search from a search group # noqa: E501 + """ + pass + + def test_update_saved_traces_search_group(self): + """Test case for update_saved_traces_search_group + + Update a search group # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_schema.py b/test/test_schema.py new file mode 100644 index 00000000..8fc61749 --- /dev/null +++ b/test/test_schema.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.schema import Schema # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSchema(unittest.TestCase): + """Schema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchema(self): + """Test Schema""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.schema.Schema() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_search_api.py b/test/test_search_api.py new file mode 100644 index 00000000..1fa35251 --- /dev/null +++ b/test/test_search_api.py @@ -0,0 +1,657 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.search_api import SearchApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSearchApi(unittest.TestCase): + """SearchApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.search_api.SearchApi() # noqa: E501 + + def tearDown(self): + pass + + def test_search_account_entities(self): + """Test case for search_account_entities + + Search over a customer's accounts # noqa: E501 + """ + pass + + def test_search_account_for_facet(self): + """Test case for search_account_for_facet + + Lists the values of a specific facet over the customer's accounts # noqa: E501 + """ + pass + + def test_search_account_for_facets(self): + """Test case for search_account_for_facets + + Lists the values of one or more facets over the customer's accounts # noqa: E501 + """ + pass + + def test_search_alert_deleted_entities(self): + """Test case for search_alert_deleted_entities + + Search over a customer's deleted alerts # noqa: E501 + """ + pass + + def test_search_alert_deleted_for_facet(self): + """Test case for search_alert_deleted_for_facet + + Lists the values of a specific facet over the customer's deleted alerts # noqa: E501 + """ + pass + + def test_search_alert_deleted_for_facets(self): + """Test case for search_alert_deleted_for_facets + + Lists the values of one or more facets over the customer's deleted alerts # noqa: E501 + """ + pass + + def test_search_alert_entities(self): + """Test case for search_alert_entities + + Search over a customer's non-deleted alerts # noqa: E501 + """ + pass + + def test_search_alert_for_facet(self): + """Test case for search_alert_for_facet + + Lists the values of a specific facet over the customer's non-deleted alerts # noqa: E501 + """ + pass + + def test_search_alert_for_facets(self): + """Test case for search_alert_for_facets + + Lists the values of one or more facets over the customer's non-deleted alerts # noqa: E501 + """ + pass + + def test_search_cloud_integration_deleted_entities(self): + """Test case for search_cloud_integration_deleted_entities + + Search over a customer's deleted cloud integrations # noqa: E501 + """ + pass + + def test_search_cloud_integration_deleted_for_facet(self): + """Test case for search_cloud_integration_deleted_for_facet + + Lists the values of a specific facet over the customer's deleted cloud integrations # noqa: E501 + """ + pass + + def test_search_cloud_integration_deleted_for_facets(self): + """Test case for search_cloud_integration_deleted_for_facets + + Lists the values of one or more facets over the customer's deleted cloud integrations # noqa: E501 + """ + pass + + def test_search_cloud_integration_entities(self): + """Test case for search_cloud_integration_entities + + Search over a customer's non-deleted cloud integrations # noqa: E501 + """ + pass + + def test_search_cloud_integration_for_facet(self): + """Test case for search_cloud_integration_for_facet + + Lists the values of a specific facet over the customer's non-deleted cloud integrations # noqa: E501 + """ + pass + + def test_search_cloud_integration_for_facets(self): + """Test case for search_cloud_integration_for_facets + + Lists the values of one or more facets over the customer's non-deleted cloud integrations # noqa: E501 + """ + pass + + def test_search_dashboard_deleted_entities(self): + """Test case for search_dashboard_deleted_entities + + Search over a customer's deleted dashboards # noqa: E501 + """ + pass + + def test_search_dashboard_deleted_for_facet(self): + """Test case for search_dashboard_deleted_for_facet + + Lists the values of a specific facet over the customer's deleted dashboards # noqa: E501 + """ + pass + + def test_search_dashboard_deleted_for_facets(self): + """Test case for search_dashboard_deleted_for_facets + + Lists the values of one or more facets over the customer's deleted dashboards # noqa: E501 + """ + pass + + def test_search_dashboard_entities(self): + """Test case for search_dashboard_entities + + Search over a customer's non-deleted dashboards # noqa: E501 + """ + pass + + def test_search_dashboard_for_facet(self): + """Test case for search_dashboard_for_facet + + Lists the values of a specific facet over the customer's non-deleted dashboards # noqa: E501 + """ + pass + + def test_search_dashboard_for_facets(self): + """Test case for search_dashboard_for_facets + + Lists the values of one or more facets over the customer's non-deleted dashboards # noqa: E501 + """ + pass + + def test_search_external_link_entities(self): + """Test case for search_external_link_entities + + Search over a customer's external links # noqa: E501 + """ + pass + + def test_search_external_links_for_facet(self): + """Test case for search_external_links_for_facet + + Lists the values of a specific facet over the customer's external links # noqa: E501 + """ + pass + + def test_search_external_links_for_facets(self): + """Test case for search_external_links_for_facets + + Lists the values of one or more facets over the customer's external links # noqa: E501 + """ + pass + + def test_search_ingestion_policy_entities(self): + """Test case for search_ingestion_policy_entities + + Search over a customer's ingestion policies # noqa: E501 + """ + pass + + def test_search_ingestion_policy_for_facet(self): + """Test case for search_ingestion_policy_for_facet + + Lists the values of a specific facet over the customer's ingestion policies # noqa: E501 + """ + pass + + def test_search_ingestion_policy_for_facets(self): + """Test case for search_ingestion_policy_for_facets + + Lists the values of one or more facets over the customer's ingestion policies # noqa: E501 + """ + pass + + def test_search_maintenance_window_entities(self): + """Test case for search_maintenance_window_entities + + Search over a customer's maintenance windows # noqa: E501 + """ + pass + + def test_search_maintenance_window_for_facet(self): + """Test case for search_maintenance_window_for_facet + + Lists the values of a specific facet over the customer's maintenance windows # noqa: E501 + """ + pass + + def test_search_maintenance_window_for_facets(self): + """Test case for search_maintenance_window_for_facets + + Lists the values of one or more facets over the customer's maintenance windows # noqa: E501 + """ + pass + + def test_search_monitored_application_entities(self): + """Test case for search_monitored_application_entities + + Search over all the customer's non-deleted monitored applications # noqa: E501 + """ + pass + + def test_search_monitored_application_for_facet(self): + """Test case for search_monitored_application_for_facet + + Lists the values of a specific facet over the customer's non-deleted monitored application # noqa: E501 + """ + pass + + def test_search_monitored_application_for_facets(self): + """Test case for search_monitored_application_for_facets + + Lists the values of one or more facets over the customer's non-deleted monitored clusters # noqa: E501 + """ + pass + + def test_search_monitored_service_entities(self): + """Test case for search_monitored_service_entities + + Search over all the customer's non-deleted monitored services # noqa: E501 + """ + pass + + def test_search_monitored_service_for_facet(self): + """Test case for search_monitored_service_for_facet + + Lists the values of a specific facet over the customer's non-deleted monitored application # noqa: E501 + """ + pass + + def test_search_monitored_service_for_facets(self): + """Test case for search_monitored_service_for_facets + + Lists the values of one or more facets over the customer's non-deleted monitored clusters # noqa: E501 + """ + pass + + def test_search_notficant_for_facets(self): + """Test case for search_notficant_for_facets + + Lists the values of one or more facets over the customer's notificants # noqa: E501 + """ + pass + + def test_search_notificant_entities(self): + """Test case for search_notificant_entities + + Search over a customer's notificants # noqa: E501 + """ + pass + + def test_search_notificant_for_facet(self): + """Test case for search_notificant_for_facet + + Lists the values of a specific facet over the customer's notificants # noqa: E501 + """ + pass + + def test_search_proxy_deleted_entities(self): + """Test case for search_proxy_deleted_entities + + Search over a customer's deleted proxies # noqa: E501 + """ + pass + + def test_search_proxy_deleted_for_facet(self): + """Test case for search_proxy_deleted_for_facet + + Lists the values of a specific facet over the customer's deleted proxies # noqa: E501 + """ + pass + + def test_search_proxy_deleted_for_facets(self): + """Test case for search_proxy_deleted_for_facets + + Lists the values of one or more facets over the customer's deleted proxies # noqa: E501 + """ + pass + + def test_search_proxy_entities(self): + """Test case for search_proxy_entities + + Search over a customer's non-deleted proxies # noqa: E501 + """ + pass + + def test_search_proxy_for_facet(self): + """Test case for search_proxy_for_facet + + Lists the values of a specific facet over the customer's non-deleted proxies # noqa: E501 + """ + pass + + def test_search_proxy_for_facets(self): + """Test case for search_proxy_for_facets + + Lists the values of one or more facets over the customer's non-deleted proxies # noqa: E501 + """ + pass + + def test_search_registered_query_deleted_entities(self): + """Test case for search_registered_query_deleted_entities + + Search over a customer's deleted derived metric definitions # noqa: E501 + """ + pass + + def test_search_registered_query_deleted_for_facet(self): + """Test case for search_registered_query_deleted_for_facet + + Lists the values of a specific facet over the customer's deleted derived metric definitions # noqa: E501 + """ + pass + + def test_search_registered_query_deleted_for_facets(self): + """Test case for search_registered_query_deleted_for_facets + + Lists the values of one or more facets over the customer's deleted derived metric definitions # noqa: E501 + """ + pass + + def test_search_registered_query_entities(self): + """Test case for search_registered_query_entities + + Search over a customer's non-deleted derived metric definitions # noqa: E501 + """ + pass + + def test_search_registered_query_for_facet(self): + """Test case for search_registered_query_for_facet + + Lists the values of a specific facet over the customer's non-deleted derived metric definitions # noqa: E501 + """ + pass + + def test_search_registered_query_for_facets(self): + """Test case for search_registered_query_for_facets + + Lists the values of one or more facets over the customer's non-deleted derived metric definition # noqa: E501 + """ + pass + + def test_search_related_report_event_anomaly_entities(self): + """Test case for search_related_report_event_anomaly_entities + + List the related events and anomalies over a firing event # noqa: E501 + """ + pass + + def test_search_related_report_event_entities(self): + """Test case for search_related_report_event_entities + + List the related events over a firing event # noqa: E501 + """ + pass + + def test_search_report_event_entities(self): + """Test case for search_report_event_entities + + Search over a customer's events # noqa: E501 + """ + pass + + def test_search_report_event_for_facet(self): + """Test case for search_report_event_for_facet + + Lists the values of a specific facet over the customer's events # noqa: E501 + """ + pass + + def test_search_report_event_for_facets(self): + """Test case for search_report_event_for_facets + + Lists the values of one or more facets over the customer's events # noqa: E501 + """ + pass + + def test_search_role_entities(self): + """Test case for search_role_entities + + Search over a customer's roles # noqa: E501 + """ + pass + + def test_search_role_for_facet(self): + """Test case for search_role_for_facet + + Lists the values of a specific facet over the customer's roles # noqa: E501 + """ + pass + + def test_search_role_for_facets(self): + """Test case for search_role_for_facets + + Lists the values of one or more facets over the customer's roles # noqa: E501 + """ + pass + + def test_search_saved_app_map_entities(self): + """Test case for search_saved_app_map_entities + + Search over all the customer's non-deleted saved app map searches # noqa: E501 + """ + pass + + def test_search_saved_app_map_for_facet(self): + """Test case for search_saved_app_map_for_facet + + Lists the values of a specific facet over the customer's non-deleted app map searches # noqa: E501 + """ + pass + + def test_search_saved_app_map_for_facets(self): + """Test case for search_saved_app_map_for_facets + + Lists the values of one or more facets over the customer's non-deleted app map searches # noqa: E501 + """ + pass + + def test_search_saved_traces_entities(self): + """Test case for search_saved_traces_entities + + Search over all the customer's non-deleted saved traces searches # noqa: E501 + """ + pass + + def test_search_service_account_entities(self): + """Test case for search_service_account_entities + + Search over a customer's service accounts # noqa: E501 + """ + pass + + def test_search_service_account_for_facet(self): + """Test case for search_service_account_for_facet + + Lists the values of a specific facet over the customer's service accounts # noqa: E501 + """ + pass + + def test_search_service_account_for_facets(self): + """Test case for search_service_account_for_facets + + Lists the values of one or more facets over the customer's service accounts # noqa: E501 + """ + pass + + def test_search_span_sampling_policy_deleted_entities(self): + """Test case for search_span_sampling_policy_deleted_entities + + Search over a customer's deleted span sampling policies # noqa: E501 + """ + pass + + def test_search_span_sampling_policy_deleted_for_facet(self): + """Test case for search_span_sampling_policy_deleted_for_facet + + Lists the values of a specific facet over the customer's deleted span sampling policies # noqa: E501 + """ + pass + + def test_search_span_sampling_policy_deleted_for_facets(self): + """Test case for search_span_sampling_policy_deleted_for_facets + + Lists the values of one or more facets over the customer's deleted span sampling policies # noqa: E501 + """ + pass + + def test_search_span_sampling_policy_entities(self): + """Test case for search_span_sampling_policy_entities + + Search over a customer's non-deleted span sampling policies # noqa: E501 + """ + pass + + def test_search_span_sampling_policy_for_facet(self): + """Test case for search_span_sampling_policy_for_facet + + Lists the values of a specific facet over the customer's non-deleted span sampling policies # noqa: E501 + """ + pass + + def test_search_span_sampling_policy_for_facets(self): + """Test case for search_span_sampling_policy_for_facets + + Lists the values of one or more facets over the customer's non-deleted span sampling policies # noqa: E501 + """ + pass + + def test_search_tagged_source_entities(self): + """Test case for search_tagged_source_entities + + Search over a customer's sources # noqa: E501 + """ + pass + + def test_search_tagged_source_for_facet(self): + """Test case for search_tagged_source_for_facet + + Lists the values of a specific facet over the customer's sources # noqa: E501 + """ + pass + + def test_search_tagged_source_for_facets(self): + """Test case for search_tagged_source_for_facets + + Lists the values of one or more facets over the customer's sources # noqa: E501 + """ + pass + + def test_search_token_entities(self): + """Test case for search_token_entities + + Search over a customer's api tokens # noqa: E501 + """ + pass + + def test_search_token_for_facet(self): + """Test case for search_token_for_facet + + Lists the values of a specific facet over the customer's api tokens # noqa: E501 + """ + pass + + def test_search_token_for_facets(self): + """Test case for search_token_for_facets + + Lists the values of one or more facets over the customer's api tokens # noqa: E501 + """ + pass + + def test_search_traces_map_for_facet(self): + """Test case for search_traces_map_for_facet + + Lists the values of a specific facet over the customer's non-deleted traces searches # noqa: E501 + """ + pass + + def test_search_traces_map_for_facets(self): + """Test case for search_traces_map_for_facets + + Lists the values of one or more facets over the customer's non-deleted traces searches # noqa: E501 + """ + pass + + def test_search_user_entities(self): + """Test case for search_user_entities + + Search over a customer's users # noqa: E501 + """ + pass + + def test_search_user_for_facet(self): + """Test case for search_user_for_facet + + Lists the values of a specific facet over the customer's users # noqa: E501 + """ + pass + + def test_search_user_for_facets(self): + """Test case for search_user_for_facets + + Lists the values of one or more facets over the customer's users # noqa: E501 + """ + pass + + def test_search_user_group_entities(self): + """Test case for search_user_group_entities + + Search over a customer's user groups # noqa: E501 + """ + pass + + def test_search_user_group_for_facet(self): + """Test case for search_user_group_for_facet + + Lists the values of a specific facet over the customer's user groups # noqa: E501 + """ + pass + + def test_search_user_group_for_facets(self): + """Test case for search_user_group_for_facets + + Lists the values of one or more facets over the customer's user groups # noqa: E501 + """ + pass + + def test_search_web_hook_entities(self): + """Test case for search_web_hook_entities + + Search over a customer's webhooks # noqa: E501 + """ + pass + + def test_search_web_hook_for_facet(self): + """Test case for search_web_hook_for_facet + + Lists the values of a specific facet over the customer's webhooks # noqa: E501 + """ + pass + + def test_search_webhook_for_facets(self): + """Test case for search_webhook_for_facets + + Lists the values of one or more facets over the customer's webhooks # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_search_query.py b/test/test_search_query.py new file mode 100644 index 00000000..dbe4ac32 --- /dev/null +++ b/test/test_search_query.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.search_query import SearchQuery # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSearchQuery(unittest.TestCase): + """SearchQuery unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSearchQuery(self): + """Test SearchQuery""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.search_query.SearchQuery() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_security_policy_api.py b/test/test_security_policy_api.py new file mode 100644 index 00000000..52a9ec2c --- /dev/null +++ b/test/test_security_policy_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.security_policy_api import SecurityPolicyApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSecurityPolicyApi(unittest.TestCase): + """SecurityPolicyApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.security_policy_api.SecurityPolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_metrics_policy(self): + """Test case for get_metrics_policy + + Get the metrics policy # noqa: E501 + """ + pass + + def test_get_metrics_policy_by_version(self): + """Test case for get_metrics_policy_by_version + + Get a specific historical version of a metrics policy # noqa: E501 + """ + pass + + def test_get_metrics_policy_history(self): + """Test case for get_metrics_policy_history + + Get the version history of metrics policy # noqa: E501 + """ + pass + + def test_revert_metrics_policy_by_version(self): + """Test case for revert_metrics_policy_by_version + + Revert to a specific historical version of a metrics policy # noqa: E501 + """ + pass + + def test_update_metrics_policy(self): + """Test case for update_metrics_policy + + Update the metrics policy # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_service_account.py b/test/test_service_account.py new file mode 100644 index 00000000..678340de --- /dev/null +++ b/test/test_service_account.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.service_account import ServiceAccount # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestServiceAccount(unittest.TestCase): + """ServiceAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testServiceAccount(self): + """Test ServiceAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.service_account.ServiceAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_service_account_write.py b/test/test_service_account_write.py new file mode 100644 index 00000000..d64165bb --- /dev/null +++ b/test/test_service_account_write.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.service_account_write import ServiceAccountWrite # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestServiceAccountWrite(unittest.TestCase): + """ServiceAccountWrite unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testServiceAccountWrite(self): + """Test ServiceAccountWrite""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.service_account_write.ServiceAccountWrite() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_setup.py b/test/test_setup.py new file mode 100644 index 00000000..6c8456be --- /dev/null +++ b/test/test_setup.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.setup import Setup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSetup(unittest.TestCase): + """Setup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSetup(self): + """Test Setup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.setup.Setup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_snowflake_configuration.py b/test/test_snowflake_configuration.py new file mode 100644 index 00000000..37e7372d --- /dev/null +++ b/test/test_snowflake_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.snowflake_configuration import SnowflakeConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSnowflakeConfiguration(unittest.TestCase): + """SnowflakeConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnowflakeConfiguration(self): + """Test SnowflakeConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.snowflake_configuration.SnowflakeConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sortable_search_request.py b/test/test_sortable_search_request.py new file mode 100644 index 00000000..c9497875 --- /dev/null +++ b/test/test_sortable_search_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.sortable_search_request import SortableSearchRequest # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSortableSearchRequest(unittest.TestCase): + """SortableSearchRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSortableSearchRequest(self): + """Test SortableSearchRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.sortable_search_request.SortableSearchRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sorting.py b/test/test_sorting.py new file mode 100644 index 00000000..ced650c3 --- /dev/null +++ b/test/test_sorting.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.sorting import Sorting # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSorting(unittest.TestCase): + """Sorting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSorting(self): + """Test Sorting""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.sorting.Sorting() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_source.py b/test/test_source.py new file mode 100644 index 00000000..394f4767 --- /dev/null +++ b/test/test_source.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.source import Source # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSource(unittest.TestCase): + """Source unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSource(self): + """Test Source""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.source.Source() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_source_api.py b/test/test_source_api.py new file mode 100644 index 00000000..3a2fa68d --- /dev/null +++ b/test/test_source_api.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.source_api import SourceApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSourceApi(unittest.TestCase): + """SourceApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.source_api.SourceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_source_tag(self): + """Test case for add_source_tag + + Add a tag to a specific source # noqa: E501 + """ + pass + + def test_create_source(self): + """Test case for create_source + + Create metadata (description or tags) for a specific source # noqa: E501 + """ + pass + + def test_delete_source(self): + """Test case for delete_source + + Delete metadata (description and tags) for a specific source # noqa: E501 + """ + pass + + def test_get_all_source(self): + """Test case for get_all_source + + Get all sources for a customer # noqa: E501 + """ + pass + + def test_get_source(self): + """Test case for get_source + + Get a specific source for a customer # noqa: E501 + """ + pass + + def test_get_source_tags(self): + """Test case for get_source_tags + + Get all tags associated with a specific source # noqa: E501 + """ + pass + + def test_remove_description(self): + """Test case for remove_description + + Remove description from a specific source # noqa: E501 + """ + pass + + def test_remove_source_tag(self): + """Test case for remove_source_tag + + Remove a tag from a specific source # noqa: E501 + """ + pass + + def test_set_description(self): + """Test case for set_description + + Set description associated with a specific source # noqa: E501 + """ + pass + + def test_set_source_tags(self): + """Test case for set_source_tags + + Set all tags associated with a specific source # noqa: E501 + """ + pass + + def test_update_source(self): + """Test case for update_source + + Update metadata (description or tags) for a specific source. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_source_label_pair.py b/test/test_source_label_pair.py new file mode 100644 index 00000000..d6d27178 --- /dev/null +++ b/test/test_source_label_pair.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.source_label_pair import SourceLabelPair # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSourceLabelPair(unittest.TestCase): + """SourceLabelPair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSourceLabelPair(self): + """Test SourceLabelPair""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.source_label_pair.SourceLabelPair() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_source_search_request_container.py b/test/test_source_search_request_container.py new file mode 100644 index 00000000..16f83c6c --- /dev/null +++ b/test/test_source_search_request_container.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.source_search_request_container import SourceSearchRequestContainer # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSourceSearchRequestContainer(unittest.TestCase): + """SourceSearchRequestContainer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSourceSearchRequestContainer(self): + """Test SourceSearchRequestContainer""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.source_search_request_container.SourceSearchRequestContainer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_span.py b/test/test_span.py new file mode 100644 index 00000000..7f9ad140 --- /dev/null +++ b/test/test_span.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.span import Span # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSpan(unittest.TestCase): + """Span unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSpan(self): + """Test Span""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.span.Span() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_span_sampling_policy.py b/test/test_span_sampling_policy.py new file mode 100644 index 00000000..c7727597 --- /dev/null +++ b/test/test_span_sampling_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.span_sampling_policy import SpanSamplingPolicy # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSpanSamplingPolicy(unittest.TestCase): + """SpanSamplingPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSpanSamplingPolicy(self): + """Test SpanSamplingPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.span_sampling_policy.SpanSamplingPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_span_sampling_policy_api.py b/test/test_span_sampling_policy_api.py new file mode 100644 index 00000000..28fa5d33 --- /dev/null +++ b/test/test_span_sampling_policy_api.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.span_sampling_policy_api import SpanSamplingPolicyApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSpanSamplingPolicyApi(unittest.TestCase): + """SpanSamplingPolicyApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.span_sampling_policy_api.SpanSamplingPolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_span_sampling_policy(self): + """Test case for create_span_sampling_policy + + Create a span sampling policy # noqa: E501 + """ + pass + + def test_delete_span_sampling_policy(self): + """Test case for delete_span_sampling_policy + + Delete a specific span sampling policy # noqa: E501 + """ + pass + + def test_get_all_deleted_span_sampling_policy(self): + """Test case for get_all_deleted_span_sampling_policy + + Get all deleted sampling policies for a customer # noqa: E501 + """ + pass + + def test_get_all_span_sampling_policy(self): + """Test case for get_all_span_sampling_policy + + Get all sampling policies for a customer # noqa: E501 + """ + pass + + def test_get_span_sampling_policy(self): + """Test case for get_span_sampling_policy + + Get a specific span sampling policy # noqa: E501 + """ + pass + + def test_get_span_sampling_policy_history(self): + """Test case for get_span_sampling_policy_history + + Get the version history of a specific sampling policy # noqa: E501 + """ + pass + + def test_get_span_sampling_policy_version(self): + """Test case for get_span_sampling_policy_version + + Get a specific historical version of a specific sampling policy # noqa: E501 + """ + pass + + def test_undelete_span_sampling_policy(self): + """Test case for undelete_span_sampling_policy + + Restore a deleted span sampling policy # noqa: E501 + """ + pass + + def test_update_span_sampling_policy(self): + """Test case for update_span_sampling_policy + + Update a specific span sampling policy # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_specific_data.py b/test/test_specific_data.py new file mode 100644 index 00000000..51aa236b --- /dev/null +++ b/test/test_specific_data.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.specific_data import SpecificData # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestSpecificData(unittest.TestCase): + """SpecificData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSpecificData(self): + """Test SpecificData""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.specific_data.SpecificData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_stats_model_internal_use.py b/test/test_stats_model_internal_use.py new file mode 100644 index 00000000..0e2288ed --- /dev/null +++ b/test/test_stats_model_internal_use.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.stats_model_internal_use import StatsModelInternalUse # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestStatsModelInternalUse(unittest.TestCase): + """StatsModelInternalUse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatsModelInternalUse(self): + """Test StatsModelInternalUse""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.stats_model_internal_use.StatsModelInternalUse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_stripe.py b/test/test_stripe.py new file mode 100644 index 00000000..be66d44e --- /dev/null +++ b/test/test_stripe.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.stripe import Stripe # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestStripe(unittest.TestCase): + """Stripe unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStripe(self): + """Test Stripe""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.stripe.Stripe() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tags_response.py b/test/test_tags_response.py new file mode 100644 index 00000000..9ab9e103 --- /dev/null +++ b/test/test_tags_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.tags_response import TagsResponse # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestTagsResponse(unittest.TestCase): + """TagsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTagsResponse(self): + """Test TagsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.tags_response.TagsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_target_info.py b/test/test_target_info.py new file mode 100644 index 00000000..da43e972 --- /dev/null +++ b/test/test_target_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.target_info import TargetInfo # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestTargetInfo(unittest.TestCase): + """TargetInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTargetInfo(self): + """Test TargetInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.target_info.TargetInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_timeseries.py b/test/test_timeseries.py new file mode 100644 index 00000000..b6346c7e --- /dev/null +++ b/test/test_timeseries.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.timeseries import Timeseries # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestTimeseries(unittest.TestCase): + """Timeseries unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTimeseries(self): + """Test Timeseries""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.timeseries.Timeseries() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_trace.py b/test/test_trace.py new file mode 100644 index 00000000..32c5613c --- /dev/null +++ b/test/test_trace.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.trace import Trace # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestTrace(unittest.TestCase): + """Trace unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTrace(self): + """Test Trace""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.trace.Trace() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_triage_dashboard.py b/test/test_triage_dashboard.py new file mode 100644 index 00000000..bfedddc7 --- /dev/null +++ b/test/test_triage_dashboard.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.triage_dashboard import TriageDashboard # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestTriageDashboard(unittest.TestCase): + """TriageDashboard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTriageDashboard(self): + """Test TriageDashboard""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.triage_dashboard.TriageDashboard() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tuple_result.py b/test/test_tuple_result.py new file mode 100644 index 00000000..64e31f9b --- /dev/null +++ b/test/test_tuple_result.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.tuple_result import TupleResult # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestTupleResult(unittest.TestCase): + """TupleResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTupleResult(self): + """Test TupleResult""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.tuple_result.TupleResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tuple_value_result.py b/test/test_tuple_value_result.py new file mode 100644 index 00000000..9625708e --- /dev/null +++ b/test/test_tuple_value_result.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.tuple_value_result import TupleValueResult # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestTupleValueResult(unittest.TestCase): + """TupleValueResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTupleValueResult(self): + """Test TupleValueResult""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.tuple_value_result.TupleValueResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_usage_api.py b/test/test_usage_api.py new file mode 100644 index 00000000..765c97a5 --- /dev/null +++ b/test/test_usage_api.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.usage_api import UsageApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUsageApi(unittest.TestCase): + """UsageApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.usage_api.UsageApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_ingestion_policy(self): + """Test case for create_ingestion_policy + + Create a specific ingestion policy # noqa: E501 + """ + pass + + def test_delete_ingestion_policy(self): + """Test case for delete_ingestion_policy + + Delete a specific ingestion policy # noqa: E501 + """ + pass + + def test_export_csv(self): + """Test case for export_csv + + Export a CSV report # noqa: E501 + """ + pass + + def test_get_all_ingestion_policies(self): + """Test case for get_all_ingestion_policies + + Get all ingestion policies for a customer # noqa: E501 + """ + pass + + def test_get_ingestion_policy(self): + """Test case for get_ingestion_policy + + Get a specific ingestion policy # noqa: E501 + """ + pass + + def test_get_ingestion_policy_by_version(self): + """Test case for get_ingestion_policy_by_version + + Get a specific historical version of a ingestion policy # noqa: E501 + """ + pass + + def test_get_ingestion_policy_history(self): + """Test case for get_ingestion_policy_history + + Get the version history of ingestion policy # noqa: E501 + """ + pass + + def test_revert_ingestion_policy_by_version(self): + """Test case for revert_ingestion_policy_by_version + + Revert to a specific historical version of a ingestion policy # noqa: E501 + """ + pass + + def test_update_ingestion_policy(self): + """Test case for update_ingestion_policy + + Update a specific ingestion policy # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_api.py b/test/test_user_api.py new file mode 100644 index 00000000..834904bc --- /dev/null +++ b/test/test_user_api.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.user_api import UserApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserApi(unittest.TestCase): + """UserApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.user_api.UserApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_user_to_user_groups(self): + """Test case for add_user_to_user_groups + + Adds specific groups to the user or service account # noqa: E501 + """ + pass + + def test_create_user(self): + """Test case for create_user + + Creates an user if the user doesn't already exist. # noqa: E501 + """ + pass + + def test_delete_multiple_users(self): + """Test case for delete_multiple_users + + Deletes multiple users or service accounts # noqa: E501 + """ + pass + + def test_delete_user(self): + """Test case for delete_user + + Deletes a user or service account identified by id # noqa: E501 + """ + pass + + def test_get_all_users(self): + """Test case for get_all_users + + Get all users # noqa: E501 + """ + pass + + def test_get_user(self): + """Test case for get_user + + Retrieves a user by identifier (email address) # noqa: E501 + """ + pass + + def test_get_user_business_functions(self): + """Test case for get_user_business_functions + + Returns business functions of a specific user or service account. # noqa: E501 + """ + pass + + def test_grant_permission_to_users(self): + """Test case for grant_permission_to_users + + Grants a specific permission to multiple users or service accounts # noqa: E501 + """ + pass + + def test_grant_user_permission(self): + """Test case for grant_user_permission + + Grants a specific permission to user or service account # noqa: E501 + """ + pass + + def test_invite_users(self): + """Test case for invite_users + + Invite users with given user groups and permissions. # noqa: E501 + """ + pass + + def test_remove_user_from_user_groups(self): + """Test case for remove_user_from_user_groups + + Removes specific groups from the user or service account # noqa: E501 + """ + pass + + def test_revoke_permission_from_users(self): + """Test case for revoke_permission_from_users + + Revokes a specific permission from multiple users or service accounts # noqa: E501 + """ + pass + + def test_revoke_user_permission(self): + """Test case for revoke_user_permission + + Revokes a specific permission from user or service account # noqa: E501 + """ + pass + + def test_update_user(self): + """Test case for update_user + + Update user with given user groups, permissions and ingestion policy. # noqa: E501 + """ + pass + + def test_validate_users(self): + """Test case for validate_users + + Returns valid users and service accounts, also invalid identifiers from the given list # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_api_token.py b/test/test_user_api_token.py new file mode 100644 index 00000000..88cae3f9 --- /dev/null +++ b/test/test_user_api_token.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.user_api_token import UserApiToken # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserApiToken(unittest.TestCase): + """UserApiToken unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserApiToken(self): + """Test UserApiToken""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.user_api_token.UserApiToken() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_dto.py b/test/test_user_dto.py new file mode 100644 index 00000000..84fad029 --- /dev/null +++ b/test/test_user_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.user_dto import UserDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserDTO(unittest.TestCase): + """UserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserDTO(self): + """Test UserDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.user_dto.UserDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_group.py b/test/test_user_group.py new file mode 100644 index 00000000..a0ca8cb1 --- /dev/null +++ b/test/test_user_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.user_group import UserGroup # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserGroup(unittest.TestCase): + """UserGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserGroup(self): + """Test UserGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.user_group.UserGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_group_api.py b/test/test_user_group_api.py new file mode 100644 index 00000000..48cfd875 --- /dev/null +++ b/test/test_user_group_api.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.user_group_api import UserGroupApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserGroupApi(unittest.TestCase): + """UserGroupApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.user_group_api.UserGroupApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_roles_to_user_group(self): + """Test case for add_roles_to_user_group + + Add multiple roles to a specific user group # noqa: E501 + """ + pass + + def test_add_users_to_user_group(self): + """Test case for add_users_to_user_group + + Add multiple users to a specific user group # noqa: E501 + """ + pass + + def test_create_user_group(self): + """Test case for create_user_group + + Create a specific user group # noqa: E501 + """ + pass + + def test_delete_user_group(self): + """Test case for delete_user_group + + Delete a specific user group # noqa: E501 + """ + pass + + def test_get_all_user_groups(self): + """Test case for get_all_user_groups + + Get all user groups for a customer # noqa: E501 + """ + pass + + def test_get_user_group(self): + """Test case for get_user_group + + Get a specific user group # noqa: E501 + """ + pass + + def test_remove_roles_from_user_group(self): + """Test case for remove_roles_from_user_group + + Remove multiple roles from a specific user group # noqa: E501 + """ + pass + + def test_remove_users_from_user_group(self): + """Test case for remove_users_from_user_group + + Remove multiple users from a specific user group # noqa: E501 + """ + pass + + def test_update_user_group(self): + """Test case for update_user_group + + Update a specific user group # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_group_model.py b/test/test_user_group_model.py new file mode 100644 index 00000000..667692c6 --- /dev/null +++ b/test/test_user_group_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.user_group_model import UserGroupModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserGroupModel(unittest.TestCase): + """UserGroupModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserGroupModel(self): + """Test UserGroupModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.user_group_model.UserGroupModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_group_properties_dto.py b/test/test_user_group_properties_dto.py new file mode 100644 index 00000000..209a26f3 --- /dev/null +++ b/test/test_user_group_properties_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.user_group_properties_dto import UserGroupPropertiesDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserGroupPropertiesDTO(unittest.TestCase): + """UserGroupPropertiesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserGroupPropertiesDTO(self): + """Test UserGroupPropertiesDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.user_group_properties_dto.UserGroupPropertiesDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_group_write.py b/test/test_user_group_write.py new file mode 100644 index 00000000..53db3f1e --- /dev/null +++ b/test/test_user_group_write.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.user_group_write import UserGroupWrite # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserGroupWrite(unittest.TestCase): + """UserGroupWrite unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserGroupWrite(self): + """Test UserGroupWrite""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.user_group_write.UserGroupWrite() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_model.py b/test/test_user_model.py new file mode 100644 index 00000000..12a6a7ba --- /dev/null +++ b/test/test_user_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.user_model import UserModel # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserModel(unittest.TestCase): + """UserModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserModel(self): + """Test UserModel""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.user_model.UserModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_request_dto.py b/test/test_user_request_dto.py new file mode 100644 index 00000000..697649e4 --- /dev/null +++ b/test/test_user_request_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.user_request_dto import UserRequestDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserRequestDTO(unittest.TestCase): + """UserRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserRequestDTO(self): + """Test UserRequestDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.user_request_dto.UserRequestDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_to_create.py b/test/test_user_to_create.py new file mode 100644 index 00000000..157f44a4 --- /dev/null +++ b/test/test_user_to_create.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.user_to_create import UserToCreate # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestUserToCreate(unittest.TestCase): + """UserToCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserToCreate(self): + """Test UserToCreate""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.user_to_create.UserToCreate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_validated_users_dto.py b/test/test_validated_users_dto.py new file mode 100644 index 00000000..caa9c76d --- /dev/null +++ b/test/test_validated_users_dto.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.validated_users_dto import ValidatedUsersDTO # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestValidatedUsersDTO(unittest.TestCase): + """ValidatedUsersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testValidatedUsersDTO(self): + """Test ValidatedUsersDTO""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.validated_users_dto.ValidatedUsersDTO() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_void.py b/test/test_void.py new file mode 100644 index 00000000..937d6515 --- /dev/null +++ b/test/test_void.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.void import Void # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestVoid(unittest.TestCase): + """Void unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVoid(self): + """Test Void""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.void.Void() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vrops_configuration.py b/test/test_vrops_configuration.py new file mode 100644 index 00000000..5247c0e9 --- /dev/null +++ b/test/test_vrops_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.vrops_configuration import VropsConfiguration # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestVropsConfiguration(unittest.TestCase): + """VropsConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVropsConfiguration(self): + """Test VropsConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.vrops_configuration.VropsConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_wavefront_api.py b/test/test_wavefront_api.py new file mode 100644 index 00000000..400a8225 --- /dev/null +++ b/test/test_wavefront_api.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.wavefront_api import WavefrontApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestWavefrontApi(unittest.TestCase): + """WavefrontApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.wavefront_api.WavefrontApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_cluster_info(self): + """Test case for get_cluster_info + + API endpoint to get cluster info # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_webhook_api.py b/test/test_webhook_api.py new file mode 100644 index 00000000..f9468f4e --- /dev/null +++ b/test/test_webhook_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.api.webhook_api import WebhookApi # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestWebhookApi(unittest.TestCase): + """WebhookApi unit test stubs""" + + def setUp(self): + self.api = wavefront_api_client.api.webhook_api.WebhookApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_webhook(self): + """Test case for create_webhook + + Create a specific webhook # noqa: E501 + """ + pass + + def test_delete_webhook(self): + """Test case for delete_webhook + + Delete a specific webhook # noqa: E501 + """ + pass + + def test_get_all_webhooks(self): + """Test case for get_all_webhooks + + Get all webhooks for a customer # noqa: E501 + """ + pass + + def test_get_webhook(self): + """Test case for get_webhook + + Get a specific webhook # noqa: E501 + """ + pass + + def test_update_webhook(self): + """Test case for update_webhook + + Update a specific webhook # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_wf_tags.py b/test/test_wf_tags.py new file mode 100644 index 00000000..d2f50b44 --- /dev/null +++ b/test/test_wf_tags.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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.wf_tags import WFTags # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestWFTags(unittest.TestCase): + """WFTags unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWFTags(self): + """Test WFTags""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.wf_tags.WFTags() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..3d0be613 --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + [] diff --git a/wavefront_api_client/__init__.py b/wavefront_api_client/__init__.py index 6fb1eb9e..e0294b06 100644 --- a/wavefront_api_client/__init__.py +++ b/wavefront_api_client/__init__.py @@ -3,12 +3,12 @@ # flake8: noqa """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,23 +16,43 @@ from __future__ import absolute_import # import apis into sdk package +from wavefront_api_client.api.access_policy_api import AccessPolicyApi +from wavefront_api_client.api.account__user_and_service_account_api import AccountUserAndServiceAccountApi from wavefront_api_client.api.alert_api import AlertApi +from wavefront_api_client.api.alert_analytics_api import AlertAnalyticsApi +from wavefront_api_client.api.api_token_api import ApiTokenApi from wavefront_api_client.api.cloud_integration_api import CloudIntegrationApi from wavefront_api_client.api.dashboard_api import DashboardApi -from wavefront_api_client.api.derived_metric_definition_api import DerivedMetricDefinitionApi +from wavefront_api_client.api.derived_metric_api import DerivedMetricApi +from wavefront_api_client.api.direct_ingestion_api import DirectIngestionApi from wavefront_api_client.api.event_api import EventApi from wavefront_api_client.api.external_link_api import ExternalLinkApi +from wavefront_api_client.api.ingestion_spy_api import IngestionSpyApi from wavefront_api_client.api.integration_api import IntegrationApi from wavefront_api_client.api.maintenance_window_api import MaintenanceWindowApi from wavefront_api_client.api.message_api import MessageApi from wavefront_api_client.api.metric_api import MetricApi +from wavefront_api_client.api.monitored_application_api import MonitoredApplicationApi +from wavefront_api_client.api.monitored_service_api import MonitoredServiceApi from wavefront_api_client.api.notificant_api import NotificantApi from wavefront_api_client.api.proxy_api import ProxyApi from wavefront_api_client.api.query_api import QueryApi +from wavefront_api_client.api.recent_app_map_search_api import RecentAppMapSearchApi +from wavefront_api_client.api.recent_traces_search_api import RecentTracesSearchApi +from wavefront_api_client.api.role_api import RoleApi +from wavefront_api_client.api.saved_app_map_search_api import SavedAppMapSearchApi +from wavefront_api_client.api.saved_app_map_search_group_api import SavedAppMapSearchGroupApi from wavefront_api_client.api.saved_search_api import SavedSearchApi +from wavefront_api_client.api.saved_traces_search_api import SavedTracesSearchApi +from wavefront_api_client.api.saved_traces_search_group_api import SavedTracesSearchGroupApi from wavefront_api_client.api.search_api import SearchApi +from wavefront_api_client.api.security_policy_api import SecurityPolicyApi from wavefront_api_client.api.source_api import SourceApi +from wavefront_api_client.api.span_sampling_policy_api import SpanSamplingPolicyApi +from wavefront_api_client.api.usage_api import UsageApi from wavefront_api_client.api.user_api import UserApi +from wavefront_api_client.api.user_group_api import UserGroupApi +from wavefront_api_client.api.wavefront_api import WavefrontApi from wavefront_api_client.api.webhook_api import WebhookApi # import ApiClient @@ -40,23 +60,53 @@ from wavefront_api_client.configuration import Configuration # import models into sdk package from wavefront_api_client.models.aws_base_credentials import AWSBaseCredentials +from wavefront_api_client.models.access_control_element import AccessControlElement +from wavefront_api_client.models.access_control_list_read_dto import AccessControlListReadDTO +from wavefront_api_client.models.access_control_list_simple import AccessControlListSimple +from wavefront_api_client.models.access_control_list_write_dto import AccessControlListWriteDTO +from wavefront_api_client.models.access_policy import AccessPolicy +from wavefront_api_client.models.access_policy_rule_dto import AccessPolicyRuleDTO +from wavefront_api_client.models.account import Account from wavefront_api_client.models.alert import Alert -from wavefront_api_client.models.avro_backed_standardized_dto import AvroBackedStandardizedDTO +from wavefront_api_client.models.alert_analytics_summary import AlertAnalyticsSummary +from wavefront_api_client.models.alert_analytics_summary_detail import AlertAnalyticsSummaryDetail +from wavefront_api_client.models.alert_dashboard import AlertDashboard +from wavefront_api_client.models.alert_error_group_info import AlertErrorGroupInfo +from wavefront_api_client.models.alert_error_group_summary import AlertErrorGroupSummary +from wavefront_api_client.models.alert_error_summary import AlertErrorSummary +from wavefront_api_client.models.alert_min import AlertMin +from wavefront_api_client.models.alert_route import AlertRoute +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 +from wavefront_api_client.models.app_search_filters import AppSearchFilters from wavefront_api_client.models.azure_activity_log_configuration import AzureActivityLogConfiguration from wavefront_api_client.models.azure_base_credentials import AzureBaseCredentials from wavefront_api_client.models.azure_configuration import AzureConfiguration from wavefront_api_client.models.chart import Chart from wavefront_api_client.models.chart_settings import ChartSettings from wavefront_api_client.models.chart_source_query import ChartSourceQuery +from wavefront_api_client.models.class_loader import ClassLoader from wavefront_api_client.models.cloud_integration import CloudIntegration from wavefront_api_client.models.cloud_trail_configuration import CloudTrailConfiguration from wavefront_api_client.models.cloud_watch_configuration import CloudWatchConfiguration +from wavefront_api_client.models.cluster_info_dto import ClusterInfoDTO +from wavefront_api_client.models.conversion import Conversion +from wavefront_api_client.models.conversion_object import ConversionObject from wavefront_api_client.models.customer_facing_user_object import CustomerFacingUserObject from wavefront_api_client.models.dashboard import Dashboard +from wavefront_api_client.models.dashboard_min import DashboardMin 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 from wavefront_api_client.models.event import Event from wavefront_api_client.models.event_search_request import EventSearchRequest @@ -66,24 +116,55 @@ from wavefront_api_client.models.facet_search_request_container import FacetSearchRequestContainer from wavefront_api_client.models.facets_response_container import FacetsResponseContainer from wavefront_api_client.models.facets_search_request_container import FacetsSearchRequestContainer +from wavefront_api_client.models.fast_reader_builder import FastReaderBuilder +from wavefront_api_client.models.field import Field +from wavefront_api_client.models.gcp_billing_configuration import GCPBillingConfiguration from wavefront_api_client.models.gcp_configuration import GCPConfiguration from wavefront_api_client.models.history_entry import HistoryEntry from wavefront_api_client.models.history_response import HistoryResponse +from wavefront_api_client.models.ingestion_policy_alert import IngestionPolicyAlert +from wavefront_api_client.models.ingestion_policy_metadata import IngestionPolicyMetadata +from wavefront_api_client.models.ingestion_policy_read_model import IngestionPolicyReadModel +from wavefront_api_client.models.ingestion_policy_write_model import IngestionPolicyWriteModel +from wavefront_api_client.models.install_alerts import InstallAlerts from wavefront_api_client.models.integration import Integration +from wavefront_api_client.models.integration_alert import IntegrationAlert from wavefront_api_client.models.integration_alias import IntegrationAlias from wavefront_api_client.models.integration_dashboard import IntegrationDashboard from wavefront_api_client.models.integration_manifest_group import IntegrationManifestGroup from wavefront_api_client.models.integration_metrics import IntegrationMetrics from wavefront_api_client.models.integration_status import IntegrationStatus from wavefront_api_client.models.json_node import JsonNode +from wavefront_api_client.models.kubernetes_component import KubernetesComponent +from wavefront_api_client.models.kubernetes_component_status import KubernetesComponentStatus +from wavefront_api_client.models.logical_type import LogicalType +from wavefront_api_client.models.logs_sort import LogsSort +from wavefront_api_client.models.logs_table import LogsTable from wavefront_api_client.models.maintenance_window import MaintenanceWindow from wavefront_api_client.models.message import Message from wavefront_api_client.models.metric_details import MetricDetails from wavefront_api_client.models.metric_details_response import MetricDetailsResponse from wavefront_api_client.models.metric_status import MetricStatus +from wavefront_api_client.models.metrics_policy_read_model import MetricsPolicyReadModel +from wavefront_api_client.models.metrics_policy_write_model import MetricsPolicyWriteModel +from wavefront_api_client.models.module import Module +from wavefront_api_client.models.module_descriptor import ModuleDescriptor +from wavefront_api_client.models.module_layer import ModuleLayer +from wavefront_api_client.models.monitored_application_dto import MonitoredApplicationDTO +from wavefront_api_client.models.monitored_cluster import MonitoredCluster +from wavefront_api_client.models.monitored_service_dto import MonitoredServiceDTO +from wavefront_api_client.models.new_relic_configuration import NewRelicConfiguration +from wavefront_api_client.models.new_relic_metric_filters import NewRelicMetricFilters from wavefront_api_client.models.notificant import Notificant +from wavefront_api_client.models.notification_messages import NotificationMessages +from wavefront_api_client.models.package import Package +from wavefront_api_client.models.paged import Paged +from wavefront_api_client.models.paged_account import PagedAccount from wavefront_api_client.models.paged_alert import PagedAlert +from wavefront_api_client.models.paged_alert_analytics_summary_detail import PagedAlertAnalyticsSummaryDetail 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 @@ -91,38 +172,91 @@ from wavefront_api_client.models.paged_derived_metric_definition_with_stats import PagedDerivedMetricDefinitionWithStats from wavefront_api_client.models.paged_event import PagedEvent from wavefront_api_client.models.paged_external_link import PagedExternalLink +from wavefront_api_client.models.paged_ingestion_policy_read_model import PagedIngestionPolicyReadModel from wavefront_api_client.models.paged_integration import PagedIntegration from wavefront_api_client.models.paged_maintenance_window import PagedMaintenanceWindow from wavefront_api_client.models.paged_message import PagedMessage +from wavefront_api_client.models.paged_monitored_application_dto import PagedMonitoredApplicationDTO +from wavefront_api_client.models.paged_monitored_cluster import PagedMonitoredCluster +from wavefront_api_client.models.paged_monitored_service_dto import PagedMonitoredServiceDTO from wavefront_api_client.models.paged_notificant import PagedNotificant from wavefront_api_client.models.paged_proxy import PagedProxy +from wavefront_api_client.models.paged_recent_app_map_search import PagedRecentAppMapSearch +from wavefront_api_client.models.paged_recent_traces_search import PagedRecentTracesSearch +from wavefront_api_client.models.paged_related_event import PagedRelatedEvent +from wavefront_api_client.models.paged_report_event_anomaly_dto import PagedReportEventAnomalyDTO +from wavefront_api_client.models.paged_role_dto import PagedRoleDTO +from wavefront_api_client.models.paged_saved_app_map_search import PagedSavedAppMapSearch +from wavefront_api_client.models.paged_saved_app_map_search_group import PagedSavedAppMapSearchGroup from wavefront_api_client.models.paged_saved_search import PagedSavedSearch +from wavefront_api_client.models.paged_saved_traces_search import PagedSavedTracesSearch +from wavefront_api_client.models.paged_saved_traces_search_group import PagedSavedTracesSearchGroup +from wavefront_api_client.models.paged_service_account import PagedServiceAccount from wavefront_api_client.models.paged_source import PagedSource +from wavefront_api_client.models.paged_span_sampling_policy import PagedSpanSamplingPolicy +from wavefront_api_client.models.paged_user_group_model import PagedUserGroupModel from wavefront_api_client.models.point import Point +from wavefront_api_client.models.policy_rule_read_model import PolicyRuleReadModel +from wavefront_api_client.models.policy_rule_write_model import PolicyRuleWriteModel from wavefront_api_client.models.proxy import Proxy from wavefront_api_client.models.query_event import QueryEvent from wavefront_api_client.models.query_result import QueryResult +from wavefront_api_client.models.query_type_dto import QueryTypeDTO from wavefront_api_client.models.raw_timeseries import RawTimeseries +from wavefront_api_client.models.recent_app_map_search import RecentAppMapSearch +from wavefront_api_client.models.recent_traces_search import RecentTracesSearch +from wavefront_api_client.models.related_anomaly import RelatedAnomaly +from wavefront_api_client.models.related_data import RelatedData +from wavefront_api_client.models.related_event import RelatedEvent +from wavefront_api_client.models.related_event_time_range import RelatedEventTimeRange +from wavefront_api_client.models.report_event_anomaly_dto import ReportEventAnomalyDTO from wavefront_api_client.models.response_container import ResponseContainer +from wavefront_api_client.models.response_container_access_policy import ResponseContainerAccessPolicy +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_alert_analytics_summary import ResponseContainerAlertAnalyticsSummary +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_cluster_info_dto import ResponseContainerClusterInfoDTO 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 from wavefront_api_client.models.response_container_facet_response import ResponseContainerFacetResponse from wavefront_api_client.models.response_container_facets_response_container import ResponseContainerFacetsResponseContainer from wavefront_api_client.models.response_container_history_response import ResponseContainerHistoryResponse +from wavefront_api_client.models.response_container_ingestion_policy_read_model import ResponseContainerIngestionPolicyReadModel 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_alert_error_group_info import ResponseContainerListAlertErrorGroupInfo +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 +from wavefront_api_client.models.response_container_list_service_account import ResponseContainerListServiceAccount +from wavefront_api_client.models.response_container_list_string import ResponseContainerListString +from wavefront_api_client.models.response_container_list_user_api_token import ResponseContainerListUserApiToken +from wavefront_api_client.models.response_container_list_user_dto import ResponseContainerListUserDTO from wavefront_api_client.models.response_container_maintenance_window import ResponseContainerMaintenanceWindow +from wavefront_api_client.models.response_container_map import ResponseContainerMap from wavefront_api_client.models.response_container_map_string_integer import ResponseContainerMapStringInteger from wavefront_api_client.models.response_container_map_string_integration_status import ResponseContainerMapStringIntegrationStatus from wavefront_api_client.models.response_container_message import ResponseContainerMessage +from wavefront_api_client.models.response_container_metrics_policy_read_model import ResponseContainerMetricsPolicyReadModel +from wavefront_api_client.models.response_container_monitored_application_dto import ResponseContainerMonitoredApplicationDTO +from wavefront_api_client.models.response_container_monitored_cluster import ResponseContainerMonitoredCluster +from wavefront_api_client.models.response_container_monitored_service_dto import ResponseContainerMonitoredServiceDTO from wavefront_api_client.models.response_container_notificant import ResponseContainerNotificant +from wavefront_api_client.models.response_container_paged_account import ResponseContainerPagedAccount from wavefront_api_client.models.response_container_paged_alert import ResponseContainerPagedAlert +from wavefront_api_client.models.response_container_paged_alert_analytics_summary_detail import ResponseContainerPagedAlertAnalyticsSummaryDetail 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 @@ -130,30 +264,93 @@ from wavefront_api_client.models.response_container_paged_derived_metric_definition_with_stats import ResponseContainerPagedDerivedMetricDefinitionWithStats from wavefront_api_client.models.response_container_paged_event import ResponseContainerPagedEvent from wavefront_api_client.models.response_container_paged_external_link import ResponseContainerPagedExternalLink +from wavefront_api_client.models.response_container_paged_ingestion_policy_read_model import ResponseContainerPagedIngestionPolicyReadModel from wavefront_api_client.models.response_container_paged_integration import ResponseContainerPagedIntegration from wavefront_api_client.models.response_container_paged_maintenance_window import ResponseContainerPagedMaintenanceWindow from wavefront_api_client.models.response_container_paged_message import ResponseContainerPagedMessage +from wavefront_api_client.models.response_container_paged_monitored_application_dto import ResponseContainerPagedMonitoredApplicationDTO +from wavefront_api_client.models.response_container_paged_monitored_cluster import ResponseContainerPagedMonitoredCluster +from wavefront_api_client.models.response_container_paged_monitored_service_dto import ResponseContainerPagedMonitoredServiceDTO from wavefront_api_client.models.response_container_paged_notificant import ResponseContainerPagedNotificant from wavefront_api_client.models.response_container_paged_proxy import ResponseContainerPagedProxy +from wavefront_api_client.models.response_container_paged_recent_app_map_search import ResponseContainerPagedRecentAppMapSearch +from wavefront_api_client.models.response_container_paged_recent_traces_search import ResponseContainerPagedRecentTracesSearch +from wavefront_api_client.models.response_container_paged_related_event import ResponseContainerPagedRelatedEvent +from wavefront_api_client.models.response_container_paged_report_event_anomaly_dto import ResponseContainerPagedReportEventAnomalyDTO +from wavefront_api_client.models.response_container_paged_role_dto import ResponseContainerPagedRoleDTO +from wavefront_api_client.models.response_container_paged_saved_app_map_search import ResponseContainerPagedSavedAppMapSearch +from wavefront_api_client.models.response_container_paged_saved_app_map_search_group import ResponseContainerPagedSavedAppMapSearchGroup from wavefront_api_client.models.response_container_paged_saved_search import ResponseContainerPagedSavedSearch +from wavefront_api_client.models.response_container_paged_saved_traces_search import ResponseContainerPagedSavedTracesSearch +from wavefront_api_client.models.response_container_paged_saved_traces_search_group import ResponseContainerPagedSavedTracesSearchGroup +from wavefront_api_client.models.response_container_paged_service_account import ResponseContainerPagedServiceAccount from wavefront_api_client.models.response_container_paged_source import ResponseContainerPagedSource +from wavefront_api_client.models.response_container_paged_span_sampling_policy import ResponseContainerPagedSpanSamplingPolicy +from wavefront_api_client.models.response_container_paged_user_group_model import ResponseContainerPagedUserGroupModel from wavefront_api_client.models.response_container_proxy import ResponseContainerProxy +from wavefront_api_client.models.response_container_query_type_dto import ResponseContainerQueryTypeDTO +from wavefront_api_client.models.response_container_recent_app_map_search import ResponseContainerRecentAppMapSearch +from wavefront_api_client.models.response_container_recent_traces_search import ResponseContainerRecentTracesSearch +from wavefront_api_client.models.response_container_role_dto import ResponseContainerRoleDTO +from wavefront_api_client.models.response_container_saved_app_map_search import ResponseContainerSavedAppMapSearch +from wavefront_api_client.models.response_container_saved_app_map_search_group import ResponseContainerSavedAppMapSearchGroup from wavefront_api_client.models.response_container_saved_search import ResponseContainerSavedSearch +from wavefront_api_client.models.response_container_saved_traces_search import ResponseContainerSavedTracesSearch +from wavefront_api_client.models.response_container_saved_traces_search_group import ResponseContainerSavedTracesSearchGroup +from wavefront_api_client.models.response_container_service_account import ResponseContainerServiceAccount +from wavefront_api_client.models.response_container_set_business_function import ResponseContainerSetBusinessFunction +from wavefront_api_client.models.response_container_set_source_label_pair import ResponseContainerSetSourceLabelPair from wavefront_api_client.models.response_container_source import ResponseContainerSource +from wavefront_api_client.models.response_container_span_sampling_policy import ResponseContainerSpanSamplingPolicy +from wavefront_api_client.models.response_container_string import ResponseContainerString from wavefront_api_client.models.response_container_tags_response import ResponseContainerTagsResponse +from wavefront_api_client.models.response_container_user_api_token import ResponseContainerUserApiToken +from wavefront_api_client.models.response_container_user_dto import ResponseContainerUserDTO +from wavefront_api_client.models.response_container_user_group_model import ResponseContainerUserGroupModel +from wavefront_api_client.models.response_container_validated_users_dto import ResponseContainerValidatedUsersDTO +from wavefront_api_client.models.response_container_void import ResponseContainerVoid from wavefront_api_client.models.response_status import ResponseStatus +from wavefront_api_client.models.role_create_dto import RoleCreateDTO +from wavefront_api_client.models.role_dto import RoleDTO +from wavefront_api_client.models.role_update_dto import RoleUpdateDTO +from wavefront_api_client.models.saved_app_map_search import SavedAppMapSearch +from wavefront_api_client.models.saved_app_map_search_group import SavedAppMapSearchGroup from wavefront_api_client.models.saved_search import SavedSearch +from wavefront_api_client.models.saved_traces_search import SavedTracesSearch +from wavefront_api_client.models.saved_traces_search_group import SavedTracesSearchGroup +from wavefront_api_client.models.schema import Schema from wavefront_api_client.models.search_query import SearchQuery +from wavefront_api_client.models.service_account import ServiceAccount +from wavefront_api_client.models.service_account_write import ServiceAccountWrite +from wavefront_api_client.models.setup import Setup +from wavefront_api_client.models.snowflake_configuration import SnowflakeConfiguration from wavefront_api_client.models.sortable_search_request import SortableSearchRequest from wavefront_api_client.models.sorting import Sorting from wavefront_api_client.models.source import Source from wavefront_api_client.models.source_label_pair import SourceLabelPair from wavefront_api_client.models.source_search_request_container import SourceSearchRequestContainer -from wavefront_api_client.models.stats_model import StatsModel +from wavefront_api_client.models.span import Span +from wavefront_api_client.models.span_sampling_policy import SpanSamplingPolicy +from wavefront_api_client.models.specific_data import SpecificData +from wavefront_api_client.models.stats_model_internal_use import StatsModelInternalUse +from wavefront_api_client.models.stripe import Stripe from wavefront_api_client.models.tags_response import TagsResponse from wavefront_api_client.models.target_info import TargetInfo -from wavefront_api_client.models.tesla_configuration import TeslaConfiguration from wavefront_api_client.models.timeseries import Timeseries +from wavefront_api_client.models.trace import Trace +from wavefront_api_client.models.triage_dashboard import TriageDashboard +from wavefront_api_client.models.tuple_result import TupleResult +from wavefront_api_client.models.tuple_value_result import TupleValueResult +from wavefront_api_client.models.user_api_token import UserApiToken +from wavefront_api_client.models.user_dto import UserDTO +from wavefront_api_client.models.user_group import UserGroup +from wavefront_api_client.models.user_group_model import UserGroupModel +from wavefront_api_client.models.user_group_properties_dto import UserGroupPropertiesDTO +from wavefront_api_client.models.user_group_write import UserGroupWrite from wavefront_api_client.models.user_model import UserModel +from wavefront_api_client.models.user_request_dto import UserRequestDTO from wavefront_api_client.models.user_to_create import UserToCreate +from wavefront_api_client.models.validated_users_dto import ValidatedUsersDTO +from wavefront_api_client.models.void import Void +from wavefront_api_client.models.vrops_configuration import VropsConfiguration from wavefront_api_client.models.wf_tags import WFTags diff --git a/wavefront_api_client/api/__init__.py b/wavefront_api_client/api/__init__.py index 829063b6..b97962c6 100644 --- a/wavefront_api_client/api/__init__.py +++ b/wavefront_api_client/api/__init__.py @@ -3,21 +3,41 @@ # flake8: noqa # import apis into api package +from wavefront_api_client.api.access_policy_api import AccessPolicyApi +from wavefront_api_client.api.account__user_and_service_account_api import AccountUserAndServiceAccountApi from wavefront_api_client.api.alert_api import AlertApi +from wavefront_api_client.api.alert_analytics_api import AlertAnalyticsApi +from wavefront_api_client.api.api_token_api import ApiTokenApi from wavefront_api_client.api.cloud_integration_api import CloudIntegrationApi from wavefront_api_client.api.dashboard_api import DashboardApi -from wavefront_api_client.api.derived_metric_definition_api import DerivedMetricDefinitionApi +from wavefront_api_client.api.derived_metric_api import DerivedMetricApi +from wavefront_api_client.api.direct_ingestion_api import DirectIngestionApi from wavefront_api_client.api.event_api import EventApi from wavefront_api_client.api.external_link_api import ExternalLinkApi +from wavefront_api_client.api.ingestion_spy_api import IngestionSpyApi from wavefront_api_client.api.integration_api import IntegrationApi from wavefront_api_client.api.maintenance_window_api import MaintenanceWindowApi from wavefront_api_client.api.message_api import MessageApi from wavefront_api_client.api.metric_api import MetricApi +from wavefront_api_client.api.monitored_application_api import MonitoredApplicationApi +from wavefront_api_client.api.monitored_service_api import MonitoredServiceApi from wavefront_api_client.api.notificant_api import NotificantApi from wavefront_api_client.api.proxy_api import ProxyApi from wavefront_api_client.api.query_api import QueryApi +from wavefront_api_client.api.recent_app_map_search_api import RecentAppMapSearchApi +from wavefront_api_client.api.recent_traces_search_api import RecentTracesSearchApi +from wavefront_api_client.api.role_api import RoleApi +from wavefront_api_client.api.saved_app_map_search_api import SavedAppMapSearchApi +from wavefront_api_client.api.saved_app_map_search_group_api import SavedAppMapSearchGroupApi from wavefront_api_client.api.saved_search_api import SavedSearchApi +from wavefront_api_client.api.saved_traces_search_api import SavedTracesSearchApi +from wavefront_api_client.api.saved_traces_search_group_api import SavedTracesSearchGroupApi from wavefront_api_client.api.search_api import SearchApi +from wavefront_api_client.api.security_policy_api import SecurityPolicyApi from wavefront_api_client.api.source_api import SourceApi +from wavefront_api_client.api.span_sampling_policy_api import SpanSamplingPolicyApi +from wavefront_api_client.api.usage_api import UsageApi from wavefront_api_client.api.user_api import UserApi +from wavefront_api_client.api.user_group_api import UserGroupApi +from wavefront_api_client.api.wavefront_api import WavefrontApi from wavefront_api_client.api.webhook_api import WebhookApi diff --git a/wavefront_api_client/api/access_policy_api.py b/wavefront_api_client/api/access_policy_api.py new file mode 100644 index 00000000..26e9f991 --- /dev/null +++ b/wavefront_api_client/api/access_policy_api.py @@ -0,0 +1,315 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class AccessPolicyApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_access_policy(self, **kwargs): # noqa: E501 + """Get the access policy # 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_access_policy(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerAccessPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_access_policy_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_access_policy_with_http_info(**kwargs) # noqa: E501 + return data + + def get_access_policy_with_http_info(self, **kwargs): # noqa: E501 + """Get the access policy # 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_access_policy_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerAccessPolicy + 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_access_policy" % 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 + + # 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/accesspolicy', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerAccessPolicy', # 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 update_access_policy(self, **kwargs): # noqa: E501 + """Update the access policy # 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.update_access_policy(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AccessPolicy body: Example Body:{ \"policyRules\": [{ \"name\": \"rule name\", \"description\": \"desc\", \"action\": \"ALLOW\", \"subnet\": \"12.148.72.0/23\" }] }
+ :return: ResponseContainerAccessPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_access_policy_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.update_access_policy_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def update_access_policy_with_http_info(self, **kwargs): # noqa: E501
+ """Update the access policy # 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.update_access_policy_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param AccessPolicy body: Example Body: { \"policyRules\": [{ \"name\": \"rule name\", \"description\": \"desc\", \"action\": \"ALLOW\", \"subnet\": \"12.148.72.0/23\" }] }
+ :return: ResponseContainerAccessPolicy
+ 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 update_access_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/accesspolicy', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerAccessPolicy', # 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 validate_url(self, **kwargs): # noqa: E501
+ """Validate a given url and ip address # 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.validate_url(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str ip:
+ :return: ResponseContainerAccessPolicyAction
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.validate_url_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.validate_url_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def validate_url_with_http_info(self, **kwargs): # noqa: E501
+ """Validate a given url and ip address # 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.validate_url_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str ip:
+ :return: ResponseContainerAccessPolicyAction
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ip'] # 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 validate_url" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'ip' in params:
+ query_params.append(('ip', params['ip'])) # 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/accesspolicy/validate', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerAccessPolicyAction', # 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)
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
new file mode 100644
index 00000000..60a8ff5e
--- /dev/null
+++ b/wavefront_api_client/api/account__user_and_service_account_api.py
@@ -0,0 +1,2580 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class AccountUserAndServiceAccountApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def activate_account(self, id, **kwargs): # noqa: E501 + """Activates the given service account # 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.activate_account(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.activate_account_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.activate_account_with_http_info(id, **kwargs) # noqa: E501 + return data + + def activate_account_with_http_info(self, id, **kwargs): # noqa: E501 + """Activates the given service account # 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.activate_account_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerServiceAccount + 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 activate_account" % 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 `activate_account`") # 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 + + # 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/serviceaccount/{id}/activate', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerServiceAccount', # 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_account_to_roles(self, id, **kwargs): # noqa: E501 + """Adds specific roles to the account (user or service account) # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account_to_roles(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: The list of roles that should be added to the account + :return: UserModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_account_to_roles_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.add_account_to_roles_with_http_info(id, **kwargs) # noqa: E501 + return data + + def add_account_to_roles_with_http_info(self, id, **kwargs): # noqa: E501 + """Adds specific roles to the account (user or service account) # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account_to_roles_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: The list of roles that should be added to the account + :return: UserModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', '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_account_to_roles" % 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 `add_account_to_roles`") # 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 + 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/{id}/addRoles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UserModel', # 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_account_to_user_groups(self, id, **kwargs): # noqa: E501 + """Adds specific groups to the account (user or service account) # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account_to_user_groups(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: The list of groups that should be added to the account + :return: UserModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_account_to_user_groups_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.add_account_to_user_groups_with_http_info(id, **kwargs) # noqa: E501 + return data + + def add_account_to_user_groups_with_http_info(self, id, **kwargs): # noqa: E501 + """Adds specific groups to the account (user or service account) # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account_to_user_groups_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: The list of groups that should be added to the account + :return: UserModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', '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_account_to_user_groups" % 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 `add_account_to_user_groups`") # 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 + 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/{id}/addUserGroups', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UserModel', # 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 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_or_update_user_account(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param bool send_email: Whether to send email notification to the user, if created. Default: false + :param UserToCreate body: Example Body:{ \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], }
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_or_update_user_account_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_or_update_user_account_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_or_update_user_account_with_http_info(self, **kwargs): # noqa: E501
+ """Creates or updates a user account # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_or_update_user_account_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param bool send_email: Whether to send email notification to the user, if created. Default: false
+ :param UserToCreate body: Example Body: { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], }
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['send_email', '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 create_or_update_user_account" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'send_email' in params:
+ query_params.append(('sendEmail', params['send_email'])) # noqa: E501
+
+ 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/user', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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_service_account(self, **kwargs): # noqa: E501
+ """Creates a service account # 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.create_service_account(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ServiceAccountWrite body:
+ :return: ResponseContainerServiceAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_service_account_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_service_account_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_service_account_with_http_info(self, **kwargs): # noqa: E501
+ """Creates a service account # 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.create_service_account_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ServiceAccountWrite body:
+ :return: ResponseContainerServiceAccount
+ 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 create_service_account" % 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/serviceaccount', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerServiceAccount', # 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 deactivate_account(self, id, **kwargs): # noqa: E501
+ """Deactivates the given service account # 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.deactivate_account(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerServiceAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.deactivate_account_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.deactivate_account_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def deactivate_account_with_http_info(self, id, **kwargs): # noqa: E501
+ """Deactivates the given service account # 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.deactivate_account_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerServiceAccount
+ 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 deactivate_account" % 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 `deactivate_account`") # 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
+
+ # 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/serviceaccount/{id}/deactivate', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerServiceAccount', # 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_account(self, id, **kwargs): # noqa: E501
+ """Deletes an account (user or service account) identified by id # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # 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_account(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_account_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_account_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_account_with_http_info(self, id, **kwargs): # noqa: E501
+ """Deletes an account (user or service account) identified by id # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # 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_account_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerAccount
+ 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 delete_account" % 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 `delete_account`") # 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/account/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerAccount', # 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_multiple_accounts(self, **kwargs): # noqa: E501
+ """Deletes multiple accounts (users or service accounts) # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # 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_multiple_accounts(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] body: list of accounts' identifiers to be deleted
+ :return: ResponseContainerListString
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_multiple_accounts_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.delete_multiple_accounts_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def delete_multiple_accounts_with_http_info(self, **kwargs): # noqa: E501
+ """Deletes multiple accounts (users or service accounts) # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # 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_multiple_accounts_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] body: list of accounts' identifiers to be deleted
+ :return: ResponseContainerListString
+ 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_multiple_accounts" % 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/deleteAccounts', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerListString', # 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_account(self, id, **kwargs): # noqa: E501
+ """Get a specific account (user or service account) # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_account_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_account_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_account_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific account (user or service account) # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerAccount
+ 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_account" % 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_account`") # 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/account/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerAccount', # 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_account_business_functions(self, id, **kwargs): # noqa: E501
+ """Returns business functions of a specific account (user or service account). # 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_account_business_functions(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSetBusinessFunction
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_account_business_functions_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_account_business_functions_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_account_business_functions_with_http_info(self, id, **kwargs): # noqa: E501
+ """Returns business functions of a specific account (user or service account). # 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_account_business_functions_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSetBusinessFunction
+ 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_account_business_functions" % 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_account_business_functions`") # 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/account/{id}/businessFunctions', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSetBusinessFunction', # 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_all_accounts(self, **kwargs): # noqa: E501
+ """Get all accounts (users and service accounts) of a customer # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_all_accounts(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_accounts_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_accounts_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_accounts_with_http_info(self, **kwargs): # noqa: E501
+ """Get all accounts (users and service accounts) of a customer # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_all_accounts_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_accounts" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/account', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedAccount', # 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_all_service_accounts(self, **kwargs): # noqa: E501
+ """Get all service 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.get_all_service_accounts(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: ResponseContainerListServiceAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_service_accounts_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_service_accounts_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_service_accounts_with_http_info(self, **kwargs): # noqa: E501
+ """Get all service 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.get_all_service_accounts_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: ResponseContainerListServiceAccount
+ 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_all_service_accounts" % 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/account/serviceaccount', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerListServiceAccount', # 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_all_user_accounts(self, **kwargs): # noqa: E501
+ """Get all user accounts # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_all_user_accounts(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: ResponseContainerListUserDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_user_accounts_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_user_accounts_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_user_accounts_with_http_info(self, **kwargs): # noqa: E501
+ """Get all user accounts # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_all_user_accounts_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: ResponseContainerListUserDTO
+ 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_all_user_accounts" % 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/account/user', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerListUserDTO', # 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_service_account(self, id, **kwargs): # noqa: E501
+ """Retrieves a service account by identifier # 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_service_account(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerServiceAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_service_account_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_service_account_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_service_account_with_http_info(self, id, **kwargs): # noqa: E501
+ """Retrieves a service account by identifier # 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_service_account_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerServiceAccount
+ 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_service_account" % 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_service_account`") # 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/account/serviceaccount/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerServiceAccount', # 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_user_account(self, id, **kwargs): # noqa: E501
+ """Retrieves a user by identifier (email address) # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_account(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_user_account_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_user_account_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_user_account_with_http_info(self, id, **kwargs): # noqa: E501
+ """Retrieves a user by identifier (email address) # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_account_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: UserModel
+ 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_user_account" % 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_user_account`") # 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/account/user/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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_users_with_accounts_permission(self, **kwargs): # noqa: E501
+ """Get all users with Accounts permission # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_users_with_accounts_permission(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: ResponseContainerListString
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_users_with_accounts_permission_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_users_with_accounts_permission_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_users_with_accounts_permission_with_http_info(self, **kwargs): # noqa: E501
+ """Get all users with Accounts permission # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_users_with_accounts_permission_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: ResponseContainerListString
+ 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_users_with_accounts_permission" % 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/account/user/admin', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerListString', # 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 grant_account_permission(self, id, permission, **kwargs): # noqa: E501
+ """Grants a specific permission to account (user or service account) # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_account_permission(id, permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str permission: Permission to grant to the account. Please note that'host_tag_management' is the equivalent of the 'Source Tag Management' permission (required)
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.grant_account_permission_with_http_info(id, permission, **kwargs) # noqa: E501
+ else:
+ (data) = self.grant_account_permission_with_http_info(id, permission, **kwargs) # noqa: E501
+ return data
+
+ def grant_account_permission_with_http_info(self, id, permission, **kwargs): # noqa: E501
+ """Grants a specific permission to account (user or service account) # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_account_permission_with_http_info(id, permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str permission: Permission to grant to the account. Please note that'host_tag_management' is the equivalent of the 'Source Tag Management' permission (required)
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'permission'] # 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 grant_account_permission" % 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 `grant_account_permission`") # noqa: E501
+ # verify the required parameter 'permission' is set
+ if self.api_client.client_side_validation and ('permission' not in params or
+ params['permission'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `permission` when calling `grant_account_permission`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+ if 'permission' in params:
+ path_params['permission'] = params['permission'] # 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
+
+ # 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/{id}/grant/{permission}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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 grant_permission_to_accounts(self, permission, **kwargs): # noqa: E501
+ """Grant a permission to accounts (users or service accounts) # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_permission_to_accounts(permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: The permission to grant. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission. (required)
+ :param list[str] body: List of accounts the specified permission to be granted to
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.grant_permission_to_accounts_with_http_info(permission, **kwargs) # noqa: E501
+ else:
+ (data) = self.grant_permission_to_accounts_with_http_info(permission, **kwargs) # noqa: E501
+ return data
+
+ def grant_permission_to_accounts_with_http_info(self, permission, **kwargs): # noqa: E501
+ """Grant a permission to accounts (users or service accounts) # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_permission_to_accounts_with_http_info(permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: The permission to grant. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission. (required)
+ :param list[str] body: List of accounts the specified permission to be granted to
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['permission', '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 grant_permission_to_accounts" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'permission' is set
+ if self.api_client.client_side_validation and ('permission' not in params or
+ params['permission'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `permission` when calling `grant_permission_to_accounts`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'permission' in params:
+ path_params['permission'] = params['permission'] # 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/account/grant/{permission}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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 invite_user_accounts(self, **kwargs): # noqa: E501
+ """Invite user accounts with given user groups and permissions. # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.invite_user_accounts(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[UserToCreate] body: Example Body: [ { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } ]
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.invite_user_accounts_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.invite_user_accounts_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def invite_user_accounts_with_http_info(self, **kwargs): # noqa: E501
+ """Invite user accounts with given user groups and permissions. # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.invite_user_accounts_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[UserToCreate] body: Example Body: [ { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } ]
+ :return: UserModel
+ 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 invite_user_accounts" % 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/user/invite', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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_account_from_roles(self, id, **kwargs): # noqa: E501
+ """Removes specific roles from the account (user or service account) # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account_from_roles(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: The list of roles that should be removed from the account
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.remove_account_from_roles_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.remove_account_from_roles_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def remove_account_from_roles_with_http_info(self, id, **kwargs): # noqa: E501
+ """Removes specific roles from the account (user or service account) # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account_from_roles_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: The list of roles that should be removed from the account
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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_account_from_roles" % 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 `remove_account_from_roles`") # 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
+ 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/{id}/removeRoles', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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_account_from_user_groups(self, id, **kwargs): # noqa: E501
+ """Removes specific groups from the account (user or service account) # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account_from_user_groups(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: The list of groups that should be removed from the account
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.remove_account_from_user_groups_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.remove_account_from_user_groups_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def remove_account_from_user_groups_with_http_info(self, id, **kwargs): # noqa: E501
+ """Removes specific groups from the account (user or service account) # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_account_from_user_groups_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: The list of groups that should be removed from the account
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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_account_from_user_groups" % 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 `remove_account_from_user_groups`") # 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
+ 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/{id}/removeUserGroups', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_account_permission(id, permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str permission: (required)
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.revoke_account_permission_with_http_info(id, permission, **kwargs) # noqa: E501
+ else:
+ (data) = self.revoke_account_permission_with_http_info(id, permission, **kwargs) # noqa: E501
+ return data
+
+ def revoke_account_permission_with_http_info(self, id, permission, **kwargs): # noqa: E501
+ """Revokes a specific permission from account (user or service account) # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_account_permission_with_http_info(id, permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str permission: (required)
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'permission'] # 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 revoke_account_permission" % 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 `revoke_account_permission`") # noqa: E501
+ # verify the required parameter 'permission' is set
+ if self.api_client.client_side_validation and ('permission' not in params or
+ params['permission'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `permission` when calling `revoke_account_permission`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+ if 'permission' in params:
+ path_params['permission'] = params['permission'] # 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
+
+ # 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/{id}/revoke/{permission}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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_permission_from_accounts(self, permission, **kwargs): # noqa: E501
+ """Revoke a permission from accounts (users or service accounts) # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_permission_from_accounts(permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: The permission to revoke. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission. (required)
+ :param list[str] body: List of accounts the specified permission to be revoked from
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.revoke_permission_from_accounts_with_http_info(permission, **kwargs) # noqa: E501
+ else:
+ (data) = self.revoke_permission_from_accounts_with_http_info(permission, **kwargs) # noqa: E501
+ return data
+
+ def revoke_permission_from_accounts_with_http_info(self, permission, **kwargs): # noqa: E501
+ """Revoke a permission from accounts (users or service accounts) # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_permission_from_accounts_with_http_info(permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: The permission to revoke. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission. (required)
+ :param list[str] body: List of accounts the specified permission to be revoked from
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['permission', '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 revoke_permission_from_accounts" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'permission' is set
+ if self.api_client.client_side_validation and ('permission' not in params or
+ params['permission'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `permission` when calling `revoke_permission_from_accounts`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'permission' in params:
+ path_params['permission'] = params['permission'] # 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/account/revoke/{permission}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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 update_service_account(self, id, **kwargs): # noqa: E501
+ """Updates the service account # 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.update_service_account(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param ServiceAccountWrite body:
+ :return: ResponseContainerServiceAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_service_account_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_service_account_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_service_account_with_http_info(self, id, **kwargs): # noqa: E501
+ """Updates the service account # 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.update_service_account_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param ServiceAccountWrite body:
+ :return: ResponseContainerServiceAccount
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_service_account" % 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 `update_service_account`") # 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
+ 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/serviceaccount/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerServiceAccount', # 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 update_user_account(self, id, **kwargs): # noqa: E501
+ """Update user with given user groups and permissions. # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_user_account(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param UserRequestDTO body: Example Body: { \"identifier\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ] }
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_user_account_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_user_account_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_user_account_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update user with given user groups and permissions. # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_user_account_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param UserRequestDTO body: Example Body: { \"identifier\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ] }
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_user_account" % 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 `update_user_account`") # 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
+ 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/user/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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 validate_accounts(self, **kwargs): # noqa: E501
+ """Returns valid accounts (users and service accounts), also invalid identifiers from the given list # 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.validate_accounts(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] body:
+ :return: ResponseContainerValidatedUsersDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.validate_accounts_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.validate_accounts_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def validate_accounts_with_http_info(self, **kwargs): # noqa: E501
+ """Returns valid accounts (users and service accounts), also invalid identifiers from the given list # 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.validate_accounts_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] body:
+ :return: ResponseContainerValidatedUsersDTO
+ 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 validate_accounts" % 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/validateAccounts', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerValidatedUsersDTO', # 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)
diff --git a/wavefront_api_client/api/alert_analytics_api.py b/wavefront_api_client/api/alert_analytics_api.py
new file mode 100644
index 00000000..c4169ad4
--- /dev/null
+++ b/wavefront_api_client/api/alert_analytics_api.py
@@ -0,0 +1,573 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class AlertAnalyticsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_active_no_target_alert_summary_details(self, start, **kwargs): # noqa: E501 + """Get Active No Target Alert Summary 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_active_no_target_alert_summary_details(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :param int offset: offset for records + :param int limit: Number of records + :return: ResponseContainerPagedAlertAnalyticsSummaryDetail + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_active_no_target_alert_summary_details_with_http_info(start, **kwargs) # noqa: E501 + else: + (data) = self.get_active_no_target_alert_summary_details_with_http_info(start, **kwargs) # noqa: E501 + return data + + def get_active_no_target_alert_summary_details_with_http_info(self, start, **kwargs): # noqa: E501 + """Get Active No Target Alert Summary 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_active_no_target_alert_summary_details_with_http_info(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :param int offset: offset for records + :param int limit: Number of records + :return: ResponseContainerPagedAlertAnalyticsSummaryDetail + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start', 'end', 'offset', 'limit'] # 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_active_no_target_alert_summary_details" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start' is set + if self.api_client.client_side_validation and ('start' not in params or + params['start'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `start` when calling `get_active_no_target_alert_summary_details`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'end' in params: + query_params.append(('end', params['end'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # 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/alert/analytics/summary/alerts/noTarget', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedAlertAnalyticsSummaryDetail', # 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_alert_analytics_errors_summary(self, start, **kwargs): # noqa: E501 + """Get Alert Analytics errors summary # 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_alert_analytics_errors_summary(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :return: ResponseContainerListAlertErrorGroupInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_alert_analytics_errors_summary_with_http_info(start, **kwargs) # noqa: E501 + else: + (data) = self.get_alert_analytics_errors_summary_with_http_info(start, **kwargs) # noqa: E501 + return data + + def get_alert_analytics_errors_summary_with_http_info(self, start, **kwargs): # noqa: E501 + """Get Alert Analytics errors summary # 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_alert_analytics_errors_summary_with_http_info(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :return: ResponseContainerListAlertErrorGroupInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start', 'end'] # 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_alert_analytics_errors_summary" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start' is set + if self.api_client.client_side_validation and ('start' not in params or + params['start'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `start` when calling `get_alert_analytics_errors_summary`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'end' in params: + query_params.append(('end', params['end'])) # 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/alert/analytics/summary/errors', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListAlertErrorGroupInfo', # 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_alert_analytics_summary(self, start, **kwargs): # noqa: E501 + """Get Alert Analytics Summary 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_alert_analytics_summary(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :return: ResponseContainerAlertAnalyticsSummary + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_alert_analytics_summary_with_http_info(start, **kwargs) # noqa: E501 + else: + (data) = self.get_alert_analytics_summary_with_http_info(start, **kwargs) # noqa: E501 + return data + + def get_alert_analytics_summary_with_http_info(self, start, **kwargs): # noqa: E501 + """Get Alert Analytics Summary 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_alert_analytics_summary_with_http_info(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :return: ResponseContainerAlertAnalyticsSummary + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start', 'end'] # 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_alert_analytics_summary" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start' is set + if self.api_client.client_side_validation and ('start' not in params or + params['start'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `start` when calling `get_alert_analytics_summary`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'end' in params: + query_params.append(('end', params['end'])) # 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/alert/analytics/summary', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerAlertAnalyticsSummary', # 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_failed_alert_summary_details(self, start, **kwargs): # noqa: E501 + """Get Failed Alert Summary Details 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_failed_alert_summary_details(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :param int offset: offset for records + :param int limit: Number of records + :return: ResponseContainerPagedAlertAnalyticsSummaryDetail + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_failed_alert_summary_details_with_http_info(start, **kwargs) # noqa: E501 + else: + (data) = self.get_failed_alert_summary_details_with_http_info(start, **kwargs) # noqa: E501 + return data + + def get_failed_alert_summary_details_with_http_info(self, start, **kwargs): # noqa: E501 + """Get Failed Alert Summary Details 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_failed_alert_summary_details_with_http_info(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :param int offset: offset for records + :param int limit: Number of records + :return: ResponseContainerPagedAlertAnalyticsSummaryDetail + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start', 'end', 'offset', 'limit'] # 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_failed_alert_summary_details" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start' is set + if self.api_client.client_side_validation and ('start' not in params or + params['start'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `start` when calling `get_failed_alert_summary_details`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'end' in params: + query_params.append(('end', params['end'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # 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/alert/analytics/summary/alerts/failed', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedAlertAnalyticsSummaryDetail', # 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_no_data_alert_summary_details(self, start, **kwargs): # noqa: E501 + """Get No Data Alert Summary 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_no_data_alert_summary_details(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :param int offset: offset for records + :param int limit: Number of records + :return: ResponseContainerPagedAlertAnalyticsSummaryDetail + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_no_data_alert_summary_details_with_http_info(start, **kwargs) # noqa: E501 + else: + (data) = self.get_no_data_alert_summary_details_with_http_info(start, **kwargs) # noqa: E501 + return data + + def get_no_data_alert_summary_details_with_http_info(self, start, **kwargs): # noqa: E501 + """Get No Data Alert Summary 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_no_data_alert_summary_details_with_http_info(start, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds, null to use now + :param int offset: offset for records + :param int limit: Number of records + :return: ResponseContainerPagedAlertAnalyticsSummaryDetail + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start', 'end', 'offset', 'limit'] # 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_no_data_alert_summary_details" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start' is set + if self.api_client.client_side_validation and ('start' not in params or + params['start'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `start` when calling `get_no_data_alert_summary_details`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'end' in params: + query_params.append(('end', params['end'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # 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/alert/analytics/summary/alerts/noData', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedAlertAnalyticsSummaryDetail', # 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) diff --git a/wavefront_api_client/api/alert_api.py b/wavefront_api_client/api/alert_api.py index 21e1e5df..6afbe877 100644 --- a/wavefront_api_client/api/alert_api.py +++ b/wavefront_api_client/api/alert_api.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,24 +33,119 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def add_alert_access(self, **kwargs): # noqa: E501 + """Adds the specified ids to the given alerts' ACL # 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_alert_access(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param list[AccessControlListWriteDTO] body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_alert_access_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.add_alert_access_with_http_info(**kwargs) # noqa: E501 + return data + + def add_alert_access_with_http_info(self, **kwargs): # noqa: E501 + """Adds the specified ids to the given alerts' ACL # 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_alert_access_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param list[AccessControlListWriteDTO] body: + :return: None + 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_alert_access" % 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/alert/acl/add', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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_alert_tag(self, id, tag_value, **kwargs): # noqa: E501 """Add a tag to a specific alert # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_alert_tag(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_alert_tag(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) - :param str tag_value: (required) - :return: ResponseContainer + :param str tag_value: Supported Characters of Tags:Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.(required) + :return: ResponseContainerVoid If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.add_alert_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 else: (data) = self.add_alert_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 @@ -61,20 +156,20 @@ def add_alert_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_alert_tag_with_http_info(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_alert_tag_with_http_info(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) - :param str tag_value: (required) - :return: ResponseContainer + :param str tag_value: Supported Characters of Tags:
Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.(required) + :return: ResponseContainerVoid If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'tag_value'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -89,12 +184,12 @@ def add_alert_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `add_alert_tag`") # noqa: E501 # verify the required parameter 'tag_value' is set - if ('tag_value' not in params or - params['tag_value'] is None): + if self.api_client.client_side_validation and ('tag_value' not in params or + params['tag_value'] is None): # noqa: E501 raise ValueError("Missing the required parameter `tag_value` when calling `add_alert_tag`") # noqa: E501 collection_formats = {} @@ -132,9 +227,211 @@ def add_alert_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainer', # noqa: E501 + response_type='ResponseContainerVoid', # 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 check_query_type(self, **kwargs): # noqa: E501 + """Return the type of provided query. # 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.check_query_type(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param QueryTypeDTO body: + :return: ResponseContainerQueryTypeDTO + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.check_query_type_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.check_query_type_with_http_info(**kwargs) # noqa: E501 + return data + + def check_query_type_with_http_info(self, **kwargs): # noqa: E501 + """Return the type of provided query. # 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.check_query_type_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param QueryTypeDTO body: + :return: ResponseContainerQueryTypeDTO + 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 check_query_type" % 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/alert/checkQuery', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerQueryTypeDTO', # 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 clone_alert(self, id, **kwargs): # noqa: E501 + """Clones the specified alert # 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.clone_alert(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param str name: + :param int v: + :return: ResponseContainerAlert + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.clone_alert_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.clone_alert_with_http_info(id, **kwargs) # noqa: E501 + return data + + def clone_alert_with_http_info(self, id, **kwargs): # noqa: E501 + """Clones the specified alert # 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.clone_alert_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param str name: + :param int v: + :return: ResponseContainerAlert + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'name', 'v'] # 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 clone_alert" % 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 `clone_alert`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + if 'name' in params: + query_params.append(('name', params['name'])) # noqa: E501 + if 'v' in params: + query_params.append(('v', params['v'])) # 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/alert/{id}/clone', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerAlert', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -145,18 +442,19 @@ def create_alert(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_alert(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_alert(async_req=True) >>> result = thread.get() - :param async bool - :param Alert body: Example Body:
{ \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" }
+ :param async_req bool
+ :param bool use_multi_query: A flag indicates whether to use the new multi-query alert structures when thefeature is enabled.{ \"name\": \"Alert Name\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"conditionQueryType\": \"WQL\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"displayExpressionQueryType\": \"WQL\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"alertTriageDashboards\": [{ \"dashboardId\": \"dashboard-name\", \"parameters\": { \"constants\": { \"key\": \"value\" } }, \"description\": \"dashboard description\" } ], \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } } Example Classic Body with multi queries: { \"name\": \"Alert Name\", \"alertType\": \"CLASSIC\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B} > 2\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"severity\": \"WARN\", \"minutes\": 5 } Example Threshold Body: { \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"conditions\": { \"info\": \"ts(~sample.cpu.loadavg.1m) > 0\", \"warn\": \"ts(~sample.cpu.loadavg.1m) > 2\" }, \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"additionalInformation\": \"conditions value entry needs to be of the form: displayExpression operator threshold\" } Example Threshold Body with multi queries: { \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B}\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"conditions\": { \"info\": \"${B} > bool 0\", \"warn\": \"${B} > bool 2\" }, \"minutes\": 5 } Supported Characters of Tags: Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.Supported Alert Target formats:
Classic Alerts - \"target\": \"{email},pd:{pd_key},target:{alert target ID}\" Threshold Alerts - \"targets\": {\"info\":\"{email},pd:{pd_key},target:{alert target ID}\", \"warn\":\"{email},pd:{pd_key},target:{alert target ID}\"} Note that only target(s) can be used for creating/updating alert targets. targetEndpoints, targetInfo are for informational purpose only.
:return: ResponseContainerAlert
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_alert_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_alert_with_http_info(**kwargs) # noqa: E501
@@ -167,19 +465,20 @@ def create_alert_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_alert_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_alert_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
- :param Alert body: Example Body: { \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" }
+ :param async_req bool
+ :param bool use_multi_query: A flag indicates whether to use the new multi-query alert structures when thefeature is enabled.{ \"name\": \"Alert Name\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"conditionQueryType\": \"WQL\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"displayExpressionQueryType\": \"WQL\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"alertTriageDashboards\": [{ \"dashboardId\": \"dashboard-name\", \"parameters\": { \"constants\": { \"key\": \"value\" } }, \"description\": \"dashboard description\" } ], \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } } Example Classic Body with multi queries: { \"name\": \"Alert Name\", \"alertType\": \"CLASSIC\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B} > 2\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"severity\": \"WARN\", \"minutes\": 5 } Example Threshold Body: { \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"conditions\": { \"info\": \"ts(~sample.cpu.loadavg.1m) > 0\", \"warn\": \"ts(~sample.cpu.loadavg.1m) > 2\" }, \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"additionalInformation\": \"conditions value entry needs to be of the form: displayExpression operator threshold\" } Example Threshold Body with multi queries: { \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B}\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"conditions\": { \"info\": \"${B} > bool 0\", \"warn\": \"${B} > bool 2\" }, \"minutes\": 5 } Supported Characters of Tags: Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.Supported Alert Target formats:
Classic Alerts - \"target\": \"{email},pd:{pd_key},target:{alert target ID}\" Threshold Alerts - \"targets\": {\"info\":\"{email},pd:{pd_key},target:{alert target ID}\", \"warn\":\"{email},pd:{pd_key},target:{alert target ID}\"} Note that only target(s) can be used for creating/updating alert targets. targetEndpoints, targetInfo are for informational purpose only.
:return: ResponseContainerAlert
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params = ['use_multi_query', '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')
@@ -199,6 +498,8 @@ def create_alert_with_http_info(self, **kwargs): # noqa: E501
path_params = {}
query_params = []
+ if 'use_multi_query' in params:
+ query_params.append(('useMultiQuery', params['use_multi_query'])) # noqa: E501
header_params = {}
@@ -229,7 +530,7 @@ def create_alert_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerAlert', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -240,18 +541,19 @@ def delete_alert(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_alert(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_alert(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool skip_trash:
:return: ResponseContainerAlert
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.delete_alert_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_alert_with_http_info(id, **kwargs) # noqa: E501
@@ -262,19 +564,20 @@ def delete_alert_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_alert_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_alert_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool skip_trash:
:return: ResponseContainerAlert
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params = ['id', 'skip_trash'] # noqa: E501
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -289,8 +592,8 @@ def delete_alert_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `delete_alert`") # noqa: E501
collection_formats = {}
@@ -300,6 +603,8 @@ def delete_alert_with_http_info(self, id, **kwargs): # noqa: E501
path_params['id'] = params['id'] # noqa: E501
query_params = []
+ if 'skip_trash' in params:
+ query_params.append(('skipTrash', params['skip_trash'])) # noqa: E501
header_params = {}
@@ -324,7 +629,7 @@ def delete_alert_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerAlert', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -335,41 +640,618 @@ def get_alert(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_alert(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_alert(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerAlert
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_alert_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_alert_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_alert_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific alert # 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_alert_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerAlert
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_alert" % 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_alert`") # 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/alert/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerAlert', # 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_alert_access_control_list(self, **kwargs): # noqa: E501
+ """Get Access Control Lists' union for the specified alerts # 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_alert_access_control_list(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] id:
+ :return: ResponseContainerListAccessControlListReadDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_alert_access_control_list_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_alert_access_control_list_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_alert_access_control_list_with_http_info(self, **kwargs): # noqa: E501
+ """Get Access Control Lists' union for the specified alerts # 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_alert_access_control_list_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] id:
+ :return: ResponseContainerListAccessControlListReadDTO
+ 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_alert_access_control_list" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'id' in params:
+ query_params.append(('id', params['id'])) # noqa: E501
+ collection_formats['id'] = 'multi' # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/alert/acl', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerListAccessControlListReadDTO', # 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_alert_history(self, id, **kwargs): # noqa: E501
+ """Get the version history of a specific alert # 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_alert_history(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerHistoryResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_alert_history_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_alert_history_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_alert_history_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get the version history of a specific alert # 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_alert_history_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerHistoryResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'offset', 'limit'] # 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_alert_history" % 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_alert_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/alert/{id}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerHistoryResponse', # 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_alert_tags(self, id, **kwargs): # noqa: E501
+ """Get all tags associated with a specific alert # 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_alert_tags(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerTagsResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_alert_tags_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_alert_tags_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_alert_tags_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get all tags associated with a specific alert # 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_alert_tags_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerTagsResponse
+ 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_alert_tags" % 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_alert_tags`") # 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/alert/{id}/tag', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerTagsResponse', # 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_alert_version(self, id, version, **kwargs): # noqa: E501
+ """Get a specific historical version of a specific alert # 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_alert_version(id, version, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int version: (required)
+ :return: ResponseContainerAlert
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_alert_version_with_http_info(id, version, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_alert_version_with_http_info(id, version, **kwargs) # noqa: E501
+ return data
+
+ def get_alert_version_with_http_info(self, id, version, **kwargs): # noqa: E501
+ """Get a specific historical version of a specific alert # 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_alert_version_with_http_info(id, version, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int version: (required)
+ :return: ResponseContainerAlert
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'version'] # 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_alert_version" % 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_alert_version`") # noqa: E501
+ # verify the required parameter 'version' is set
+ if self.api_client.client_side_validation and ('version' not in params or
+ params['version'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `version` when calling `get_alert_version`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+ if 'version' in params:
+ path_params['version'] = params['version'] # 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/alert/{id}/history/{version}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerAlert', # 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_alerts_summary(self, **kwargs): # noqa: E501
+ """Count alerts of various statuses 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_alerts_summary(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: ResponseContainerMapStringInteger
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_alerts_summary_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_alerts_summary_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_alerts_summary_with_http_info(self, **kwargs): # noqa: E501
+ """Count alerts of various statuses 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_alerts_summary_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: ResponseContainerMapStringInteger
+ 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_alerts_summary" % 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/alert/summary', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerMapStringInteger', # 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_alerts_with_pagination(self, **kwargs): # noqa: E501
+ """Get all alerts for a customer with pagination # 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_alerts_with_pagination(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int cursor:
+ :param int limit:
+ :return: ResponseContainerPagedAlert
+ If the method is called asynchronously,
+ returns the request thread.
+ """
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_alert_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.get_alerts_with_pagination_with_http_info(**kwargs) # noqa: E501
else:
- (data) = self.get_alert_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.get_alerts_with_pagination_with_http_info(**kwargs) # noqa: E501
return data
- def get_alert_with_http_info(self, id, **kwargs): # noqa: E501
- """Get a specific alert # noqa: E501
+ def get_alerts_with_pagination_with_http_info(self, **kwargs): # noqa: E501
+ """Get all alerts for a customer with pagination # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_alert_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_alerts_with_pagination_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
- :param str id: (required)
- :return: ResponseContainerAlert
+ :param async_req bool
+ :param int cursor:
+ :param int limit:
+ :return: ResponseContainerPagedAlert
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params = ['cursor', 'limit'] # noqa: E501
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -379,22 +1261,20 @@ def get_alert_with_http_info(self, id, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_alert" % key
+ " to method get_alerts_with_pagination" % key
)
params[key] = val
del params['kwargs']
- # verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `get_alert`") # noqa: E501
collection_formats = {}
path_params = {}
- if 'id' in params:
- path_params['id'] = params['id'] # noqa: E501
query_params = []
+ if 'cursor' in params:
+ query_params.append(('cursor', params['cursor'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # noqa: E501
header_params = {}
@@ -410,65 +1290,63 @@ def get_alert_with_http_info(self, id, **kwargs): # noqa: E501
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/alert/{id}', 'GET',
+ '/api/v2/alert/paginated', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='ResponseContainerAlert', # noqa: E501
+ response_type='ResponseContainerPagedAlert', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_alert_history(self, id, **kwargs): # noqa: E501
- """Get the version history of a specific alert # noqa: E501
+ def get_all_alert(self, **kwargs): # noqa: E501
+ """Get all alerts 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=True
- >>> thread = api.get_alert_history(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_alert(async_req=True)
>>> result = thread.get()
- :param async bool
- :param str id: (required)
+ :param async_req bool
:param int offset:
:param int limit:
- :return: ResponseContainerHistoryResponse
+ :return: ResponseContainerPagedAlert
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_alert_history_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.get_all_alert_with_http_info(**kwargs) # noqa: E501
else:
- (data) = self.get_alert_history_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.get_all_alert_with_http_info(**kwargs) # noqa: E501
return data
- def get_alert_history_with_http_info(self, id, **kwargs): # noqa: E501
- """Get the version history of a specific alert # noqa: E501
+ def get_all_alert_with_http_info(self, **kwargs): # noqa: E501
+ """Get all alerts 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=True
- >>> thread = api.get_alert_history_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_alert_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
- :param str id: (required)
+ :param async_req bool
:param int offset:
:param int limit:
- :return: ResponseContainerHistoryResponse
+ :return: ResponseContainerPagedAlert
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id', 'offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params = ['offset', 'limit'] # noqa: E501
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -478,20 +1356,14 @@ def get_alert_history_with_http_info(self, id, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_alert_history" % key
+ " to method get_all_alert" % key
)
params[key] = val
del params['kwargs']
- # verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `get_alert_history`") # noqa: E501
collection_formats = {}
path_params = {}
- if 'id' in params:
- path_params['id'] = params['id'] # noqa: E501
query_params = []
if 'offset' in params:
@@ -513,61 +1385,61 @@ def get_alert_history_with_http_info(self, id, **kwargs): # noqa: E501
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/alert/{id}/history', 'GET',
+ '/api/v2/alert', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='ResponseContainerHistoryResponse', # noqa: E501
+ response_type='ResponseContainerPagedAlert', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_alert_tags(self, id, **kwargs): # noqa: E501
- """Get all tags associated with a specific alert # noqa: E501
+ def hide_alert(self, id, **kwargs): # noqa: E501
+ """Hide a specific integration alert # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_alert_tags(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.hide_alert(id, async_req=True)
>>> result = thread.get()
- :param async bool
- :param str id: (required)
- :return: ResponseContainerTagsResponse
+ :param async_req bool
+ :param int id: (required)
+ :return: ResponseContainerAlert
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_alert_tags_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.hide_alert_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.get_alert_tags_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.hide_alert_with_http_info(id, **kwargs) # noqa: E501
return data
- def get_alert_tags_with_http_info(self, id, **kwargs): # noqa: E501
- """Get all tags associated with a specific alert # noqa: E501
+ def hide_alert_with_http_info(self, id, **kwargs): # noqa: E501
+ """Hide a specific integration alert # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_alert_tags_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.hide_alert_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
- :param str id: (required)
- :return: ResponseContainerTagsResponse
+ :param async_req bool
+ :param int id: (required)
+ :return: ResponseContainerAlert
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -577,14 +1449,14 @@ def get_alert_tags_with_http_info(self, id, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_alert_tags" % key
+ " to method hide_alert" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `get_alert_tags`") # noqa: E501
+ 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 `hide_alert`") # noqa: E501
collection_formats = {}
@@ -608,63 +1480,61 @@ def get_alert_tags_with_http_info(self, id, **kwargs): # noqa: E501
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/alert/{id}/tag', 'GET',
+ '/api/v2/alert/{id}/uninstall', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='ResponseContainerTagsResponse', # noqa: E501
+ response_type='ResponseContainerAlert', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_alert_version(self, id, version, **kwargs): # noqa: E501
- """Get a specific historical version of a specific alert # noqa: E501
+ def preview_alert_notification(self, **kwargs): # noqa: E501
+ """Get all the notification preview for a specific alert # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_alert_version(id, version, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.preview_alert_notification(async_req=True)
>>> result = thread.get()
- :param async bool
- :param str id: (required)
- :param int version: (required)
- :return: ResponseContainerAlert
+ :param async_req bool
+ :param Alert body:
+ :return: ResponseContainerListNotificationMessages
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_alert_version_with_http_info(id, version, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.preview_alert_notification_with_http_info(**kwargs) # noqa: E501
else:
- (data) = self.get_alert_version_with_http_info(id, version, **kwargs) # noqa: E501
+ (data) = self.preview_alert_notification_with_http_info(**kwargs) # noqa: E501
return data
- def get_alert_version_with_http_info(self, id, version, **kwargs): # noqa: E501
- """Get a specific historical version of a specific alert # noqa: E501
+ def preview_alert_notification_with_http_info(self, **kwargs): # noqa: E501
+ """Get all the notification preview for a specific alert # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_alert_version_with_http_info(id, version, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.preview_alert_notification_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
- :param str id: (required)
- :param int version: (required)
- :return: ResponseContainerAlert
+ :param async_req bool
+ :param Alert body:
+ :return: ResponseContainerListNotificationMessages
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id', 'version'] # noqa: E501
- all_params.append('async')
+ 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')
@@ -674,26 +1544,14 @@ def get_alert_version_with_http_info(self, id, version, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_alert_version" % key
+ " to method preview_alert_notification" % key
)
params[key] = val
del params['kwargs']
- # verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `get_alert_version`") # noqa: E501
- # verify the required parameter 'version' is set
- if ('version' not in params or
- params['version'] is None):
- raise ValueError("Missing the required parameter `version` when calling `get_alert_version`") # noqa: E501
collection_formats = {}
path_params = {}
- if 'id' in params:
- path_params['id'] = params['id'] # noqa: E501
- if 'version' in params:
- path_params['version'] = params['version'] # noqa: E501
query_params = []
@@ -703,6 +1561,8 @@ def get_alert_version_with_http_info(self, id, version, **kwargs): # noqa: E501
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
@@ -711,59 +1571,61 @@ def get_alert_version_with_http_info(self, id, version, **kwargs): # noqa: E501
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/alert/{id}/history/{version}', 'GET',
+ '/api/v2/alert/preview', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='ResponseContainerAlert', # noqa: E501
+ response_type='ResponseContainerListNotificationMessages', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_alerts_summary(self, **kwargs): # noqa: E501
- """Count alerts of various statuses for a customer # noqa: E501
+ def remove_alert_access(self, **kwargs): # noqa: E501
+ """Removes the specified ids from the given alerts' ACL # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_alerts_summary(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_alert_access(async_req=True)
>>> result = thread.get()
- :param async bool
- :return: ResponseContainerMapStringInteger
+ :param async_req bool
+ :param list[AccessControlListWriteDTO] body:
+ :return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_alerts_summary_with_http_info(**kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.remove_alert_access_with_http_info(**kwargs) # noqa: E501
else:
- (data) = self.get_alerts_summary_with_http_info(**kwargs) # noqa: E501
+ (data) = self.remove_alert_access_with_http_info(**kwargs) # noqa: E501
return data
- def get_alerts_summary_with_http_info(self, **kwargs): # noqa: E501
- """Count alerts of various statuses for a customer # noqa: E501
+ def remove_alert_access_with_http_info(self, **kwargs): # noqa: E501
+ """Removes the specified ids from the given alerts' ACL # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_alerts_summary_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_alert_access_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
- :return: ResponseContainerMapStringInteger
+ :param async_req bool
+ :param list[AccessControlListWriteDTO] body:
+ :return: None
If the method is called asynchronously,
returns the request thread.
"""
- all_params = [] # noqa: E501
- all_params.append('async')
+ 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')
@@ -773,7 +1635,7 @@ def get_alerts_summary_with_http_info(self, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_alerts_summary" % key
+ " to method remove_alert_access" % key
)
params[key] = val
del params['kwargs']
@@ -790,71 +1652,77 @@ def get_alerts_summary_with_http_info(self, **kwargs): # noqa: E501
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/alert/summary', 'GET',
+ '/api/v2/alert/acl/remove', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='ResponseContainerMapStringInteger', # noqa: E501
+ response_type=None, # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_all_alert(self, **kwargs): # noqa: E501
- """Get all alerts for a customer # noqa: E501
+ def remove_alert_tag(self, id, tag_value, **kwargs): # noqa: E501
+ """Remove a tag from a specific alert # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_alert(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_alert_tag(id, tag_value, async_req=True)
>>> result = thread.get()
- :param async bool
- :param int offset:
- :param int limit:
- :return: ResponseContainerPagedAlert
+ :param async_req bool
+ :param str id: (required)
+ :param str tag_value: Supported Characters of Tags: Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.(required) + :return: ResponseContainerVoid If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.get_all_alert_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.remove_alert_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 else: - (data) = self.get_all_alert_with_http_info(**kwargs) # noqa: E501 + (data) = self.remove_alert_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 return data - def get_all_alert_with_http_info(self, **kwargs): # noqa: E501 - """Get all alerts for a customer # noqa: E501 + def remove_alert_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 + """Remove a tag from a specific alert # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_alert_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_alert_tag_with_http_info(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool - :param int offset: - :param int limit: - :return: ResponseContainerPagedAlert + :param async_req bool + :param str id: (required) + :param str tag_value: Supported Characters of Tags:
Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.(required) + :return: ResponseContainerVoid If the method is called asynchronously, returns the request thread. """ - all_params = ['offset', 'limit'] # noqa: E501 - all_params.append('async') + all_params = ['id', 'tag_value'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -864,20 +1732,28 @@ def get_all_alert_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_all_alert" % key + " to method remove_alert_tag" % 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 `remove_alert_tag`") # noqa: E501 + # verify the required parameter 'tag_value' is set + if self.api_client.client_side_validation and ('tag_value' not in params or + params['tag_value'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `tag_value` when calling `remove_alert_tag`") # noqa: E501 collection_formats = {} path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + if 'tag_value' in params: + path_params['tagValue'] = params['tag_value'] # noqa: E501 query_params = [] - if 'offset' in params: - query_params.append(('offset', params['offset'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 header_params = {} @@ -893,63 +1769,61 @@ def get_all_alert_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/alert', 'GET', + '/api/v2/alert/{id}/tag/{tagValue}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedAlert', # noqa: E501 + response_type='ResponseContainerVoid', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_alert_tag(self, id, tag_value, **kwargs): # noqa: E501 - """Remove a tag from a specific alert # noqa: E501 + def set_alert_acl(self, **kwargs): # noqa: E501 + """Set ACL for the specified alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_alert_tag(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_alert_acl(async_req=True) >>> result = thread.get() - :param async bool - :param str id: (required) - :param str tag_value: (required) - :return: ResponseContainer + :param async_req bool + :param list[AccessControlListWriteDTO] body: + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.remove_alert_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.set_alert_acl_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.remove_alert_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 + (data) = self.set_alert_acl_with_http_info(**kwargs) # noqa: E501 return data - def remove_alert_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 - """Remove a tag from a specific alert # noqa: E501 + def set_alert_acl_with_http_info(self, **kwargs): # noqa: E501 + """Set ACL for the specified alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_alert_tag_with_http_info(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_alert_acl_with_http_info(async_req=True) >>> result = thread.get() - :param async bool - :param str id: (required) - :param str tag_value: (required) - :return: ResponseContainer + :param async_req bool + :param list[AccessControlListWriteDTO] body: + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'tag_value'] # noqa: E501 - all_params.append('async') + 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') @@ -959,26 +1833,14 @@ def remove_alert_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E50 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method remove_alert_tag" % key + " to method set_alert_acl" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `remove_alert_tag`") # noqa: E501 - # verify the required parameter 'tag_value' is set - if ('tag_value' not in params or - params['tag_value'] is None): - raise ValueError("Missing the required parameter `tag_value` when calling `remove_alert_tag`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'tag_value' in params: - path_params['tagValue'] = params['tag_value'] # noqa: E501 query_params = [] @@ -988,24 +1850,30 @@ def remove_alert_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E50 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/alert/{id}/tag/{tagValue}', 'DELETE', + '/api/v2/alert/acl/set', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainer', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1016,19 +1884,19 @@ def set_alert_tags(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.set_alert_tags(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_alert_tags(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) - :param list[str] body: - :return: ResponseContainer + :param list[str] body: Supported Characters of Tags:
Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.+ :return: ResponseContainerVoid If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.set_alert_tags_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.set_alert_tags_with_http_info(id, **kwargs) # noqa: E501 @@ -1039,20 +1907,20 @@ def set_alert_tags_with_http_info(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.set_alert_tags_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_alert_tags_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) - :param list[str] body: - :return: ResponseContainer + :param list[str] body: Supported Characters of Tags:
Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.+ :return: ResponseContainerVoid If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1067,8 +1935,8 @@ def set_alert_tags_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `set_alert_tags`") # noqa: E501 collection_formats = {} @@ -1106,9 +1974,9 @@ def set_alert_tags_with_http_info(self, id, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainer', # noqa: E501 + response_type='ResponseContainerVoid', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1119,11 +1987,11 @@ def snooze_alert(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.snooze_alert(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.snooze_alert(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param int seconds: :return: ResponseContainerAlert @@ -1131,7 +1999,7 @@ def snooze_alert(self, id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.snooze_alert_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.snooze_alert_with_http_info(id, **kwargs) # noqa: E501 @@ -1142,11 +2010,11 @@ def snooze_alert_with_http_info(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.snooze_alert_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.snooze_alert_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param int seconds: :return: ResponseContainerAlert @@ -1155,7 +2023,7 @@ def snooze_alert_with_http_info(self, id, **kwargs): # noqa: E501 """ all_params = ['id', 'seconds'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1170,8 +2038,8 @@ def snooze_alert_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `snooze_alert`") # noqa: E501 collection_formats = {} @@ -1207,7 +2075,7 @@ def snooze_alert_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerAlert', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1218,18 +2086,18 @@ def undelete_alert(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.undelete_alert(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.undelete_alert(id, async_req=True) >>> result = thread.get() - :param async bool - :param str id: (required) + :param async_req bool + :param int id: (required) :return: ResponseContainerAlert If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.undelete_alert_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.undelete_alert_with_http_info(id, **kwargs) # noqa: E501 @@ -1240,19 +2108,19 @@ def undelete_alert_with_http_info(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.undelete_alert_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.undelete_alert_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool - :param str id: (required) + :param async_req bool + :param int id: (required) :return: ResponseContainerAlert If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1267,8 +2135,8 @@ def undelete_alert_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `undelete_alert`") # noqa: E501 collection_formats = {} @@ -1302,7 +2170,102 @@ def undelete_alert_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerAlert', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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 unhide_alert(self, id, **kwargs): # noqa: E501 + """Unhide a specific integration alert # 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.unhide_alert(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int id: (required) + :return: ResponseContainerAlert + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.unhide_alert_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.unhide_alert_with_http_info(id, **kwargs) # noqa: E501 + return data + + def unhide_alert_with_http_info(self, id, **kwargs): # noqa: E501 + """Unhide a specific integration alert # 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.unhide_alert_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int id: (required) + :return: ResponseContainerAlert + 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 unhide_alert" % 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 `unhide_alert`") # 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/alert/{id}/install', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerAlert', # 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'), @@ -1313,18 +2276,18 @@ def unsnooze_alert(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.unsnooze_alert(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.unsnooze_alert(id, async_req=True) >>> result = thread.get() - :param async bool - :param str id: (required) + :param async_req bool + :param int id: (required) :return: ResponseContainerAlert If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.unsnooze_alert_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.unsnooze_alert_with_http_info(id, **kwargs) # noqa: E501 @@ -1335,19 +2298,19 @@ def unsnooze_alert_with_http_info(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.unsnooze_alert_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.unsnooze_alert_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool - :param str id: (required) + :param async_req bool + :param int id: (required) :return: ResponseContainerAlert If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1362,8 +2325,8 @@ def unsnooze_alert_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `unsnooze_alert`") # noqa: E501 collection_formats = {} @@ -1397,7 +2360,7 @@ def unsnooze_alert_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerAlert', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1408,19 +2371,20 @@ def update_alert(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_alert(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_alert(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) - :param Alert body: Example Body:
{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" }
+ :param bool use_multi_query: A flag indicates whether to use the new multi-query alert structures when the feature is enabled.{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"conditionQueryType\": \"WQL\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"displayExpressionQueryType\": \"WQL\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } } Example Classic Body with multi queries: { \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"alertType\": \"CLASSIC\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B} > 2\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"severity\": \"WARN\", \"minutes\": 5 } Example Threshold Body: { \"id\": \"1459375928550\", \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"conditions\": { \"info\": \"ts(~sample.cpu.loadavg.1m) > 0\", \"warn\": \"ts(~sample.cpu.loadavg.1m) > 5\" }, \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"additionalInformation\": \"conditions value entry needs to be of the form: displayExpression operator threshold\" } Example Threshold Body with multi queries: { \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B}\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"conditions\": { \"info\": \"${B} > bool 0\", \"warn\": \"${B} > bool 2\" }, \"minutes\": 5 } Supported Characters of Tags: Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.Supported Alert Target formats:
Classic Alerts - \"target\": \"{email},pd:{pd_key},target:{alert target ID}\" Threshold Alerts - \"targets\": {\"info\":\"{email},pd:{pd_key},target:{alert target ID}\", \"warn\":\"{email},pd:{pd_key},target:{alert target ID}\"} Note that only target(s) can be used for creating/updating alert targets. targetEndpoints, targetInfo are for informational purpose only.
:return: ResponseContainerAlert
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_alert_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_alert_with_http_info(id, **kwargs) # noqa: E501
@@ -1431,20 +2395,21 @@ def update_alert_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_alert_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_alert_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param Alert body: Example Body: { \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" }
+ :param bool use_multi_query: A flag indicates whether to use the new multi-query alert structures when the feature is enabled.{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"conditionQueryType\": \"WQL\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"displayExpressionQueryType\": \"WQL\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } } Example Classic Body with multi queries: { \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"alertType\": \"CLASSIC\", \"target\": \"{email},pd:{pd_key},target:{alert target ID}\", \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B} > 2\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"severity\": \"WARN\", \"minutes\": 5 } Example Threshold Body: { \"id\": \"1459375928550\", \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"conditions\": { \"info\": \"ts(~sample.cpu.loadavg.1m) > 0\", \"warn\": \"ts(~sample.cpu.loadavg.1m) > 5\" }, \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"additionalInformation\": \"conditions value entry needs to be of the form: displayExpression operator threshold\" } Example Threshold Body with multi queries: { \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"alertType\": \"THRESHOLD\", \"targets\": { \"info\": \"{email},pd:{pd_key},target:{alert target ID}\", \"warn\": \"{email},pd:{pd_key},target:{alert target ID}\" }, \"alertSources\": [ { \"name\": \"A\", \"query\": \"${B}\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"CONDITION\"] }, { \"name\": \"B\", \"query\": \"sum_over_time(~sample.network.bytes.recv[1m])\", \"queryType\": \"PROMQL\", \"alertSourceType\": [\"AUDIT\"] } ], \"conditions\": { \"info\": \"${B} > bool 0\", \"warn\": \"${B} > bool 2\" }, \"minutes\": 5 } Supported Characters of Tags: Tag names can contain alphanumeric (a-z, A-Z, 0-9), dash (-), underscore (_), and colon (:) characters. The space character is not supported.Supported Alert Target formats:
Classic Alerts - \"target\": \"{email},pd:{pd_key},target:{alert target ID}\" Threshold Alerts - \"targets\": {\"info\":\"{email},pd:{pd_key},target:{alert target ID}\", \"warn\":\"{email},pd:{pd_key},target:{alert target ID}\"} Note that only target(s) can be used for creating/updating alert targets. targetEndpoints, targetInfo are for informational purpose only.
:return: ResponseContainerAlert
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params = ['id', 'use_multi_query', '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')
@@ -1459,8 +2424,8 @@ def update_alert_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_alert`") # noqa: E501
collection_formats = {}
@@ -1470,6 +2435,8 @@ def update_alert_with_http_info(self, id, **kwargs): # noqa: E501
path_params['id'] = params['id'] # noqa: E501
query_params = []
+ if 'use_multi_query' in params:
+ query_params.append(('useMultiQuery', params['use_multi_query'])) # noqa: E501
header_params = {}
@@ -1500,7 +2467,7 @@ def update_alert_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerAlert', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/api_token_api.py b/wavefront_api_client/api/api_token_api.py
new file mode 100644
index 00000000..db8afd7b
--- /dev/null
+++ b/wavefront_api_client/api/api_token_api.py
@@ -0,0 +1,1091 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class ApiTokenApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_token(self, **kwargs): # noqa: E501 + """Create new api token # noqa: E501 + + Returns the list of all api tokens for a user. The newly created api token is the last element of returned list. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_token(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerListUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_token_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.create_token_with_http_info(**kwargs) # noqa: E501 + return data + + def create_token_with_http_info(self, **kwargs): # noqa: E501 + """Create new api token # noqa: E501 + + Returns the list of all api tokens for a user. The newly created api token is the last element of returned list. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_token_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerListUserApiToken + 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 create_token" % 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', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListUserApiToken', # 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_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 + + # 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_token(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerListUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_token_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.delete_token_with_http_info(id, **kwargs) # noqa: E501 + return data + + def delete_token_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete the specified api token # 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_token_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerListUserApiToken + 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 delete_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 `delete_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/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListUserApiToken', # 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_service_account(self, id, token, **kwargs): # noqa: E501 + """Delete the specified api token of the given service account # 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_token_service_account(id, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param str token: (required) + :return: ResponseContainerListUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_token_service_account_with_http_info(id, token, **kwargs) # noqa: E501 + else: + (data) = self.delete_token_service_account_with_http_info(id, token, **kwargs) # noqa: E501 + return data + + def delete_token_service_account_with_http_info(self, id, token, **kwargs): # noqa: E501 + """Delete the specified api token of the given service account # 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_token_service_account_with_http_info(id, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param str token: (required) + :return: ResponseContainerListUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'token'] # 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_token_service_account" % 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 `delete_token_service_account`") # noqa: E501 + # verify the required parameter 'token' is set + if self.api_client.client_side_validation and ('token' not in params or + params['token'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `token` when calling `delete_token_service_account`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + if 'token' in params: + path_params['token'] = params['token'] # 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/serviceaccount/{id}/{token}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListUserApiToken', # 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 generate_token_service_account(self, id, **kwargs): # noqa: E501 + """Create a new api token for the service account # noqa: E501 + + Returns the list of all api tokens for the service account. The newly created api token is the last element of returned list. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.generate_token_service_account(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param UserApiToken body: + :return: ResponseContainerListUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.generate_token_service_account_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.generate_token_service_account_with_http_info(id, **kwargs) # noqa: E501 + return data + + def generate_token_service_account_with_http_info(self, id, **kwargs): # noqa: E501 + """Create a new api token for the service account # noqa: E501 + + Returns the list of all api tokens for the service account. The newly created api token is the last element of returned list. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.generate_token_service_account_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param UserApiToken body: + :return: ResponseContainerListUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', '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 generate_token_service_account" % 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 `generate_token_service_account`") # 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 + if 'body' in params: + body_params = params['body'] + # 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/serviceaccount/{id}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListUserApiToken', # 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_all_tokens(self, **kwargs): # noqa: E501 + """Get all api tokens 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.get_all_tokens(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerListUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_all_tokens_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_all_tokens_with_http_info(**kwargs) # noqa: E501 + return data + + def get_all_tokens_with_http_info(self, **kwargs): # noqa: E501 + """Get all api tokens 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.get_all_tokens_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerListUserApiToken + 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_all_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', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListUserApiToken', # 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_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 + + # 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_tokens_service_account(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerListUserApiToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_tokens_service_account_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_tokens_service_account_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_tokens_service_account_with_http_info(self, id, **kwargs): # noqa: E501 + """Get all api tokens for the given service account # 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_tokens_service_account_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerListUserApiToken + 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_tokens_service_account" % 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_tokens_service_account`") # 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/serviceaccount/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListUserApiToken', # 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 update_token_name(self, id, **kwargs): # noqa: E501 + """Update the name of the specified api token # 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.update_token_name(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param UserApiToken body: Example Body:{ \"tokenID\": \"Token identifier\", \"tokenName\": \"Token name\" }
+ :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.update_token_name_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_token_name_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_token_name_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update the name of the specified api token # 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.update_token_name_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param UserApiToken body: Example Body: { \"tokenID\": \"Token identifier\", \"tokenName\": \"Token name\" }
+ :return: ResponseContainerUserApiToken
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_token_name" % 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 `update_token_name`") # 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
+ 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/{id}', '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 update_token_name_service_account(self, id, token, **kwargs): # noqa: E501
+ """Update the name of the specified api token for the given service account # 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.update_token_name_service_account(id, token, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str token: (required)
+ :param UserApiToken body: Example Body: { \"tokenID\": \"Token identifier\", \"tokenName\": \"Token name\" }
+ :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.update_token_name_service_account_with_http_info(id, token, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_token_name_service_account_with_http_info(id, token, **kwargs) # noqa: E501
+ return data
+
+ def update_token_name_service_account_with_http_info(self, id, token, **kwargs): # noqa: E501
+ """Update the name of the specified api token for the given service account # 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.update_token_name_service_account_with_http_info(id, token, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str token: (required)
+ :param UserApiToken body: Example Body: { \"tokenID\": \"Token identifier\", \"tokenName\": \"Token name\" }
+ :return: ResponseContainerUserApiToken
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'token', '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 update_token_name_service_account" % 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 `update_token_name_service_account`") # noqa: E501
+ # verify the required parameter 'token' is set
+ if self.api_client.client_side_validation and ('token' not in params or
+ params['token'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `token` when calling `update_token_name_service_account`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+ if 'token' in params:
+ path_params['token'] = params['token'] # 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/apitoken/serviceaccount/{id}/{token}', '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)
diff --git a/wavefront_api_client/api/cloud_integration_api.py b/wavefront_api_client/api/cloud_integration_api.py
index b7c02126..d407aa92 100644
--- a/wavefront_api_client/api/cloud_integration_api.py
+++ b/wavefront_api_client/api/cloud_integration_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,23 +33,114 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def create_aws_external_id(self, **kwargs): # noqa: E501 + """Create an external id # 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.create_aws_external_id(async_req=True) + >>> result = thread.get() + + :param async_req bool + :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.create_aws_external_id_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.create_aws_external_id_with_http_info(**kwargs) # noqa: E501 + return data + + def create_aws_external_id_with_http_info(self, **kwargs): # noqa: E501 + """Create an external id # 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.create_aws_external_id_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerString + 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 create_aws_external_id" % 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 + + # 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/cloudintegration/awsExternalId', '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 create_cloud_integration(self, **kwargs): # noqa: E501 """Create a cloud integration # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_cloud_integration(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_cloud_integration(async_req=True) >>> result = thread.get() - :param async bool - :param CloudIntegration body: Example Body:{ \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\", \"externalId\":\"wave123\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }
+ :param async_req bool
+ :param CloudIntegration body: Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_cloud_integration_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_cloud_integration_with_http_info(**kwargs) # noqa: E501
@@ -60,19 +151,19 @@ def create_cloud_integration_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_cloud_integration_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_cloud_integration_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
- :param CloudIntegration body: Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\", \"externalId\":\"wave123\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }
+ :param async_req bool
+ :param CloudIntegration body: Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -122,7 +213,106 @@ def create_cloud_integration_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerCloudIntegration', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_aws_external_id(self, id, **kwargs): # noqa: E501
+ """DELETEs an external id that was created by Wavefront # 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_aws_external_id(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :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.delete_aws_external_id_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_aws_external_id_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_aws_external_id_with_http_info(self, id, **kwargs): # noqa: E501
+ """DELETEs an external id that was created by Wavefront # 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_aws_external_id_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerString
+ 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 delete_aws_external_id" % 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 `delete_aws_external_id`") # 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
+
+ # 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/cloudintegration/awsExternalId/{id}', 'DELETE',
+ 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'),
@@ -133,18 +323,19 @@ def delete_cloud_integration(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_cloud_integration(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_cloud_integration(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool skip_trash:
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.delete_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
@@ -155,19 +346,20 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_cloud_integration_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_cloud_integration_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool skip_trash:
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params = ['id', 'skip_trash'] # noqa: E501
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -182,8 +374,8 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `delete_cloud_integration`") # noqa: E501
collection_formats = {}
@@ -193,6 +385,8 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
path_params['id'] = params['id'] # noqa: E501
query_params = []
+ if 'skip_trash' in params:
+ query_params.append(('skipTrash', params['skip_trash'])) # noqa: E501
header_params = {}
@@ -217,7 +411,7 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerCloudIntegration', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -228,18 +422,18 @@ def disable_cloud_integration(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.disable_cloud_integration(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.disable_cloud_integration(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.disable_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.disable_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
@@ -250,11 +444,11 @@ def disable_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.disable_cloud_integration_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.disable_cloud_integration_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
@@ -262,7 +456,7 @@ def disable_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -277,8 +471,8 @@ def disable_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `disable_cloud_integration`") # noqa: E501
collection_formats = {}
@@ -312,7 +506,7 @@ def disable_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerCloudIntegration', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -323,18 +517,18 @@ def enable_cloud_integration(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.enable_cloud_integration(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.enable_cloud_integration(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.enable_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.enable_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
@@ -345,11 +539,11 @@ def enable_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.enable_cloud_integration_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.enable_cloud_integration_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
@@ -357,7 +551,7 @@ def enable_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -372,8 +566,8 @@ def enable_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `enable_cloud_integration`") # noqa: E501
collection_formats = {}
@@ -407,7 +601,7 @@ def enable_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerCloudIntegration', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -418,11 +612,11 @@ def get_all_cloud_integration(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_cloud_integration(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_cloud_integration(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedCloudIntegration
@@ -430,7 +624,7 @@ def get_all_cloud_integration(self, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_all_cloud_integration_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_cloud_integration_with_http_info(**kwargs) # noqa: E501
@@ -441,11 +635,11 @@ def get_all_cloud_integration_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_cloud_integration_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_cloud_integration_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedCloudIntegration
@@ -454,7 +648,7 @@ def get_all_cloud_integration_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -502,7 +696,106 @@ def get_all_cloud_integration_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerPagedCloudIntegration', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_aws_external_id(self, id, **kwargs): # noqa: E501
+ """GETs (confirms) a valid external id that was created by Wavefront # 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_aws_external_id(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :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.get_aws_external_id_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_aws_external_id_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_aws_external_id_with_http_info(self, id, **kwargs): # noqa: E501
+ """GETs (confirms) a valid external id that was created by Wavefront # 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_aws_external_id_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerString
+ 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_aws_external_id" % 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_aws_external_id`") # 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
+
+ # 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/cloudintegration/awsExternalId/{id}', 'GET',
+ 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'),
@@ -513,18 +806,18 @@ def get_cloud_integration(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_cloud_integration(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_cloud_integration(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
@@ -535,11 +828,11 @@ def get_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_cloud_integration_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_cloud_integration_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
@@ -547,7 +840,7 @@ def get_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -562,8 +855,8 @@ def get_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_cloud_integration`") # noqa: E501
collection_formats = {}
@@ -597,7 +890,7 @@ def get_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerCloudIntegration', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -608,18 +901,18 @@ def undelete_cloud_integration(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.undelete_cloud_integration(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.undelete_cloud_integration(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.undelete_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.undelete_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
@@ -630,11 +923,11 @@ def undelete_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.undelete_cloud_integration_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.undelete_cloud_integration_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
@@ -642,7 +935,7 @@ def undelete_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -657,8 +950,8 @@ def undelete_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `undelete_cloud_integration`") # noqa: E501
collection_formats = {}
@@ -692,7 +985,7 @@ def undelete_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerCloudIntegration', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -703,19 +996,19 @@ def update_cloud_integration(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_cloud_integration(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_cloud_integration(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param CloudIntegration body: Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\", \"externalId\":\"wave123\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }
+ :param CloudIntegration body: Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_cloud_integration_with_http_info(id, **kwargs) # noqa: E501
@@ -726,20 +1019,20 @@ def update_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_cloud_integration_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_cloud_integration_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param CloudIntegration body: Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\", \"externalId\":\"wave123\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }
+ :param CloudIntegration body: Example Body: { \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }
:return: ResponseContainerCloudIntegration
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -754,8 +1047,8 @@ def update_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_cloud_integration`") # noqa: E501
collection_formats = {}
@@ -795,7 +1088,7 @@ def update_cloud_integration_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerCloudIntegration', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/dashboard_api.py b/wavefront_api_client/api/dashboard_api.py
index e2369bf5..1285c21a 100644
--- a/wavefront_api_client/api/dashboard_api.py
+++ b/wavefront_api_client/api/dashboard_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,16 +33,111 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def add_dashboard_access(self, **kwargs): # noqa: E501 + """Adds the specified ids to the given dashboards' ACL # 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_dashboard_access(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param list[AccessControlListWriteDTO] body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_dashboard_access_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.add_dashboard_access_with_http_info(**kwargs) # noqa: E501 + return data + + def add_dashboard_access_with_http_info(self, **kwargs): # noqa: E501 + """Adds the specified ids to the given dashboards' ACL # 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_dashboard_access_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param list[AccessControlListWriteDTO] body: + :return: None + 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_dashboard_access" % 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/dashboard/acl/add', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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_dashboard_tag(self, id, tag_value, **kwargs): # noqa: E501 """Add a tag to a specific dashboard # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_dashboard_tag(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_dashboard_tag(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -50,7 +145,7 @@ def add_dashboard_tag(self, id, tag_value, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.add_dashboard_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 else: (data) = self.add_dashboard_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 @@ -61,11 +156,11 @@ def add_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E5 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_dashboard_tag_with_http_info(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_dashboard_tag_with_http_info(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -74,7 +169,7 @@ def add_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E5 """ all_params = ['id', 'tag_value'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -89,12 +184,12 @@ def add_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E5 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `add_dashboard_tag`") # noqa: E501 # verify the required parameter 'tag_value' is set - if ('tag_value' not in params or - params['tag_value'] is None): + if self.api_client.client_side_validation and ('tag_value' not in params or + params['tag_value'] is None): # noqa: E501 raise ValueError("Missing the required parameter `tag_value` when calling `add_dashboard_tag`") # noqa: E501 collection_formats = {} @@ -134,7 +229,7 @@ def add_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E5 files=local_var_files, response_type='ResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -145,18 +240,18 @@ def create_dashboard(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_dashboard(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_dashboard(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Dashboard body: Example Body:{ \"name\": \"Dashboard API example\", \"id\": \"api-example\", \"url\": \"api-example\", \"description\": \"Dashboard Description\", \"sections\": [ { \"name\": \"Section 1\", \"rows\": [ { \"charts\": [ { \"name\": \"Chart 1\", \"description\": \"description1\", \"sources\": [ { \"name\": \"Source1\", \"query\": \"ts()\" } ] } ] } ] } ] }
:return: ResponseContainerDashboard
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_dashboard_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_dashboard_with_http_info(**kwargs) # noqa: E501
@@ -167,11 +262,11 @@ def create_dashboard_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_dashboard_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_dashboard_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param Dashboard body: Example Body: { \"name\": \"Dashboard API example\", \"id\": \"api-example\", \"url\": \"api-example\", \"description\": \"Dashboard Description\", \"sections\": [ { \"name\": \"Section 1\", \"rows\": [ { \"charts\": [ { \"name\": \"Chart 1\", \"description\": \"description1\", \"sources\": [ { \"name\": \"Source1\", \"query\": \"ts()\" } ] } ] } ] } ] }
:return: ResponseContainerDashboard
If the method is called asynchronously,
@@ -179,7 +274,7 @@ def create_dashboard_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -229,7 +324,7 @@ def create_dashboard_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerDashboard', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -240,18 +335,19 @@ def delete_dashboard(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_dashboard(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_dashboard(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool skip_trash:
:return: ResponseContainerDashboard
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.delete_dashboard_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_dashboard_with_http_info(id, **kwargs) # noqa: E501
@@ -262,19 +358,20 @@ def delete_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_dashboard_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_dashboard_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool skip_trash:
:return: ResponseContainerDashboard
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params = ['id', 'skip_trash'] # noqa: E501
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -289,8 +386,8 @@ def delete_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `delete_dashboard`") # noqa: E501
collection_formats = {}
@@ -300,6 +397,8 @@ def delete_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
path_params['id'] = params['id'] # noqa: E501
query_params = []
+ if 'skip_trash' in params:
+ query_params.append(('skipTrash', params['skip_trash'])) # noqa: E501
header_params = {}
@@ -324,7 +423,102 @@ def delete_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerDashboard', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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 favorite_dashboard(self, id, **kwargs): # noqa: E501
+ """Mark a dashboard as favorite # 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.favorite_dashboard(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainer
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.favorite_dashboard_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.favorite_dashboard_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def favorite_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
+ """Mark a dashboard as favorite # 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.favorite_dashboard_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainer
+ 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 favorite_dashboard" % 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 `favorite_dashboard`") # 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/dashboard/{id}/favorite', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainer', # 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'),
@@ -335,11 +529,11 @@ def get_all_dashboard(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_dashboard(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_dashboard(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedDashboard
@@ -347,7 +541,7 @@ def get_all_dashboard(self, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_all_dashboard_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_dashboard_with_http_info(**kwargs) # noqa: E501
@@ -358,11 +552,11 @@ def get_all_dashboard_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_dashboard_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_dashboard_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedDashboard
@@ -371,7 +565,7 @@ def get_all_dashboard_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -419,7 +613,7 @@ def get_all_dashboard_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerPagedDashboard', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -430,18 +624,18 @@ def get_dashboard(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_dashboard(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_dashboard(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerDashboard
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_dashboard_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_dashboard_with_http_info(id, **kwargs) # noqa: E501
@@ -452,11 +646,11 @@ def get_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_dashboard_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_dashboard_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerDashboard
If the method is called asynchronously,
@@ -464,7 +658,7 @@ def get_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -479,8 +673,8 @@ def get_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_dashboard`") # noqa: E501
collection_formats = {}
@@ -514,7 +708,99 @@ def get_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerDashboard', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_dashboard_access_control_list(self, **kwargs): # noqa: E501
+ """Get list of Access Control Lists for the specified dashboards # 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_dashboard_access_control_list(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] id:
+ :return: ResponseContainerListAccessControlListReadDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_dashboard_access_control_list_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_dashboard_access_control_list_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_dashboard_access_control_list_with_http_info(self, **kwargs): # noqa: E501
+ """Get list of Access Control Lists for the specified dashboards # 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_dashboard_access_control_list_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] id:
+ :return: ResponseContainerListAccessControlListReadDTO
+ 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_dashboard_access_control_list" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'id' in params:
+ query_params.append(('id', params['id'])) # noqa: E501
+ collection_formats['id'] = 'multi' # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/dashboard/acl', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerListAccessControlListReadDTO', # 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'),
@@ -525,11 +811,11 @@ def get_dashboard_history(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_dashboard_history(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_dashboard_history(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param int offset:
:param int limit:
@@ -538,7 +824,7 @@ def get_dashboard_history(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_dashboard_history_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_dashboard_history_with_http_info(id, **kwargs) # noqa: E501
@@ -549,11 +835,11 @@ def get_dashboard_history_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_dashboard_history_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_dashboard_history_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param int offset:
:param int limit:
@@ -563,7 +849,7 @@ def get_dashboard_history_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -578,8 +864,8 @@ def get_dashboard_history_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_dashboard_history`") # noqa: E501
collection_formats = {}
@@ -617,7 +903,7 @@ def get_dashboard_history_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerHistoryResponse', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -628,18 +914,18 @@ def get_dashboard_tags(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_dashboard_tags(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_dashboard_tags(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerTagsResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_dashboard_tags_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_dashboard_tags_with_http_info(id, **kwargs) # noqa: E501
@@ -650,11 +936,11 @@ def get_dashboard_tags_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_dashboard_tags_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_dashboard_tags_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerTagsResponse
If the method is called asynchronously,
@@ -662,7 +948,7 @@ def get_dashboard_tags_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -677,8 +963,8 @@ def get_dashboard_tags_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_dashboard_tags`") # noqa: E501
collection_formats = {}
@@ -712,7 +998,7 @@ def get_dashboard_tags_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerTagsResponse', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -723,11 +1009,11 @@ def get_dashboard_version(self, id, version, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_dashboard_version(id, version, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_dashboard_version(id, version, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param int version: (required)
:return: ResponseContainerDashboard
@@ -735,7 +1021,7 @@ def get_dashboard_version(self, id, version, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_dashboard_version_with_http_info(id, version, **kwargs) # noqa: E501
else:
(data) = self.get_dashboard_version_with_http_info(id, version, **kwargs) # noqa: E501
@@ -746,11 +1032,11 @@ def get_dashboard_version_with_http_info(self, id, version, **kwargs): # noqa:
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_dashboard_version_with_http_info(id, version, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_dashboard_version_with_http_info(id, version, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param int version: (required)
:return: ResponseContainerDashboard
@@ -759,7 +1045,7 @@ def get_dashboard_version_with_http_info(self, id, version, **kwargs): # noqa:
"""
all_params = ['id', 'version'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -774,12 +1060,12 @@ def get_dashboard_version_with_http_info(self, id, version, **kwargs): # noqa:
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_dashboard_version`") # noqa: E501
# verify the required parameter 'version' is set
- if ('version' not in params or
- params['version'] is None):
+ if self.api_client.client_side_validation and ('version' not in params or
+ params['version'] is None): # noqa: E501
raise ValueError("Missing the required parameter `version` when calling `get_dashboard_version`") # noqa: E501
collection_formats = {}
@@ -815,7 +1101,102 @@ def get_dashboard_version_with_http_info(self, id, version, **kwargs): # noqa:
files=local_var_files,
response_type='ResponseContainerDashboard', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_dashboard_access(self, **kwargs): # noqa: E501
+ """Removes the specified ids from the given dashboards' ACL # 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_dashboard_access(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[AccessControlListWriteDTO] body:
+ :return: None
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.remove_dashboard_access_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.remove_dashboard_access_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def remove_dashboard_access_with_http_info(self, **kwargs): # noqa: E501
+ """Removes the specified ids from the given dashboards' ACL # 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_dashboard_access_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[AccessControlListWriteDTO] body:
+ :return: None
+ 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_dashboard_access" % 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/dashboard/acl/remove', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type=None, # 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'),
@@ -826,11 +1207,11 @@ def remove_dashboard_tag(self, id, tag_value, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_dashboard_tag(id, tag_value, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_dashboard_tag(id, tag_value, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str tag_value: (required)
:return: ResponseContainer
@@ -838,7 +1219,7 @@ def remove_dashboard_tag(self, id, tag_value, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.remove_dashboard_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501
else:
(data) = self.remove_dashboard_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501
@@ -849,11 +1230,11 @@ def remove_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # noqa:
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_dashboard_tag_with_http_info(id, tag_value, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_dashboard_tag_with_http_info(id, tag_value, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str tag_value: (required)
:return: ResponseContainer
@@ -862,7 +1243,7 @@ def remove_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # noqa:
"""
all_params = ['id', 'tag_value'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -877,12 +1258,12 @@ def remove_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # noqa:
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `remove_dashboard_tag`") # noqa: E501
# verify the required parameter 'tag_value' is set
- if ('tag_value' not in params or
- params['tag_value'] is None):
+ if self.api_client.client_side_validation and ('tag_value' not in params or
+ params['tag_value'] is None): # noqa: E501
raise ValueError("Missing the required parameter `tag_value` when calling `remove_dashboard_tag`") # noqa: E501
collection_formats = {}
@@ -918,7 +1299,102 @@ def remove_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # noqa:
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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 set_dashboard_acl(self, **kwargs): # noqa: E501
+ """Set ACL for the specified dashboards # 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.set_dashboard_acl(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[AccessControlListWriteDTO] body:
+ :return: None
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.set_dashboard_acl_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.set_dashboard_acl_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def set_dashboard_acl_with_http_info(self, **kwargs): # noqa: E501
+ """Set ACL for the specified dashboards # 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.set_dashboard_acl_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[AccessControlListWriteDTO] body:
+ :return: None
+ 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 set_dashboard_acl" % 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/dashboard/acl/set', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type=None, # 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'),
@@ -929,11 +1405,11 @@ def set_dashboard_tags(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_dashboard_tags(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_dashboard_tags(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param list[str] body:
:return: ResponseContainer
@@ -941,7 +1417,7 @@ def set_dashboard_tags(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.set_dashboard_tags_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.set_dashboard_tags_with_http_info(id, **kwargs) # noqa: E501
@@ -952,11 +1428,11 @@ def set_dashboard_tags_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_dashboard_tags_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_dashboard_tags_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param list[str] body:
:return: ResponseContainer
@@ -965,7 +1441,7 @@ def set_dashboard_tags_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -980,8 +1456,8 @@ def set_dashboard_tags_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `set_dashboard_tags`") # noqa: E501
collection_formats = {}
@@ -1021,7 +1497,7 @@ def set_dashboard_tags_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -1032,18 +1508,18 @@ def undelete_dashboard(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.undelete_dashboard(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.undelete_dashboard(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerDashboard
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.undelete_dashboard_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.undelete_dashboard_with_http_info(id, **kwargs) # noqa: E501
@@ -1054,11 +1530,11 @@ def undelete_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.undelete_dashboard_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.undelete_dashboard_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerDashboard
If the method is called asynchronously,
@@ -1066,7 +1542,7 @@ def undelete_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -1081,8 +1557,8 @@ def undelete_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `undelete_dashboard`") # noqa: E501
collection_formats = {}
@@ -1116,7 +1592,102 @@ def undelete_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerDashboard', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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 unfavorite_dashboard(self, id, **kwargs): # noqa: E501
+ """Unmark a dashboard as favorite # 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.unfavorite_dashboard(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainer
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.unfavorite_dashboard_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.unfavorite_dashboard_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def unfavorite_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
+ """Unmark a dashboard as favorite # 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.unfavorite_dashboard_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainer
+ 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 unfavorite_dashboard" % 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 `unfavorite_dashboard`") # 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/dashboard/{id}/unfavorite', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainer', # 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'),
@@ -1127,11 +1698,11 @@ def update_dashboard(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_dashboard(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_dashboard(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param Dashboard body: Example Body: { \"name\": \"Dashboard API example\", \"id\": \"api-example\", \"url\": \"api-example\", \"description\": \"Dashboard Description\", \"sections\": [ { \"name\": \"Section 1\", \"rows\": [ { \"charts\": [ { \"name\": \"Chart 1\", \"description\": \"description1\", \"sources\": [ { \"name\": \"Source1\", \"query\": \"ts()\" } ] } ] } ] } ] }
:return: ResponseContainerDashboard
@@ -1139,7 +1710,7 @@ def update_dashboard(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_dashboard_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_dashboard_with_http_info(id, **kwargs) # noqa: E501
@@ -1150,11 +1721,11 @@ def update_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_dashboard_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_dashboard_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param Dashboard body: Example Body: { \"name\": \"Dashboard API example\", \"id\": \"api-example\", \"url\": \"api-example\", \"description\": \"Dashboard Description\", \"sections\": [ { \"name\": \"Section 1\", \"rows\": [ { \"charts\": [ { \"name\": \"Chart 1\", \"description\": \"description1\", \"sources\": [ { \"name\": \"Source1\", \"query\": \"ts()\" } ] } ] } ] } ] }
:return: ResponseContainerDashboard
@@ -1163,7 +1734,7 @@ def update_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -1178,8 +1749,8 @@ def update_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_dashboard`") # noqa: E501
collection_formats = {}
@@ -1219,7 +1790,7 @@ def update_dashboard_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerDashboard', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/derived_metric_definition_api.py b/wavefront_api_client/api/derived_metric_api.py
similarity index 69%
rename from wavefront_api_client/api/derived_metric_definition_api.py
rename to wavefront_api_client/api/derived_metric_api.py
index b236571f..8cc7424c 100644
--- a/wavefront_api_client/api/derived_metric_definition_api.py
+++ b/wavefront_api_client/api/derived_metric_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ from wavefront_api_client.api_client import ApiClient -class DerivedMetricDefinitionApi(object): +class DerivedMetricApi(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -33,16 +33,16 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def add_tag_to_derived_metric_definition(self, id, tag_value, **kwargs): # noqa: E501 - """Add a tag to a specific Derived Metric Definition # noqa: E501 + def add_tag_to_derived_metric(self, id, tag_value, **kwargs): # noqa: E501 + """Add a tag to a specific Derived Metric # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_tag_to_derived_metric_definition(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_tag_to_derived_metric(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -50,22 +50,22 @@ def add_tag_to_derived_metric_definition(self, id, tag_value, **kwargs): # noqa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.add_tag_to_derived_metric_definition_with_http_info(id, tag_value, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.add_tag_to_derived_metric_with_http_info(id, tag_value, **kwargs) # noqa: E501 else: - (data) = self.add_tag_to_derived_metric_definition_with_http_info(id, tag_value, **kwargs) # noqa: E501 + (data) = self.add_tag_to_derived_metric_with_http_info(id, tag_value, **kwargs) # noqa: E501 return data - def add_tag_to_derived_metric_definition_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 - """Add a tag to a specific Derived Metric Definition # noqa: E501 + def add_tag_to_derived_metric_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 + """Add a tag to a specific Derived Metric # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_tag_to_derived_metric_definition_with_http_info(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_tag_to_derived_metric_with_http_info(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -74,7 +74,7 @@ def add_tag_to_derived_metric_definition_with_http_info(self, id, tag_value, **k """ all_params = ['id', 'tag_value'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -84,18 +84,18 @@ def add_tag_to_derived_metric_definition_with_http_info(self, id, tag_value, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method add_tag_to_derived_metric_definition" % key + " to method add_tag_to_derived_metric" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `add_tag_to_derived_metric_definition`") # noqa: E501 + 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 `add_tag_to_derived_metric`") # noqa: E501 # verify the required parameter 'tag_value' is set - if ('tag_value' not in params or - params['tag_value'] is None): - raise ValueError("Missing the required parameter `tag_value` when calling `add_tag_to_derived_metric_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('tag_value' not in params or + params['tag_value'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `tag_value` when calling `add_tag_to_derived_metric`") # noqa: E501 collection_formats = {} @@ -125,7 +125,7 @@ def add_tag_to_derived_metric_definition_with_http_info(self, id, tag_value, **k auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/derivedmetricdefinition/{id}/tag/{tagValue}', 'PUT', + '/api/v2/derivedmetric/{id}/tag/{tagValue}', 'PUT', path_params, query_params, header_params, @@ -134,52 +134,52 @@ def add_tag_to_derived_metric_definition_with_http_info(self, id, tag_value, **k files=local_var_files, response_type='ResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_derived_metric_definition(self, **kwargs): # noqa: E501 + def create_derived_metric(self, **kwargs): # noqa: E501 """Create a specific derived metric definition # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_derived_metric_definition(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_derived_metric(async_req=True) >>> result = thread.get() - :param async bool - :param DerivedMetricDefinition body: Example Body:{ \"name\": \"Query Name\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\" }
+ :param async_req bool
+ :param DerivedMetricDefinition body: Example Body: { \"name\": \"Query Name\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"derivedMetricTag1\" ] } }
:return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.create_derived_metric_definition_with_http_info(**kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.create_derived_metric_with_http_info(**kwargs) # noqa: E501
else:
- (data) = self.create_derived_metric_definition_with_http_info(**kwargs) # noqa: E501
+ (data) = self.create_derived_metric_with_http_info(**kwargs) # noqa: E501
return data
- def create_derived_metric_definition_with_http_info(self, **kwargs): # noqa: E501
+ def create_derived_metric_with_http_info(self, **kwargs): # noqa: E501
"""Create a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_derived_metric_definition_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_derived_metric_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
- :param DerivedMetricDefinition body: Example Body: { \"name\": \"Query Name\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\" }
+ :param async_req bool
+ :param DerivedMetricDefinition body: Example Body: { \"name\": \"Query Name\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"derivedMetricTag1\" ] } }
:return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -189,7 +189,7 @@ def create_derived_metric_definition_with_http_info(self, **kwargs): # noqa: E5
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method create_derived_metric_definition" % key
+ " to method create_derived_metric" % key
)
params[key] = val
del params['kwargs']
@@ -220,7 +220,7 @@ def create_derived_metric_definition_with_http_info(self, **kwargs): # noqa: E5
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition', 'POST',
+ '/api/v2/derivedmetric', 'POST',
path_params,
query_params,
header_params,
@@ -229,52 +229,54 @@ def create_derived_metric_definition_with_http_info(self, **kwargs): # noqa: E5
files=local_var_files,
response_type='ResponseContainerDerivedMetricDefinition', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_derived_metric_definition(self, id, **kwargs): # noqa: E501
+ def delete_derived_metric(self, id, **kwargs): # noqa: E501
"""Delete a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_derived_metric_definition(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_derived_metric(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool skip_trash:
:return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.delete_derived_metric_definition_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.delete_derived_metric_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.delete_derived_metric_definition_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.delete_derived_metric_with_http_info(id, **kwargs) # noqa: E501
return data
- def delete_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa: E501
+ def delete_derived_metric_with_http_info(self, id, **kwargs): # noqa: E501
"""Delete a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_derived_metric_definition_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_derived_metric_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool skip_trash:
:return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params = ['id', 'skip_trash'] # noqa: E501
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -284,14 +286,14 @@ def delete_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method delete_derived_metric_definition" % key
+ " to method delete_derived_metric" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `delete_derived_metric_definition`") # noqa: E501
+ 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 `delete_derived_metric`") # noqa: E501
collection_formats = {}
@@ -300,6 +302,8 @@ def delete_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa
path_params['id'] = params['id'] # noqa: E501
query_params = []
+ if 'skip_trash' in params:
+ query_params.append(('skipTrash', params['skip_trash'])) # noqa: E501
header_params = {}
@@ -315,7 +319,7 @@ def delete_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition/{id}', 'DELETE',
+ '/api/v2/derivedmetric/{id}', 'DELETE',
path_params,
query_params,
header_params,
@@ -324,22 +328,22 @@ def delete_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa
files=local_var_files,
response_type='ResponseContainerDerivedMetricDefinition', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_all_derived_metric_definitions(self, **kwargs): # noqa: E501
+ def get_all_derived_metrics(self, **kwargs): # noqa: E501
"""Get all derived metric definitions 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=True
- >>> thread = api.get_all_derived_metric_definitions(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_derived_metrics(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedDerivedMetricDefinition
@@ -347,22 +351,22 @@ def get_all_derived_metric_definitions(self, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_all_derived_metric_definitions_with_http_info(**kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.get_all_derived_metrics_with_http_info(**kwargs) # noqa: E501
else:
- (data) = self.get_all_derived_metric_definitions_with_http_info(**kwargs) # noqa: E501
+ (data) = self.get_all_derived_metrics_with_http_info(**kwargs) # noqa: E501
return data
- def get_all_derived_metric_definitions_with_http_info(self, **kwargs): # noqa: E501
+ def get_all_derived_metrics_with_http_info(self, **kwargs): # noqa: E501
"""Get all derived metric definitions 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=True
- >>> thread = api.get_all_derived_metric_definitions_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_derived_metrics_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedDerivedMetricDefinition
@@ -371,7 +375,7 @@ def get_all_derived_metric_definitions_with_http_info(self, **kwargs): # noqa:
"""
all_params = ['offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -381,7 +385,7 @@ def get_all_derived_metric_definitions_with_http_info(self, **kwargs): # noqa:
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_all_derived_metric_definitions" % key
+ " to method get_all_derived_metrics" % key
)
params[key] = val
del params['kwargs']
@@ -410,7 +414,7 @@ def get_all_derived_metric_definitions_with_http_info(self, **kwargs): # noqa:
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition', 'GET',
+ '/api/v2/derivedmetric', 'GET',
path_params,
query_params,
header_params,
@@ -419,54 +423,52 @@ def get_all_derived_metric_definitions_with_http_info(self, **kwargs): # noqa:
files=local_var_files,
response_type='ResponseContainerPagedDerivedMetricDefinition', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_derived_metric_definition_by_version(self, id, version, **kwargs): # noqa: E501
- """Get a specific historical version of a specific derived metric definition # noqa: E501
+ def get_derived_metric(self, id, **kwargs): # noqa: E501
+ """Get a specific registered query # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_derived_metric_definition_by_version(id, version, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_derived_metric(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param int version: (required)
:return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_derived_metric_definition_by_version_with_http_info(id, version, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.get_derived_metric_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.get_derived_metric_definition_by_version_with_http_info(id, version, **kwargs) # noqa: E501
+ (data) = self.get_derived_metric_with_http_info(id, **kwargs) # noqa: E501
return data
- def get_derived_metric_definition_by_version_with_http_info(self, id, version, **kwargs): # noqa: E501
- """Get a specific historical version of a specific derived metric definition # noqa: E501
+ def get_derived_metric_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific registered query # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_derived_metric_definition_by_version_with_http_info(id, version, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_derived_metric_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param int version: (required)
:return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id', 'version'] # noqa: E501
- all_params.append('async')
+ 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')
@@ -476,26 +478,20 @@ def get_derived_metric_definition_by_version_with_http_info(self, id, version, *
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_derived_metric_definition_by_version" % key
+ " to method get_derived_metric" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `get_derived_metric_definition_by_version`") # noqa: E501
- # verify the required parameter 'version' is set
- if ('version' not in params or
- params['version'] is None):
- raise ValueError("Missing the required parameter `version` when calling `get_derived_metric_definition_by_version`") # noqa: E501
+ 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_derived_metric`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
- if 'version' in params:
- path_params['version'] = params['version'] # noqa: E501
query_params = []
@@ -513,7 +509,7 @@ def get_derived_metric_definition_by_version_with_http_info(self, id, version, *
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition/{id}/history/{version}', 'GET',
+ '/api/v2/derivedmetric/{id}', 'GET',
path_params,
query_params,
header_params,
@@ -522,56 +518,54 @@ def get_derived_metric_definition_by_version_with_http_info(self, id, version, *
files=local_var_files,
response_type='ResponseContainerDerivedMetricDefinition', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_derived_metric_definition_history(self, id, **kwargs): # noqa: E501
- """Get the version history of a specific derived metric definition # noqa: E501
+ def get_derived_metric_by_version(self, id, version, **kwargs): # noqa: E501
+ """Get a specific historical version of a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_derived_metric_definition_history(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_derived_metric_by_version(id, version, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param int offset:
- :param int limit:
- :return: ResponseContainerHistoryResponse
+ :param int version: (required)
+ :return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_derived_metric_definition_history_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.get_derived_metric_by_version_with_http_info(id, version, **kwargs) # noqa: E501
else:
- (data) = self.get_derived_metric_definition_history_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.get_derived_metric_by_version_with_http_info(id, version, **kwargs) # noqa: E501
return data
- def get_derived_metric_definition_history_with_http_info(self, id, **kwargs): # noqa: E501
- """Get the version history of a specific derived metric definition # noqa: E501
+ def get_derived_metric_by_version_with_http_info(self, id, version, **kwargs): # noqa: E501
+ """Get a specific historical version of a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_derived_metric_definition_history_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_derived_metric_by_version_with_http_info(id, version, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param int offset:
- :param int limit:
- :return: ResponseContainerHistoryResponse
+ :param int version: (required)
+ :return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id', 'offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params = ['id', 'version'] # noqa: E501
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -581,26 +575,28 @@ def get_derived_metric_definition_history_with_http_info(self, id, **kwargs): #
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_derived_metric_definition_history" % key
+ " to method get_derived_metric_by_version" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `get_derived_metric_definition_history`") # noqa: E501
+ 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_derived_metric_by_version`") # noqa: E501
+ # verify the required parameter 'version' is set
+ if self.api_client.client_side_validation and ('version' not in params or
+ params['version'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `version` when calling `get_derived_metric_by_version`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
+ if 'version' in params:
+ path_params['version'] = params['version'] # noqa: E501
query_params = []
- if 'offset' in params:
- query_params.append(('offset', params['offset'])) # noqa: E501
- if 'limit' in params:
- query_params.append(('limit', params['limit'])) # noqa: E501
header_params = {}
@@ -616,61 +612,65 @@ def get_derived_metric_definition_history_with_http_info(self, id, **kwargs): #
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition/{id}/history', 'GET',
+ '/api/v2/derivedmetric/{id}/history/{version}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='ResponseContainerHistoryResponse', # noqa: E501
+ response_type='ResponseContainerDerivedMetricDefinition', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_derived_metric_definition_tags(self, id, **kwargs): # noqa: E501
- """Get all tags associated with a specific derived metric definition # noqa: E501
+ def get_derived_metric_history(self, id, **kwargs): # noqa: E501
+ """Get the version history of a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_derived_metric_definition_tags(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_derived_metric_history(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :return: ResponseContainerTagsResponse
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerHistoryResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_derived_metric_definition_tags_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.get_derived_metric_history_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.get_derived_metric_definition_tags_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.get_derived_metric_history_with_http_info(id, **kwargs) # noqa: E501
return data
- def get_derived_metric_definition_tags_with_http_info(self, id, **kwargs): # noqa: E501
- """Get all tags associated with a specific derived metric definition # noqa: E501
+ def get_derived_metric_history_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get the version history of a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_derived_metric_definition_tags_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_derived_metric_history_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :return: ResponseContainerTagsResponse
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerHistoryResponse
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params = ['id', 'offset', 'limit'] # noqa: E501
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -680,14 +680,14 @@ def get_derived_metric_definition_tags_with_http_info(self, id, **kwargs): # no
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_derived_metric_definition_tags" % key
+ " to method get_derived_metric_history" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `get_derived_metric_definition_tags`") # noqa: E501
+ 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_derived_metric_history`") # noqa: E501
collection_formats = {}
@@ -696,6 +696,10 @@ def get_derived_metric_definition_tags_with_http_info(self, id, **kwargs): # no
path_params['id'] = params['id'] # noqa: E501
query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # noqa: E501
header_params = {}
@@ -711,61 +715,61 @@ def get_derived_metric_definition_tags_with_http_info(self, id, **kwargs): # no
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition/{id}/tag', 'GET',
+ '/api/v2/derivedmetric/{id}/history', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='ResponseContainerTagsResponse', # noqa: E501
+ response_type='ResponseContainerHistoryResponse', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_registered_query(self, id, **kwargs): # noqa: E501
- """Get a specific registered query # noqa: E501
+ def get_derived_metric_tags(self, id, **kwargs): # noqa: E501
+ """Get all tags associated with a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_registered_query(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_derived_metric_tags(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :return: ResponseContainerDerivedMetricDefinition
+ :return: ResponseContainerTagsResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_registered_query_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.get_derived_metric_tags_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.get_registered_query_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.get_derived_metric_tags_with_http_info(id, **kwargs) # noqa: E501
return data
- def get_registered_query_with_http_info(self, id, **kwargs): # noqa: E501
- """Get a specific registered query # noqa: E501
+ def get_derived_metric_tags_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get all tags associated with a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_registered_query_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_derived_metric_tags_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :return: ResponseContainerDerivedMetricDefinition
+ :return: ResponseContainerTagsResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -775,14 +779,14 @@ def get_registered_query_with_http_info(self, id, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_registered_query" % key
+ " to method get_derived_metric_tags" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `get_registered_query`") # noqa: E501
+ 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_derived_metric_tags`") # noqa: E501
collection_formats = {}
@@ -806,31 +810,31 @@ def get_registered_query_with_http_info(self, id, **kwargs): # noqa: E501
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition/{id}', 'GET',
+ '/api/v2/derivedmetric/{id}/tag', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='ResponseContainerDerivedMetricDefinition', # noqa: E501
+ response_type='ResponseContainerTagsResponse', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_tag_from_derived_metric_definition(self, id, tag_value, **kwargs): # noqa: E501
- """Remove a tag from a specific Derived Metric Definition # noqa: E501
+ def remove_tag_from_derived_metric(self, id, tag_value, **kwargs): # noqa: E501
+ """Remove a tag from a specific Derived Metric # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_tag_from_derived_metric_definition(id, tag_value, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_tag_from_derived_metric(id, tag_value, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str tag_value: (required)
:return: ResponseContainer
@@ -838,22 +842,22 @@ def remove_tag_from_derived_metric_definition(self, id, tag_value, **kwargs): #
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.remove_tag_from_derived_metric_definition_with_http_info(id, tag_value, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.remove_tag_from_derived_metric_with_http_info(id, tag_value, **kwargs) # noqa: E501
else:
- (data) = self.remove_tag_from_derived_metric_definition_with_http_info(id, tag_value, **kwargs) # noqa: E501
+ (data) = self.remove_tag_from_derived_metric_with_http_info(id, tag_value, **kwargs) # noqa: E501
return data
- def remove_tag_from_derived_metric_definition_with_http_info(self, id, tag_value, **kwargs): # noqa: E501
- """Remove a tag from a specific Derived Metric Definition # noqa: E501
+ def remove_tag_from_derived_metric_with_http_info(self, id, tag_value, **kwargs): # noqa: E501
+ """Remove a tag from a specific Derived Metric # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_tag_from_derived_metric_definition_with_http_info(id, tag_value, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_tag_from_derived_metric_with_http_info(id, tag_value, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str tag_value: (required)
:return: ResponseContainer
@@ -862,7 +866,7 @@ def remove_tag_from_derived_metric_definition_with_http_info(self, id, tag_value
"""
all_params = ['id', 'tag_value'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -872,18 +876,18 @@ def remove_tag_from_derived_metric_definition_with_http_info(self, id, tag_value
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method remove_tag_from_derived_metric_definition" % key
+ " to method remove_tag_from_derived_metric" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `remove_tag_from_derived_metric_definition`") # noqa: E501
+ 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 `remove_tag_from_derived_metric`") # noqa: E501
# verify the required parameter 'tag_value' is set
- if ('tag_value' not in params or
- params['tag_value'] is None):
- raise ValueError("Missing the required parameter `tag_value` when calling `remove_tag_from_derived_metric_definition`") # noqa: E501
+ if self.api_client.client_side_validation and ('tag_value' not in params or
+ params['tag_value'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `tag_value` when calling `remove_tag_from_derived_metric`") # noqa: E501
collection_formats = {}
@@ -909,7 +913,7 @@ def remove_tag_from_derived_metric_definition_with_http_info(self, id, tag_value
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition/{id}/tag/{tagValue}', 'DELETE',
+ '/api/v2/derivedmetric/{id}/tag/{tagValue}', 'DELETE',
path_params,
query_params,
header_params,
@@ -918,22 +922,22 @@ def remove_tag_from_derived_metric_definition_with_http_info(self, id, tag_value
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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 set_derived_metric_definition_tags(self, id, **kwargs): # noqa: E501
+ def set_derived_metric_tags(self, id, **kwargs): # noqa: E501
"""Set all tags associated with a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_derived_metric_definition_tags(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_derived_metric_tags(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param list[str] body:
:return: ResponseContainer
@@ -941,22 +945,22 @@ def set_derived_metric_definition_tags(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.set_derived_metric_definition_tags_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.set_derived_metric_tags_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.set_derived_metric_definition_tags_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.set_derived_metric_tags_with_http_info(id, **kwargs) # noqa: E501
return data
- def set_derived_metric_definition_tags_with_http_info(self, id, **kwargs): # noqa: E501
+ def set_derived_metric_tags_with_http_info(self, id, **kwargs): # noqa: E501
"""Set all tags associated with a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_derived_metric_definition_tags_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_derived_metric_tags_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param list[str] body:
:return: ResponseContainer
@@ -965,7 +969,7 @@ def set_derived_metric_definition_tags_with_http_info(self, id, **kwargs): # no
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -975,14 +979,14 @@ def set_derived_metric_definition_tags_with_http_info(self, id, **kwargs): # no
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method set_derived_metric_definition_tags" % key
+ " to method set_derived_metric_tags" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `set_derived_metric_definition_tags`") # noqa: E501
+ 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 `set_derived_metric_tags`") # noqa: E501
collection_formats = {}
@@ -1012,7 +1016,7 @@ def set_derived_metric_definition_tags_with_http_info(self, id, **kwargs): # no
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition/{id}/tag', 'POST',
+ '/api/v2/derivedmetric/{id}/tag', 'POST',
path_params,
query_params,
header_params,
@@ -1021,44 +1025,44 @@ def set_derived_metric_definition_tags_with_http_info(self, id, **kwargs): # no
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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 undelete_derived_metric_definition(self, id, **kwargs): # noqa: E501
+ def undelete_derived_metric(self, id, **kwargs): # noqa: E501
"""Undelete a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.undelete_derived_metric_definition(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.undelete_derived_metric(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.undelete_derived_metric_definition_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.undelete_derived_metric_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.undelete_derived_metric_definition_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.undelete_derived_metric_with_http_info(id, **kwargs) # noqa: E501
return data
- def undelete_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa: E501
+ def undelete_derived_metric_with_http_info(self, id, **kwargs): # noqa: E501
"""Undelete a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.undelete_derived_metric_definition_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.undelete_derived_metric_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerDerivedMetricDefinition
If the method is called asynchronously,
@@ -1066,7 +1070,7 @@ def undelete_derived_metric_definition_with_http_info(self, id, **kwargs): # no
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -1076,14 +1080,14 @@ def undelete_derived_metric_definition_with_http_info(self, id, **kwargs): # no
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method undelete_derived_metric_definition" % key
+ " to method undelete_derived_metric" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `undelete_derived_metric_definition`") # noqa: E501
+ 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 `undelete_derived_metric`") # noqa: E501
collection_formats = {}
@@ -1107,7 +1111,7 @@ def undelete_derived_metric_definition_with_http_info(self, id, **kwargs): # no
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition/{id}/undelete', 'POST',
+ '/api/v2/derivedmetric/{id}/undelete', 'POST',
path_params,
query_params,
header_params,
@@ -1116,22 +1120,22 @@ def undelete_derived_metric_definition_with_http_info(self, id, **kwargs): # no
files=local_var_files,
response_type='ResponseContainerDerivedMetricDefinition', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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 update_derived_metric_definition(self, id, **kwargs): # noqa: E501
+ def update_derived_metric(self, id, **kwargs): # noqa: E501
"""Update a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_derived_metric_definition(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_derived_metric(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param DerivedMetricDefinition body: Example Body: { \"id\": \"1459375928549\", \"name\": \"Query Name\", \"createUserId\": \"user\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\" }
:return: ResponseContainerDerivedMetricDefinition
@@ -1139,22 +1143,22 @@ def update_derived_metric_definition(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.update_derived_metric_definition_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.update_derived_metric_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.update_derived_metric_definition_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.update_derived_metric_with_http_info(id, **kwargs) # noqa: E501
return data
- def update_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa: E501
+ def update_derived_metric_with_http_info(self, id, **kwargs): # noqa: E501
"""Update a specific derived metric definition # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_derived_metric_definition_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_derived_metric_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param DerivedMetricDefinition body: Example Body: { \"id\": \"1459375928549\", \"name\": \"Query Name\", \"createUserId\": \"user\", \"query\": \"aliasMetric(ts(~sample.cpu.loadavg.1m), \\\"my.new.metric\\\")\", \"minutes\": 5, \"additionalInformation\": \"Additional Info\" }
:return: ResponseContainerDerivedMetricDefinition
@@ -1163,7 +1167,7 @@ def update_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -1173,14 +1177,14 @@ def update_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method update_derived_metric_definition" % key
+ " to method update_derived_metric" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `update_derived_metric_definition`") # noqa: E501
+ 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 `update_derived_metric`") # noqa: E501
collection_formats = {}
@@ -1210,7 +1214,7 @@ def update_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/derivedmetricdefinition/{id}', 'PUT',
+ '/api/v2/derivedmetric/{id}', 'PUT',
path_params,
query_params,
header_params,
@@ -1219,7 +1223,7 @@ def update_derived_metric_definition_with_http_info(self, id, **kwargs): # noqa
files=local_var_files,
response_type='ResponseContainerDerivedMetricDefinition', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/direct_ingestion_api.py b/wavefront_api_client/api/direct_ingestion_api.py
new file mode 100644
index 00000000..2b133c20
--- /dev/null
+++ b/wavefront_api_client/api/direct_ingestion_api.py
@@ -0,0 +1,129 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class DirectIngestionApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def report(self, **kwargs): # noqa: E501 + """Directly ingest data/data stream with specified format # 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.report(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str f: Format of data to be ingested + :param str body: Data to be ingested, in the specified format. See https://docs.wavefront.com/direct_ingestion.html for more detail on how to format the data. Example in \"wavefront\" format:test.metric 100 source=test.sourcewhich ingests a time series point with metric name \"test.metric\", source name \"test.source\", and value of 100 with timestamp of now. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.report_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.report_with_http_info(**kwargs) # noqa: E501 + return data + + def report_with_http_info(self, **kwargs): # noqa: E501 + """Directly ingest data/data stream with specified format # 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.report_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str f: Format of data to be ingested + :param str body: Data to be ingested, in the specified format. See https://docs.wavefront.com/direct_ingestion.html for more detail on how to format the data. Example in \"wavefront\" format:
test.metric 100 source=test.sourcewhich ingests a time series point with metric name \"test.metric\", source name \"test.source\", and value of 100 with timestamp of now. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['f', '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 report" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'f' in params: + query_params.append(('f', params['f'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/octet-stream', 'application/x-www-form-urlencoded', 'text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/report', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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) diff --git a/wavefront_api_client/api/event_api.py b/wavefront_api_client/api/event_api.py index ca9050d3..bf30385e 100644 --- a/wavefront_api_client/api/event_api.py +++ b/wavefront_api_client/api/event_api.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -
The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,11 +38,11 @@ def add_event_tag(self, id, tag_value, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_event_tag(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_event_tag(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -50,7 +50,7 @@ def add_event_tag(self, id, tag_value, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.add_event_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 else: (data) = self.add_event_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 @@ -61,11 +61,11 @@ def add_event_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_event_tag_with_http_info(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_event_tag_with_http_info(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -74,7 +74,7 @@ def add_event_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 """ all_params = ['id', 'tag_value'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -89,12 +89,12 @@ def add_event_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `add_event_tag`") # noqa: E501 # verify the required parameter 'tag_value' is set - if ('tag_value' not in params or - params['tag_value'] is None): + if self.api_client.client_side_validation and ('tag_value' not in params or + params['tag_value'] is None): # noqa: E501 raise ValueError("Missing the required parameter `tag_value` when calling `add_event_tag`") # noqa: E501 collection_formats = {} @@ -134,44 +134,44 @@ def add_event_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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 close_event(self, id, **kwargs): # noqa: E501 + def close_user_event(self, id, **kwargs): # noqa: E501 """Close a specific event # noqa: E501 - # noqa: E501 + This API supports only user events. The API does not support close of system events (e.g. alert events). # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.close_event(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.close_user_event(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerEvent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.close_event_with_http_info(id, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.close_user_event_with_http_info(id, **kwargs) # noqa: E501 else: - (data) = self.close_event_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.close_user_event_with_http_info(id, **kwargs) # noqa: E501 return data - def close_event_with_http_info(self, id, **kwargs): # noqa: E501 + def close_user_event_with_http_info(self, id, **kwargs): # noqa: E501 """Close a specific event # noqa: E501 - # noqa: E501 + This API supports only user events. The API does not support close of system events (e.g. alert events). # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.close_event_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.close_user_event_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerEvent If the method is called asynchronously, @@ -179,7 +179,7 @@ def close_event_with_http_info(self, id, **kwargs): # noqa: E501 """ all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -189,14 +189,14 @@ def close_event_with_http_info(self, id, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method close_event" % key + " to method close_user_event" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `close_event`") # noqa: E501 + 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 `close_user_event`") # noqa: E501 collection_formats = {} @@ -229,7 +229,7 @@ def close_event_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerEvent', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -240,18 +240,18 @@ def create_event(self, **kwargs): # noqa: E501 The following fields are readonly and will be ignored when passed in the request:id, isEphemeral, isUserEvent, runningState, canDelete, canClose, creatorType, createdAt, updatedAt, createdEpochMillis, updatedEpochMillis, updaterId, creatorId, and summarizedEvents # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_event(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_event(async_req=True)
>>> result = thread.get()
- :param async bool
- :param Event body: Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"startTime\": 1490000000000, \"endTime\": 1490000000001 }
+ :param async_req bool
+ :param Event body: Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"tags\" : [ \"eventTag1\" ], \"startTime\": 1490000000000, \"endTime\": 1490000000001 }
:return: ResponseContainerEvent
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_event_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_event_with_http_info(**kwargs) # noqa: E501
@@ -262,19 +262,19 @@ def create_event_with_http_info(self, **kwargs): # noqa: E501
The following fields are readonly and will be ignored when passed in the request: id, isEphemeral, isUserEvent, runningState, canDelete, canClose, creatorType, createdAt, updatedAt, createdEpochMillis, updatedEpochMillis, updaterId, creatorId, and summarizedEvents # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_event_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_event_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
- :param Event body: Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"startTime\": 1490000000000, \"endTime\": 1490000000001 }
+ :param async_req bool
+ :param Event body: Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"tags\" : [ \"eventTag1\" ], \"startTime\": 1490000000000, \"endTime\": 1490000000001 }
:return: ResponseContainerEvent
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -324,44 +324,44 @@ def create_event_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerEvent', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_event(self, id, **kwargs): # noqa: E501
- """Delete a specific event # noqa: E501
+ def delete_user_event(self, id, **kwargs): # noqa: E501
+ """Delete a specific user event # noqa: E501
- # noqa: E501
+ This API supports only user events. The API does not support deletion of system events (e.g. alert events). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_event(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_user_event(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerEvent
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.delete_event_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.delete_user_event_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.delete_event_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.delete_user_event_with_http_info(id, **kwargs) # noqa: E501
return data
- def delete_event_with_http_info(self, id, **kwargs): # noqa: E501
- """Delete a specific event # noqa: E501
+ def delete_user_event_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a specific user event # noqa: E501
- # noqa: E501
+ This API supports only user events. The API does not support deletion of system events (e.g. alert events). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_event_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_user_event_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerEvent
If the method is called asynchronously,
@@ -369,7 +369,7 @@ def delete_event_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -379,14 +379,14 @@ def delete_event_with_http_info(self, id, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method delete_event" % key
+ " to method delete_user_event" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `delete_event`") # noqa: E501
+ 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 `delete_user_event`") # noqa: E501
collection_formats = {}
@@ -419,7 +419,308 @@ def delete_event_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerEvent', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_alert_event_queries_slug(self, id, **kwargs): # noqa: E501
+ """If the specified event is associated with an alert, returns a slug encoding the queries having to do with that alert firing or resolution # 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_alert_event_queries_slug(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :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.get_alert_event_queries_slug_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_alert_event_queries_slug_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_alert_event_queries_slug_with_http_info(self, id, **kwargs): # noqa: E501
+ """If the specified event is associated with an alert, returns a slug encoding the queries having to do with that alert firing or resolution # 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_alert_event_queries_slug_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerString
+ 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_alert_event_queries_slug" % 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_alert_event_queries_slug`") # 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/event/{id}/alertQueriesSlug', 'GET',
+ 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 get_alert_firing_details(self, id, **kwargs): # noqa: E501
+ """Return details of a particular alert firing, including all the series that fired during the referred alert firing # 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_alert_firing_details(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: id of an event of type alert or alert-detail, used to lookup the particular alert firing (required)
+ :return: ResponseContainerSetSourceLabelPair
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_alert_firing_details_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_alert_firing_details_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_alert_firing_details_with_http_info(self, id, **kwargs): # noqa: E501
+ """Return details of a particular alert firing, including all the series that fired during the referred alert firing # 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_alert_firing_details_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: id of an event of type alert or alert-detail, used to lookup the particular alert firing (required)
+ :return: ResponseContainerSetSourceLabelPair
+ 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_alert_firing_details" % 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_alert_firing_details`") # 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/event/{id}/alertFiringDetails', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSetSourceLabelPair', # 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_alert_firing_events(self, alert_id, **kwargs): # noqa: E501
+ """Get firings events of an alert within a time range # 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_alert_firing_events(alert_id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str alert_id: (required)
+ :param int earliest_start_time_epoch_millis:
+ :param int latest_start_time_epoch_millis:
+ :param int limit:
+ :param bool asc:
+ :return: ResponseContainerPagedEvent
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_alert_firing_events_with_http_info(alert_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_alert_firing_events_with_http_info(alert_id, **kwargs) # noqa: E501
+ return data
+
+ def get_alert_firing_events_with_http_info(self, alert_id, **kwargs): # noqa: E501
+ """Get firings events of an alert within a time range # 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_alert_firing_events_with_http_info(alert_id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str alert_id: (required)
+ :param int earliest_start_time_epoch_millis:
+ :param int latest_start_time_epoch_millis:
+ :param int limit:
+ :param bool asc:
+ :return: ResponseContainerPagedEvent
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['alert_id', 'earliest_start_time_epoch_millis', 'latest_start_time_epoch_millis', 'limit', 'asc'] # 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_alert_firing_events" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'alert_id' is set
+ if self.api_client.client_side_validation and ('alert_id' not in params or
+ params['alert_id'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `alert_id` when calling `get_alert_firing_events`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'alert_id' in params:
+ query_params.append(('alertId', params['alert_id'])) # noqa: E501
+ if 'earliest_start_time_epoch_millis' in params:
+ query_params.append(('earliestStartTimeEpochMillis', params['earliest_start_time_epoch_millis'])) # noqa: E501
+ if 'latest_start_time_epoch_millis' in params:
+ query_params.append(('latestStartTimeEpochMillis', params['latest_start_time_epoch_millis'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # noqa: E501
+ if 'asc' in params:
+ query_params.append(('asc', params['asc'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/event/alertFirings', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedEvent', # 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'),
@@ -430,11 +731,11 @@ def get_all_events_with_time_range(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_events_with_time_range(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_events_with_time_range(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int earliest_start_time_epoch_millis:
:param int latest_start_time_epoch_millis:
:param str cursor:
@@ -444,7 +745,7 @@ def get_all_events_with_time_range(self, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_all_events_with_time_range_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_events_with_time_range_with_http_info(**kwargs) # noqa: E501
@@ -455,11 +756,11 @@ def get_all_events_with_time_range_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_events_with_time_range_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_events_with_time_range_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int earliest_start_time_epoch_millis:
:param int latest_start_time_epoch_millis:
:param str cursor:
@@ -470,7 +771,7 @@ def get_all_events_with_time_range_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['earliest_start_time_epoch_millis', 'latest_start_time_epoch_millis', 'cursor', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -522,7 +823,7 @@ def get_all_events_with_time_range_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerPagedEvent', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -533,18 +834,18 @@ def get_event(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_event(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_event(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerEvent
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_event_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_event_with_http_info(id, **kwargs) # noqa: E501
@@ -555,11 +856,11 @@ def get_event_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_event_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_event_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerEvent
If the method is called asynchronously,
@@ -567,7 +868,7 @@ def get_event_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -582,8 +883,8 @@ def get_event_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_event`") # noqa: E501
collection_formats = {}
@@ -617,7 +918,7 @@ def get_event_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerEvent', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -628,18 +929,18 @@ def get_event_tags(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_event_tags(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_event_tags(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerTagsResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_event_tags_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_event_tags_with_http_info(id, **kwargs) # noqa: E501
@@ -650,11 +951,11 @@ def get_event_tags_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_event_tags_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_event_tags_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerTagsResponse
If the method is called asynchronously,
@@ -662,7 +963,7 @@ def get_event_tags_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -677,8 +978,8 @@ def get_event_tags_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_event_tags`") # noqa: E501
collection_formats = {}
@@ -712,7 +1013,114 @@ def get_event_tags_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerTagsResponse', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_related_events_with_time_span(self, id, **kwargs): # noqa: E501
+ """List all related events for a specific firing event with a time span of one hour # 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_related_events_with_time_span(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param bool is_overlapped:
+ :param str rendering_method:
+ :param int limit:
+ :return: ResponseContainerPagedEvent
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_related_events_with_time_span_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_related_events_with_time_span_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_related_events_with_time_span_with_http_info(self, id, **kwargs): # noqa: E501
+ """List all related events for a specific firing event with a time span of one hour # 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_related_events_with_time_span_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param bool is_overlapped:
+ :param str rendering_method:
+ :param int limit:
+ :return: ResponseContainerPagedEvent
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'is_overlapped', 'rendering_method', 'limit'] # 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_related_events_with_time_span" % 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_related_events_with_time_span`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+
+ query_params = []
+ if 'is_overlapped' in params:
+ query_params.append(('isOverlapped', params['is_overlapped'])) # noqa: E501
+ if 'rendering_method' in params:
+ query_params.append(('renderingMethod', params['rendering_method'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/event/{id}/events', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedEvent', # 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'),
@@ -723,11 +1131,11 @@ def remove_event_tag(self, id, tag_value, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_event_tag(id, tag_value, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_event_tag(id, tag_value, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str tag_value: (required)
:return: ResponseContainer
@@ -735,7 +1143,7 @@ def remove_event_tag(self, id, tag_value, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.remove_event_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501
else:
(data) = self.remove_event_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501
@@ -746,11 +1154,11 @@ def remove_event_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E50
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_event_tag_with_http_info(id, tag_value, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_event_tag_with_http_info(id, tag_value, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str tag_value: (required)
:return: ResponseContainer
@@ -759,7 +1167,7 @@ def remove_event_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E50
"""
all_params = ['id', 'tag_value'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -774,12 +1182,12 @@ def remove_event_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E50
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `remove_event_tag`") # noqa: E501
# verify the required parameter 'tag_value' is set
- if ('tag_value' not in params or
- params['tag_value'] is None):
+ if self.api_client.client_side_validation and ('tag_value' not in params or
+ params['tag_value'] is None): # noqa: E501
raise ValueError("Missing the required parameter `tag_value` when calling `remove_event_tag`") # noqa: E501
collection_formats = {}
@@ -819,7 +1227,7 @@ def remove_event_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E50
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -830,11 +1238,11 @@ def set_event_tags(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_event_tags(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_event_tags(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param list[str] body:
:return: ResponseContainer
@@ -842,7 +1250,7 @@ def set_event_tags(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.set_event_tags_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.set_event_tags_with_http_info(id, **kwargs) # noqa: E501
@@ -853,11 +1261,11 @@ def set_event_tags_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_event_tags_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_event_tags_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param list[str] body:
:return: ResponseContainer
@@ -866,7 +1274,7 @@ def set_event_tags_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -881,8 +1289,8 @@ def set_event_tags_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `set_event_tags`") # noqa: E501
collection_formats = {}
@@ -922,54 +1330,54 @@ def set_event_tags_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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 update_event(self, id, **kwargs): # noqa: E501
- """Update a specific event # noqa: E501
+ def update_user_event(self, id, **kwargs): # noqa: E501
+ """Update a specific user event. # noqa: E501
- The following fields are readonly and will be ignored when passed in the request: id, isEphemeral, isUserEvent, runningState, canDelete, canClose, creatorType, createdAt, updatedAt, createdEpochMillis, updatedEpochMillis, updaterId, creatorId, and summarizedEvents # noqa: E501
+ This API supports only user events. The API does not support update of system events (e.g. alert events). The following fields are readonly and will be ignored when passed in the request: id, isEphemeral, isUserEvent, runningState, canDelete, canClose, creatorType, createdAt, updatedAt, createdEpochMillis, updatedEpochMillis, updaterId, creatorId, and summarizedEvents # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_event(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_user_event(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param Event body: Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"startTime\": 1490000000000, \"endTime\": 1490000000001 }
+ :param Event body: Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"tags\" : [ \"eventTag1\" ], \"startTime\": 1490000000000, \"endTime\": 1490000000001 }
:return: ResponseContainerEvent
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.update_event_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.update_user_event_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.update_event_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.update_user_event_with_http_info(id, **kwargs) # noqa: E501
return data
- def update_event_with_http_info(self, id, **kwargs): # noqa: E501
- """Update a specific event # noqa: E501
+ def update_user_event_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a specific user event. # noqa: E501
- The following fields are readonly and will be ignored when passed in the request: id, isEphemeral, isUserEvent, runningState, canDelete, canClose, creatorType, createdAt, updatedAt, createdEpochMillis, updatedEpochMillis, updaterId, creatorId, and summarizedEvents # noqa: E501
+ This API supports only user events. The API does not support update of system events (e.g. alert events). The following fields are readonly and will be ignored when passed in the request: id, isEphemeral, isUserEvent, runningState, canDelete, canClose, creatorType, createdAt, updatedAt, createdEpochMillis, updatedEpochMillis, updaterId, creatorId, and summarizedEvents # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_event_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_user_event_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param Event body: Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"startTime\": 1490000000000, \"endTime\": 1490000000001 }
+ :param Event body: Example Body: { \"name\": \"Event API Example\", \"annotations\": { \"severity\": \"info\", \"type\": \"event type\", \"details\": \"description\" }, \"tags\" : [ \"eventTag1\" ], \"startTime\": 1490000000000, \"endTime\": 1490000000001 }
:return: ResponseContainerEvent
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -979,14 +1387,14 @@ def update_event_with_http_info(self, id, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method update_event" % key
+ " to method update_user_event" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `update_event`") # noqa: E501
+ 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 `update_user_event`") # noqa: E501
collection_formats = {}
@@ -1025,7 +1433,7 @@ def update_event_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerEvent', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/external_link_api.py b/wavefront_api_client/api/external_link_api.py
index 9ce38804..f3ecb0aa 100644
--- a/wavefront_api_client/api/external_link_api.py
+++ b/wavefront_api_client/api/external_link_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,18 +38,18 @@ def create_external_link(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_external_link(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_external_link(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param ExternalLink body: Example Body:{ \"name\": \"External Link API Example\", \"template\": \"https://example.com/{{source}}\", \"description\": \"External Link Description\" }
:return: ResponseContainerExternalLink
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_external_link_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_external_link_with_http_info(**kwargs) # noqa: E501
@@ -60,11 +60,11 @@ def create_external_link_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_external_link_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_external_link_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param ExternalLink body: Example Body: { \"name\": \"External Link API Example\", \"template\": \"https://example.com/{{source}}\", \"description\": \"External Link Description\" }
:return: ResponseContainerExternalLink
If the method is called asynchronously,
@@ -72,7 +72,7 @@ def create_external_link_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -122,7 +122,7 @@ def create_external_link_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerExternalLink', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -133,18 +133,18 @@ def delete_external_link(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_external_link(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_external_link(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerExternalLink
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.delete_external_link_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_external_link_with_http_info(id, **kwargs) # noqa: E501
@@ -155,11 +155,11 @@ def delete_external_link_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_external_link_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_external_link_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerExternalLink
If the method is called asynchronously,
@@ -167,7 +167,7 @@ def delete_external_link_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -182,8 +182,8 @@ def delete_external_link_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `delete_external_link`") # noqa: E501
collection_formats = {}
@@ -221,7 +221,7 @@ def delete_external_link_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerExternalLink', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -232,11 +232,11 @@ def get_all_external_link(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_external_link(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_external_link(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedExternalLink
@@ -244,7 +244,7 @@ def get_all_external_link(self, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_all_external_link_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_external_link_with_http_info(**kwargs) # noqa: E501
@@ -255,11 +255,11 @@ def get_all_external_link_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_external_link_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_external_link_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedExternalLink
@@ -268,7 +268,7 @@ def get_all_external_link_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -316,7 +316,7 @@ def get_all_external_link_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerPagedExternalLink', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -327,18 +327,18 @@ def get_external_link(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_external_link(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_external_link(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerExternalLink
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_external_link_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_external_link_with_http_info(id, **kwargs) # noqa: E501
@@ -349,11 +349,11 @@ def get_external_link_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_external_link_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_external_link_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerExternalLink
If the method is called asynchronously,
@@ -361,7 +361,7 @@ def get_external_link_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -376,8 +376,8 @@ def get_external_link_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_external_link`") # noqa: E501
collection_formats = {}
@@ -411,7 +411,7 @@ def get_external_link_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerExternalLink', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -422,11 +422,11 @@ def update_external_link(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_external_link(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_external_link(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param ExternalLink body: Example Body: { \"name\": \"External Link API Example\", \"template\": \"https://example.com/{{source}}\", \"description\": \"External Link Description\" }
:return: ResponseContainerExternalLink
@@ -434,7 +434,7 @@ def update_external_link(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_external_link_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_external_link_with_http_info(id, **kwargs) # noqa: E501
@@ -445,11 +445,11 @@ def update_external_link_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_external_link_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_external_link_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param ExternalLink body: Example Body: { \"name\": \"External Link API Example\", \"template\": \"https://example.com/{{source}}\", \"description\": \"External Link Description\" }
:return: ResponseContainerExternalLink
@@ -458,7 +458,7 @@ def update_external_link_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -473,8 +473,8 @@ def update_external_link_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_external_link`") # noqa: E501
collection_formats = {}
@@ -514,7 +514,7 @@ def update_external_link_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerExternalLink', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/ingestion_spy_api.py b/wavefront_api_client/api/ingestion_spy_api.py
new file mode 100644
index 00000000..0bfa3846
--- /dev/null
+++ b/wavefront_api_client/api/ingestion_spy_api.py
@@ -0,0 +1,653 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class IngestionSpyApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def spy_on_delta_counters(self, **kwargs): # noqa: E501 + """Gets new delta counters that are added to existing time series. # noqa: E501 + + Try it Out button won't work in this case, as it's a streaming API. Endpoint: https://.wavefront.com/api/spy/deltas. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.spy_on_delta_counters(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str counter: List a delta counter only if its name starts with the specified case-sensitive prefix. E.g., counter=orderShirt matches counters named orderShirt and orderShirts, but not OrderShirts. + :param str host: List a delta counter only if the name of its source starts with the specified case-sensitive prefix. + :param list[str] counter_tag_key: List a delta counter only if it has the specified tag key. Add this parameter multiple times to specify multiple tags, e.g. counterTagKey=cluster&counterTagKey=shard put cluster in the first line, put shard in the second line as values + :param float sampling: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.spy_on_delta_counters_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.spy_on_delta_counters_with_http_info(**kwargs) # noqa: E501 + return data + + def spy_on_delta_counters_with_http_info(self, **kwargs): # noqa: E501 + """Gets new delta counters that are added to existing time series. # noqa: E501 + + Try it Out button won't work in this case, as it's a streaming API. Endpoint: https://.wavefront.com/api/spy/deltas. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.spy_on_delta_counters_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str counter: List a delta counter only if its name starts with the specified case-sensitive prefix. E.g., counter=orderShirt matches counters named orderShirt and orderShirts, but not OrderShirts. + :param str host: List a delta counter only if the name of its source starts with the specified case-sensitive prefix. + :param list[str] counter_tag_key: List a delta counter only if it has the specified tag key. Add this parameter multiple times to specify multiple tags, e.g. counterTagKey=cluster&counterTagKey=shard put cluster in the first line, put shard in the second line as values + :param float sampling: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['counter', 'host', 'counter_tag_key', 'sampling'] # 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 spy_on_delta_counters" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'counter' in params: + query_params.append(('counter', params['counter'])) # noqa: E501 + if 'host' in params: + query_params.append(('host', params['host'])) # noqa: E501 + if 'counter_tag_key' in params: + query_params.append(('counterTagKey', params['counter_tag_key'])) # noqa: E501 + collection_formats['counterTagKey'] = 'multi' # noqa: E501 + if 'sampling' in params: + query_params.append(('sampling', params['sampling'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/spy/deltas', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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 spy_on_ephemeral_points(self, **kwargs): # noqa: E501 + """Gets a sampling of new ephemeral metric data points that are added to existing time series. # noqa: E501 + + Try it Out button won't work in this case, as it's a streaming API. Endpoint: https://The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,47 +34,49 @@ def __init__(self, api_client=None): self.api_client = api_client def get_all_integration(self, **kwargs): # noqa: E501 - """Gets a flat list of all Wavefront integrations available, along with their status # noqa: E501 + """Gets a flat list of all Tanzu Observability integrations available, along with their status # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_integration(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_integration(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int offset: - :param int limit: + :param int limit: Limit the number of queried integrations to reduce the response size + :param bool exclude_dashboard: Whether to exclude information on dashboards, default is set to false :return: ResponseContainerPagedIntegration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_all_integration_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_all_integration_with_http_info(**kwargs) # noqa: E501 return data def get_all_integration_with_http_info(self, **kwargs): # noqa: E501 - """Gets a flat list of all Wavefront integrations available, along with their status # noqa: E501 + """Gets a flat list of all Tanzu Observability integrations available, along with their status # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_integration_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_integration_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int offset: - :param int limit: + :param int limit: Limit the number of queried integrations to reduce the response size + :param bool exclude_dashboard: Whether to exclude information on dashboards, default is set to false :return: ResponseContainerPagedIntegration If the method is called asynchronously, returns the request thread. """ - all_params = ['offset', 'limit'] # noqa: E501 - all_params.append('async') + all_params = ['offset', 'limit', 'exclude_dashboard'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -98,6 +100,8 @@ def get_all_integration_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('offset', params['offset'])) # noqa: E501 if 'limit' in params: query_params.append(('limit', params['limit'])) # noqa: E501 + if 'exclude_dashboard' in params: + query_params.append(('excludeDashboard', params['exclude_dashboard'])) # noqa: E501 header_params = {} @@ -122,50 +126,50 @@ def get_all_integration_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerPagedIntegration', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_all_integration_in_manifests(self, **kwargs): # noqa: E501 - """Gets all Wavefront integrations as structured in their integration manifests, along with their status # noqa: E501 + """Gets all Tanzu Observability integrations as structured in their integration manifests, along with their status and content # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_integration_in_manifests(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_integration_in_manifests(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: ResponseContainerListIntegrationManifestGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_all_integration_in_manifests_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_all_integration_in_manifests_with_http_info(**kwargs) # noqa: E501 return data def get_all_integration_in_manifests_with_http_info(self, **kwargs): # noqa: E501 - """Gets all Wavefront integrations as structured in their integration manifests, along with their status # noqa: E501 + """Gets all Tanzu Observability integrations as structured in their integration manifests, along with their status and content # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_integration_in_manifests_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_integration_in_manifests_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: ResponseContainerListIntegrationManifestGroup If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -209,50 +213,137 @@ def get_all_integration_in_manifests_with_http_info(self, **kwargs): # noqa: E5 files=local_var_files, response_type='ResponseContainerListIntegrationManifestGroup', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_all_integration_in_manifests_min(self, **kwargs): # noqa: E501 + """Gets all Tanzu Observability integrations as structured in their integration manifests. # 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_all_integration_in_manifests_min(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerListIntegrationManifestGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_all_integration_in_manifests_min_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_all_integration_in_manifests_min_with_http_info(**kwargs) # noqa: E501 + return data + + def get_all_integration_in_manifests_min_with_http_info(self, **kwargs): # noqa: E501 + """Gets all Tanzu Observability integrations as structured in their integration manifests. # 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_all_integration_in_manifests_min_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerListIntegrationManifestGroup + 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_all_integration_in_manifests_min" % 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/integration/manifests/min', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListIntegrationManifestGroup', # 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_all_integration_statuses(self, **kwargs): # noqa: E501 - """Gets the status of all Wavefront integrations # noqa: E501 + """Gets the status of all Tanzu Observability integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_integration_statuses(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_integration_statuses(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: ResponseContainerMapStringIntegrationStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_all_integration_statuses_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_all_integration_statuses_with_http_info(**kwargs) # noqa: E501 return data def get_all_integration_statuses_with_http_info(self, **kwargs): # noqa: E501 - """Gets the status of all Wavefront integrations # noqa: E501 + """Gets the status of all Tanzu Observability integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_integration_statuses_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_integration_statuses_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: ResponseContainerMapStringIntegrationStatus If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -296,52 +387,149 @@ def get_all_integration_statuses_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerMapStringIntegrationStatus', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_installed_integration(self, **kwargs): # noqa: E501 + """Gets a flat list of all Integrations that are installed, along with their status # 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_installed_integration(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param bool has_content: + :param bool return_content: + :return: ResponseContainerListIntegration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_installed_integration_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_installed_integration_with_http_info(**kwargs) # noqa: E501 + return data + + def get_installed_integration_with_http_info(self, **kwargs): # noqa: E501 + """Gets a flat list of all Integrations that are installed, along with their status # 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_installed_integration_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param bool has_content: + :param bool return_content: + :return: ResponseContainerListIntegration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['has_content', 'return_content'] # 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_installed_integration" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'has_content' in params: + query_params.append(('hasContent', params['has_content'])) # noqa: E501 + if 'return_content' in params: + query_params.append(('returnContent', params['return_content'])) # 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 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/integration/installed', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListIntegration', # 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_integration(self, id, **kwargs): # noqa: E501 - """Gets a single Wavefront integration by its id, along with its status # noqa: E501 + """Gets a single Tanzu Observability integration by its id, along with its status # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_integration(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_integration(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) + :param bool refresh: :return: ResponseContainerIntegration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_integration_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.get_integration_with_http_info(id, **kwargs) # noqa: E501 return data def get_integration_with_http_info(self, id, **kwargs): # noqa: E501 - """Gets a single Wavefront integration by its id, along with its status # noqa: E501 + """Gets a single Tanzu Observability integration by its id, along with its status # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_integration_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_integration_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) + :param bool refresh: :return: ResponseContainerIntegration If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params = ['id', 'refresh'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -356,8 +544,8 @@ def get_integration_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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_integration`") # noqa: E501 collection_formats = {} @@ -367,6 +555,8 @@ def get_integration_with_http_info(self, id, **kwargs): # noqa: E501 path_params['id'] = params['id'] # noqa: E501 query_params = [] + if 'refresh' in params: + query_params.append(('refresh', params['refresh'])) # noqa: E501 header_params = {} @@ -391,44 +581,44 @@ def get_integration_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerIntegration', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_integration_status(self, id, **kwargs): # noqa: E501 - """Gets the status of a single Wavefront integration # noqa: E501 + """Gets the status of a single Tanzu Observability integration # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_integration_status(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_integration_status(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerIntegrationStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_integration_status_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.get_integration_status_with_http_info(id, **kwargs) # noqa: E501 return data def get_integration_status_with_http_info(self, id, **kwargs): # noqa: E501 - """Gets the status of a single Wavefront integration # noqa: E501 + """Gets the status of a single Tanzu Observability integration # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_integration_status_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_integration_status_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerIntegrationStatus If the method is called asynchronously, @@ -436,7 +626,7 @@ def get_integration_status_with_http_info(self, id, **kwargs): # noqa: E501 """ all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -451,8 +641,8 @@ def get_integration_status_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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_integration_status`") # noqa: E501 collection_formats = {} @@ -486,44 +676,143 @@ def get_integration_status_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerIntegrationStatus', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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 install_all_integration_alerts(self, id, **kwargs): # noqa: E501 + """Enable all alerts associated with this integration # 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.install_all_integration_alerts(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param InstallAlerts body: + :return: ResponseContainerIntegrationStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.install_all_integration_alerts_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.install_all_integration_alerts_with_http_info(id, **kwargs) # noqa: E501 + return data + + def install_all_integration_alerts_with_http_info(self, id, **kwargs): # noqa: E501 + """Enable all alerts associated with this integration # 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.install_all_integration_alerts_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param InstallAlerts body: + :return: ResponseContainerIntegrationStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', '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 install_all_integration_alerts" % 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 `install_all_integration_alerts`") # 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 + if 'body' in params: + body_params = params['body'] + # 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/integration/{id}/install-all-alerts', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerIntegrationStatus', # 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 install_integration(self, id, **kwargs): # noqa: E501 - """Installs a Wavefront integration # noqa: E501 + """Installs a Tanzu Observability integration # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.install_integration(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.install_integration(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerIntegrationStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.install_integration_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.install_integration_with_http_info(id, **kwargs) # noqa: E501 return data def install_integration_with_http_info(self, id, **kwargs): # noqa: E501 - """Installs a Wavefront integration # noqa: E501 + """Installs a Tanzu Observability integration # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.install_integration_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.install_integration_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerIntegrationStatus If the method is called asynchronously, @@ -531,7 +820,7 @@ def install_integration_with_http_info(self, id, **kwargs): # noqa: E501 """ all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -546,8 +835,8 @@ def install_integration_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `install_integration`") # noqa: E501 collection_formats = {} @@ -581,44 +870,139 @@ def install_integration_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerIntegrationStatus', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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 uninstall_all_integration_alerts(self, id, **kwargs): # noqa: E501 + """Disable all alerts associated with this integration # 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.uninstall_all_integration_alerts(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerIntegrationStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.uninstall_all_integration_alerts_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.uninstall_all_integration_alerts_with_http_info(id, **kwargs) # noqa: E501 + return data + + def uninstall_all_integration_alerts_with_http_info(self, id, **kwargs): # noqa: E501 + """Disable all alerts associated with this integration # 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.uninstall_all_integration_alerts_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerIntegrationStatus + 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 uninstall_all_integration_alerts" % 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 `uninstall_all_integration_alerts`") # 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/integration/{id}/uninstall-all-alerts', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerIntegrationStatus', # 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 uninstall_integration(self, id, **kwargs): # noqa: E501 - """Uninstalls a Wavefront integration # noqa: E501 + """Uninstalls a Tanzu Observability integration # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.uninstall_integration(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.uninstall_integration(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerIntegrationStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.uninstall_integration_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.uninstall_integration_with_http_info(id, **kwargs) # noqa: E501 return data def uninstall_integration_with_http_info(self, id, **kwargs): # noqa: E501 - """Uninstalls a Wavefront integration # noqa: E501 + """Uninstalls a Tanzu Observability integration # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.uninstall_integration_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.uninstall_integration_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerIntegrationStatus If the method is called asynchronously, @@ -626,7 +1010,7 @@ def uninstall_integration_with_http_info(self, id, **kwargs): # noqa: E501 """ all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -641,8 +1025,8 @@ def uninstall_integration_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `uninstall_integration`") # noqa: E501 collection_formats = {} @@ -676,7 +1060,7 @@ def uninstall_integration_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerIntegrationStatus', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), diff --git a/wavefront_api_client/api/maintenance_window_api.py b/wavefront_api_client/api/maintenance_window_api.py index fe9aa445..029fad84 100644 --- a/wavefront_api_client/api/maintenance_window_api.py +++ b/wavefront_api_client/api/maintenance_window_api.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,18 +38,18 @@ def create_maintenance_window(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_maintenance_window(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_maintenance_window(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param MaintenanceWindow body: Example Body:{ \"reason\": \"MW Reason\", \"title\": \"MW Title\", \"startTimeInSeconds\": 1483228800, \"endTimeInSeconds\": 1483232400, \"relevantCustomerTags\": [ \"alertId1\" ], \"relevantHostTags\": [ \"sourceTag1\" ] }
:return: ResponseContainerMaintenanceWindow
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_maintenance_window_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_maintenance_window_with_http_info(**kwargs) # noqa: E501
@@ -60,11 +60,11 @@ def create_maintenance_window_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_maintenance_window_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_maintenance_window_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param MaintenanceWindow body: Example Body: { \"reason\": \"MW Reason\", \"title\": \"MW Title\", \"startTimeInSeconds\": 1483228800, \"endTimeInSeconds\": 1483232400, \"relevantCustomerTags\": [ \"alertId1\" ], \"relevantHostTags\": [ \"sourceTag1\" ] }
:return: ResponseContainerMaintenanceWindow
If the method is called asynchronously,
@@ -72,7 +72,7 @@ def create_maintenance_window_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -122,7 +122,7 @@ def create_maintenance_window_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerMaintenanceWindow', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -133,18 +133,18 @@ def delete_maintenance_window(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_maintenance_window(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_maintenance_window(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerMaintenanceWindow
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.delete_maintenance_window_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_maintenance_window_with_http_info(id, **kwargs) # noqa: E501
@@ -155,11 +155,11 @@ def delete_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_maintenance_window_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_maintenance_window_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerMaintenanceWindow
If the method is called asynchronously,
@@ -167,7 +167,7 @@ def delete_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -182,8 +182,8 @@ def delete_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `delete_maintenance_window`") # noqa: E501
collection_formats = {}
@@ -217,7 +217,7 @@ def delete_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerMaintenanceWindow', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -228,11 +228,11 @@ def get_all_maintenance_window(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_maintenance_window(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_maintenance_window(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedMaintenanceWindow
@@ -240,7 +240,7 @@ def get_all_maintenance_window(self, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_all_maintenance_window_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_maintenance_window_with_http_info(**kwargs) # noqa: E501
@@ -251,11 +251,11 @@ def get_all_maintenance_window_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_maintenance_window_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_maintenance_window_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedMaintenanceWindow
@@ -264,7 +264,7 @@ def get_all_maintenance_window_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -312,7 +312,7 @@ def get_all_maintenance_window_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerPagedMaintenanceWindow', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -323,18 +323,18 @@ def get_maintenance_window(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_maintenance_window(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_maintenance_window(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerMaintenanceWindow
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_maintenance_window_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_maintenance_window_with_http_info(id, **kwargs) # noqa: E501
@@ -345,11 +345,11 @@ def get_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_maintenance_window_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_maintenance_window_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerMaintenanceWindow
If the method is called asynchronously,
@@ -357,7 +357,7 @@ def get_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -372,8 +372,8 @@ def get_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_maintenance_window`") # noqa: E501
collection_formats = {}
@@ -407,7 +407,7 @@ def get_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerMaintenanceWindow', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -418,11 +418,11 @@ def update_maintenance_window(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_maintenance_window(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_maintenance_window(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param MaintenanceWindow body: Example Body: { \"reason\": \"MW Reason\", \"title\": \"MW Title\", \"startTimeInSeconds\": 1483228800, \"endTimeInSeconds\": 1483232400, \"relevantCustomerTags\": [ \"alertId1\" ], \"relevantHostTags\": [ \"sourceTag1\" ] }
:return: ResponseContainerMaintenanceWindow
@@ -430,7 +430,7 @@ def update_maintenance_window(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_maintenance_window_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_maintenance_window_with_http_info(id, **kwargs) # noqa: E501
@@ -441,11 +441,11 @@ def update_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_maintenance_window_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_maintenance_window_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param MaintenanceWindow body: Example Body: { \"reason\": \"MW Reason\", \"title\": \"MW Title\", \"startTimeInSeconds\": 1483228800, \"endTimeInSeconds\": 1483232400, \"relevantCustomerTags\": [ \"alertId1\" ], \"relevantHostTags\": [ \"sourceTag1\" ] }
:return: ResponseContainerMaintenanceWindow
@@ -454,7 +454,7 @@ def update_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -469,8 +469,8 @@ def update_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_maintenance_window`") # noqa: E501
collection_formats = {}
@@ -510,7 +510,7 @@ def update_maintenance_window_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerMaintenanceWindow', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/message_api.py b/wavefront_api_client/api/message_api.py
index 51bdf1f3..6644788c 100644
--- a/wavefront_api_client/api/message_api.py
+++ b/wavefront_api_client/api/message_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,11 +38,11 @@ def user_get_messages(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.user_get_messages(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_get_messages(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int offset: :param int limit: :param bool unread_only: @@ -51,7 +51,7 @@ def user_get_messages(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.user_get_messages_with_http_info(**kwargs) # noqa: E501 else: (data) = self.user_get_messages_with_http_info(**kwargs) # noqa: E501 @@ -62,11 +62,11 @@ def user_get_messages_with_http_info(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.user_get_messages_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_get_messages_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int offset: :param int limit: :param bool unread_only: @@ -76,7 +76,7 @@ def user_get_messages_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['offset', 'limit', 'unread_only'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -126,7 +126,7 @@ def user_get_messages_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerPagedMessage', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -137,18 +137,18 @@ def user_read_message(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.user_read_message(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_read_message(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerMessage If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.user_read_message_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.user_read_message_with_http_info(id, **kwargs) # noqa: E501 @@ -159,11 +159,11 @@ def user_read_message_with_http_info(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.user_read_message_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_read_message_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerMessage If the method is called asynchronously, @@ -171,7 +171,7 @@ def user_read_message_with_http_info(self, id, **kwargs): # noqa: E501 """ all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -186,8 +186,8 @@ def user_read_message_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `user_read_message`") # noqa: E501 collection_formats = {} @@ -221,7 +221,7 @@ def user_read_message_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerMessage', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), diff --git a/wavefront_api_client/api/metric_api.py b/wavefront_api_client/api/metric_api.py index a2e5b5b1..cfb2805e 100644 --- a/wavefront_api_client/api/metric_api.py +++ b/wavefront_api_client/api/metric_api.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,11 +38,11 @@ def get_metric_details(self, m, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_metric_details(m, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metric_details(m, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str m: Metric name (required) :param int l: limit :param str c: cursor value to continue if the number of results exceeds 1000 @@ -52,7 +52,7 @@ def get_metric_details(self, m, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_metric_details_with_http_info(m, **kwargs) # noqa: E501 else: (data) = self.get_metric_details_with_http_info(m, **kwargs) # noqa: E501 @@ -63,11 +63,11 @@ def get_metric_details_with_http_info(self, m, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_metric_details_with_http_info(m, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metric_details_with_http_info(m, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str m: Metric name (required) :param int l: limit :param str c: cursor value to continue if the number of results exceeds 1000 @@ -78,7 +78,7 @@ def get_metric_details_with_http_info(self, m, **kwargs): # noqa: E501 """ all_params = ['m', 'l', 'c', 'h'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -93,8 +93,8 @@ def get_metric_details_with_http_info(self, m, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'm' is set - if ('m' not in params or - params['m'] is None): + if self.api_client.client_side_validation and ('m' not in params or + params['m'] is None): # noqa: E501 raise ValueError("Missing the required parameter `m` when calling `get_metric_details`") # noqa: E501 collection_formats = {} @@ -135,7 +135,7 @@ def get_metric_details_with_http_info(self, m, **kwargs): # noqa: E501 files=local_var_files, response_type='MetricDetailsResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), diff --git a/wavefront_api_client/api/metrics_policy_api.py b/wavefront_api_client/api/metrics_policy_api.py new file mode 100644 index 00000000..9e24ba93 --- /dev/null +++ b/wavefront_api_client/api/metrics_policy_api.py @@ -0,0 +1,517 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class MetricsPolicyApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_metrics_policy(self, **kwargs): # noqa: E501 + """Get the metrics policy # 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_metrics_policy(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metrics_policy_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_metrics_policy_with_http_info(**kwargs) # noqa: E501 + return data + + def get_metrics_policy_with_http_info(self, **kwargs): # noqa: E501 + """Get the metrics policy # 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_metrics_policy_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerMetricsPolicyReadModel + 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_metrics_policy" % 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 + + # 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/metricspolicy', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMetricsPolicyReadModel', # 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_metrics_policy_by_version(self, version, **kwargs): # noqa: E501 + """Get a specific historical version of a metrics policy # 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_metrics_policy_by_version(version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metrics_policy_by_version_with_http_info(version, **kwargs) # noqa: E501 + else: + (data) = self.get_metrics_policy_by_version_with_http_info(version, **kwargs) # noqa: E501 + return data + + def get_metrics_policy_by_version_with_http_info(self, version, **kwargs): # noqa: E501 + """Get a specific historical version of a metrics policy # 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_metrics_policy_by_version_with_http_info(version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['version'] # 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_metrics_policy_by_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'version' is set + if self.api_client.client_side_validation and ('version' not in params or + params['version'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `version` when calling `get_metrics_policy_by_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'version' in params: + path_params['version'] = params['version'] # 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 + + # 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/metricspolicy/history/{version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMetricsPolicyReadModel', # 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_metrics_policy_history(self, **kwargs): # noqa: E501 + """Get the version history of metrics policy # 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_metrics_policy_history(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int offset: + :param int limit: + :return: ResponseContainerHistoryResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metrics_policy_history_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_metrics_policy_history_with_http_info(**kwargs) # noqa: E501 + return data + + def get_metrics_policy_history_with_http_info(self, **kwargs): # noqa: E501 + """Get the version history of metrics policy # 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_metrics_policy_history_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int offset: + :param int limit: + :return: ResponseContainerHistoryResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['offset', 'limit'] # 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_metrics_policy_history" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # 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/metricspolicy/history', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerHistoryResponse', # 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 revert_metrics_policy_by_version(self, version, **kwargs): # noqa: E501 + """Revert to a specific historical version of a metrics policy # 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.revert_metrics_policy_by_version(version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.revert_metrics_policy_by_version_with_http_info(version, **kwargs) # noqa: E501 + else: + (data) = self.revert_metrics_policy_by_version_with_http_info(version, **kwargs) # noqa: E501 + return data + + def revert_metrics_policy_by_version_with_http_info(self, version, **kwargs): # noqa: E501 + """Revert to a specific historical version of a metrics policy # 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.revert_metrics_policy_by_version_with_http_info(version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['version'] # 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 revert_metrics_policy_by_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'version' is set + if self.api_client.client_side_validation and ('version' not in params or + params['version'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `version` when calling `revert_metrics_policy_by_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'version' in params: + path_params['version'] = params['version'] # 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 + + # 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/metricspolicy/revert/{version}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMetricsPolicyReadModel', # 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 update_metrics_policy(self, **kwargs): # noqa: E501 + """Update the metrics policy # 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.update_metrics_policy(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param MetricsPolicyWriteModel body: Example Body:{ \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] }
+ :return: ResponseContainerMetricsPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_metrics_policy_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.update_metrics_policy_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def update_metrics_policy_with_http_info(self, **kwargs): # noqa: E501
+ """Update the metrics policy # 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.update_metrics_policy_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param MetricsPolicyWriteModel body: Example Body: { \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] }
+ :return: ResponseContainerMetricsPolicyReadModel
+ 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 update_metrics_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/metricspolicy', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerMetricsPolicyReadModel', # 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)
diff --git a/wavefront_api_client/api/monitored_application_api.py b/wavefront_api_client/api/monitored_application_api.py
new file mode 100644
index 00000000..637221ee
--- /dev/null
+++ b/wavefront_api_client/api/monitored_application_api.py
@@ -0,0 +1,327 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class MonitoredApplicationApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_all_applications(self, **kwargs): # noqa: E501 + """Get all monitored applications # 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_all_applications(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int offset: + :param int limit: + :return: ResponseContainerPagedMonitoredApplicationDTO + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_all_applications_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_all_applications_with_http_info(**kwargs) # noqa: E501 + return data + + def get_all_applications_with_http_info(self, **kwargs): # noqa: E501 + """Get all monitored applications # 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_all_applications_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int offset: + :param int limit: + :return: ResponseContainerPagedMonitoredApplicationDTO + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['offset', 'limit'] # 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_all_applications" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # 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 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/monitoredapplication', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedMonitoredApplicationDTO', # 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_application(self, application, **kwargs): # noqa: E501 + """Get a specific application # 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_application(application, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str application: (required) + :return: ResponseContainerMonitoredApplicationDTO + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_application_with_http_info(application, **kwargs) # noqa: E501 + else: + (data) = self.get_application_with_http_info(application, **kwargs) # noqa: E501 + return data + + def get_application_with_http_info(self, application, **kwargs): # noqa: E501 + """Get a specific application # 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_application_with_http_info(application, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str application: (required) + :return: ResponseContainerMonitoredApplicationDTO + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['application'] # 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_application" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'application' is set + if self.api_client.client_side_validation and ('application' not in params or + params['application'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `application` when calling `get_application`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'application' in params: + path_params['application'] = params['application'] # 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/monitoredapplication/{application}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMonitoredApplicationDTO', # 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 update_service(self, application, **kwargs): # noqa: E501 + """Update a specific service # 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.update_service(application, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str application: (required) + :param MonitoredApplicationDTO body: Example Body:{ \"application\": \"beachshirts\", \"satisfiedLatencyMillis\": \"100000\", \"hidden\": \"false\" }
+ :return: ResponseContainerMonitoredApplicationDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_service_with_http_info(application, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_service_with_http_info(application, **kwargs) # noqa: E501
+ return data
+
+ def update_service_with_http_info(self, application, **kwargs): # noqa: E501
+ """Update a specific service # 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.update_service_with_http_info(application, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str application: (required)
+ :param MonitoredApplicationDTO body: Example Body: { \"application\": \"beachshirts\", \"satisfiedLatencyMillis\": \"100000\", \"hidden\": \"false\" }
+ :return: ResponseContainerMonitoredApplicationDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['application', '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 update_service" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'application' is set
+ if self.api_client.client_side_validation and ('application' not in params or
+ params['application'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `application` when calling `update_service`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'application' in params:
+ path_params['application'] = params['application'] # 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/monitoredapplication/{application}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerMonitoredApplicationDTO', # 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)
diff --git a/wavefront_api_client/api/monitored_service_api.py b/wavefront_api_client/api/monitored_service_api.py
new file mode 100644
index 00000000..bab161b5
--- /dev/null
+++ b/wavefront_api_client/api/monitored_service_api.py
@@ -0,0 +1,751 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class MonitoredServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def batch_update(self, **kwargs): # noqa: E501 + """Update multiple applications and services in a batch. Batch size is limited to 100. # 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.batch_update(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param list[MonitoredServiceDTO] body: Example Body:[{ \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" },{ \"satisfiedLatencyMillis\": \"100\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }]
+ :return: ResponseContainer
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.batch_update_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.batch_update_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def batch_update_with_http_info(self, **kwargs): # noqa: E501
+ """Update multiple applications and services in a batch. Batch size is limited to 100. # 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.batch_update_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[MonitoredServiceDTO] body: Example Body: [{ \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" },{ \"satisfiedLatencyMillis\": \"100\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }]
+ :return: ResponseContainer
+ 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 batch_update" % 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/monitoredservice/services', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainer', # 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_all_components(self, **kwargs): # noqa: E501
+ """Get all monitored services with components # 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_all_components(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_components_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_components_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_components_with_http_info(self, **kwargs): # noqa: E501
+ """Get all monitored services with components # 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_all_components_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_components" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/monitoredservice/components', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedMonitoredServiceDTO', # 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_all_services(self, **kwargs): # noqa: E501
+ """Get all monitored services # 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_all_services(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_services_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_services_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_services_with_http_info(self, **kwargs): # noqa: E501
+ """Get all monitored services # 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_all_services_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_services" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/monitoredservice', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedMonitoredServiceDTO', # 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_component(self, application, service, component, **kwargs): # noqa: E501
+ """Get a specific application # 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_component(application, service, component, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str application: (required)
+ :param str service: (required)
+ :param str component: (required)
+ :return: ResponseContainerMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_component_with_http_info(application, service, component, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_component_with_http_info(application, service, component, **kwargs) # noqa: E501
+ return data
+
+ def get_component_with_http_info(self, application, service, component, **kwargs): # noqa: E501
+ """Get a specific application # 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_component_with_http_info(application, service, component, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str application: (required)
+ :param str service: (required)
+ :param str component: (required)
+ :return: ResponseContainerMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['application', 'service', 'component'] # 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_component" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'application' is set
+ if self.api_client.client_side_validation and ('application' not in params or
+ params['application'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `application` when calling `get_component`") # noqa: E501
+ # verify the required parameter 'service' is set
+ if self.api_client.client_side_validation and ('service' not in params or
+ params['service'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `service` when calling `get_component`") # noqa: E501
+ # verify the required parameter 'component' is set
+ if self.api_client.client_side_validation and ('component' not in params or
+ params['component'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `component` when calling `get_component`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'application' in params:
+ path_params['application'] = params['application'] # noqa: E501
+ if 'service' in params:
+ path_params['service'] = params['service'] # noqa: E501
+ if 'component' in params:
+ path_params['component'] = params['component'] # 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/monitoredservice/{application}/{service}/{component}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerMonitoredServiceDTO', # 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_service(self, application, service, **kwargs): # noqa: E501
+ """Get a specific application # 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_service(application, service, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str application: (required)
+ :param str service: (required)
+ :return: ResponseContainerMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_service_with_http_info(application, service, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_service_with_http_info(application, service, **kwargs) # noqa: E501
+ return data
+
+ def get_service_with_http_info(self, application, service, **kwargs): # noqa: E501
+ """Get a specific application # 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_service_with_http_info(application, service, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str application: (required)
+ :param str service: (required)
+ :return: ResponseContainerMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['application', 'service'] # 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_service" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'application' is set
+ if self.api_client.client_side_validation and ('application' not in params or
+ params['application'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `application` when calling `get_service`") # noqa: E501
+ # verify the required parameter 'service' is set
+ if self.api_client.client_side_validation and ('service' not in params or
+ params['service'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `service` when calling `get_service`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'application' in params:
+ path_params['application'] = params['application'] # noqa: E501
+ if 'service' in params:
+ path_params['service'] = params['service'] # 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/monitoredservice/{application}/{service}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerMonitoredServiceDTO', # 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_services_of_application(self, application, **kwargs): # noqa: E501
+ """Get services for a specific application # 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_services_of_application(application, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str application: (required)
+ :param bool include_component:
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_services_of_application_with_http_info(application, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_services_of_application_with_http_info(application, **kwargs) # noqa: E501
+ return data
+
+ def get_services_of_application_with_http_info(self, application, **kwargs): # noqa: E501
+ """Get services for a specific application # 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_services_of_application_with_http_info(application, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str application: (required)
+ :param bool include_component:
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['application', 'include_component', 'offset', 'limit'] # 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_services_of_application" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'application' is set
+ if self.api_client.client_side_validation and ('application' not in params or
+ params['application'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `application` when calling `get_services_of_application`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'application' in params:
+ path_params['application'] = params['application'] # noqa: E501
+
+ query_params = []
+ if 'include_component' in params:
+ query_params.append(('includeComponent', params['include_component'])) # noqa: E501
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/monitoredservice/{application}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedMonitoredServiceDTO', # 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 update_service(self, application, service, **kwargs): # noqa: E501
+ """Update a specific service # 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.update_service(application, service, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str application: (required)
+ :param str service: (required)
+ :param MonitoredServiceDTO body: Example Body: { \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }
+ :return: ResponseContainerMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_service_with_http_info(application, service, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_service_with_http_info(application, service, **kwargs) # noqa: E501
+ return data
+
+ def update_service_with_http_info(self, application, service, **kwargs): # noqa: E501
+ """Update a specific service # 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.update_service_with_http_info(application, service, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str application: (required)
+ :param str service: (required)
+ :param MonitoredServiceDTO body: Example Body: { \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }
+ :return: ResponseContainerMonitoredServiceDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['application', 'service', '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 update_service" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'application' is set
+ if self.api_client.client_side_validation and ('application' not in params or
+ params['application'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `application` when calling `update_service`") # noqa: E501
+ # verify the required parameter 'service' is set
+ if self.api_client.client_side_validation and ('service' not in params or
+ params['service'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `service` when calling `update_service`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'application' in params:
+ path_params['application'] = params['application'] # noqa: E501
+ if 'service' in params:
+ path_params['service'] = params['service'] # 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/monitoredservice/{application}/{service}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerMonitoredServiceDTO', # 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)
diff --git a/wavefront_api_client/api/notificant_api.py b/wavefront_api_client/api/notificant_api.py
index 4990087e..58787ebe 100644
--- a/wavefront_api_client/api/notificant_api.py
+++ b/wavefront_api_client/api/notificant_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,18 +38,18 @@ def create_notificant(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_notificant(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_notificant(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Notificant body: Example Body:{ \"description\": \"Notificant Description\", \"template\": \"POST Body -- Mustache syntax\", \"title\": \"Email title\", \"triggers\": [ \"ALERT_OPENED\" ], \"method\": \"EMAIL\", \"recipient\": \"value@example.com\", \"emailSubject\": \"Email subject cannot contain new line\" }
:return: ResponseContainerNotificant
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_notificant_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_notificant_with_http_info(**kwargs) # noqa: E501
@@ -60,11 +60,11 @@ def create_notificant_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_notificant_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_notificant_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param Notificant body: Example Body: { \"description\": \"Notificant Description\", \"template\": \"POST Body -- Mustache syntax\", \"title\": \"Email title\", \"triggers\": [ \"ALERT_OPENED\" ], \"method\": \"EMAIL\", \"recipient\": \"value@example.com\", \"emailSubject\": \"Email subject cannot contain new line\" }
:return: ResponseContainerNotificant
If the method is called asynchronously,
@@ -72,7 +72,7 @@ def create_notificant_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -122,7 +122,7 @@ def create_notificant_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerNotificant', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -133,18 +133,19 @@ def delete_notificant(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_notificant(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_notificant(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool unlink: If set to true, explicitly deletes a notification target even if it’s in use by alerts.{ \"description\": \"Notificant Description\", \"template\": \"POST Body -- Mustache syntax\", \"title\": \"Email title\", \"triggers\": [ \"ALERT_OPENED\" ], \"method\": \"EMAIL\", \"recipient\": \"value@example.com\", \"emailSubject\": \"Email subject cannot contain new line\" }
:return: ResponseContainerNotificant
@@ -525,7 +529,7 @@ def update_notificant(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_notificant_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_notificant_with_http_info(id, **kwargs) # noqa: E501
@@ -536,11 +540,11 @@ def update_notificant_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_notificant_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_notificant_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param Notificant body: Example Body: { \"description\": \"Notificant Description\", \"template\": \"POST Body -- Mustache syntax\", \"title\": \"Email title\", \"triggers\": [ \"ALERT_OPENED\" ], \"method\": \"EMAIL\", \"recipient\": \"value@example.com\", \"emailSubject\": \"Email subject cannot contain new line\" }
:return: ResponseContainerNotificant
@@ -549,7 +553,7 @@ def update_notificant_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -564,8 +568,8 @@ def update_notificant_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_notificant`") # noqa: E501
collection_formats = {}
@@ -605,7 +609,7 @@ def update_notificant_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerNotificant', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/proxy_api.py b/wavefront_api_client/api/proxy_api.py
index 7dead1e9..28a13caa 100644
--- a/wavefront_api_client/api/proxy_api.py
+++ b/wavefront_api_client/api/proxy_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,18 +38,19 @@ def delete_proxy(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_proxy(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_proxy(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) + :param bool skip_trash: :return: ResponseContainerProxy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_proxy_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.delete_proxy_with_http_info(id, **kwargs) # noqa: E501 @@ -60,19 +61,20 @@ def delete_proxy_with_http_info(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_proxy_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_proxy_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) + :param bool skip_trash: :return: ResponseContainerProxy If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params = ['id', 'skip_trash'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -87,8 +89,8 @@ def delete_proxy_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `delete_proxy`") # noqa: E501 collection_formats = {} @@ -98,6 +100,8 @@ def delete_proxy_with_http_info(self, id, **kwargs): # noqa: E501 path_params['id'] = params['id'] # noqa: E501 query_params = [] + if 'skip_trash' in params: + query_params.append(('skipTrash', params['skip_trash'])) # noqa: E501 header_params = {} @@ -122,7 +126,7 @@ def delete_proxy_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerProxy', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -133,11 +137,11 @@ def get_all_proxy(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_proxy(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_proxy(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int offset: :param int limit: :return: ResponseContainerPagedProxy @@ -145,7 +149,7 @@ def get_all_proxy(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_all_proxy_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_all_proxy_with_http_info(**kwargs) # noqa: E501 @@ -156,11 +160,11 @@ def get_all_proxy_with_http_info(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_proxy_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_proxy_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int offset: :param int limit: :return: ResponseContainerPagedProxy @@ -169,7 +173,7 @@ def get_all_proxy_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['offset', 'limit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -217,7 +221,7 @@ def get_all_proxy_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerPagedProxy', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -228,18 +232,18 @@ def get_proxy(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_proxy(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_proxy(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerProxy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_proxy_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.get_proxy_with_http_info(id, **kwargs) # noqa: E501 @@ -250,11 +254,11 @@ def get_proxy_with_http_info(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_proxy_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_proxy_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerProxy If the method is called asynchronously, @@ -262,7 +266,7 @@ def get_proxy_with_http_info(self, id, **kwargs): # noqa: E501 """ all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -277,8 +281,8 @@ def get_proxy_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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_proxy`") # noqa: E501 collection_formats = {} @@ -312,7 +316,197 @@ def get_proxy_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerProxy', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_proxy_config(self, id, **kwargs): # noqa: E501 + """Get a specific proxy config # 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_proxy_config(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerMap + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_proxy_config_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_proxy_config_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_proxy_config_with_http_info(self, id, **kwargs): # noqa: E501 + """Get a specific proxy config # 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_proxy_config_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerMap + 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_proxy_config" % 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_proxy_config`") # 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/proxy/{id}/config', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMap', # 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_proxy_preprocessor_rules(self, id, **kwargs): # noqa: E501 + """Get a specific proxy preprocessor rules # 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_proxy_preprocessor_rules(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerMap + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_proxy_preprocessor_rules_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_proxy_preprocessor_rules_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_proxy_preprocessor_rules_with_http_info(self, id, **kwargs): # noqa: E501 + """Get a specific proxy preprocessor rules # 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_proxy_preprocessor_rules_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ResponseContainerMap + 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_proxy_preprocessor_rules" % 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_proxy_preprocessor_rules`") # 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/proxy/{id}/preprocessorRules', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMap', # 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'), @@ -323,18 +517,18 @@ def undelete_proxy(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.undelete_proxy(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.undelete_proxy(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerProxy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.undelete_proxy_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.undelete_proxy_with_http_info(id, **kwargs) # noqa: E501 @@ -345,11 +539,11 @@ def undelete_proxy_with_http_info(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.undelete_proxy_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.undelete_proxy_with_http_info(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :return: ResponseContainerProxy If the method is called asynchronously, @@ -357,7 +551,7 @@ def undelete_proxy_with_http_info(self, id, **kwargs): # noqa: E501 """ all_params = ['id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -372,8 +566,8 @@ def undelete_proxy_with_http_info(self, id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `undelete_proxy`") # noqa: E501 collection_formats = {} @@ -407,7 +601,7 @@ def undelete_proxy_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerProxy', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -418,11 +612,11 @@ def update_proxy(self, id, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_proxy(id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_proxy(id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param Proxy body: Example Body:{ \"name\": \"New Name for proxy\" }
:return: ResponseContainerProxy
@@ -430,7 +624,7 @@ def update_proxy(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_proxy_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_proxy_with_http_info(id, **kwargs) # noqa: E501
@@ -441,11 +635,11 @@ def update_proxy_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_proxy_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_proxy_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param Proxy body: Example Body: { \"name\": \"New Name for proxy\" }
:return: ResponseContainerProxy
@@ -454,7 +648,7 @@ def update_proxy_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -469,8 +663,8 @@ def update_proxy_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_proxy`") # noqa: E501
collection_formats = {}
@@ -510,7 +704,7 @@ def update_proxy_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerProxy', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/query_api.py b/wavefront_api_client/api/query_api.py
index 19f415ea..5cec2159 100644
--- a/wavefront_api_client/api/query_api.py
+++ b/wavefront_api_client/api/query_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,15 +38,16 @@ def query_api(self, q, s, g, **kwargs): # noqa: E501 Long time spans and small granularities can take a long time to calculate # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.query_api(q, s, g, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.query_api(q, s, g, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str q: the query expression to execute (required) :param str s: the start time of the query window in epoch milliseconds (required) :param str g: the granularity of the points returned (required) :param str n: name used to identify the query + :param str query_type: the query type of the query :param str e: the end time of the query window in epoch milliseconds (null to use now) :param str p: the approximate maximum number of points to return (may not limit number of points exactly) :param bool i: whether series with only points that are outside of the query window will be returned (defaults to true) @@ -54,14 +55,18 @@ def query_api(self, q, s, g, **kwargs): # noqa: E501 :param str summarization: summarization strategy to use when bucketing points together :param bool list_mode: retrieve events more optimally displayed for a list :param bool strict: do not return points outside the query window [s;e), defaults to false + :param str view: view of the query result, metric or histogram, defaults to metric :param bool include_obsolete_metrics: include metrics that have not been reporting recently, defaults to false :param bool sorted: sorts the output so that returned series are in order, defaults to false + :param bool cached: whether the query cache is used, defaults to true + :param list[str] dimension_tuples: + :param bool use_raw_qk: :return: QueryResult If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.query_api_with_http_info(q, s, g, **kwargs) # noqa: E501 else: (data) = self.query_api_with_http_info(q, s, g, **kwargs) # noqa: E501 @@ -72,15 +77,16 @@ def query_api_with_http_info(self, q, s, g, **kwargs): # noqa: E501 Long time spans and small granularities can take a long time to calculate # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.query_api_with_http_info(q, s, g, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.query_api_with_http_info(q, s, g, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str q: the query expression to execute (required) :param str s: the start time of the query window in epoch milliseconds (required) :param str g: the granularity of the points returned (required) :param str n: name used to identify the query + :param str query_type: the query type of the query :param str e: the end time of the query window in epoch milliseconds (null to use now) :param str p: the approximate maximum number of points to return (may not limit number of points exactly) :param bool i: whether series with only points that are outside of the query window will be returned (defaults to true) @@ -88,15 +94,19 @@ def query_api_with_http_info(self, q, s, g, **kwargs): # noqa: E501 :param str summarization: summarization strategy to use when bucketing points together :param bool list_mode: retrieve events more optimally displayed for a list :param bool strict: do not return points outside the query window [s;e), defaults to false + :param str view: view of the query result, metric or histogram, defaults to metric :param bool include_obsolete_metrics: include metrics that have not been reporting recently, defaults to false :param bool sorted: sorts the output so that returned series are in order, defaults to false + :param bool cached: whether the query cache is used, defaults to true + :param list[str] dimension_tuples: + :param bool use_raw_qk: :return: QueryResult If the method is called asynchronously, returns the request thread. """ - all_params = ['q', 's', 'g', 'n', 'e', 'p', 'i', 'auto_events', 'summarization', 'list_mode', 'strict', 'include_obsolete_metrics', 'sorted'] # noqa: E501 - all_params.append('async') + all_params = ['q', 's', 'g', 'n', 'query_type', 'e', 'p', 'i', 'auto_events', 'summarization', 'list_mode', 'strict', 'view', 'include_obsolete_metrics', 'sorted', 'cached', 'dimension_tuples', 'use_raw_qk'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -111,16 +121,16 @@ def query_api_with_http_info(self, q, s, g, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'q' is set - if ('q' not in params or - params['q'] is None): + if self.api_client.client_side_validation and ('q' not in params or + params['q'] is None): # noqa: E501 raise ValueError("Missing the required parameter `q` when calling `query_api`") # noqa: E501 # verify the required parameter 's' is set - if ('s' not in params or - params['s'] is None): + if self.api_client.client_side_validation and ('s' not in params or + params['s'] is None): # noqa: E501 raise ValueError("Missing the required parameter `s` when calling `query_api`") # noqa: E501 # verify the required parameter 'g' is set - if ('g' not in params or - params['g'] is None): + if self.api_client.client_side_validation and ('g' not in params or + params['g'] is None): # noqa: E501 raise ValueError("Missing the required parameter `g` when calling `query_api`") # noqa: E501 collection_formats = {} @@ -132,6 +142,8 @@ def query_api_with_http_info(self, q, s, g, **kwargs): # noqa: E501 query_params.append(('n', params['n'])) # noqa: E501 if 'q' in params: query_params.append(('q', params['q'])) # noqa: E501 + if 'query_type' in params: + query_params.append(('queryType', params['query_type'])) # noqa: E501 if 's' in params: query_params.append(('s', params['s'])) # noqa: E501 if 'e' in params: @@ -150,10 +162,19 @@ def query_api_with_http_info(self, q, s, g, **kwargs): # noqa: E501 query_params.append(('listMode', params['list_mode'])) # noqa: E501 if 'strict' in params: query_params.append(('strict', params['strict'])) # noqa: E501 + if 'view' in params: + query_params.append(('view', params['view'])) # noqa: E501 if 'include_obsolete_metrics' in params: query_params.append(('includeObsoleteMetrics', params['include_obsolete_metrics'])) # noqa: E501 if 'sorted' in params: query_params.append(('sorted', params['sorted'])) # noqa: E501 + if 'cached' in params: + query_params.append(('cached', params['cached'])) # noqa: E501 + if 'dimension_tuples' in params: + query_params.append(('dimensionTuples', params['dimension_tuples'])) # noqa: E501 + collection_formats['dimensionTuples'] = 'multi' # noqa: E501 + if 'use_raw_qk' in params: + query_params.append(('useRawQK', params['use_raw_qk'])) # noqa: E501 header_params = {} @@ -178,7 +199,7 @@ def query_api_with_http_info(self, q, s, g, **kwargs): # noqa: E501 files=local_var_files, response_type='QueryResult', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -189,11 +210,11 @@ def query_raw(self, metric, **kwargs): # noqa: E501 An API to check if ingested points are as expected. Points ingested within a single second are averaged when returned. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.query_raw(metric, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.query_raw(metric, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str metric: metric to query ingested points for (cannot contain wildcards) (required) :param str host: host to query ingested points for (cannot contain wildcards). host or source is equivalent, only one should be used. :param str source: source to query ingested points for (cannot contain wildcards). host or source is equivalent, only one should be used. @@ -204,7 +225,7 @@ def query_raw(self, metric, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.query_raw_with_http_info(metric, **kwargs) # noqa: E501 else: (data) = self.query_raw_with_http_info(metric, **kwargs) # noqa: E501 @@ -215,11 +236,11 @@ def query_raw_with_http_info(self, metric, **kwargs): # noqa: E501 An API to check if ingested points are as expected. Points ingested within a single second are averaged when returned. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.query_raw_with_http_info(metric, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.query_raw_with_http_info(metric, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str metric: metric to query ingested points for (cannot contain wildcards) (required) :param str host: host to query ingested points for (cannot contain wildcards). host or source is equivalent, only one should be used. :param str source: source to query ingested points for (cannot contain wildcards). host or source is equivalent, only one should be used. @@ -231,7 +252,7 @@ def query_raw_with_http_info(self, metric, **kwargs): # noqa: E501 """ all_params = ['metric', 'host', 'source', 'start_time', 'end_time'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -246,8 +267,8 @@ def query_raw_with_http_info(self, metric, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'metric' is set - if ('metric' not in params or - params['metric'] is None): + if self.api_client.client_side_validation and ('metric' not in params or + params['metric'] is None): # noqa: E501 raise ValueError("Missing the required parameter `metric` when calling `query_raw`") # noqa: E501 collection_formats = {} @@ -289,7 +310,7 @@ def query_raw_with_http_info(self, metric, **kwargs): # noqa: E501 files=local_var_files, response_type='list[RawTimeseries]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), diff --git a/wavefront_api_client/api/recent_app_map_search_api.py b/wavefront_api_client/api/recent_app_map_search_api.py new file mode 100644 index 00000000..4c5c6773 --- /dev/null +++ b/wavefront_api_client/api/recent_app_map_search_api.py @@ -0,0 +1,319 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class RecentAppMapSearchApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_recent_app_map_search(self, **kwargs): # noqa: E501 + """Create a search # 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.create_recent_app_map_search(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param RecentAppMapSearch body: Example Body:{ \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }
+ :return: ResponseContainerRecentAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_recent_app_map_search_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_recent_app_map_search_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_recent_app_map_search_with_http_info(self, **kwargs): # noqa: E501
+ """Create a search # 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.create_recent_app_map_search_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param RecentAppMapSearch body: Example Body: { \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }
+ :return: ResponseContainerRecentAppMapSearch
+ 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 create_recent_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
+ 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/recentappmapsearch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRecentAppMapSearch', # 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_all_recent_app_map_searches(self, **kwargs): # noqa: E501
+ """Get all searches 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.get_all_recent_app_map_searches(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedRecentAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_recent_app_map_searches_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_recent_app_map_searches_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_recent_app_map_searches_with_http_info(self, **kwargs): # noqa: E501
+ """Get all searches 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.get_all_recent_app_map_searches_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedRecentAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_recent_app_map_searches" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/recentappmapsearch', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedRecentAppMapSearch', # 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_recent_app_map_search(self, id, **kwargs): # noqa: E501
+ """Get a specific search # 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_recent_app_map_search(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerRecentAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_recent_app_map_search_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_recent_app_map_search_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_recent_app_map_search_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific search # 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_recent_app_map_search_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerRecentAppMapSearch
+ 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_recent_app_map_search" % 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_recent_app_map_search`") # 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/recentappmapsearch/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRecentAppMapSearch', # 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)
diff --git a/wavefront_api_client/api/recent_traces_search_api.py b/wavefront_api_client/api/recent_traces_search_api.py
new file mode 100644
index 00000000..f2d66268
--- /dev/null
+++ b/wavefront_api_client/api/recent_traces_search_api.py
@@ -0,0 +1,319 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class RecentTracesSearchApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_recent_traces_search(self, **kwargs): # noqa: E501 + """Create a search # 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.create_recent_traces_search(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param RecentTracesSearch body: Example Body:{ \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }
+ :return: ResponseContainerRecentTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_recent_traces_search_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_recent_traces_search_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_recent_traces_search_with_http_info(self, **kwargs): # noqa: E501
+ """Create a search # 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.create_recent_traces_search_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param RecentTracesSearch body: Example Body: { \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }
+ :return: ResponseContainerRecentTracesSearch
+ 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 create_recent_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
+ 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/recenttracessearch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRecentTracesSearch', # 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_all_recent_traces_searches(self, **kwargs): # noqa: E501
+ """Get all searches 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.get_all_recent_traces_searches(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedRecentTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_recent_traces_searches_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_recent_traces_searches_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_recent_traces_searches_with_http_info(self, **kwargs): # noqa: E501
+ """Get all searches 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.get_all_recent_traces_searches_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedRecentTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_recent_traces_searches" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/recenttracessearch', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedRecentTracesSearch', # 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_recent_traces_search(self, id, **kwargs): # noqa: E501
+ """Get a specific search # 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_recent_traces_search(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerRecentTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_recent_traces_search_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_recent_traces_search_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_recent_traces_search_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific search # 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_recent_traces_search_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerRecentTracesSearch
+ 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_recent_traces_search" % 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_recent_traces_search`") # 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/recenttracessearch/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRecentTracesSearch', # 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)
diff --git a/wavefront_api_client/api/role_api.py b/wavefront_api_client/api/role_api.py
new file mode 100644
index 00000000..9fdf9cfc
--- /dev/null
+++ b/wavefront_api_client/api/role_api.py
@@ -0,0 +1,965 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class RoleApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_assignees(self, id, body, **kwargs): # noqa: E501 + """Add accounts and groups to a role # noqa: E501 + + Assigns a role with a given ID to a list of user and service accounts and groups. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_assignees(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the role to assign. If you don't know the role's ID, run theGet all roles API call to return all roles and their IDs. (required)
+ :param list[str] body: A list of accounts and groups to add to the role. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.add_assignees_with_http_info(id, body, **kwargs) # noqa: E501
+ else:
+ (data) = self.add_assignees_with_http_info(id, body, **kwargs) # noqa: E501
+ return data
+
+ def add_assignees_with_http_info(self, id, body, **kwargs): # noqa: E501
+ """Add accounts and groups to a role # noqa: E501
+
+ Assigns a role with a given ID to a list of user and service accounts and groups. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_assignees_with_http_info(id, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: The ID of the role to assign. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs. (required)
+ :param list[str] body: A list of accounts and groups to add to the role. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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_assignees" % 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 `add_assignees`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in params or
+ params['body'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `body` when calling `add_assignees`") # 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
+ 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/role/{id}/addAssignees', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRoleDTO', # 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_role(self, body, **kwargs): # noqa: E501
+ """Create a role # noqa: E501
+
+ Creates a role with a specific unique name. Optionally, you can grant permissions to the role, assign the role to accounts and groups, specify a description, and configure the management properties of the role. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_role(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param RoleCreateDTO body: An example body for a role with all permissions: { \"name\": \"Role_name\", \"permissions\": [ \"agent_management\", \"alerts_management\", \"application_management\", \"batch_query_priority\", \"dashboard_management\", \"derived_metrics_management\", \"embedded_charts\", \"events_management\", \"external_links_management\", \"host_tag_management\", \"ingestion\", \"metrics_management\", \"monitored_application_service_management\", \"saml_sso_management\", \"token_management\", \"user_management\" ], \"description\": \"Role_description\" } (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_role_with_http_info(body, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_role_with_http_info(body, **kwargs) # noqa: E501
+ return data
+
+ def create_role_with_http_info(self, body, **kwargs): # noqa: E501
+ """Create a role # noqa: E501
+
+ Creates a role with a specific unique name. Optionally, you can grant permissions to the role, assign the role to accounts and groups, specify a description, and configure the management properties of the role. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_role_with_http_info(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param RoleCreateDTO body: An example body for a role with all permissions: { \"name\": \"Role_name\", \"permissions\": [ \"agent_management\", \"alerts_management\", \"application_management\", \"batch_query_priority\", \"dashboard_management\", \"derived_metrics_management\", \"embedded_charts\", \"events_management\", \"external_links_management\", \"host_tag_management\", \"ingestion\", \"metrics_management\", \"monitored_application_service_management\", \"saml_sso_management\", \"token_management\", \"user_management\" ], \"description\": \"Role_description\" } (required)
+ :return: ResponseContainerRoleDTO
+ 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 create_role" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in params or
+ params['body'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `body` when calling `create_role`") # noqa: E501
+
+ 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/role', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRoleDTO', # 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_role(self, id, **kwargs): # noqa: E501
+ """Delete a role by ID # noqa: E501
+
+ Deletes a role with a given ID. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: The ID of the role to delete. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_role_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_role_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_role_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a role by ID # noqa: E501
+
+ Deletes a role with a given ID. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: The ID of the role to delete. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs. (required)
+ :return: ResponseContainerRoleDTO
+ 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 delete_role" % 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 `delete_role`") # 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
+
+ # 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/role/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRoleDTO', # 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_all_roles(self, **kwargs): # noqa: E501
+ """Get all roles # noqa: E501
+
+ Returns all existing roles in the service instance with detailed information for each role, including assigned groups and accounts, management properties, permissions, name, ID, description, and the time of the last update and who has done it. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_all_roles(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_roles_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_roles_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_roles_with_http_info(self, **kwargs): # noqa: E501
+ """Get all roles # noqa: E501
+
+ Returns all existing roles in the service instance with detailed information for each role, including assigned groups and accounts, management properties, permissions, name, ID, description, and the time of the last update and who has done it. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_all_roles_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_roles" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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/role', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedRoleDTO', # 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_role(self, id, **kwargs): # noqa: E501
+ """Get a role by ID # noqa: E501
+
+ Returns the details of a role with a given ID. The response includes assigned groups and accounts, management properties, permissions, name, description, and the time of the last update and who has done it. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: The ID of the role to get. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_role_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_role_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_role_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a role by ID # noqa: E501
+
+ Returns the details of a role with a given ID. The response includes assigned groups and accounts, management properties, permissions, name, description, and the time of the last update and who has done it. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: The ID of the role to get. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs. (required)
+ :return: ResponseContainerRoleDTO
+ 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_role" % 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_role`") # 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
+
+ # 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/role/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRoleDTO', # 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 grant_permission_to_roles(self, permission, body, **kwargs): # noqa: E501
+ """Grant a permission to roles # noqa: E501
+
+ Grants a given permission to a list of roles. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_permission_to_roles(permission, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: The permission to grant. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission. (required)
+ :param list[str] body: A list of role IDs to which to grant the permission. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.grant_permission_to_roles_with_http_info(permission, body, **kwargs) # noqa: E501
+ else:
+ (data) = self.grant_permission_to_roles_with_http_info(permission, body, **kwargs) # noqa: E501
+ return data
+
+ def grant_permission_to_roles_with_http_info(self, permission, body, **kwargs): # noqa: E501
+ """Grant a permission to roles # noqa: E501
+
+ Grants a given permission to a list of roles. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_permission_to_roles_with_http_info(permission, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: The permission to grant. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission. (required)
+ :param list[str] body: A list of role IDs to which to grant the permission. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['permission', '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 grant_permission_to_roles" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'permission' is set
+ if self.api_client.client_side_validation and ('permission' not in params or
+ params['permission'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `permission` when calling `grant_permission_to_roles`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in params or
+ params['body'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `body` when calling `grant_permission_to_roles`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'permission' in params:
+ path_params['permission'] = params['permission'] # 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/role/grant/{permission}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRoleDTO', # 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_assignees(self, id, body, **kwargs): # noqa: E501
+ """Remove accounts and groups from a role # noqa: E501
+
+ Revokes a role with a given ID from a list of user and service accounts and groups. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_assignees(id, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: The ID of the role to revoke. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs. (required)
+ :param list[str] body: A list of accounts and groups to remove from the role. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.remove_assignees_with_http_info(id, body, **kwargs) # noqa: E501
+ else:
+ (data) = self.remove_assignees_with_http_info(id, body, **kwargs) # noqa: E501
+ return data
+
+ def remove_assignees_with_http_info(self, id, body, **kwargs): # noqa: E501
+ """Remove accounts and groups from a role # noqa: E501
+
+ Revokes a role with a given ID from a list of user and service accounts and groups. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_assignees_with_http_info(id, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: The ID of the role to revoke. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs. (required)
+ :param list[str] body: A list of accounts and groups to remove from the role. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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_assignees" % 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 `remove_assignees`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in params or
+ params['body'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `body` when calling `remove_assignees`") # 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
+ 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/role/{id}/removeAssignees', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRoleDTO', # 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_permission_from_roles(self, permission, body, **kwargs): # noqa: E501
+ """Revoke a permission from roles # noqa: E501
+
+ Revokes a given permission from a list of roles. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_permission_from_roles(permission, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: The permission to revoke. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission. (required)
+ :param list[str] body: A list of role IDs from which to revoke the permission. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.revoke_permission_from_roles_with_http_info(permission, body, **kwargs) # noqa: E501
+ else:
+ (data) = self.revoke_permission_from_roles_with_http_info(permission, body, **kwargs) # noqa: E501
+ return data
+
+ def revoke_permission_from_roles_with_http_info(self, permission, body, **kwargs): # noqa: E501
+ """Revoke a permission from roles # noqa: E501
+
+ Revokes a given permission from a list of roles. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_permission_from_roles_with_http_info(permission, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: The permission to revoke. Note that host_tag_management is the equivalent of the **Source Tag Management** permission, monitored_application_service_management is the equivalent of the **Integrations** permission, agent_management is the equivalent of the **Proxies** permission. (required)
+ :param list[str] body: A list of role IDs from which to revoke the permission. (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['permission', '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 revoke_permission_from_roles" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'permission' is set
+ if self.api_client.client_side_validation and ('permission' not in params or
+ params['permission'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `permission` when calling `revoke_permission_from_roles`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in params or
+ params['body'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `body` when calling `revoke_permission_from_roles`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'permission' in params:
+ path_params['permission'] = params['permission'] # 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/role/revoke/{permission}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRoleDTO', # 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 update_role(self, id, body, **kwargs): # noqa: E501
+ """Update a role by ID # noqa: E501
+
+ Updates a role with a given ID. You can update the assigned groups and accounts, management properties, permissions, ID, name, and description. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_role(id, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: The ID of the role to update. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs. (required)
+ :param RoleUpdateDTO body: You can first run the Get a role by ID API call, and then you can copy and edit the response body. An example body for a role with all permissions: { \"id\": \"Role_ID\", \"name\": \"Role_name\", \"permissions\": [ \"agent_management\", \"alerts_management\", \"application_management\", \"batch_query_priority\", \"derived_metrics_management\", \"dashboard_management\", \"embedded_charts\", \"events_management\", \"external_links_management\", \"host_tag_management\", \"ingestion\", \"metrics_management\", \"monitored_application_service_management\", \"saml_sso_management\", \"token_management\", \"user_management\" ], \"description\": \"Role_description\" } (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_role_with_http_info(id, body, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_role_with_http_info(id, body, **kwargs) # noqa: E501
+ return data
+
+ def update_role_with_http_info(self, id, body, **kwargs): # noqa: E501
+ """Update a role by ID # noqa: E501
+
+ Updates a role with a given ID. You can update the assigned groups and accounts, management properties, permissions, ID, name, and description. Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_role_with_http_info(id, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: The ID of the role to update. If you don't know the role's ID, run the Get all roles API call to return all roles and their IDs. (required)
+ :param RoleUpdateDTO body: You can first run the Get a role by ID API call, and then you can copy and edit the response body. An example body for a role with all permissions: { \"id\": \"Role_ID\", \"name\": \"Role_name\", \"permissions\": [ \"agent_management\", \"alerts_management\", \"application_management\", \"batch_query_priority\", \"derived_metrics_management\", \"dashboard_management\", \"embedded_charts\", \"events_management\", \"external_links_management\", \"host_tag_management\", \"ingestion\", \"metrics_management\", \"monitored_application_service_management\", \"saml_sso_management\", \"token_management\", \"user_management\" ], \"description\": \"Role_description\" } (required)
+ :return: ResponseContainerRoleDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_role" % 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 `update_role`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in params or
+ params['body'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `body` when calling `update_role`") # 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
+ 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/role/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerRoleDTO', # 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)
diff --git a/wavefront_api_client/api/saved_app_map_search_api.py b/wavefront_api_client/api/saved_app_map_search_api.py
new file mode 100644
index 00000000..7f03c907
--- /dev/null
+++ b/wavefront_api_client/api/saved_app_map_search_api.py
@@ -0,0 +1,1095 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class SavedAppMapSearchApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_saved_app_map_search(self, **kwargs): # noqa: E501 + """Create a search # 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.create_saved_app_map_search(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SavedAppMapSearch body: Example Body:{ \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }
+ :return: ResponseContainerSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_saved_app_map_search_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_saved_app_map_search_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_saved_app_map_search_with_http_info(self, **kwargs): # noqa: E501
+ """Create a search # 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.create_saved_app_map_search_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param SavedAppMapSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }
+ :return: ResponseContainerSavedAppMapSearch
+ 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 create_saved_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
+ 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/savedappmapsearch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearch', # 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(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
+
+ # 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_saved_app_map_search(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_saved_app_map_search_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_saved_app_map_search_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_saved_app_map_search_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a search # 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_saved_app_map_search_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearch
+ 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 delete_saved_app_map_search" % 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 `delete_saved_app_map_search`") # 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
+
+ # 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/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearch', # 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_for_user(self, id, **kwargs): # noqa: E501
+ """Delete a search belonging to the 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.delete_saved_app_map_search_for_user(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_saved_app_map_search_for_user_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_saved_app_map_search_for_user_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_saved_app_map_search_for_user_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a search belonging to the 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.delete_saved_app_map_search_for_user_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearch
+ 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 delete_saved_app_map_search_for_user" % 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 `delete_saved_app_map_search_for_user`") # 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
+
+ # 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/owned/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearch', # 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_all_saved_app_map_searches(self, **kwargs): # noqa: E501
+ """Get all searches 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_all_saved_app_map_searches(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_saved_app_map_searches_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_saved_app_map_searches_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_saved_app_map_searches_with_http_info(self, **kwargs): # noqa: E501
+ """Get all searches 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_all_saved_app_map_searches_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_saved_app_map_searches" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/savedappmapsearch', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSavedAppMapSearch', # 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_all_saved_app_map_searches_for_user(self, **kwargs): # noqa: E501
+ """Get all searches 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.get_all_saved_app_map_searches_for_user(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_saved_app_map_searches_for_user_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_saved_app_map_searches_for_user_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_saved_app_map_searches_for_user_with_http_info(self, **kwargs): # noqa: E501
+ """Get all searches 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.get_all_saved_app_map_searches_for_user_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_saved_app_map_searches_for_user" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/savedappmapsearch/owned', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSavedAppMapSearch', # 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_saved_app_map_search(self, id, **kwargs): # noqa: E501
+ """Get a specific search # 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_saved_app_map_search(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_saved_app_map_search_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_saved_app_map_search_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_saved_app_map_search_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific search # 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_saved_app_map_search_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearch
+ 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_saved_app_map_search" % 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_saved_app_map_search`") # 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/savedappmapsearch/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearch', # 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 update_saved_app_map_search(self, id, **kwargs): # noqa: E501
+ """Update a search # 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.update_saved_app_map_search(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedAppMapSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }
+ :return: ResponseContainerSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_saved_app_map_search_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_saved_app_map_search_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_saved_app_map_search_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a search # 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.update_saved_app_map_search_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedAppMapSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }
+ :return: ResponseContainerSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_saved_app_map_search" % 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 `update_saved_app_map_search`") # 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
+ 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/savedappmapsearch/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearch', # 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 update_saved_app_map_search_for_user(self, id, **kwargs): # noqa: E501
+ """Update a search belonging to the 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.update_saved_app_map_search_for_user(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedAppMapSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }
+ :return: ResponseContainerSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_saved_app_map_search_for_user_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_saved_app_map_search_for_user_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_saved_app_map_search_for_user_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a search belonging to the 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.update_saved_app_map_search_for_user_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedAppMapSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping\" ] ] } } ] } }
+ :return: ResponseContainerSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_saved_app_map_search_for_user" % 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 `update_saved_app_map_search_for_user`") # 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
+ 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/savedappmapsearch/owned/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearch', # 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)
diff --git a/wavefront_api_client/api/saved_app_map_search_group_api.py b/wavefront_api_client/api/saved_app_map_search_group_api.py
new file mode 100644
index 00000000..0734a26b
--- /dev/null
+++ b/wavefront_api_client/api/saved_app_map_search_group_api.py
@@ -0,0 +1,830 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class SavedAppMapSearchGroupApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_saved_app_map_search_to_group(self, id, search_id, **kwargs): # noqa: E501 + """Add a search to a search group # 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_saved_app_map_search_to_group(id, search_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param str search_id: (required) + :return: ResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_saved_app_map_search_to_group_with_http_info(id, search_id, **kwargs) # noqa: E501 + else: + (data) = self.add_saved_app_map_search_to_group_with_http_info(id, search_id, **kwargs) # noqa: E501 + return data + + def add_saved_app_map_search_to_group_with_http_info(self, id, search_id, **kwargs): # noqa: E501 + """Add a search to a search group # 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_saved_app_map_search_to_group_with_http_info(id, search_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param str search_id: (required) + :return: ResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'search_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 add_saved_app_map_search_to_group" % 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 `add_saved_app_map_search_to_group`") # noqa: E501 + # verify the required parameter 'search_id' is set + if self.api_client.client_side_validation and ('search_id' not in params or + params['search_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `search_id` when calling `add_saved_app_map_search_to_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + if 'search_id' in params: + path_params['searchId'] = params['search_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/savedappmapsearchgroup/{id}/addSearch/{searchId}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainer', # 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_saved_app_map_search_group(self, **kwargs): # noqa: E501 + """Create a search group # 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.create_saved_app_map_search_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SavedAppMapSearchGroup body: Example Body:{ \"name\": \"Search Group 1\" }
+ :return: ResponseContainerSavedAppMapSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_saved_app_map_search_group_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_saved_app_map_search_group_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_saved_app_map_search_group_with_http_info(self, **kwargs): # noqa: E501
+ """Create a search group # 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.create_saved_app_map_search_group_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param SavedAppMapSearchGroup body: Example Body: { \"name\": \"Search Group 1\" }
+ :return: ResponseContainerSavedAppMapSearchGroup
+ 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 create_saved_app_map_search_group" % 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/savedappmapsearchgroup', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearchGroup', # 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_group(self, id, **kwargs): # noqa: E501
+ """Delete a search group # 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_saved_app_map_search_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_saved_app_map_search_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_saved_app_map_search_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_saved_app_map_search_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a search group # 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_saved_app_map_search_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearchGroup
+ 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 delete_saved_app_map_search_group" % 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 `delete_saved_app_map_search_group`") # 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
+
+ # 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/savedappmapsearchgroup/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearchGroup', # 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_all_saved_app_map_search_group(self, **kwargs): # noqa: E501
+ """Get all search groups 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.get_all_saved_app_map_search_group(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedAppMapSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_saved_app_map_search_group_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_saved_app_map_search_group_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_saved_app_map_search_group_with_http_info(self, **kwargs): # noqa: E501
+ """Get all search groups 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.get_all_saved_app_map_search_group_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedAppMapSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_saved_app_map_search_group" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/savedappmapsearchgroup', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSavedAppMapSearchGroup', # 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_saved_app_map_search_group(self, id, **kwargs): # noqa: E501
+ """Get a specific search group # 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_saved_app_map_search_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_saved_app_map_search_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_saved_app_map_search_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_saved_app_map_search_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific search group # 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_saved_app_map_search_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedAppMapSearchGroup
+ 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_saved_app_map_search_group" % 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_saved_app_map_search_group`") # 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/savedappmapsearchgroup/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearchGroup', # 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_saved_app_map_searches_for_group(self, id, **kwargs): # noqa: E501
+ """Get all searches for a search group # 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_saved_app_map_searches_for_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_saved_app_map_searches_for_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_saved_app_map_searches_for_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_saved_app_map_searches_for_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get all searches for a search group # 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_saved_app_map_searches_for_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedAppMapSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'offset', 'limit'] # 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_saved_app_map_searches_for_group" % 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_saved_app_map_searches_for_group`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/savedappmapsearchgroup/{id}/searches', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSavedAppMapSearch', # 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_saved_app_map_search_from_group(self, id, search_id, **kwargs): # noqa: E501
+ """Remove a search from a search group # 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_saved_app_map_search_from_group(id, search_id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str search_id: (required)
+ :return: ResponseContainer
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.remove_saved_app_map_search_from_group_with_http_info(id, search_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.remove_saved_app_map_search_from_group_with_http_info(id, search_id, **kwargs) # noqa: E501
+ return data
+
+ def remove_saved_app_map_search_from_group_with_http_info(self, id, search_id, **kwargs): # noqa: E501
+ """Remove a search from a search group # 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_saved_app_map_search_from_group_with_http_info(id, search_id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str search_id: (required)
+ :return: ResponseContainer
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'search_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 remove_saved_app_map_search_from_group" % 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 `remove_saved_app_map_search_from_group`") # noqa: E501
+ # verify the required parameter 'search_id' is set
+ if self.api_client.client_side_validation and ('search_id' not in params or
+ params['search_id'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `search_id` when calling `remove_saved_app_map_search_from_group`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+ if 'search_id' in params:
+ path_params['searchId'] = params['search_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/savedappmapsearchgroup/{id}/removeSearch/{searchId}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainer', # 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 update_saved_app_map_search_group(self, id, **kwargs): # noqa: E501
+ """Update a search group # 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.update_saved_app_map_search_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedAppMapSearchGroup body: Example Body: { \"name\": \"Search Group 1\" }
+ :return: ResponseContainerSavedAppMapSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_saved_app_map_search_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_saved_app_map_search_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_saved_app_map_search_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a search group # 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.update_saved_app_map_search_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedAppMapSearchGroup body: Example Body: { \"name\": \"Search Group 1\" }
+ :return: ResponseContainerSavedAppMapSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_saved_app_map_search_group" % 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 `update_saved_app_map_search_group`") # 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
+ 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/savedappmapsearchgroup/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedAppMapSearchGroup', # 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)
diff --git a/wavefront_api_client/api/saved_search_api.py b/wavefront_api_client/api/saved_search_api.py
index a22c9f9a..c4763dfe 100644
--- a/wavefront_api_client/api/saved_search_api.py
+++ b/wavefront_api_client/api/saved_search_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,18 +38,18 @@ def create_saved_search(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_saved_search(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_saved_search(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SavedSearch body: Example Body:{ \"query\": { \"foo\": \"{\\\"searchTerms\\\":[{\\\"type\\\":\\\"freetext\\\",\\\"value\\\":\\\"foo\\\"}]}\" }, \"entityType\": \"DASHBOARD\" }
:return: ResponseContainerSavedSearch
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_saved_search_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_saved_search_with_http_info(**kwargs) # noqa: E501
@@ -60,11 +60,11 @@ def create_saved_search_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_saved_search_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_saved_search_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param SavedSearch body: Example Body: { \"query\": { \"foo\": \"{\\\"searchTerms\\\":[{\\\"type\\\":\\\"freetext\\\",\\\"value\\\":\\\"foo\\\"}]}\" }, \"entityType\": \"DASHBOARD\" }
:return: ResponseContainerSavedSearch
If the method is called asynchronously,
@@ -72,7 +72,7 @@ def create_saved_search_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -122,7 +122,7 @@ def create_saved_search_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerSavedSearch', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -133,18 +133,18 @@ def delete_saved_search(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_saved_search(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_saved_search(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerSavedSearch
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.delete_saved_search_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_saved_search_with_http_info(id, **kwargs) # noqa: E501
@@ -155,11 +155,11 @@ def delete_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_saved_search_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_saved_search_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerSavedSearch
If the method is called asynchronously,
@@ -167,7 +167,7 @@ def delete_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -182,8 +182,8 @@ def delete_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `delete_saved_search`") # noqa: E501
collection_formats = {}
@@ -217,7 +217,7 @@ def delete_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerSavedSearch', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -228,11 +228,11 @@ def get_all_entity_type_saved_searches(self, entitytype, **kwargs): # noqa: E50
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_entity_type_saved_searches(entitytype, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_entity_type_saved_searches(entitytype, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str entitytype: (required)
:param int offset:
:param int limit:
@@ -241,7 +241,7 @@ def get_all_entity_type_saved_searches(self, entitytype, **kwargs): # noqa: E50
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_all_entity_type_saved_searches_with_http_info(entitytype, **kwargs) # noqa: E501
else:
(data) = self.get_all_entity_type_saved_searches_with_http_info(entitytype, **kwargs) # noqa: E501
@@ -252,11 +252,11 @@ def get_all_entity_type_saved_searches_with_http_info(self, entitytype, **kwargs
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_entity_type_saved_searches_with_http_info(entitytype, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_entity_type_saved_searches_with_http_info(entitytype, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str entitytype: (required)
:param int offset:
:param int limit:
@@ -266,7 +266,7 @@ def get_all_entity_type_saved_searches_with_http_info(self, entitytype, **kwargs
"""
all_params = ['entitytype', 'offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -281,8 +281,8 @@ def get_all_entity_type_saved_searches_with_http_info(self, entitytype, **kwargs
params[key] = val
del params['kwargs']
# verify the required parameter 'entitytype' is set
- if ('entitytype' not in params or
- params['entitytype'] is None):
+ if self.api_client.client_side_validation and ('entitytype' not in params or
+ params['entitytype'] is None): # noqa: E501
raise ValueError("Missing the required parameter `entitytype` when calling `get_all_entity_type_saved_searches`") # noqa: E501
collection_formats = {}
@@ -320,7 +320,7 @@ def get_all_entity_type_saved_searches_with_http_info(self, entitytype, **kwargs
files=local_var_files,
response_type='ResponseContainerPagedSavedSearch', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -331,11 +331,11 @@ def get_all_saved_searches(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_saved_searches(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_saved_searches(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedSavedSearch
@@ -343,7 +343,7 @@ def get_all_saved_searches(self, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_all_saved_searches_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_saved_searches_with_http_info(**kwargs) # noqa: E501
@@ -354,11 +354,11 @@ def get_all_saved_searches_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_saved_searches_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_saved_searches_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedSavedSearch
@@ -367,7 +367,7 @@ def get_all_saved_searches_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -415,7 +415,7 @@ def get_all_saved_searches_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerPagedSavedSearch', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -426,18 +426,18 @@ def get_saved_search(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_saved_search(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_saved_search(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerSavedSearch
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_saved_search_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_saved_search_with_http_info(id, **kwargs) # noqa: E501
@@ -448,11 +448,11 @@ def get_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_saved_search_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_saved_search_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerSavedSearch
If the method is called asynchronously,
@@ -460,7 +460,7 @@ def get_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -475,8 +475,8 @@ def get_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_saved_search`") # noqa: E501
collection_formats = {}
@@ -510,7 +510,7 @@ def get_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerSavedSearch', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -521,11 +521,11 @@ def update_saved_search(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_saved_search(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_saved_search(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param SavedSearch body: Example Body: { \"query\": { \"foo\": \"{\\\"searchTerms\\\":[{\\\"type\\\":\\\"freetext\\\",\\\"value\\\":\\\"foo\\\"}]}\" }, \"entityType\": \"DASHBOARD\" }
:return: ResponseContainerSavedSearch
@@ -533,7 +533,7 @@ def update_saved_search(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_saved_search_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_saved_search_with_http_info(id, **kwargs) # noqa: E501
@@ -544,11 +544,11 @@ def update_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_saved_search_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_saved_search_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param SavedSearch body: Example Body: { \"query\": { \"foo\": \"{\\\"searchTerms\\\":[{\\\"type\\\":\\\"freetext\\\",\\\"value\\\":\\\"foo\\\"}]}\" }, \"entityType\": \"DASHBOARD\" }
:return: ResponseContainerSavedSearch
@@ -557,7 +557,7 @@ def update_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -572,8 +572,8 @@ def update_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_saved_search`") # noqa: E501
collection_formats = {}
@@ -613,7 +613,7 @@ def update_saved_search_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerSavedSearch', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/saved_traces_search_api.py b/wavefront_api_client/api/saved_traces_search_api.py
new file mode 100644
index 00000000..0b0ef938
--- /dev/null
+++ b/wavefront_api_client/api/saved_traces_search_api.py
@@ -0,0 +1,1095 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class SavedTracesSearchApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_saved_traces_search(self, **kwargs): # noqa: E501 + """Create a search # 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.create_saved_traces_search(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SavedTracesSearch body: Example Body:{ \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }
+ :return: ResponseContainerSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_saved_traces_search_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_saved_traces_search_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_saved_traces_search_with_http_info(self, **kwargs): # noqa: E501
+ """Create a search # 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.create_saved_traces_search_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param SavedTracesSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }
+ :return: ResponseContainerSavedTracesSearch
+ 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 create_saved_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
+ 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/savedtracessearch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearch', # 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(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
+
+ # 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_saved_traces_search(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_saved_traces_search_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_saved_traces_search_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_saved_traces_search_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a search # 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_saved_traces_search_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearch
+ 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 delete_saved_traces_search" % 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 `delete_saved_traces_search`") # 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
+
+ # 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/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearch', # 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_for_user(self, id, **kwargs): # noqa: E501
+ """Delete a search belonging to the 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.delete_saved_traces_search_for_user(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_saved_traces_search_for_user_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_saved_traces_search_for_user_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_saved_traces_search_for_user_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a search belonging to the 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.delete_saved_traces_search_for_user_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearch
+ 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 delete_saved_traces_search_for_user" % 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 `delete_saved_traces_search_for_user`") # 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
+
+ # 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/owned/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearch', # 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_all_saved_traces_searches(self, **kwargs): # noqa: E501
+ """Get all searches 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_all_saved_traces_searches(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_saved_traces_searches_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_saved_traces_searches_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_saved_traces_searches_with_http_info(self, **kwargs): # noqa: E501
+ """Get all searches 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_all_saved_traces_searches_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_saved_traces_searches" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/savedtracessearch', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSavedTracesSearch', # 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_all_saved_traces_searches_for_user(self, **kwargs): # noqa: E501
+ """Get all searches 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.get_all_saved_traces_searches_for_user(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_saved_traces_searches_for_user_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_saved_traces_searches_for_user_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_saved_traces_searches_for_user_with_http_info(self, **kwargs): # noqa: E501
+ """Get all searches 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.get_all_saved_traces_searches_for_user_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_saved_traces_searches_for_user" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/savedtracessearch/owned', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSavedTracesSearch', # 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_saved_traces_search(self, id, **kwargs): # noqa: E501
+ """Get a specific search # 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_saved_traces_search(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_saved_traces_search_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_saved_traces_search_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_saved_traces_search_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific search # 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_saved_traces_search_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearch
+ 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_saved_traces_search" % 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_saved_traces_search`") # 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/savedtracessearch/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearch', # 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 update_saved_traces_search(self, id, **kwargs): # noqa: E501
+ """Update a search # 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.update_saved_traces_search(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedTracesSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }
+ :return: ResponseContainerSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_saved_traces_search_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_saved_traces_search_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_saved_traces_search_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a search # 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.update_saved_traces_search_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedTracesSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }
+ :return: ResponseContainerSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_saved_traces_search" % 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 `update_saved_traces_search`") # 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
+ 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/savedtracessearch/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearch', # 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 update_saved_traces_search_for_user(self, id, **kwargs): # noqa: E501
+ """Update a search belonging to the 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.update_saved_traces_search_for_user(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedTracesSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }
+ :return: ResponseContainerSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_saved_traces_search_for_user_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_saved_traces_search_for_user_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_saved_traces_search_for_user_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a search belonging to the 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.update_saved_traces_search_for_user_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedTracesSearch body: Example Body: { \"name\": \"beachshirts shopping\", \"searchFilters\": { \"filters\": [ { \"filterType\": \"OPERATION\", \"values\": { \"logicalValue\": [ [ \"beachshirts.\", \"shopping.\", \"'*\" ] ] } } ] } }
+ :return: ResponseContainerSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_saved_traces_search_for_user" % 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 `update_saved_traces_search_for_user`") # 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
+ 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/savedtracessearch/owned/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearch', # 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)
diff --git a/wavefront_api_client/api/saved_traces_search_group_api.py b/wavefront_api_client/api/saved_traces_search_group_api.py
new file mode 100644
index 00000000..7f72e200
--- /dev/null
+++ b/wavefront_api_client/api/saved_traces_search_group_api.py
@@ -0,0 +1,830 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class SavedTracesSearchGroupApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_saved_traces_search_to_group(self, id, search_id, **kwargs): # noqa: E501 + """Add a search to a search group # 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_saved_traces_search_to_group(id, search_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param str search_id: (required) + :return: ResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_saved_traces_search_to_group_with_http_info(id, search_id, **kwargs) # noqa: E501 + else: + (data) = self.add_saved_traces_search_to_group_with_http_info(id, search_id, **kwargs) # noqa: E501 + return data + + def add_saved_traces_search_to_group_with_http_info(self, id, search_id, **kwargs): # noqa: E501 + """Add a search to a search group # 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_saved_traces_search_to_group_with_http_info(id, search_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param str search_id: (required) + :return: ResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'search_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 add_saved_traces_search_to_group" % 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 `add_saved_traces_search_to_group`") # noqa: E501 + # verify the required parameter 'search_id' is set + if self.api_client.client_side_validation and ('search_id' not in params or + params['search_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `search_id` when calling `add_saved_traces_search_to_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + if 'search_id' in params: + path_params['searchId'] = params['search_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/savedtracessearchgroup/{id}/addSearch/{searchId}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainer', # 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_saved_traces_search_group(self, **kwargs): # noqa: E501 + """Create a search group # 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.create_saved_traces_search_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SavedTracesSearchGroup body: Example Body:{ \"name\": \"Search Group 1\" }
+ :return: ResponseContainerSavedTracesSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_saved_traces_search_group_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_saved_traces_search_group_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_saved_traces_search_group_with_http_info(self, **kwargs): # noqa: E501
+ """Create a search group # 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.create_saved_traces_search_group_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param SavedTracesSearchGroup body: Example Body: { \"name\": \"Search Group 1\" }
+ :return: ResponseContainerSavedTracesSearchGroup
+ 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 create_saved_traces_search_group" % 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/savedtracessearchgroup', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearchGroup', # 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_group(self, id, **kwargs): # noqa: E501
+ """Delete a search group # 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_saved_traces_search_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_saved_traces_search_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_saved_traces_search_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_saved_traces_search_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a search group # 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_saved_traces_search_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearchGroup
+ 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 delete_saved_traces_search_group" % 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 `delete_saved_traces_search_group`") # 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
+
+ # 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/savedtracessearchgroup/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearchGroup', # 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_all_saved_traces_search_group(self, **kwargs): # noqa: E501
+ """Get all search groups 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.get_all_saved_traces_search_group(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedTracesSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_saved_traces_search_group_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_saved_traces_search_group_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_saved_traces_search_group_with_http_info(self, **kwargs): # noqa: E501
+ """Get all search groups 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.get_all_saved_traces_search_group_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedTracesSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_saved_traces_search_group" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/savedtracessearchgroup', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSavedTracesSearchGroup', # 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_saved_traces_search_group(self, id, **kwargs): # noqa: E501
+ """Get a specific search group # 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_saved_traces_search_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_saved_traces_search_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_saved_traces_search_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_saved_traces_search_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific search group # 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_saved_traces_search_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSavedTracesSearchGroup
+ 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_saved_traces_search_group" % 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_saved_traces_search_group`") # 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/savedtracessearchgroup/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearchGroup', # 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_saved_traces_searches_for_group(self, id, **kwargs): # noqa: E501
+ """Get all searches for a search group # 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_saved_traces_searches_for_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_saved_traces_searches_for_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_saved_traces_searches_for_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_saved_traces_searches_for_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get all searches for a search group # 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_saved_traces_searches_for_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSavedTracesSearch
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'offset', 'limit'] # 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_saved_traces_searches_for_group" % 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_saved_traces_searches_for_group`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/savedtracessearchgroup/{id}/searches', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSavedTracesSearch', # 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_saved_traces_search_from_group(self, id, search_id, **kwargs): # noqa: E501
+ """Remove a search from a search group # 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_saved_traces_search_from_group(id, search_id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str search_id: (required)
+ :return: ResponseContainer
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.remove_saved_traces_search_from_group_with_http_info(id, search_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.remove_saved_traces_search_from_group_with_http_info(id, search_id, **kwargs) # noqa: E501
+ return data
+
+ def remove_saved_traces_search_from_group_with_http_info(self, id, search_id, **kwargs): # noqa: E501
+ """Remove a search from a search group # 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_saved_traces_search_from_group_with_http_info(id, search_id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str search_id: (required)
+ :return: ResponseContainer
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'search_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 remove_saved_traces_search_from_group" % 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 `remove_saved_traces_search_from_group`") # noqa: E501
+ # verify the required parameter 'search_id' is set
+ if self.api_client.client_side_validation and ('search_id' not in params or
+ params['search_id'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `search_id` when calling `remove_saved_traces_search_from_group`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+ if 'search_id' in params:
+ path_params['searchId'] = params['search_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/savedtracessearchgroup/{id}/removeSearch/{searchId}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainer', # 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 update_saved_traces_search_group(self, id, **kwargs): # noqa: E501
+ """Update a search group # 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.update_saved_traces_search_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedTracesSearchGroup body: Example Body: { \"name\": \"Search Group 1\" }
+ :return: ResponseContainerSavedTracesSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_saved_traces_search_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_saved_traces_search_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_saved_traces_search_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a search group # 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.update_saved_traces_search_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SavedTracesSearchGroup body: Example Body: { \"name\": \"Search Group 1\" }
+ :return: ResponseContainerSavedTracesSearchGroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_saved_traces_search_group" % 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 `update_saved_traces_search_group`") # 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
+ 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/savedtracessearchgroup/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSavedTracesSearchGroup', # 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)
diff --git a/wavefront_api_client/api/search_api.py b/wavefront_api_client/api/search_api.py
index c51fd833..3d46cec9 100644
--- a/wavefront_api_client/api/search_api.py
+++ b/wavefront_api_client/api/search_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,46 +33,46 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def search_alert_deleted_entities(self, **kwargs): # noqa: E501 - """Search over a customer's deleted alerts # noqa: E501 + def search_account_entities(self, **kwargs): # noqa: E501 + """Search over a customer's accounts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_deleted_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_account_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedAlert + :return: ResponseContainerPagedAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_alert_deleted_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_account_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_alert_deleted_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_account_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_alert_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's deleted alerts # noqa: E501 + def search_account_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's accounts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_deleted_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_account_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedAlert + :return: ResponseContainerPagedAccount If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -82,7 +82,7 @@ def search_alert_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_alert_deleted_entities" % key + " to method search_account_entities" % key ) params[key] = val del params['kwargs'] @@ -113,31 +113,31 @@ def search_alert_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/alert/deleted', 'POST', + '/api/v2/search/account', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedAlert', # noqa: E501 + response_type='ResponseContainerPagedAccount', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_alert_deleted_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted alerts # noqa: E501 + def search_account_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's accounts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_deleted_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_account_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -145,22 +145,22 @@ def search_alert_deleted_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_alert_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_account_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_alert_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_account_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted alerts # noqa: E501 + def search_account_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's accounts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_deleted_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_account_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -169,7 +169,7 @@ def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): # noq """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -179,14 +179,14 @@ def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): # noq if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_alert_deleted_for_facet" % key + " to method search_account_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_alert_deleted_for_facet`") # noqa: E501 + 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_account_for_facet`") # noqa: E501 collection_formats = {} @@ -216,7 +216,7 @@ def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): # noq auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/alert/deleted/{facet}', 'POST', + '/api/v2/search/account/{facet}', 'POST', path_params, query_params, header_params, @@ -225,44 +225,44 @@ def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): # noq files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_alert_deleted_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted alerts # noqa: E501 + def search_account_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's accounts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_deleted_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_account_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_alert_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_account_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_alert_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_account_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_alert_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted alerts # noqa: E501 + def search_account_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's accounts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_deleted_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_account_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -270,7 +270,7 @@ def search_alert_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E50 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -280,7 +280,7 @@ def search_alert_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E50 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_alert_deleted_for_facets" % key + " to method search_account_for_facets" % key ) params[key] = val del params['kwargs'] @@ -311,7 +311,7 @@ def search_alert_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E50 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/alert/deleted/facets', 'POST', + '/api/v2/search/account/facets', 'POST', path_params, query_params, header_params, @@ -320,52 +320,52 @@ def search_alert_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E50 files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_alert_entities(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted alerts # noqa: E501 + def search_alert_deleted_entities(self, **kwargs): # noqa: E501 + """Search over a customer's deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_deleted_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedAlertWithStats + :return: ResponseContainerPagedAlert If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_alert_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_alert_deleted_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_alert_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_alert_deleted_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_alert_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted alerts # noqa: E501 + def search_alert_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_deleted_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedAlertWithStats + :return: ResponseContainerPagedAlert If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -375,7 +375,7 @@ def search_alert_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_alert_entities" % key + " to method search_alert_deleted_entities" % key ) params[key] = val del params['kwargs'] @@ -406,31 +406,31 @@ def search_alert_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/alert', 'POST', + '/api/v2/search/alert/deleted', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedAlertWithStats', # noqa: E501 + response_type='ResponseContainerPagedAlert', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_alert_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted alerts # noqa: E501 + def search_alert_deleted_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_deleted_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -438,22 +438,22 @@ def search_alert_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_alert_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_alert_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_alert_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_alert_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_alert_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted alerts # noqa: E501 + def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_deleted_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -462,7 +462,7 @@ def search_alert_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -472,14 +472,14 @@ def search_alert_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_alert_for_facet" % key + " to method search_alert_deleted_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_alert_for_facet`") # noqa: E501 + 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_alert_deleted_for_facet`") # noqa: E501 collection_formats = {} @@ -509,7 +509,7 @@ def search_alert_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/alert/{facet}', 'POST', + '/api/v2/search/alert/deleted/{facet}', 'POST', path_params, query_params, header_params, @@ -518,44 +518,44 @@ def search_alert_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_alert_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted alerts # noqa: E501 + def search_alert_deleted_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_deleted_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_alert_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_alert_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_alert_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_alert_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_alert_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted alerts # noqa: E501 + def search_alert_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_alert_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_deleted_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -563,7 +563,7 @@ def search_alert_for_facets_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -573,7 +573,7 @@ def search_alert_for_facets_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_alert_for_facets" % key + " to method search_alert_deleted_for_facets" % key ) params[key] = val del params['kwargs'] @@ -604,7 +604,7 @@ def search_alert_for_facets_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/alert/facets', 'POST', + '/api/v2/search/alert/deleted/facets', 'POST', path_params, query_params, header_params, @@ -613,52 +613,52 @@ def search_alert_for_facets_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_cloud_integration_deleted_entities(self, **kwargs): # noqa: E501 - """Search over a customer's deleted cloud integrations # noqa: E501 + def search_alert_entities(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_deleted_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedCloudIntegration + :return: ResponseContainerPagedAlertWithStats If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_cloud_integration_deleted_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_alert_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_cloud_integration_deleted_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_alert_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_cloud_integration_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's deleted cloud integrations # noqa: E501 + def search_alert_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_deleted_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedCloudIntegration + :return: ResponseContainerPagedAlertWithStats If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -668,7 +668,7 @@ def search_cloud_integration_deleted_entities_with_http_info(self, **kwargs): # if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_cloud_integration_deleted_entities" % key + " to method search_alert_entities" % key ) params[key] = val del params['kwargs'] @@ -699,63 +699,65 @@ def search_cloud_integration_deleted_entities_with_http_info(self, **kwargs): # auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/cloudintegration/deleted', 'POST', + '/api/v2/search/alert', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedCloudIntegration', # noqa: E501 + response_type='ResponseContainerPagedAlertWithStats', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_cloud_integration_deleted_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted cloud integrations # noqa: E501 + def search_alert_execution_summary_entities(self, start, **kwargs): # noqa: E501 + """Search over a customer's alert executions summaries # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_deleted_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_execution_summary_entities(start, async_req=True) >>> result = thread.get() - :param async bool - :param str facet: (required) - :param FacetSearchRequestContainer body: - :return: ResponseContainerFacetResponse + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds + :param SortableSearchRequest body: + :return: ResponseContainerPagedAlertAnalyticsSummaryDetail If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_cloud_integration_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_alert_execution_summary_entities_with_http_info(start, **kwargs) # noqa: E501 else: - (data) = self.search_cloud_integration_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_alert_execution_summary_entities_with_http_info(start, **kwargs) # noqa: E501 return data - def search_cloud_integration_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted cloud integrations # noqa: E501 + def search_alert_execution_summary_entities_with_http_info(self, start, **kwargs): # noqa: E501 + """Search over a customer's alert executions summaries # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_deleted_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_execution_summary_entities_with_http_info(start, async_req=True) >>> result = thread.get() - :param async bool - :param str facet: (required) - :param FacetSearchRequestContainer body: - :return: ResponseContainerFacetResponse + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds + :param SortableSearchRequest body: + :return: ResponseContainerPagedAlertAnalyticsSummaryDetail If the method is called asynchronously, returns the request thread. """ - all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params = ['start', 'end', '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') @@ -765,22 +767,24 @@ def search_cloud_integration_deleted_for_facet_with_http_info(self, facet, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_cloud_integration_deleted_for_facet" % key + " to method search_alert_execution_summary_entities" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_cloud_integration_deleted_for_facet`") # noqa: E501 + # verify the required parameter 'start' is set + if self.api_client.client_side_validation and ('start' not in params or + params['start'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `start` when calling `search_alert_execution_summary_entities`") # noqa: E501 collection_formats = {} path_params = {} - if 'facet' in params: - path_params['facet'] = params['facet'] # noqa: E501 query_params = [] + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'end' in params: + query_params.append(('end', params['end'])) # noqa: E501 header_params = {} @@ -802,61 +806,67 @@ def search_cloud_integration_deleted_for_facet_with_http_info(self, facet, **kwa auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/cloudintegration/deleted/{facet}', 'POST', + '/api/v2/search/alert-analytics-summary', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerFacetResponse', # noqa: E501 + response_type='ResponseContainerPagedAlertAnalyticsSummaryDetail', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_cloud_integration_deleted_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted cloud integrations # noqa: E501 + def search_alert_execution_summary_for_facet(self, facet, start, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's alert executions summaries # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_deleted_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_execution_summary_for_facet(facet, start, async_req=True) >>> result = thread.get() - :param async bool - :param FacetsSearchRequestContainer body: - :return: ResponseContainerFacetsResponseContainer + :param async_req bool + :param str facet: (required) + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds + :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'): - return self.search_cloud_integration_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_alert_execution_summary_for_facet_with_http_info(facet, start, **kwargs) # noqa: E501 else: - (data) = self.search_cloud_integration_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_alert_execution_summary_for_facet_with_http_info(facet, start, **kwargs) # noqa: E501 return data - def search_cloud_integration_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted cloud integrations # noqa: E501 + def search_alert_execution_summary_for_facet_with_http_info(self, facet, start, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's alert executions summaries # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_deleted_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_execution_summary_for_facet_with_http_info(facet, start, async_req=True) >>> result = thread.get() - :param async bool - :param FacetsSearchRequestContainer body: - :return: ResponseContainerFacetsResponseContainer + :param async_req bool + :param str facet: (required) + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds + :param FacetSearchRequestContainer body: + :return: ResponseContainerFacetResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params = ['facet', 'start', 'end', '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') @@ -866,16 +876,30 @@ def search_cloud_integration_deleted_for_facets_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_cloud_integration_deleted_for_facets" % key + " to method search_alert_execution_summary_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_alert_execution_summary_for_facet`") # noqa: E501 + # verify the required parameter 'start' is set + if self.api_client.client_side_validation and ('start' not in params or + params['start'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `start` when calling `search_alert_execution_summary_for_facet`") # noqa: E501 collection_formats = {} path_params = {} + if 'facet' in params: + path_params['facet'] = params['facet'] # noqa: E501 query_params = [] + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'end' in params: + query_params.append(('end', params['end'])) # noqa: E501 header_params = {} @@ -897,61 +921,65 @@ def search_cloud_integration_deleted_for_facets_with_http_info(self, **kwargs): auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/cloudintegration/deleted/facets', 'POST', + '/api/v2/search/alert-analytics-summary/{facet}', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 + response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_cloud_integration_entities(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted cloud integrations # noqa: E501 + def search_alert_execution_summary_for_facets(self, start, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's alert executions summaries # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_execution_summary_for_facets(start, async_req=True) >>> result = thread.get() - :param async bool - :param SortableSearchRequest body: - :return: ResponseContainerPagedCloudIntegration + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds + :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'): - return self.search_cloud_integration_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_alert_execution_summary_for_facets_with_http_info(start, **kwargs) # noqa: E501 else: - (data) = self.search_cloud_integration_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_alert_execution_summary_for_facets_with_http_info(start, **kwargs) # noqa: E501 return data - def search_cloud_integration_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted cloud integrations # noqa: E501 + def search_alert_execution_summary_for_facets_with_http_info(self, start, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's alert executions summaries # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_execution_summary_for_facets_with_http_info(start, async_req=True) >>> result = thread.get() - :param async bool - :param SortableSearchRequest body: - :return: ResponseContainerPagedCloudIntegration + :param async_req bool + :param int start: Start time in epoch seconds (required) + :param int end: End time in epoch seconds + :param FacetsSearchRequestContainer body: + :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params = ['start', 'end', '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') @@ -961,16 +989,24 @@ def search_cloud_integration_entities_with_http_info(self, **kwargs): # noqa: E if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_cloud_integration_entities" % key + " to method search_alert_execution_summary_for_facets" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'start' is set + if self.api_client.client_side_validation and ('start' not in params or + params['start'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `start` when calling `search_alert_execution_summary_for_facets`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'end' in params: + query_params.append(('end', params['end'])) # noqa: E501 header_params = {} @@ -992,31 +1028,31 @@ def search_cloud_integration_entities_with_http_info(self, **kwargs): # noqa: E auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/cloudintegration', 'POST', + '/api/v2/search/alert-analytics-summary/facets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedCloudIntegration', # noqa: E501 + response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_cloud_integration_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted cloud integrations # noqa: E501 + def search_alert_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1024,22 +1060,22 @@ def search_cloud_integration_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_cloud_integration_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_alert_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_cloud_integration_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_alert_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted cloud integrations # noqa: E501 + def search_alert_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1048,7 +1084,7 @@ def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): # """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1058,14 +1094,14 @@ def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): # if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_cloud_integration_for_facet" % key + " to method search_alert_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_cloud_integration_for_facet`") # noqa: E501 + 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_alert_for_facet`") # noqa: E501 collection_formats = {} @@ -1095,7 +1131,7 @@ def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): # auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/cloudintegration/{facet}', 'POST', + '/api/v2/search/alert/{facet}', 'POST', path_params, query_params, header_params, @@ -1104,44 +1140,44 @@ def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): # files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_cloud_integration_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted cloud integrations # noqa: E501 + def search_alert_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_cloud_integration_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_alert_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_cloud_integration_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_alert_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_cloud_integration_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted cloud integrations # noqa: E501 + def search_alert_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted alerts # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_cloud_integration_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_alert_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -1149,7 +1185,7 @@ def search_cloud_integration_for_facets_with_http_info(self, **kwargs): # noqa: """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1159,7 +1195,7 @@ def search_cloud_integration_for_facets_with_http_info(self, **kwargs): # noqa: if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_cloud_integration_for_facets" % key + " to method search_alert_for_facets" % key ) params[key] = val del params['kwargs'] @@ -1190,7 +1226,7 @@ def search_cloud_integration_for_facets_with_http_info(self, **kwargs): # noqa: auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/cloudintegration/facets', 'POST', + '/api/v2/search/alert/facets', 'POST', path_params, query_params, header_params, @@ -1199,52 +1235,52 @@ def search_cloud_integration_for_facets_with_http_info(self, **kwargs): # noqa: files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_dashboard_deleted_entities(self, **kwargs): # noqa: E501 - """Search over a customer's deleted dashboards # noqa: E501 + def search_cloud_integration_deleted_entities(self, **kwargs): # noqa: E501 + """Search over a customer's deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_deleted_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_deleted_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedDashboard + :return: ResponseContainerPagedCloudIntegration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_dashboard_deleted_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_cloud_integration_deleted_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_dashboard_deleted_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_cloud_integration_deleted_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_dashboard_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's deleted dashboards # noqa: E501 + def search_cloud_integration_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_deleted_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_deleted_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedDashboard + :return: ResponseContainerPagedCloudIntegration If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1254,7 +1290,7 @@ def search_dashboard_deleted_entities_with_http_info(self, **kwargs): # noqa: E if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_dashboard_deleted_entities" % key + " to method search_cloud_integration_deleted_entities" % key ) params[key] = val del params['kwargs'] @@ -1285,31 +1321,31 @@ def search_dashboard_deleted_entities_with_http_info(self, **kwargs): # noqa: E auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/dashboard/deleted', 'POST', + '/api/v2/search/cloudintegration/deleted', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedDashboard', # noqa: E501 + response_type='ResponseContainerPagedCloudIntegration', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_dashboard_deleted_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted dashboards # noqa: E501 + def search_cloud_integration_deleted_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_deleted_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_deleted_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1317,22 +1353,22 @@ def search_dashboard_deleted_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_dashboard_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_cloud_integration_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_dashboard_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_cloud_integration_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted dashboards # noqa: E501 + def search_cloud_integration_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_deleted_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_deleted_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1341,7 +1377,7 @@ def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): # """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1351,14 +1387,14 @@ def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): # if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_dashboard_deleted_for_facet" % key + " to method search_cloud_integration_deleted_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_dashboard_deleted_for_facet`") # noqa: E501 + 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_cloud_integration_deleted_for_facet`") # noqa: E501 collection_formats = {} @@ -1388,7 +1424,7 @@ def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): # auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/dashboard/deleted/{facet}', 'POST', + '/api/v2/search/cloudintegration/deleted/{facet}', 'POST', path_params, query_params, header_params, @@ -1397,44 +1433,44 @@ def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): # files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_dashboard_deleted_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted dashboards # noqa: E501 + def search_cloud_integration_deleted_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_deleted_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_deleted_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_dashboard_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_cloud_integration_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_dashboard_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_cloud_integration_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted dashboards # noqa: E501 + def search_cloud_integration_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_deleted_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_deleted_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -1442,7 +1478,7 @@ def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): # noqa: """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1452,7 +1488,7 @@ def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): # noqa: if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_dashboard_deleted_for_facets" % key + " to method search_cloud_integration_deleted_for_facets" % key ) params[key] = val del params['kwargs'] @@ -1483,7 +1519,7 @@ def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): # noqa: auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/dashboard/deleted/facets', 'POST', + '/api/v2/search/cloudintegration/deleted/facets', 'POST', path_params, query_params, header_params, @@ -1492,52 +1528,52 @@ def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): # noqa: files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_dashboard_entities(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted dashboards # noqa: E501 + def search_cloud_integration_entities(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedDashboard + :return: ResponseContainerPagedCloudIntegration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_dashboard_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_cloud_integration_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_dashboard_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_cloud_integration_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_dashboard_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted dashboards # noqa: E501 + def search_cloud_integration_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedDashboard + :return: ResponseContainerPagedCloudIntegration If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1547,7 +1583,7 @@ def search_dashboard_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_dashboard_entities" % key + " to method search_cloud_integration_entities" % key ) params[key] = val del params['kwargs'] @@ -1578,31 +1614,31 @@ def search_dashboard_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/dashboard', 'POST', + '/api/v2/search/cloudintegration', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedDashboard', # noqa: E501 + response_type='ResponseContainerPagedCloudIntegration', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_dashboard_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted dashboards # noqa: E501 + def search_cloud_integration_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1610,22 +1646,22 @@ def search_dashboard_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_dashboard_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_cloud_integration_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_dashboard_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_cloud_integration_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted dashboards # noqa: E501 + def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1634,7 +1670,7 @@ def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): # noqa: E """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1644,14 +1680,14 @@ def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): # noqa: E if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_dashboard_for_facet" % key + " to method search_cloud_integration_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_dashboard_for_facet`") # noqa: E501 + 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_cloud_integration_for_facet`") # noqa: E501 collection_formats = {} @@ -1681,7 +1717,7 @@ def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): # noqa: E auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/dashboard/{facet}', 'POST', + '/api/v2/search/cloudintegration/{facet}', 'POST', path_params, query_params, header_params, @@ -1690,44 +1726,44 @@ def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): # noqa: E files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_dashboard_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted dashboards # noqa: E501 + def search_cloud_integration_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_dashboard_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_cloud_integration_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_dashboard_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_cloud_integration_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_dashboard_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted dashboards # noqa: E501 + def search_cloud_integration_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted cloud integrations # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_dashboard_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_cloud_integration_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -1735,7 +1771,7 @@ def search_dashboard_for_facets_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1745,7 +1781,7 @@ def search_dashboard_for_facets_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_dashboard_for_facets" % key + " to method search_cloud_integration_for_facets" % key ) params[key] = val del params['kwargs'] @@ -1776,7 +1812,7 @@ def search_dashboard_for_facets_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/dashboard/facets', 'POST', + '/api/v2/search/cloudintegration/facets', 'POST', path_params, query_params, header_params, @@ -1785,52 +1821,52 @@ def search_dashboard_for_facets_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_external_link_entities(self, **kwargs): # noqa: E501 - """Search over a customer's external links # noqa: E501 + def search_dashboard_deleted_entities(self, **kwargs): # noqa: E501 + """Search over a customer's deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_external_link_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_deleted_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedExternalLink + :return: ResponseContainerPagedDashboard If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_external_link_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_dashboard_deleted_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_external_link_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_dashboard_deleted_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_external_link_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's external links # noqa: E501 + def search_dashboard_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_external_link_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_deleted_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedExternalLink + :return: ResponseContainerPagedDashboard If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1840,7 +1876,7 @@ def search_external_link_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_external_link_entities" % key + " to method search_dashboard_deleted_entities" % key ) params[key] = val del params['kwargs'] @@ -1871,31 +1907,31 @@ def search_external_link_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/extlink', 'POST', + '/api/v2/search/dashboard/deleted', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedExternalLink', # noqa: E501 + response_type='ResponseContainerPagedDashboard', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_external_links_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's external links # noqa: E501 + def search_dashboard_deleted_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_external_links_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_deleted_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1903,22 +1939,22 @@ def search_external_links_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_external_links_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_dashboard_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_external_links_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_dashboard_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_external_links_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's external links # noqa: E501 + def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_external_links_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_deleted_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1927,7 +1963,7 @@ def search_external_links_for_facet_with_http_info(self, facet, **kwargs): # no """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1937,14 +1973,14 @@ def search_external_links_for_facet_with_http_info(self, facet, **kwargs): # no if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_external_links_for_facet" % key + " to method search_dashboard_deleted_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_external_links_for_facet`") # noqa: E501 + 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_dashboard_deleted_for_facet`") # noqa: E501 collection_formats = {} @@ -1974,7 +2010,7 @@ def search_external_links_for_facet_with_http_info(self, facet, **kwargs): # no auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/extlink/{facet}', 'POST', + '/api/v2/search/dashboard/deleted/{facet}', 'POST', path_params, query_params, header_params, @@ -1983,44 +2019,44 @@ def search_external_links_for_facet_with_http_info(self, facet, **kwargs): # no files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_external_links_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's external links # noqa: E501 + def search_dashboard_deleted_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_external_links_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_deleted_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_external_links_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_dashboard_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_external_links_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_dashboard_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_external_links_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's external links # noqa: E501 + def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_external_links_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_deleted_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -2028,7 +2064,7 @@ def search_external_links_for_facets_with_http_info(self, **kwargs): # noqa: E5 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2038,7 +2074,7 @@ def search_external_links_for_facets_with_http_info(self, **kwargs): # noqa: E5 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_external_links_for_facets" % key + " to method search_dashboard_deleted_for_facets" % key ) params[key] = val del params['kwargs'] @@ -2069,7 +2105,7 @@ def search_external_links_for_facets_with_http_info(self, **kwargs): # noqa: E5 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/extlink/facets', 'POST', + '/api/v2/search/dashboard/deleted/facets', 'POST', path_params, query_params, header_params, @@ -2078,52 +2114,52 @@ def search_external_links_for_facets_with_http_info(self, **kwargs): # noqa: E5 files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_maintenance_window_entities(self, **kwargs): # noqa: E501 - """Search over a customer's maintenance windows # noqa: E501 + def search_dashboard_entities(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_maintenance_window_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedMaintenanceWindow + :return: ResponseContainerPagedDashboard If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_maintenance_window_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_dashboard_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_maintenance_window_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_dashboard_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_maintenance_window_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's maintenance windows # noqa: E501 + def search_dashboard_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_maintenance_window_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedMaintenanceWindow + :return: ResponseContainerPagedDashboard If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2133,7 +2169,7 @@ def search_maintenance_window_entities_with_http_info(self, **kwargs): # noqa: if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_maintenance_window_entities" % key + " to method search_dashboard_entities" % key ) params[key] = val del params['kwargs'] @@ -2164,31 +2200,31 @@ def search_maintenance_window_entities_with_http_info(self, **kwargs): # noqa: auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/maintenancewindow', 'POST', + '/api/v2/search/dashboard', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedMaintenanceWindow', # noqa: E501 + response_type='ResponseContainerPagedDashboard', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_maintenance_window_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's maintenance windows # noqa: E501 + def search_dashboard_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_maintenance_window_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2196,22 +2232,22 @@ def search_maintenance_window_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_maintenance_window_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_dashboard_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_maintenance_window_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_dashboard_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's maintenance windows # noqa: E501 + def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_maintenance_window_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2220,7 +2256,7 @@ def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2230,14 +2266,14 @@ def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_maintenance_window_for_facet" % key + " to method search_dashboard_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_maintenance_window_for_facet`") # noqa: E501 + 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_dashboard_for_facet`") # noqa: E501 collection_formats = {} @@ -2267,7 +2303,7 @@ def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/maintenancewindow/{facet}', 'POST', + '/api/v2/search/dashboard/{facet}', 'POST', path_params, query_params, header_params, @@ -2276,44 +2312,44 @@ def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_maintenance_window_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's maintenance windows # noqa: E501 + def search_dashboard_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_maintenance_window_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_maintenance_window_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_dashboard_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_maintenance_window_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_dashboard_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_maintenance_window_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's maintenance windows # noqa: E501 + def search_dashboard_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted dashboards # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_maintenance_window_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_dashboard_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -2321,7 +2357,7 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): # noqa """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2331,7 +2367,7 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): # noqa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_maintenance_window_for_facets" % key + " to method search_dashboard_for_facets" % key ) params[key] = val del params['kwargs'] @@ -2362,7 +2398,7 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): # noqa auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/maintenancewindow/facets', 'POST', + '/api/v2/search/dashboard/facets', 'POST', path_params, query_params, header_params, @@ -2371,52 +2407,52 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): # noqa files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_notficant_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's notificants # noqa: E501 + def search_external_link_entities(self, **kwargs): # noqa: E501 + """Search over a customer's external links # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_notficant_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_external_link_entities(async_req=True) >>> result = thread.get() - :param async bool - :param FacetsSearchRequestContainer body: - :return: ResponseContainerFacetsResponseContainer + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedExternalLink If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_notficant_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_external_link_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_notficant_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_external_link_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_notficant_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's notificants # noqa: E501 + def search_external_link_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's external links # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_notficant_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_external_link_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool - :param FacetsSearchRequestContainer body: - :return: ResponseContainerFacetsResponseContainer + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedExternalLink If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2426,7 +2462,7 @@ def search_notficant_for_facets_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_notficant_for_facets" % key + " to method search_external_link_entities" % key ) params[key] = val del params['kwargs'] @@ -2457,61 +2493,63 @@ def search_notficant_for_facets_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/notificant/facets', 'POST', + '/api/v2/search/extlink', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 + response_type='ResponseContainerPagedExternalLink', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_notificant_entities(self, **kwargs): # noqa: E501 - """Search over a customer's notificants # noqa: E501 + def search_external_links_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's external links # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_notificant_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_external_links_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool - :param SortableSearchRequest body: - :return: ResponseContainerPagedNotificant + :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'): - return self.search_notificant_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_external_links_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_notificant_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_external_links_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_notificant_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's notificants # noqa: E501 + def search_external_links_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's external links # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_notificant_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_external_links_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool - :param SortableSearchRequest body: - :return: ResponseContainerPagedNotificant + :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 = ['body'] # noqa: E501 - all_params.append('async') + 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') @@ -2521,14 +2559,20 @@ def search_notificant_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_notificant_entities" % key + " to method search_external_links_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_external_links_for_facet`") # noqa: E501 collection_formats = {} path_params = {} + if 'facet' in params: + path_params['facet'] = params['facet'] # noqa: E501 query_params = [] @@ -2552,63 +2596,61 @@ def search_notificant_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/notificant', 'POST', + '/api/v2/search/extlink/{facet}', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedNotificant', # noqa: E501 + response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_notificant_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's notificants # noqa: E501 + def search_external_links_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's external links # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_notificant_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_external_links_for_facets(async_req=True) >>> result = thread.get() - :param async bool - :param str facet: (required) - :param FacetSearchRequestContainer body: - :return: ResponseContainerFacetResponse + :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'): - return self.search_notificant_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_external_links_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_notificant_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_external_links_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_notificant_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's notificants # noqa: E501 + def search_external_links_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's external links # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_notificant_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_external_links_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool - :param str facet: (required) - :param FacetSearchRequestContainer body: - :return: ResponseContainerFacetResponse + :param async_req bool + :param FacetsSearchRequestContainer body: + :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, returns the request thread. """ - all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + 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') @@ -2618,20 +2660,14 @@ def search_notificant_for_facet_with_http_info(self, facet, **kwargs): # noqa: if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_notificant_for_facet" % key + " to method search_external_links_for_facets" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_notificant_for_facet`") # noqa: E501 collection_formats = {} path_params = {} - if 'facet' in params: - path_params['facet'] = params['facet'] # noqa: E501 query_params = [] @@ -2655,61 +2691,61 @@ def search_notificant_for_facet_with_http_info(self, facet, **kwargs): # noqa: auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/notificant/{facet}', 'POST', + '/api/v2/search/extlink/facets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerFacetResponse', # noqa: E501 + response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_proxy_deleted_entities(self, **kwargs): # noqa: E501 - """Search over a customer's deleted proxies # noqa: E501 + def search_ingestion_policy_entities(self, **kwargs): # noqa: E501 + """Search over a customer's ingestion policies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_deleted_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_ingestion_policy_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedProxy + :return: ResponseContainerPagedIngestionPolicyReadModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_proxy_deleted_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_ingestion_policy_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_proxy_deleted_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_ingestion_policy_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_proxy_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's deleted proxies # noqa: E501 + def search_ingestion_policy_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's ingestion policies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_deleted_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_ingestion_policy_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedProxy + :return: ResponseContainerPagedIngestionPolicyReadModel If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2719,7 +2755,7 @@ def search_proxy_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_proxy_deleted_entities" % key + " to method search_ingestion_policy_entities" % key ) params[key] = val del params['kwargs'] @@ -2750,31 +2786,31 @@ def search_proxy_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/proxy/deleted', 'POST', + '/api/v2/search/ingestionpolicy', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedProxy', # noqa: E501 + response_type='ResponseContainerPagedIngestionPolicyReadModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_proxy_deleted_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted proxies # noqa: E501 + def search_ingestion_policy_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's ingestion policies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_deleted_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_ingestion_policy_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2782,22 +2818,22 @@ def search_proxy_deleted_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_proxy_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_ingestion_policy_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_proxy_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_ingestion_policy_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted proxies # noqa: E501 + def search_ingestion_policy_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's ingestion policies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_deleted_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_ingestion_policy_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2806,7 +2842,7 @@ def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): # noq """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2816,14 +2852,14 @@ def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): # noq if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_proxy_deleted_for_facet" % key + " to method search_ingestion_policy_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_proxy_deleted_for_facet`") # noqa: E501 + 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_ingestion_policy_for_facet`") # noqa: E501 collection_formats = {} @@ -2853,7 +2889,7 @@ def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): # noq auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/proxy/deleted/{facet}', 'POST', + '/api/v2/search/ingestionpolicy/{facet}', 'POST', path_params, query_params, header_params, @@ -2862,44 +2898,44 @@ def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): # noq files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_proxy_deleted_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted proxies # noqa: E501 + def search_ingestion_policy_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's ingestion policies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_deleted_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_ingestion_policy_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_proxy_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_ingestion_policy_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_proxy_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_ingestion_policy_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted proxies # noqa: E501 + def search_ingestion_policy_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's ingestion policies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_deleted_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_ingestion_policy_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -2907,7 +2943,7 @@ def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E50 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2917,7 +2953,7 @@ def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E50 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_proxy_deleted_for_facets" % key + " to method search_ingestion_policy_for_facets" % key ) params[key] = val del params['kwargs'] @@ -2948,7 +2984,7 @@ def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E50 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/proxy/deleted/facets', 'POST', + '/api/v2/search/ingestionpolicy/facets', 'POST', path_params, query_params, header_params, @@ -2957,52 +2993,52 @@ def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E50 files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_proxy_entities(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted proxies # noqa: E501 + def search_maintenance_window_entities(self, **kwargs): # noqa: E501 + """Search over a customer's maintenance windows # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_maintenance_window_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedProxy + :return: ResponseContainerPagedMaintenanceWindow If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_proxy_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_maintenance_window_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_proxy_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_maintenance_window_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_proxy_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted proxies # noqa: E501 + def search_maintenance_window_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's maintenance windows # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_maintenance_window_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedProxy + :return: ResponseContainerPagedMaintenanceWindow If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3012,7 +3048,7 @@ def search_proxy_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_proxy_entities" % key + " to method search_maintenance_window_entities" % key ) params[key] = val del params['kwargs'] @@ -3043,31 +3079,31 @@ def search_proxy_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/proxy', 'POST', + '/api/v2/search/maintenancewindow', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedProxy', # noqa: E501 + response_type='ResponseContainerPagedMaintenanceWindow', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_proxy_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted proxies # noqa: E501 + def search_maintenance_window_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's maintenance windows # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_maintenance_window_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3075,22 +3111,22 @@ def search_proxy_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_proxy_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_maintenance_window_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_proxy_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_maintenance_window_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_proxy_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted proxies # noqa: E501 + def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's maintenance windows # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_maintenance_window_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3099,7 +3135,7 @@ def search_proxy_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3109,14 +3145,14 @@ def search_proxy_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_proxy_for_facet" % key + " to method search_maintenance_window_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_proxy_for_facet`") # noqa: E501 + 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_maintenance_window_for_facet`") # noqa: E501 collection_formats = {} @@ -3146,7 +3182,7 @@ def search_proxy_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/proxy/{facet}', 'POST', + '/api/v2/search/maintenancewindow/{facet}', 'POST', path_params, query_params, header_params, @@ -3155,44 +3191,44 @@ def search_proxy_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_proxy_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted proxies # noqa: E501 + def search_maintenance_window_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's maintenance windows # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_maintenance_window_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_proxy_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_maintenance_window_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_proxy_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_maintenance_window_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_proxy_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted proxies # noqa: E501 + def search_maintenance_window_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's maintenance windows # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_proxy_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_maintenance_window_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -3200,7 +3236,7 @@ def search_proxy_for_facets_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3210,7 +3246,7 @@ def search_proxy_for_facets_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_proxy_for_facets" % key + " to method search_maintenance_window_for_facets" % key ) params[key] = val del params['kwargs'] @@ -3241,7 +3277,7 @@ def search_proxy_for_facets_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/proxy/facets', 'POST', + '/api/v2/search/maintenancewindow/facets', 'POST', path_params, query_params, header_params, @@ -3250,52 +3286,52 @@ def search_proxy_for_facets_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_registered_query_deleted_entities(self, **kwargs): # noqa: E501 - """Search over a customer's deleted derived metric definitions # noqa: E501 + def search_monitored_application_entities(self, **kwargs): # noqa: E501 + """Search over all the customer's non-deleted monitored applications # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_deleted_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_application_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedDerivedMetricDefinition + :return: ResponseContainerPagedMonitoredApplicationDTO If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_registered_query_deleted_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_monitored_application_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_registered_query_deleted_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_monitored_application_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_registered_query_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's deleted derived metric definitions # noqa: E501 + def search_monitored_application_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over all the customer's non-deleted monitored applications # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_deleted_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_application_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedDerivedMetricDefinition + :return: ResponseContainerPagedMonitoredApplicationDTO If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3305,7 +3341,7 @@ def search_registered_query_deleted_entities_with_http_info(self, **kwargs): # if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_registered_query_deleted_entities" % key + " to method search_monitored_application_entities" % key ) params[key] = val del params['kwargs'] @@ -3336,31 +3372,31 @@ def search_registered_query_deleted_entities_with_http_info(self, **kwargs): # auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/derivedmetricdefinition/deleted', 'POST', + '/api/v2/search/monitoredapplication', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedDerivedMetricDefinition', # noqa: E501 + response_type='ResponseContainerPagedMonitoredApplicationDTO', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_registered_query_deleted_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted derived metric definitions # noqa: E501 + def search_monitored_application_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted monitored application # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_deleted_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_application_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3368,22 +3404,22 @@ def search_registered_query_deleted_for_facet(self, facet, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_registered_query_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_monitored_application_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_registered_query_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_monitored_application_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_registered_query_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's deleted derived metric definitions # noqa: E501 + def search_monitored_application_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted monitored application # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_deleted_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_application_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3392,7 +3428,7 @@ def search_registered_query_deleted_for_facet_with_http_info(self, facet, **kwar """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3402,14 +3438,14 @@ def search_registered_query_deleted_for_facet_with_http_info(self, facet, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_registered_query_deleted_for_facet" % key + " to method search_monitored_application_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_registered_query_deleted_for_facet`") # noqa: E501 + 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_monitored_application_for_facet`") # noqa: E501 collection_formats = {} @@ -3439,7 +3475,7 @@ def search_registered_query_deleted_for_facet_with_http_info(self, facet, **kwar auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/derivedmetricdefinition/deleted/{facet}', 'POST', + '/api/v2/search/monitoredapplication/{facet}', 'POST', path_params, query_params, header_params, @@ -3448,44 +3484,44 @@ def search_registered_query_deleted_for_facet_with_http_info(self, facet, **kwar files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_registered_query_deleted_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted derived metric definitions # noqa: E501 + def search_monitored_application_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted monitored clusters # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_deleted_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_application_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_registered_query_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_monitored_application_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_registered_query_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_monitored_application_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_registered_query_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's deleted derived metric definitions # noqa: E501 + def search_monitored_application_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted monitored clusters # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_deleted_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_application_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -3493,7 +3529,7 @@ def search_registered_query_deleted_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3503,7 +3539,7 @@ def search_registered_query_deleted_for_facets_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_registered_query_deleted_for_facets" % key + " to method search_monitored_application_for_facets" % key ) params[key] = val del params['kwargs'] @@ -3534,7 +3570,7 @@ def search_registered_query_deleted_for_facets_with_http_info(self, **kwargs): auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/derivedmetricdefinition/deleted/facets', 'POST', + '/api/v2/search/monitoredapplication/facets', 'POST', path_params, query_params, header_params, @@ -3543,52 +3579,52 @@ def search_registered_query_deleted_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_registered_query_entities(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted derived metric definitions # noqa: E501 + def search_monitored_service_entities(self, **kwargs): # noqa: E501 + """Search over all the customer's non-deleted monitored services # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_service_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedDerivedMetricDefinitionWithStats + :return: ResponseContainerPagedMonitoredServiceDTO If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_registered_query_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_monitored_service_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_registered_query_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_monitored_service_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_registered_query_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's non-deleted derived metric definitions # noqa: E501 + def search_monitored_service_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over all the customer's non-deleted monitored services # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_service_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedDerivedMetricDefinitionWithStats + :return: ResponseContainerPagedMonitoredServiceDTO If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3598,7 +3634,7 @@ def search_registered_query_entities_with_http_info(self, **kwargs): # noqa: E5 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_registered_query_entities" % key + " to method search_monitored_service_entities" % key ) params[key] = val del params['kwargs'] @@ -3629,31 +3665,31 @@ def search_registered_query_entities_with_http_info(self, **kwargs): # noqa: E5 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/derivedmetricdefinition', 'POST', + '/api/v2/search/monitoredservice', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedDerivedMetricDefinitionWithStats', # noqa: E501 + response_type='ResponseContainerPagedMonitoredServiceDTO', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_registered_query_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted derived metric definitions # noqa: E501 + def search_monitored_service_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted monitored application # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_service_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3661,22 +3697,22 @@ def search_registered_query_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_registered_query_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_monitored_service_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_registered_query_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_monitored_service_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_registered_query_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's non-deleted derived metric definitions # noqa: E501 + def search_monitored_service_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted monitored application # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_service_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3685,7 +3721,7 @@ def search_registered_query_for_facet_with_http_info(self, facet, **kwargs): # """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3695,14 +3731,14 @@ def search_registered_query_for_facet_with_http_info(self, facet, **kwargs): # if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_registered_query_for_facet" % key + " to method search_monitored_service_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_registered_query_for_facet`") # noqa: E501 + 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_monitored_service_for_facet`") # noqa: E501 collection_formats = {} @@ -3732,7 +3768,7 @@ def search_registered_query_for_facet_with_http_info(self, facet, **kwargs): # auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/derivedmetricdefinition/{facet}', 'POST', + '/api/v2/search/monitoredservice/{facet}', 'POST', path_params, query_params, header_params, @@ -3741,44 +3777,44 @@ def search_registered_query_for_facet_with_http_info(self, facet, **kwargs): # files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_registered_query_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted derived metric definition # noqa: E501 + def search_monitored_service_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted monitored clusters # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_service_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_registered_query_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_monitored_service_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_registered_query_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_monitored_service_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_registered_query_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's non-deleted derived metric definition # noqa: E501 + def search_monitored_service_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted monitored clusters # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_registered_query_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_monitored_service_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -3786,7 +3822,7 @@ def search_registered_query_for_facets_with_http_info(self, **kwargs): # noqa: """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3796,7 +3832,7 @@ def search_registered_query_for_facets_with_http_info(self, **kwargs): # noqa: if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_registered_query_for_facets" % key + " to method search_monitored_service_for_facets" % key ) params[key] = val del params['kwargs'] @@ -3827,7 +3863,7 @@ def search_registered_query_for_facets_with_http_info(self, **kwargs): # noqa: auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/derivedmetricdefinition/facets', 'POST', + '/api/v2/search/monitoredservice/facets', 'POST', path_params, query_params, header_params, @@ -3836,52 +3872,52 @@ def search_registered_query_for_facets_with_http_info(self, **kwargs): # noqa: files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_report_event_entities(self, **kwargs): # noqa: E501 - """Search over a customer's events # noqa: E501 + def search_notficant_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's notificants # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_report_event_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_notficant_for_facets(async_req=True) >>> result = thread.get() - :param async bool - :param EventSearchRequest body: - :return: ResponseContainerPagedEvent + :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'): - return self.search_report_event_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_notficant_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_report_event_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_notficant_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_report_event_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's events # noqa: E501 + def search_notficant_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's notificants # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_report_event_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_notficant_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool - :param EventSearchRequest body: - :return: ResponseContainerPagedEvent + :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') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3891,7 +3927,7 @@ def search_report_event_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_report_event_entities" % key + " to method search_notficant_for_facets" % key ) params[key] = val del params['kwargs'] @@ -3922,63 +3958,61 @@ def search_report_event_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/event', 'POST', + '/api/v2/search/notificant/facets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedEvent', # noqa: E501 + response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_report_event_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's events # noqa: E501 + def search_notificant_entities(self, **kwargs): # noqa: E501 + """Search over a customer's notificants # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_report_event_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_notificant_entities(async_req=True) >>> result = thread.get() - :param async bool - :param str facet: (required) - :param FacetSearchRequestContainer body: - :return: ResponseContainerFacetResponse + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedNotificant If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_report_event_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_notificant_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_report_event_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_notificant_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_report_event_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's events # noqa: E501 + def search_notificant_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's notificants # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_report_event_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_notificant_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool - :param str facet: (required) - :param FacetSearchRequestContainer body: - :return: ResponseContainerFacetResponse + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedNotificant If the method is called asynchronously, returns the request thread. """ - all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + 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') @@ -3988,20 +4022,14 @@ def search_report_event_for_facet_with_http_info(self, facet, **kwargs): # noqa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_report_event_for_facet" % key + " to method search_notificant_entities" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_report_event_for_facet`") # noqa: E501 collection_formats = {} path_params = {} - if 'facet' in params: - path_params['facet'] = params['facet'] # noqa: E501 query_params = [] @@ -4025,61 +4053,63 @@ def search_report_event_for_facet_with_http_info(self, facet, **kwargs): # noqa auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/event/{facet}', 'POST', + '/api/v2/search/notificant', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerFacetResponse', # noqa: E501 + response_type='ResponseContainerPagedNotificant', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_report_event_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's events # noqa: E501 + def search_notificant_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's notificants # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_report_event_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_notificant_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool - :param FacetsSearchRequestContainer body: - :return: ResponseContainerFacetsResponseContainer + :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'): - return self.search_report_event_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_notificant_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_report_event_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_notificant_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_report_event_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's events # noqa: E501 + def search_notificant_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's notificants # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_report_event_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_notificant_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool - :param FacetsSearchRequestContainer body: - :return: ResponseContainerFacetsResponseContainer + :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 = ['body'] # noqa: E501 - all_params.append('async') + 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') @@ -4089,14 +4119,20 @@ def search_report_event_for_facets_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_report_event_for_facets" % key + " to method search_notificant_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_notificant_for_facet`") # noqa: E501 collection_formats = {} path_params = {} + if 'facet' in params: + path_params['facet'] = params['facet'] # noqa: E501 query_params = [] @@ -4120,61 +4156,61 @@ def search_report_event_for_facets_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/event/facets', 'POST', + '/api/v2/search/notificant/{facet}', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 + response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_tagged_source_entities(self, **kwargs): # noqa: E501 - """Search over a customer's sources # noqa: E501 + def search_proxy_deleted_entities(self, **kwargs): # noqa: E501 + """Search over a customer's deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_tagged_source_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_deleted_entities(async_req=True) >>> result = thread.get() - :param async bool - :param SourceSearchRequestContainer body: - :return: ResponseContainerPagedSource + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedProxy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_tagged_source_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_proxy_deleted_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_tagged_source_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_proxy_deleted_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_tagged_source_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's sources # noqa: E501 + def search_proxy_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_tagged_source_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_deleted_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool - :param SourceSearchRequestContainer body: - :return: ResponseContainerPagedSource + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedProxy If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4184,7 +4220,7 @@ def search_tagged_source_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_tagged_source_entities" % key + " to method search_proxy_deleted_entities" % key ) params[key] = val del params['kwargs'] @@ -4215,31 +4251,31 @@ def search_tagged_source_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/source', 'POST', + '/api/v2/search/proxy/deleted', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedSource', # noqa: E501 + response_type='ResponseContainerPagedProxy', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_tagged_source_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's sources # noqa: E501 + def search_proxy_deleted_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_tagged_source_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_deleted_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -4247,22 +4283,22 @@ def search_tagged_source_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_tagged_source_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_proxy_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_tagged_source_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_proxy_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's sources # noqa: E501 + def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_tagged_source_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_deleted_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -4271,7 +4307,7 @@ def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): # noq """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4281,14 +4317,14 @@ def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): # noq if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_tagged_source_for_facet" % key + " to method search_proxy_deleted_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_tagged_source_for_facet`") # noqa: E501 + 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_proxy_deleted_for_facet`") # noqa: E501 collection_formats = {} @@ -4318,7 +4354,7 @@ def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): # noq auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/source/{facet}', 'POST', + '/api/v2/search/proxy/deleted/{facet}', 'POST', path_params, query_params, header_params, @@ -4327,44 +4363,44 @@ def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): # noq files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_tagged_source_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's sources # noqa: E501 + def search_proxy_deleted_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_tagged_source_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_deleted_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_tagged_source_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_proxy_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_tagged_source_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_proxy_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_tagged_source_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's sources # noqa: E501 + def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_tagged_source_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_deleted_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -4372,7 +4408,7 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): # noqa: E50 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4382,7 +4418,7 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): # noqa: E50 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_tagged_source_for_facets" % key + " to method search_proxy_deleted_for_facets" % key ) params[key] = val del params['kwargs'] @@ -4413,7 +4449,7 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): # noqa: E50 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/source/facets', 'POST', + '/api/v2/search/proxy/deleted/facets', 'POST', path_params, query_params, header_params, @@ -4422,52 +4458,52 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): # noqa: E50 files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_user_entities(self, **kwargs): # noqa: E501 - """Search over a customer's users # noqa: E501 + def search_proxy_entities(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_user_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedCustomerFacingUserObject + :return: ResponseContainerPagedProxy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_user_entities_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_proxy_entities_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_user_entities_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_proxy_entities_with_http_info(**kwargs) # noqa: E501 return data - def search_user_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's users # noqa: E501 + def search_proxy_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_user_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: - :return: ResponseContainerPagedCustomerFacingUserObject + :return: ResponseContainerPagedProxy If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4477,7 +4513,7 @@ def search_user_entities_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_user_entities" % key + " to method search_proxy_entities" % key ) params[key] = val del params['kwargs'] @@ -4508,31 +4544,31 @@ def search_user_entities_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/user', 'POST', + '/api/v2/search/proxy', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedCustomerFacingUserObject', # noqa: E501 + response_type='ResponseContainerPagedProxy', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_user_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's users # noqa: E501 + def search_proxy_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_user_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -4540,22 +4576,22 @@ def search_user_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.search_user_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_proxy_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: - (data) = self.search_user_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + (data) = self.search_proxy_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data - def search_user_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's users # noqa: E501 + def search_proxy_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_user_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -4564,7 +4600,7 @@ def search_user_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4574,14 +4610,14 @@ def search_user_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_user_for_facet" % key + " to method search_proxy_for_facet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): - raise ValueError("Missing the required parameter `facet` when calling `search_user_for_facet`") # noqa: E501 + 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_proxy_for_facet`") # noqa: E501 collection_formats = {} @@ -4611,7 +4647,7 @@ def search_user_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/user/{facet}', 'POST', + '/api/v2/search/proxy/{facet}', 'POST', path_params, query_params, header_params, @@ -4620,44 +4656,44 @@ def search_user_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_user_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's users # noqa: E501 + def search_proxy_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_user_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): - return self.search_user_for_facets_with_http_info(**kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.search_proxy_for_facets_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.search_user_for_facets_with_http_info(**kwargs) # noqa: E501 + (data) = self.search_proxy_for_facets_with_http_info(**kwargs) # noqa: E501 return data - def search_user_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's users # noqa: E501 + def search_proxy_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted proxies # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_user_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_proxy_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -4665,7 +4701,7 @@ def search_user_for_facets_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4675,7 +4711,7 @@ def search_user_for_facets_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method search_user_for_facets" % key + " to method search_proxy_for_facets" % key ) params[key] = val del params['kwargs'] @@ -4706,7 +4742,4022 @@ def search_user_for_facets_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api/v2/search/user/facets', 'POST', + '/api/v2/search/proxy/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_registered_query_deleted_entities(self, **kwargs): # noqa: E501 + """Search over a customer's deleted derived metric definitions # 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_registered_query_deleted_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedDerivedMetricDefinition + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_registered_query_deleted_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_registered_query_deleted_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_registered_query_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's deleted derived metric definitions # 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_registered_query_deleted_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedDerivedMetricDefinition + 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_registered_query_deleted_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/derivedmetric/deleted', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedDerivedMetricDefinition', # 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_registered_query_deleted_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted derived metric definitions # 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_registered_query_deleted_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_registered_query_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_registered_query_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_registered_query_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted derived metric definitions # 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_registered_query_deleted_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_registered_query_deleted_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_registered_query_deleted_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/derivedmetric/deleted/{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_registered_query_deleted_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted derived metric definitions # 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_registered_query_deleted_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_registered_query_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_registered_query_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_registered_query_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted derived metric definitions # 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_registered_query_deleted_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_registered_query_deleted_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/derivedmetric/deleted/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_registered_query_entities(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted derived metric definitions # 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_registered_query_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedDerivedMetricDefinitionWithStats + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_registered_query_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_registered_query_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_registered_query_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted derived metric definitions # 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_registered_query_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedDerivedMetricDefinitionWithStats + 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_registered_query_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/derivedmetric', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedDerivedMetricDefinitionWithStats', # 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_registered_query_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted derived metric definitions # 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_registered_query_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_registered_query_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_registered_query_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_registered_query_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted derived metric definitions # 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_registered_query_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_registered_query_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_registered_query_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/derivedmetric/{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_registered_query_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted derived metric definition # 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_registered_query_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_registered_query_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_registered_query_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_registered_query_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted derived metric definition # 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_registered_query_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_registered_query_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/derivedmetric/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_related_report_event_anomaly_entities(self, event_id, **kwargs): # noqa: E501 + """List the related events and anomalies over a firing event # 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_related_report_event_anomaly_entities(event_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str event_id: (required) + :param EventSearchRequest body: + :return: ResponseContainerPagedReportEventAnomalyDTO + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_related_report_event_anomaly_entities_with_http_info(event_id, **kwargs) # noqa: E501 + else: + (data) = self.search_related_report_event_anomaly_entities_with_http_info(event_id, **kwargs) # noqa: E501 + return data + + def search_related_report_event_anomaly_entities_with_http_info(self, event_id, **kwargs): # noqa: E501 + """List the related events and anomalies over a firing event # 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_related_report_event_anomaly_entities_with_http_info(event_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str event_id: (required) + :param EventSearchRequest body: + :return: ResponseContainerPagedReportEventAnomalyDTO + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['event_id', '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_related_report_event_anomaly_entities" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'event_id' is set + if self.api_client.client_side_validation and ('event_id' not in params or + params['event_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `event_id` when calling `search_related_report_event_anomaly_entities`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'event_id' in params: + path_params['eventId'] = params['event_id'] # 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/event/related/{eventId}/withAnomalies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedReportEventAnomalyDTO', # 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_related_report_event_entities(self, event_id, **kwargs): # noqa: E501 + """List the related events over a firing event # 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_related_report_event_entities(event_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str event_id: (required) + :param EventSearchRequest body: + :return: ResponseContainerPagedRelatedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_related_report_event_entities_with_http_info(event_id, **kwargs) # noqa: E501 + else: + (data) = self.search_related_report_event_entities_with_http_info(event_id, **kwargs) # noqa: E501 + return data + + def search_related_report_event_entities_with_http_info(self, event_id, **kwargs): # noqa: E501 + """List the related events over a firing event # 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_related_report_event_entities_with_http_info(event_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str event_id: (required) + :param EventSearchRequest body: + :return: ResponseContainerPagedRelatedEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['event_id', '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_related_report_event_entities" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'event_id' is set + if self.api_client.client_side_validation and ('event_id' not in params or + params['event_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `event_id` when calling `search_related_report_event_entities`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'event_id' in params: + path_params['eventId'] = params['event_id'] # 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/event/related/{eventId}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedRelatedEvent', # 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_report_event_entities(self, **kwargs): # noqa: E501 + """Search over a customer's events # 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_report_event_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param EventSearchRequest body: + :return: ResponseContainerPagedEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_report_event_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_report_event_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_report_event_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's events # 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_report_event_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param EventSearchRequest body: + :return: ResponseContainerPagedEvent + 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_report_event_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/event', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedEvent', # 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_report_event_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's events # 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_report_event_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_report_event_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_report_event_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_report_event_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's events # 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_report_event_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_report_event_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_report_event_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/event/{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_report_event_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's events # 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_report_event_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_report_event_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_report_event_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_report_event_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's events # 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_report_event_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_report_event_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/event/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_role_entities(self, **kwargs): # noqa: E501 + """Search over a customer's roles # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedRoleDTO + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_role_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_role_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_role_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's roles # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedRoleDTO + 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_role_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/role', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedRoleDTO', # 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_role_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's roles # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role_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_role_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_role_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_role_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's roles # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role_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_role_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_role_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/role/{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_role_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's roles # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role_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_role_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_role_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_role_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's roles # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_role_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_role_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/role/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_saved_app_map_entities(self, **kwargs): # noqa: E501 + """Search over all the customer's non-deleted saved app map searches # 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_saved_app_map_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedSavedAppMapSearch + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_saved_app_map_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_saved_app_map_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_saved_app_map_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over all the customer's non-deleted saved app map searches # 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_saved_app_map_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedSavedAppMapSearch + 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_saved_app_map_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/savedappmapsearch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedSavedAppMapSearch', # 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_saved_app_map_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted app map searches # 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_saved_app_map_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_saved_app_map_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_saved_app_map_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_saved_app_map_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted app map searches # 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_saved_app_map_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_saved_app_map_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_saved_app_map_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/savedappmapsearch/{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_saved_app_map_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted app map searches # 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_saved_app_map_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_saved_app_map_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_saved_app_map_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_saved_app_map_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted app map searches # 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_saved_app_map_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_saved_app_map_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/savedappmapsearch/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_saved_traces_entities(self, **kwargs): # noqa: E501 + """Search over all the customer's non-deleted saved traces searches # 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_saved_traces_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedSavedTracesSearch + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_saved_traces_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_saved_traces_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_saved_traces_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over all the customer's non-deleted saved traces searches # 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_saved_traces_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedSavedTracesSearch + 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_saved_traces_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/savedtracessearch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedSavedTracesSearch', # 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_service_account_entities(self, **kwargs): # noqa: E501 + """Search over a customer's service 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.search_service_account_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_service_account_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_service_account_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_service_account_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's service 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.search_service_account_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedServiceAccount + 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_service_account_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/serviceaccount', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedServiceAccount', # 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_service_account_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's service 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.search_service_account_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_service_account_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_service_account_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_service_account_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's service 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.search_service_account_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_service_account_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_service_account_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/serviceaccount/{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_service_account_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's service 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.search_service_account_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_service_account_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_service_account_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_service_account_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's service 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.search_service_account_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_service_account_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/serviceaccount/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_span_sampling_policy_deleted_entities(self, **kwargs): # noqa: E501 + """Search over a customer's deleted span sampling policies # 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_span_sampling_policy_deleted_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedSpanSamplingPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_span_sampling_policy_deleted_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_span_sampling_policy_deleted_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_span_sampling_policy_deleted_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's deleted span sampling policies # 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_span_sampling_policy_deleted_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedSpanSamplingPolicy + 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_span_sampling_policy_deleted_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/spansamplingpolicy/deleted', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedSpanSamplingPolicy', # 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_span_sampling_policy_deleted_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted span sampling policies # 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_span_sampling_policy_deleted_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_span_sampling_policy_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_span_sampling_policy_deleted_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_span_sampling_policy_deleted_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's deleted span sampling policies # 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_span_sampling_policy_deleted_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_span_sampling_policy_deleted_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_span_sampling_policy_deleted_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/spansamplingpolicy/deleted/{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_span_sampling_policy_deleted_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted span sampling policies # 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_span_sampling_policy_deleted_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_span_sampling_policy_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_span_sampling_policy_deleted_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_span_sampling_policy_deleted_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's deleted span sampling policies # 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_span_sampling_policy_deleted_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_span_sampling_policy_deleted_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/spansamplingpolicy/deleted/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_span_sampling_policy_entities(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted span sampling policies # 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_span_sampling_policy_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedSpanSamplingPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_span_sampling_policy_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_span_sampling_policy_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_span_sampling_policy_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's non-deleted span sampling policies # 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_span_sampling_policy_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedSpanSamplingPolicy + 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_span_sampling_policy_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/spansamplingpolicy', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedSpanSamplingPolicy', # 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_span_sampling_policy_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted span sampling policies # 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_span_sampling_policy_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_span_sampling_policy_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_span_sampling_policy_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_span_sampling_policy_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted span sampling policies # 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_span_sampling_policy_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_span_sampling_policy_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_span_sampling_policy_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/spansamplingpolicy/{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_span_sampling_policy_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted span sampling policies # 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_span_sampling_policy_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_span_sampling_policy_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_span_sampling_policy_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_span_sampling_policy_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted span sampling policies # 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_span_sampling_policy_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_span_sampling_policy_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/spansamplingpolicy/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_tagged_source_entities(self, **kwargs): # noqa: E501 + """Search over a customer's sources # 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_tagged_source_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SourceSearchRequestContainer body: + :return: ResponseContainerPagedSource + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_tagged_source_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_tagged_source_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_tagged_source_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's sources # 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_tagged_source_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SourceSearchRequestContainer body: + :return: ResponseContainerPagedSource + 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_tagged_source_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/source', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedSource', # 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_tagged_source_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's sources # 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_tagged_source_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_tagged_source_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_tagged_source_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's sources # 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_tagged_source_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_tagged_source_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_tagged_source_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/source/{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_tagged_source_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's sources # 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_tagged_source_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_tagged_source_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_tagged_source_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_tagged_source_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's sources # 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_tagged_source_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_tagged_source_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/source/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_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 + + # 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_traces_map_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_traces_map_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_traces_map_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_traces_map_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's non-deleted traces searches # 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_traces_map_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_traces_map_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_traces_map_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/savedtracessearch/{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_traces_map_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted traces searches # 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_traces_map_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_traces_map_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_traces_map_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_traces_map_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's non-deleted traces searches # 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_traces_map_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_traces_map_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/savedtracessearch/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_user_entities(self, **kwargs): # noqa: E501 + """Search over a customer's users # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedCustomerFacingUserObject + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_user_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_user_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_user_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's users # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedCustomerFacingUserObject + 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_user_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/user', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedCustomerFacingUserObject', # 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_user_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's users # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_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_user_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_user_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_user_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's users # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_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_user_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_user_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/user/{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_user_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's users # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_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_user_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_user_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_user_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's users # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_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_user_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/user/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_user_group_entities(self, **kwargs): # noqa: E501 + """Search over a customer's user 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.search_user_group_entities(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedUserGroupModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.search_user_group_entities_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_user_group_entities_with_http_info(**kwargs) # noqa: E501 + return data + + def search_user_group_entities_with_http_info(self, **kwargs): # noqa: E501 + """Search over a customer's user 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.search_user_group_entities_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedUserGroupModel + 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_user_group_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/usergroup', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedUserGroupModel', # 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_user_group_for_facet(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's user 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.search_user_group_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_user_group_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + else: + (data) = self.search_user_group_for_facet_with_http_info(facet, **kwargs) # noqa: E501 + return data + + def search_user_group_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 + """Lists the values of a specific facet over the customer's user 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.search_user_group_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_user_group_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_user_group_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/usergroup/{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_user_group_for_facets(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's user 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.search_user_group_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_user_group_for_facets_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.search_user_group_for_facets_with_http_info(**kwargs) # noqa: E501 + return data + + def search_user_group_for_facets_with_http_info(self, **kwargs): # noqa: E501 + """Lists the values of one or more facets over the customer's user 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.search_user_group_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_user_group_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/usergroup/facets', 'POST', path_params, query_params, header_params, @@ -4715,44 +8766,44 @@ def search_user_for_facets_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_web_hook_entities(self, **kwargs): # noqa: E501 - """Search over a customer's webhooks # noqa: E501 + """Search over a customer's webhooks # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_web_hook_entities(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_web_hook_entities(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: :return: ResponseContainerPagedNotificant If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.search_web_hook_entities_with_http_info(**kwargs) # noqa: E501 else: (data) = self.search_web_hook_entities_with_http_info(**kwargs) # noqa: E501 return data def search_web_hook_entities_with_http_info(self, **kwargs): # noqa: E501 - """Search over a customer's webhooks # noqa: E501 + """Search over a customer's webhooks # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_web_hook_entities_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_web_hook_entities_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SortableSearchRequest body: :return: ResponseContainerPagedNotificant If the method is called asynchronously, @@ -4760,7 +8811,7 @@ def search_web_hook_entities_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4810,22 +8861,22 @@ def search_web_hook_entities_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerPagedNotificant', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_web_hook_for_facet(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's webhooks # noqa: E501 + """Lists the values of a specific facet over the customer's webhooks # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_web_hook_for_facet(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_web_hook_for_facet(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -4833,22 +8884,22 @@ def search_web_hook_for_facet(self, facet, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.search_web_hook_for_facet_with_http_info(facet, **kwargs) # noqa: E501 else: (data) = self.search_web_hook_for_facet_with_http_info(facet, **kwargs) # noqa: E501 return data def search_web_hook_for_facet_with_http_info(self, facet, **kwargs): # noqa: E501 - """Lists the values of a specific facet over the customer's webhooks # noqa: E501 + """Lists the values of a specific facet over the customer's webhooks # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_web_hook_for_facet_with_http_info(facet, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_web_hook_for_facet_with_http_info(facet, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -4857,7 +8908,7 @@ def search_web_hook_for_facet_with_http_info(self, facet, **kwargs): # noqa: E5 """ all_params = ['facet', 'body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4872,8 +8923,8 @@ def search_web_hook_for_facet_with_http_info(self, facet, **kwargs): # noqa: E5 params[key] = val del params['kwargs'] # verify the required parameter 'facet' is set - if ('facet' not in params or - params['facet'] is None): + 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_web_hook_for_facet`") # noqa: E501 collection_formats = {} @@ -4913,44 +8964,44 @@ def search_web_hook_for_facet_with_http_info(self, facet, **kwargs): # noqa: E5 files=local_var_files, response_type='ResponseContainerFacetResponse', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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_webhook_for_facets(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's webhooks # noqa: E501 + """Lists the values of one or more facets over the customer's webhooks # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_webhook_for_facets(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_webhook_for_facets(async_req=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_req'): return self.search_webhook_for_facets_with_http_info(**kwargs) # noqa: E501 else: (data) = self.search_webhook_for_facets_with_http_info(**kwargs) # noqa: E501 return data def search_webhook_for_facets_with_http_info(self, **kwargs): # noqa: E501 - """Lists the values of one or more facets over the customer's webhooks # noqa: E501 + """Lists the values of one or more facets over the customer's webhooks # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_webhook_for_facets_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_webhook_for_facets_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -4958,7 +9009,7 @@ def search_webhook_for_facets_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['body'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -5008,7 +9059,7 @@ def search_webhook_for_facets_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), diff --git a/wavefront_api_client/api/security_policy_api.py b/wavefront_api_client/api/security_policy_api.py new file mode 100644 index 00000000..0d850f71 --- /dev/null +++ b/wavefront_api_client/api/security_policy_api.py @@ -0,0 +1,1040 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class SecurityPolicyApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_metrics_policy(self, **kwargs): # noqa: E501 + """Get the metrics policy # 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_metrics_policy(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metrics_policy_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_metrics_policy_with_http_info(**kwargs) # noqa: E501 + return data + + def get_metrics_policy_with_http_info(self, **kwargs): # noqa: E501 + """Get the metrics policy # 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_metrics_policy_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerMetricsPolicyReadModel + 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_metrics_policy" % 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 + + # 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/metricspolicy', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMetricsPolicyReadModel', # 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_metrics_policy_by_version(self, version, **kwargs): # noqa: E501 + """Get a specific historical version of a metrics policy # 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_metrics_policy_by_version(version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metrics_policy_by_version_with_http_info(version, **kwargs) # noqa: E501 + else: + (data) = self.get_metrics_policy_by_version_with_http_info(version, **kwargs) # noqa: E501 + return data + + def get_metrics_policy_by_version_with_http_info(self, version, **kwargs): # noqa: E501 + """Get a specific historical version of a metrics policy # 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_metrics_policy_by_version_with_http_info(version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['version'] # 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_metrics_policy_by_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'version' is set + if self.api_client.client_side_validation and ('version' not in params or + params['version'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `version` when calling `get_metrics_policy_by_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'version' in params: + path_params['version'] = params['version'] # 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 + + # 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/metricspolicy/history/{version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMetricsPolicyReadModel', # 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_metrics_policy_history(self, **kwargs): # noqa: E501 + """Get the version history of metrics policy # 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_metrics_policy_history(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int offset: + :param int limit: + :return: ResponseContainerHistoryResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metrics_policy_history_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_metrics_policy_history_with_http_info(**kwargs) # noqa: E501 + return data + + def get_metrics_policy_history_with_http_info(self, **kwargs): # noqa: E501 + """Get the version history of metrics policy # 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_metrics_policy_history_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int offset: + :param int limit: + :return: ResponseContainerHistoryResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['offset', 'limit'] # 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_metrics_policy_history" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # 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/metricspolicy/history', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerHistoryResponse', # 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_security_policy(self, type, **kwargs): # noqa: E501 + """Get the security policy # 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_security_policy(type, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str type: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_security_policy_with_http_info(type, **kwargs) # noqa: E501 + else: + (data) = self.get_security_policy_with_http_info(type, **kwargs) # noqa: E501 + return data + + def get_security_policy_with_http_info(self, type, **kwargs): # noqa: E501 + """Get the security policy # 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_security_policy_with_http_info(type, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str type: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['type'] # 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_security_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'type' is set + if self.api_client.client_side_validation and ('type' not in params or + params['type'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `type` when calling `get_security_policy`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'type' in params: + path_params['type'] = params['type'] # 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 + + # 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/securitypolicy/{type}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMetricsPolicyReadModel', # 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_security_policy_by_version(self, type, version, **kwargs): # noqa: E501 + """Get a specific historical version of a security policy # 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_security_policy_by_version(type, version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str type: (required) + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_security_policy_by_version_with_http_info(type, version, **kwargs) # noqa: E501 + else: + (data) = self.get_security_policy_by_version_with_http_info(type, version, **kwargs) # noqa: E501 + return data + + def get_security_policy_by_version_with_http_info(self, type, version, **kwargs): # noqa: E501 + """Get a specific historical version of a security policy # 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_security_policy_by_version_with_http_info(type, version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str type: (required) + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['type', 'version'] # 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_security_policy_by_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'type' is set + if self.api_client.client_side_validation and ('type' not in params or + params['type'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `type` when calling `get_security_policy_by_version`") # noqa: E501 + # verify the required parameter 'version' is set + if self.api_client.client_side_validation and ('version' not in params or + params['version'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `version` when calling `get_security_policy_by_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'type' in params: + path_params['type'] = params['type'] # noqa: E501 + if 'version' in params: + path_params['version'] = params['version'] # 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 + + # 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/securitypolicy/{type}/history/{version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMetricsPolicyReadModel', # 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_security_policy_history(self, type, **kwargs): # noqa: E501 + """Get the version history of security policy # 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_security_policy_history(type, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str type: (required) + :param int offset: + :param int limit: + :return: ResponseContainerHistoryResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_security_policy_history_with_http_info(type, **kwargs) # noqa: E501 + else: + (data) = self.get_security_policy_history_with_http_info(type, **kwargs) # noqa: E501 + return data + + def get_security_policy_history_with_http_info(self, type, **kwargs): # noqa: E501 + """Get the version history of security policy # 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_security_policy_history_with_http_info(type, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str type: (required) + :param int offset: + :param int limit: + :return: ResponseContainerHistoryResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['type', 'offset', 'limit'] # 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_security_policy_history" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'type' is set + if self.api_client.client_side_validation and ('type' not in params or + params['type'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `type` when calling `get_security_policy_history`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'type' in params: + path_params['type'] = params['type'] # noqa: E501 + + query_params = [] + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # 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/securitypolicy/{type}/history', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerHistoryResponse', # 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 revert_metrics_policy_by_version(self, version, **kwargs): # noqa: E501 + """Revert to a specific historical version of a metrics policy # 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.revert_metrics_policy_by_version(version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.revert_metrics_policy_by_version_with_http_info(version, **kwargs) # noqa: E501 + else: + (data) = self.revert_metrics_policy_by_version_with_http_info(version, **kwargs) # noqa: E501 + return data + + def revert_metrics_policy_by_version_with_http_info(self, version, **kwargs): # noqa: E501 + """Revert to a specific historical version of a metrics policy # 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.revert_metrics_policy_by_version_with_http_info(version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['version'] # 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 revert_metrics_policy_by_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'version' is set + if self.api_client.client_side_validation and ('version' not in params or + params['version'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `version` when calling `revert_metrics_policy_by_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'version' in params: + path_params['version'] = params['version'] # 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 + + # 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/metricspolicy/revert/{version}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMetricsPolicyReadModel', # 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 revert_security_policy_by_version(self, type, version, **kwargs): # noqa: E501 + """Revert to a specific historical version of a security policy # 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.revert_security_policy_by_version(type, version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str type: (required) + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.revert_security_policy_by_version_with_http_info(type, version, **kwargs) # noqa: E501 + else: + (data) = self.revert_security_policy_by_version_with_http_info(type, version, **kwargs) # noqa: E501 + return data + + def revert_security_policy_by_version_with_http_info(self, type, version, **kwargs): # noqa: E501 + """Revert to a specific historical version of a security policy # 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.revert_security_policy_by_version_with_http_info(type, version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str type: (required) + :param int version: (required) + :return: ResponseContainerMetricsPolicyReadModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['type', 'version'] # 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 revert_security_policy_by_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'type' is set + if self.api_client.client_side_validation and ('type' not in params or + params['type'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `type` when calling `revert_security_policy_by_version`") # noqa: E501 + # verify the required parameter 'version' is set + if self.api_client.client_side_validation and ('version' not in params or + params['version'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `version` when calling `revert_security_policy_by_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'type' in params: + path_params['type'] = params['type'] # noqa: E501 + if 'version' in params: + path_params['version'] = params['version'] # 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 + + # 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/securitypolicy/{type}/revert/{version}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMetricsPolicyReadModel', # 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 update_metrics_policy(self, **kwargs): # noqa: E501 + """Update the metrics policy # 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.update_metrics_policy(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param MetricsPolicyWriteModel body: Example Body:{ \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] }
+ :return: ResponseContainerMetricsPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_metrics_policy_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.update_metrics_policy_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def update_metrics_policy_with_http_info(self, **kwargs): # noqa: E501
+ """Update the metrics policy # 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.update_metrics_policy_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param MetricsPolicyWriteModel body: Example Body: { \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] }
+ :return: ResponseContainerMetricsPolicyReadModel
+ 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 update_metrics_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/metricspolicy', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerMetricsPolicyReadModel', # 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 update_security_policy(self, type, **kwargs): # noqa: E501
+ """Update the security policy # 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.update_security_policy(type, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str type: (required)
+ :param MetricsPolicyWriteModel body: Example Body: { \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] }
+ :return: ResponseContainerMetricsPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_security_policy_with_http_info(type, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_security_policy_with_http_info(type, **kwargs) # noqa: E501
+ return data
+
+ def update_security_policy_with_http_info(self, type, **kwargs): # noqa: E501
+ """Update the security policy # 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.update_security_policy_with_http_info(type, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str type: (required)
+ :param MetricsPolicyWriteModel body: Example Body: { \"policyRules\": [{ \"name\": \"Policy rule1 name\", \"description\": \"Policy rule1 description\", \"prefixes\": [\"revenue.*\"], \"tags\": [{\"key\":\"sensitive\", \"value\":\"false\"}, {\"key\":\"source\", \"value\":\"app1\"}], \"tagsAnded\": \"true\", \"accessType\": \"ALLOW\", \"accounts\": [\"accountId1\", \"accountId2\"], \"userGroups\": [\"userGroupId1\"], \"roles\": [\"roleId\"] }, { \"name\": \"Policy rule2 name\", \"description\": \"Policy rule2 description\", \"prefixes\": [\"revenue.*\"], \"accessType\": \"BLOCK\", \"accounts\": [\"accountId3\"], \"userGroups\": [\"userGroupId1\"] }] }
+ :return: ResponseContainerMetricsPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['type', '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 update_security_policy" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'type' is set
+ if self.api_client.client_side_validation and ('type' not in params or
+ params['type'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `type` when calling `update_security_policy`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'type' in params:
+ path_params['type'] = params['type'] # 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/securitypolicy/{type}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerMetricsPolicyReadModel', # 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)
diff --git a/wavefront_api_client/api/source_api.py b/wavefront_api_client/api/source_api.py
index 14882e47..8bda0be1 100644
--- a/wavefront_api_client/api/source_api.py
+++ b/wavefront_api_client/api/source_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,11 +38,11 @@ def add_source_tag(self, id, tag_value, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_source_tag(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_source_tag(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -50,7 +50,7 @@ def add_source_tag(self, id, tag_value, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.add_source_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 else: (data) = self.add_source_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501 @@ -61,11 +61,11 @@ def add_source_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_source_tag_with_http_info(id, tag_value, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_source_tag_with_http_info(id, tag_value, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -74,7 +74,7 @@ def add_source_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 """ all_params = ['id', 'tag_value'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -89,12 +89,12 @@ def add_source_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): + 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 `add_source_tag`") # noqa: E501 # verify the required parameter 'tag_value' is set - if ('tag_value' not in params or - params['tag_value'] is None): + if self.api_client.client_side_validation and ('tag_value' not in params or + params['tag_value'] is None): # noqa: E501 raise ValueError("Missing the required parameter `tag_value` when calling `add_source_tag`") # noqa: E501 collection_formats = {} @@ -134,7 +134,7 @@ def add_source_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E501 files=local_var_files, response_type='ResponseContainer', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -145,18 +145,18 @@ def create_source(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_source(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_source(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Source body: Example Body:{ \"sourceName\": \"source.name\", \"tags\": {\"sourceTag1\": true}, \"description\": \"Source Description\" }
:return: ResponseContainerSource
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_source_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_source_with_http_info(**kwargs) # noqa: E501
@@ -167,11 +167,11 @@ def create_source_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_source_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_source_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param Source body: Example Body: { \"sourceName\": \"source.name\", \"tags\": {\"sourceTag1\": true}, \"description\": \"Source Description\" }
:return: ResponseContainerSource
If the method is called asynchronously,
@@ -179,7 +179,7 @@ def create_source_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -225,7 +225,7 @@ def create_source_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerSource', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -236,18 +236,18 @@ def delete_source(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_source(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_source(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerSource
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.delete_source_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_source_with_http_info(id, **kwargs) # noqa: E501
@@ -258,11 +258,11 @@ def delete_source_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_source_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_source_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerSource
If the method is called asynchronously,
@@ -270,7 +270,7 @@ def delete_source_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -285,8 +285,8 @@ def delete_source_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `delete_source`") # noqa: E501
collection_formats = {}
@@ -320,7 +320,7 @@ def delete_source_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerSource', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -331,19 +331,19 @@ def get_all_source(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_source(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_source(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str cursor:
- :param int limit:
+ :param int limit: max limit: 1000
:return: ResponseContainerPagedSource
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_all_source_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_source_with_http_info(**kwargs) # noqa: E501
@@ -354,20 +354,20 @@ def get_all_source_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_source_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_source_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str cursor:
- :param int limit:
+ :param int limit: max limit: 1000
:return: ResponseContainerPagedSource
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cursor', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -415,7 +415,7 @@ def get_all_source_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerPagedSource', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -426,18 +426,18 @@ def get_source(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_source(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_source(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerSource
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_source_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_source_with_http_info(id, **kwargs) # noqa: E501
@@ -448,11 +448,11 @@ def get_source_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_source_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_source_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerSource
If the method is called asynchronously,
@@ -460,7 +460,7 @@ def get_source_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -475,8 +475,8 @@ def get_source_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_source`") # noqa: E501
collection_formats = {}
@@ -510,7 +510,7 @@ def get_source_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerSource', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -521,18 +521,18 @@ def get_source_tags(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_source_tags(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_source_tags(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerTagsResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_source_tags_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_source_tags_with_http_info(id, **kwargs) # noqa: E501
@@ -543,11 +543,11 @@ def get_source_tags_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_source_tags_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_source_tags_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerTagsResponse
If the method is called asynchronously,
@@ -555,7 +555,7 @@ def get_source_tags_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -570,8 +570,8 @@ def get_source_tags_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_source_tags`") # noqa: E501
collection_formats = {}
@@ -605,7 +605,7 @@ def get_source_tags_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerTagsResponse', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -616,18 +616,18 @@ def remove_description(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_description(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_description(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainer
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.remove_description_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.remove_description_with_http_info(id, **kwargs) # noqa: E501
@@ -638,11 +638,11 @@ def remove_description_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_description_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_description_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainer
If the method is called asynchronously,
@@ -650,7 +650,7 @@ def remove_description_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -665,8 +665,8 @@ def remove_description_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `remove_description`") # noqa: E501
collection_formats = {}
@@ -700,7 +700,7 @@ def remove_description_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -711,11 +711,11 @@ def remove_source_tag(self, id, tag_value, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_source_tag(id, tag_value, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_source_tag(id, tag_value, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str tag_value: (required)
:return: ResponseContainer
@@ -723,7 +723,7 @@ def remove_source_tag(self, id, tag_value, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.remove_source_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501
else:
(data) = self.remove_source_tag_with_http_info(id, tag_value, **kwargs) # noqa: E501
@@ -734,11 +734,11 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E5
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.remove_source_tag_with_http_info(id, tag_value, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.remove_source_tag_with_http_info(id, tag_value, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str tag_value: (required)
:return: ResponseContainer
@@ -747,7 +747,7 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E5
"""
all_params = ['id', 'tag_value'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -762,12 +762,12 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E5
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `remove_source_tag`") # noqa: E501
# verify the required parameter 'tag_value' is set
- if ('tag_value' not in params or
- params['tag_value'] is None):
+ if self.api_client.client_side_validation and ('tag_value' not in params or
+ params['tag_value'] is None): # noqa: E501
raise ValueError("Missing the required parameter `tag_value` when calling `remove_source_tag`") # noqa: E501
collection_formats = {}
@@ -807,7 +807,7 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): # noqa: E5
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -818,11 +818,11 @@ def set_description(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_description(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_description(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str body:
:return: ResponseContainer
@@ -830,7 +830,7 @@ def set_description(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.set_description_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.set_description_with_http_info(id, **kwargs) # noqa: E501
@@ -841,11 +841,11 @@ def set_description_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_description_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_description_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param str body:
:return: ResponseContainer
@@ -854,7 +854,7 @@ def set_description_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -869,8 +869,8 @@ def set_description_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `set_description`") # noqa: E501
collection_formats = {}
@@ -910,7 +910,7 @@ def set_description_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -921,11 +921,11 @@ def set_source_tags(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_source_tags(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_source_tags(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param list[str] body:
:return: ResponseContainer
@@ -933,7 +933,7 @@ def set_source_tags(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.set_source_tags_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.set_source_tags_with_http_info(id, **kwargs) # noqa: E501
@@ -944,11 +944,11 @@ def set_source_tags_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.set_source_tags_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.set_source_tags_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param list[str] body:
:return: ResponseContainer
@@ -957,7 +957,7 @@ def set_source_tags_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -972,8 +972,8 @@ def set_source_tags_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `set_source_tags`") # noqa: E501
collection_formats = {}
@@ -1013,7 +1013,7 @@ def set_source_tags_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainer', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -1024,11 +1024,11 @@ def update_source(self, id, **kwargs): # noqa: E501
The \"hidden\" property is stored as a tag. To set the value, add \"hidden\": <value> to the list of tags. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_source(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_source(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param Source body: Example Body: { \"sourceName\": \"source.name\", \"tags\": {\"sourceTag1\": true}, \"description\": \"Source Description\" }
:return: ResponseContainerSource
@@ -1036,7 +1036,7 @@ def update_source(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_source_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_source_with_http_info(id, **kwargs) # noqa: E501
@@ -1047,11 +1047,11 @@ def update_source_with_http_info(self, id, **kwargs): # noqa: E501
The \"hidden\" property is stored as a tag. To set the value, add \"hidden\": <value> to the list of tags. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_source_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_source_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param Source body: Example Body: { \"sourceName\": \"source.name\", \"tags\": {\"sourceTag1\": true}, \"description\": \"Source Description\" }
:return: ResponseContainerSource
@@ -1060,7 +1060,7 @@ def update_source_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -1075,8 +1075,8 @@ def update_source_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_source`") # noqa: E501
collection_formats = {}
@@ -1112,7 +1112,7 @@ def update_source_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerSource', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api/span_sampling_policy_api.py b/wavefront_api_client/api/span_sampling_policy_api.py
new file mode 100644
index 00000000..f32979a2
--- /dev/null
+++ b/wavefront_api_client/api/span_sampling_policy_api.py
@@ -0,0 +1,913 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class SpanSamplingPolicyApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_span_sampling_policy(self, **kwargs): # noqa: E501 + """Create a span sampling policy # 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.create_span_sampling_policy(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SpanSamplingPolicy body: Example Body:{ \"name\": \"Test\", \"id\": \"test\", \"active\": false, \"expression\": \"{{sourceName}}='localhost'\", \"description\": \"test description\", \"samplingPercent\": 100 }
+ :return: ResponseContainerSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_span_sampling_policy_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_span_sampling_policy_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_span_sampling_policy_with_http_info(self, **kwargs): # noqa: E501
+ """Create a span sampling policy # 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.create_span_sampling_policy_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param SpanSamplingPolicy body: Example Body: { \"name\": \"Test\", \"id\": \"test\", \"active\": false, \"expression\": \"{{sourceName}}='localhost'\", \"description\": \"test description\", \"samplingPercent\": 100 }
+ :return: ResponseContainerSpanSamplingPolicy
+ 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 create_span_sampling_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/spansamplingpolicy', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSpanSamplingPolicy', # 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_span_sampling_policy(self, id, **kwargs): # noqa: E501
+ """Delete a specific span sampling policy # 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_span_sampling_policy(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_span_sampling_policy_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_span_sampling_policy_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_span_sampling_policy_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a specific span sampling policy # 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_span_sampling_policy_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSpanSamplingPolicy
+ 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 delete_span_sampling_policy" % 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 `delete_span_sampling_policy`") # 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/spansamplingpolicy/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSpanSamplingPolicy', # 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_all_deleted_span_sampling_policy(self, **kwargs): # noqa: E501
+ """Get all deleted sampling policies 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_all_deleted_span_sampling_policy(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_deleted_span_sampling_policy_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_deleted_span_sampling_policy_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_deleted_span_sampling_policy_with_http_info(self, **kwargs): # noqa: E501
+ """Get all deleted sampling policies 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_all_deleted_span_sampling_policy_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_deleted_span_sampling_policy" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/spansamplingpolicy/deleted', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSpanSamplingPolicy', # 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_all_span_sampling_policy(self, **kwargs): # noqa: E501
+ """Get all sampling policies 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_all_span_sampling_policy(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_span_sampling_policy_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_span_sampling_policy_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_span_sampling_policy_with_http_info(self, **kwargs): # noqa: E501
+ """Get all sampling policies 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_all_span_sampling_policy_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_span_sampling_policy" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/spansamplingpolicy', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedSpanSamplingPolicy', # 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_span_sampling_policy(self, id, **kwargs): # noqa: E501
+ """Get a specific span sampling policy # 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_span_sampling_policy(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_span_sampling_policy_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_span_sampling_policy_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_span_sampling_policy_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific span sampling policy # 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_span_sampling_policy_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSpanSamplingPolicy
+ 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_span_sampling_policy" % 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_span_sampling_policy`") # 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/spansamplingpolicy/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSpanSamplingPolicy', # 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_span_sampling_policy_history(self, id, **kwargs): # noqa: E501
+ """Get the version history of a specific sampling policy # 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_span_sampling_policy_history(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerHistoryResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_span_sampling_policy_history_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_span_sampling_policy_history_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_span_sampling_policy_history_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get the version history of a specific sampling policy # 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_span_sampling_policy_history_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerHistoryResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'offset', 'limit'] # 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_span_sampling_policy_history" % 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_span_sampling_policy_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/spansamplingpolicy/{id}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerHistoryResponse', # 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_span_sampling_policy_version(self, id, version, **kwargs): # noqa: E501
+ """Get a specific historical version of a specific sampling policy # 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_span_sampling_policy_version(id, version, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int version: (required)
+ :return: ResponseContainerSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_span_sampling_policy_version_with_http_info(id, version, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_span_sampling_policy_version_with_http_info(id, version, **kwargs) # noqa: E501
+ return data
+
+ def get_span_sampling_policy_version_with_http_info(self, id, version, **kwargs): # noqa: E501
+ """Get a specific historical version of a specific sampling policy # 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_span_sampling_policy_version_with_http_info(id, version, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int version: (required)
+ :return: ResponseContainerSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'version'] # 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_span_sampling_policy_version" % 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_span_sampling_policy_version`") # noqa: E501
+ # verify the required parameter 'version' is set
+ if self.api_client.client_side_validation and ('version' not in params or
+ params['version'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `version` when calling `get_span_sampling_policy_version`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+ if 'version' in params:
+ path_params['version'] = params['version'] # 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/spansamplingpolicy/{id}/history/{version}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSpanSamplingPolicy', # 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 undelete_span_sampling_policy(self, id, **kwargs): # noqa: E501
+ """Restore a deleted span sampling policy # 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.undelete_span_sampling_policy(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.undelete_span_sampling_policy_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.undelete_span_sampling_policy_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def undelete_span_sampling_policy_with_http_info(self, id, **kwargs): # noqa: E501
+ """Restore a deleted span sampling policy # 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.undelete_span_sampling_policy_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerSpanSamplingPolicy
+ 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 undelete_span_sampling_policy" % 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 `undelete_span_sampling_policy`") # 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/spansamplingpolicy/{id}/undelete', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSpanSamplingPolicy', # 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 update_span_sampling_policy(self, id, **kwargs): # noqa: E501
+ """Update a specific span sampling policy # 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.update_span_sampling_policy(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SpanSamplingPolicy body: Example Body: { \"name\": \"Test\", \"id\": \"test\", \"active\": false, \"expression\": \"{{sourceName}}='localhost'\", \"description\": \"test description\", \"samplingPercent\": 100 }
+ :return: ResponseContainerSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_span_sampling_policy_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_span_sampling_policy_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_span_sampling_policy_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a specific span sampling policy # 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.update_span_sampling_policy_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param SpanSamplingPolicy body: Example Body: { \"name\": \"Test\", \"id\": \"test\", \"active\": false, \"expression\": \"{{sourceName}}='localhost'\", \"description\": \"test description\", \"samplingPercent\": 100 }
+ :return: ResponseContainerSpanSamplingPolicy
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_span_sampling_policy" % 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 `update_span_sampling_policy`") # 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
+ 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/spansamplingpolicy/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerSpanSamplingPolicy', # 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)
diff --git a/wavefront_api_client/api/usage_api.py b/wavefront_api_client/api/usage_api.py
new file mode 100644
index 00000000..5d3ad76b
--- /dev/null
+++ b/wavefront_api_client/api/usage_api.py
@@ -0,0 +1,953 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class UsageApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_ingestion_policy(self, **kwargs): # noqa: E501 + """Create a specific ingestion policy # 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.create_ingestion_policy(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param IngestionPolicyWriteModel body: Example Body:{ \"name\": \"Ingestion policy name\", \"description\": \"Ingestion policy description\", \"scope\": \"GROUP\", \"groups\": [\"g1\",\"g2\"], \"isLimited\": \"true\", \"limitPPS\": \"1000\", \"alert\": { \"name\": \"Alert Name\", \"targets\": { \"severe\": \"user1@mail.com\" }, \"conditionPercentages\": { \"info\": 70, \"warn\": 90 }, \"minutes\": 5, \"resolveAfterMinutes\": 2, \"evaluateRealtimeData\": false, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] }, \"conditionsThresholdOperator\": \">\" } }
+ :return: ResponseContainerIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.create_ingestion_policy_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_ingestion_policy_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_ingestion_policy_with_http_info(self, **kwargs): # noqa: E501
+ """Create a specific ingestion policy # 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.create_ingestion_policy_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param IngestionPolicyWriteModel body: Example Body: { \"name\": \"Ingestion policy name\", \"description\": \"Ingestion policy description\", \"scope\": \"GROUP\", \"groups\": [\"g1\",\"g2\"], \"isLimited\": \"true\", \"limitPPS\": \"1000\", \"alert\": { \"name\": \"Alert Name\", \"targets\": { \"severe\": \"user1@mail.com\" }, \"conditionPercentages\": { \"info\": 70, \"warn\": 90 }, \"minutes\": 5, \"resolveAfterMinutes\": 2, \"evaluateRealtimeData\": false, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] }, \"conditionsThresholdOperator\": \">\" } }
+ :return: ResponseContainerIngestionPolicyReadModel
+ 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 create_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/usage/ingestionpolicy', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerIngestionPolicyReadModel', # 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_ingestion_policy(self, id, **kwargs): # noqa: E501
+ """Delete a specific ingestion policy # 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_ingestion_policy(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_ingestion_policy_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_ingestion_policy_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_ingestion_policy_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a specific ingestion policy # 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_ingestion_policy_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerIngestionPolicyReadModel
+ 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 delete_ingestion_policy" % 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 `delete_ingestion_policy`") # 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
+
+ # 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/usage/ingestionpolicy/{id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerIngestionPolicyReadModel', # 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 export_csv(self, start_time, **kwargs): # noqa: E501
+ """Export a CSV report # 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.export_csv(start_time, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int start_time: start time in epoch seconds (required)
+ :param int end_time: end time in epoch seconds, null to use now
+ :return: None
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.export_csv_with_http_info(start_time, **kwargs) # noqa: E501
+ else:
+ (data) = self.export_csv_with_http_info(start_time, **kwargs) # noqa: E501
+ return data
+
+ def export_csv_with_http_info(self, start_time, **kwargs): # noqa: E501
+ """Export a CSV report # 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.export_csv_with_http_info(start_time, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int start_time: start time in epoch seconds (required)
+ :param int end_time: end time in epoch seconds, null to use now
+ :return: None
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['start_time', 'end_time'] # 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 export_csv" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'start_time' is set
+ if self.api_client.client_side_validation and ('start_time' not in params or
+ params['start_time'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `start_time` when calling `export_csv`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'start_time' in params:
+ query_params.append(('startTime', params['start_time'])) # noqa: E501
+ if 'end_time' in params:
+ query_params.append(('endTime', params['end_time'])) # 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/csv']) # 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/usage/exportcsv', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type=None, # 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_all_ingestion_policies(self, **kwargs): # noqa: E501
+ """Get all ingestion policies 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_all_ingestion_policies(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_ingestion_policies_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_ingestion_policies_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_ingestion_policies_with_http_info(self, **kwargs): # noqa: E501
+ """Get all ingestion policies 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_all_ingestion_policies_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_ingestion_policies" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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/usage/ingestionpolicy', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedIngestionPolicyReadModel', # 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_ingestion_policy(self, id, **kwargs): # noqa: E501
+ """Get a specific ingestion policy # 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_ingestion_policy(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_ingestion_policy_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_ingestion_policy_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_ingestion_policy_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific ingestion policy # 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_ingestion_policy_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerIngestionPolicyReadModel
+ 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_ingestion_policy" % 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_ingestion_policy`") # 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
+
+ # 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/usage/ingestionpolicy/{id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerIngestionPolicyReadModel', # 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_ingestion_policy_by_version(self, id, version, **kwargs): # noqa: E501
+ """Get a specific historical version of a ingestion policy # 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_ingestion_policy_by_version(id, version, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int version: (required)
+ :return: ResponseContainerIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_ingestion_policy_by_version_with_http_info(id, version, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_ingestion_policy_by_version_with_http_info(id, version, **kwargs) # noqa: E501
+ return data
+
+ def get_ingestion_policy_by_version_with_http_info(self, id, version, **kwargs): # noqa: E501
+ """Get a specific historical version of a ingestion policy # 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_ingestion_policy_by_version_with_http_info(id, version, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int version: (required)
+ :return: ResponseContainerIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'version'] # 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_ingestion_policy_by_version" % 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_ingestion_policy_by_version`") # noqa: E501
+ # verify the required parameter 'version' is set
+ if self.api_client.client_side_validation and ('version' not in params or
+ params['version'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `version` when calling `get_ingestion_policy_by_version`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+ if 'version' in params:
+ path_params['version'] = params['version'] # 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
+
+ # 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/usage/ingestionpolicy/{id}/history/{version}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerIngestionPolicyReadModel', # 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_ingestion_policy_history(self, id, **kwargs): # noqa: E501
+ """Get the version history of ingestion policy # 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_ingestion_policy_history(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerHistoryResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_ingestion_policy_history_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_ingestion_policy_history_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_ingestion_policy_history_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get the version history of ingestion policy # 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_ingestion_policy_history_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerHistoryResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'offset', 'limit'] # 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_ingestion_policy_history" % 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_ingestion_policy_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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/usage/ingestionpolicy/{id}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerHistoryResponse', # 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 revert_ingestion_policy_by_version(self, id, version, **kwargs): # noqa: E501
+ """Revert to a specific historical version of a ingestion policy # 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.revert_ingestion_policy_by_version(id, version, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int version: (required)
+ :return: ResponseContainerIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.revert_ingestion_policy_by_version_with_http_info(id, version, **kwargs) # noqa: E501
+ else:
+ (data) = self.revert_ingestion_policy_by_version_with_http_info(id, version, **kwargs) # noqa: E501
+ return data
+
+ def revert_ingestion_policy_by_version_with_http_info(self, id, version, **kwargs): # noqa: E501
+ """Revert to a specific historical version of a ingestion policy # 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.revert_ingestion_policy_by_version_with_http_info(id, version, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param int version: (required)
+ :return: ResponseContainerIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'version'] # 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 revert_ingestion_policy_by_version" % 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 `revert_ingestion_policy_by_version`") # noqa: E501
+ # verify the required parameter 'version' is set
+ if self.api_client.client_side_validation and ('version' not in params or
+ params['version'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `version` when calling `revert_ingestion_policy_by_version`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'id' in params:
+ path_params['id'] = params['id'] # noqa: E501
+ if 'version' in params:
+ path_params['version'] = params['version'] # 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
+
+ # 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/usage/ingestionpolicy/{id}/revert/{version}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerIngestionPolicyReadModel', # 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 update_ingestion_policy(self, id, **kwargs): # noqa: E501
+ """Update a specific ingestion policy # 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.update_ingestion_policy(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param IngestionPolicyWriteModel body: Example Body: { \"name\": \"Ingestion policy name\", \"description\": \"Ingestion policy description\", \"scope\": \"GROUP\", \"groups\": [\"g1\",\"g2\"], \"isLimited\": \"true\", \"limitPPS\": \"1000\", \"alert\": { \"name\": \"Alert Name\", \"targets\": { \"severe\": \"user1@mail.com\" }, \"conditionPercentages\": { \"info\": 70, \"warn\": 90 }, \"minutes\": 5, \"resolveAfterMinutes\": 2, \"evaluateRealtimeData\": false, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] }, \"conditionsThresholdOperator\": \">\" } }
+ :return: ResponseContainerIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_ingestion_policy_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_ingestion_policy_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_ingestion_policy_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a specific ingestion policy # 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.update_ingestion_policy_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param IngestionPolicyWriteModel body: Example Body: { \"name\": \"Ingestion policy name\", \"description\": \"Ingestion policy description\", \"scope\": \"GROUP\", \"groups\": [\"g1\",\"g2\"], \"isLimited\": \"true\", \"limitPPS\": \"1000\", \"alert\": { \"name\": \"Alert Name\", \"targets\": { \"severe\": \"user1@mail.com\" }, \"conditionPercentages\": { \"info\": 70, \"warn\": 90 }, \"minutes\": 5, \"resolveAfterMinutes\": 2, \"evaluateRealtimeData\": false, \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] }, \"conditionsThresholdOperator\": \">\" } }
+ :return: ResponseContainerIngestionPolicyReadModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_ingestion_policy" % 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 `update_ingestion_policy`") # 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
+ 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/usage/ingestionpolicy/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerIngestionPolicyReadModel', # 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)
diff --git a/wavefront_api_client/api/user_api.py b/wavefront_api_client/api/user_api.py
index ab233e82..5f8e8ca9 100644
--- a/wavefront_api_client/api/user_api.py
+++ b/wavefront_api_client/api/user_api.py
@@ -1,12 +1,12 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,48 +33,151 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_or_update_user(self, **kwargs): # noqa: E501 - """Creates or updates a user # noqa: E501 + def add_user_to_user_groups(self, id, **kwargs): # noqa: E501 + """Adds specific groups to the user or service account # noqa: E501 - # noqa: E501 + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_to_user_groups(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: The list of groups that should be added to the account + :return: UserModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_user_to_user_groups_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.add_user_to_user_groups_with_http_info(id, **kwargs) # noqa: E501 + return data + + def add_user_to_user_groups_with_http_info(self, id, **kwargs): # noqa: E501 + """Adds specific groups to the user or service account # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_to_user_groups_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: The list of groups that should be added to the account + :return: UserModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', '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_user_to_user_groups" % 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 `add_user_to_user_groups`") # 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 + 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/user/{id}/addUserGroups', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UserModel', # 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_user(self, **kwargs): # noqa: E501 + """Creates an user if the user doesn't already exist. # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_or_update_user(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_user(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param bool send_email: Whether to send email notification to the user, if created. Default: false - :param UserToCreate body: Example Body:{ \"emailAddress\": \"user@example.com\", \"groups\": [ \"browse\" ] }
+ :param UserToCreate body: Example Body: { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], }
:return: UserModel
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.create_or_update_user_with_http_info(**kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.create_user_with_http_info(**kwargs) # noqa: E501
else:
- (data) = self.create_or_update_user_with_http_info(**kwargs) # noqa: E501
+ (data) = self.create_user_with_http_info(**kwargs) # noqa: E501
return data
- def create_or_update_user_with_http_info(self, **kwargs): # noqa: E501
- """Creates or updates a user # noqa: E501
+ def create_user_with_http_info(self, **kwargs): # noqa: E501
+ """Creates an user if the user doesn't already exist. # noqa: E501
- # noqa: E501
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_or_update_user_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_user_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param bool send_email: Whether to send email notification to the user, if created. Default: false
- :param UserToCreate body: Example Body: { \"emailAddress\": \"user@example.com\", \"groups\": [ \"browse\" ] }
+ :param UserToCreate body: Example Body: { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], }
:return: UserModel
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['send_email', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -84,7 +187,7 @@ def create_or_update_user_with_http_info(self, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method create_or_update_user" % key
+ " to method create_user" % key
)
params[key] = val
del params['kwargs']
@@ -126,44 +229,139 @@ def create_or_update_user_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='UserModel', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_multiple_users(self, **kwargs): # noqa: E501
+ """Deletes multiple users or service accounts # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # 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_multiple_users(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] body: identifiers of list of users which should be deleted
+ :return: ResponseContainerListString
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.delete_multiple_users_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.delete_multiple_users_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def delete_multiple_users_with_http_info(self, **kwargs): # noqa: E501
+ """Deletes multiple users or service accounts # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # 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_multiple_users_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] body: identifiers of list of users which should be deleted
+ :return: ResponseContainerListString
+ 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_multiple_users" % 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/user/deleteUsers', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerListString', # 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_user(self, id, **kwargs): # noqa: E501
- """Deletes a user identified by id # noqa: E501
+ """Deletes a user or service account identified by id # noqa: E501
- # noqa: E501
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_user(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_user(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.delete_user_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_user_with_http_info(id, **kwargs) # noqa: E501
return data
def delete_user_with_http_info(self, id, **kwargs): # noqa: E501
- """Deletes a user identified by id # noqa: E501
+ """Deletes a user or service account identified by id # noqa: E501
- # noqa: E501
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_user_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_user_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: None
If the method is called asynchronously,
@@ -171,7 +369,7 @@ def delete_user_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -186,8 +384,8 @@ def delete_user_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `delete_user`") # noqa: E501
collection_formats = {}
@@ -221,50 +419,50 @@ def delete_user_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_all_user(self, **kwargs): # noqa: E501
+ def get_all_users(self, **kwargs): # noqa: E501
"""Get all users # noqa: E501
- Returns all users # noqa: E501
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_user(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_users(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:return: list[UserModel]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.get_all_user_with_http_info(**kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.get_all_users_with_http_info(**kwargs) # noqa: E501
else:
- (data) = self.get_all_user_with_http_info(**kwargs) # noqa: E501
+ (data) = self.get_all_users_with_http_info(**kwargs) # noqa: E501
return data
- def get_all_user_with_http_info(self, **kwargs): # noqa: E501
+ def get_all_users_with_http_info(self, **kwargs): # noqa: E501
"""Get all users # noqa: E501
- Returns all users # noqa: E501
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_user_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_users_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:return: list[UserModel]
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -274,7 +472,7 @@ def get_all_user_with_http_info(self, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_all_user" % key
+ " to method get_all_users" % key
)
params[key] = val
del params['kwargs']
@@ -308,44 +506,44 @@ def get_all_user_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='list[UserModel]', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_user(self, id, **kwargs): # noqa: E501
- """Retrieves a user by identifier (email addr) # noqa: E501
+ """Retrieves a user by identifier (email address) # noqa: E501
- # noqa: E501
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_user(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_user(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: UserModel
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_user_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_user_with_http_info(id, **kwargs) # noqa: E501
return data
def get_user_with_http_info(self, id, **kwargs): # noqa: E501
- """Retrieves a user by identifier (email addr) # noqa: E501
+ """Retrieves a user by identifier (email address) # noqa: E501
- # noqa: E501
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_user_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_user_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: UserModel
If the method is called asynchronously,
@@ -353,7 +551,7 @@ def get_user_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -368,8 +566,8 @@ def get_user_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_user`") # noqa: E501
collection_formats = {}
@@ -403,54 +601,52 @@ def get_user_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='UserModel', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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 grant_user_permission(self, id, **kwargs): # noqa: E501
- """Grants a specific user permission # noqa: E501
+ def get_user_business_functions(self, id, **kwargs): # noqa: E501
+ """Returns business functions of a specific user or service account. # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.grant_user_permission(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_user_business_functions(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param str group: Permission group to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission
:return: UserModel
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.grant_user_permission_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.get_user_business_functions_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.grant_user_permission_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.get_user_business_functions_with_http_info(id, **kwargs) # noqa: E501
return data
- def grant_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
- """Grants a specific user permission # noqa: E501
+ def get_user_business_functions_with_http_info(self, id, **kwargs): # noqa: E501
+ """Returns business functions of a specific user or service account. # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.grant_user_permission_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_user_business_functions_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param str group: Permission group to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission
:return: UserModel
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id', 'group'] # noqa: E501
- all_params.append('async')
+ 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')
@@ -460,14 +656,14 @@ def grant_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method grant_user_permission" % key
+ " to method get_user_business_functions" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `grant_user_permission`") # noqa: E501
+ 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_user_business_functions`") # noqa: E501
collection_formats = {}
@@ -481,23 +677,120 @@ def grant_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
form_params = []
local_var_files = {}
- if 'group' in params:
- form_params.append(('group', params['group'])) # noqa: E501
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/user/{id}/businessFunctions', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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 grant_permission_to_users(self, permission, **kwargs): # noqa: E501
+ """Grants a specific permission to multiple users or service accounts # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_permission_to_users(permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: Permission to grant to the users. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission (required)
+ :param list[str] body: List of users which should be granted by specified permission
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.grant_permission_to_users_with_http_info(permission, **kwargs) # noqa: E501
+ else:
+ (data) = self.grant_permission_to_users_with_http_info(permission, **kwargs) # noqa: E501
+ return data
+
+ def grant_permission_to_users_with_http_info(self, permission, **kwargs): # noqa: E501
+ """Grants a specific permission to multiple users or service accounts # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_permission_to_users_with_http_info(permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: Permission to grant to the users. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission (required)
+ :param list[str] body: List of users which should be granted by specified permission
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['permission', '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 grant_permission_to_users" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'permission' is set
+ if self.api_client.client_side_validation and ('permission' not in params or
+ params['permission'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `permission` when calling `grant_permission_to_users`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'permission' in params:
+ path_params['permission'] = params['permission'] # 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/x-www-form-urlencoded']) # noqa: E501
+ ['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/user/{id}/grant', 'POST',
+ '/api/v2/user/grant/{permission}', 'POST',
path_params,
query_params,
header_params,
@@ -506,54 +799,54 @@ def grant_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='UserModel', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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_user_permission(self, id, **kwargs): # noqa: E501
- """Revokes a specific user permission # noqa: E501
+ def grant_user_permission(self, id, **kwargs): # noqa: E501
+ """Grants a specific permission to user or service account # noqa: E501
- # noqa: E501
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.revoke_user_permission(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_user_permission(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param str group:
+ :param str group: Permission group to grant to the account. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission
:return: UserModel
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
- return self.revoke_user_permission_with_http_info(id, **kwargs) # noqa: E501
+ if kwargs.get('async_req'):
+ return self.grant_user_permission_with_http_info(id, **kwargs) # noqa: E501
else:
- (data) = self.revoke_user_permission_with_http_info(id, **kwargs) # noqa: E501
+ (data) = self.grant_user_permission_with_http_info(id, **kwargs) # noqa: E501
return data
- def revoke_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
- """Revokes a specific user permission # noqa: E501
+ def grant_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
+ """Grants a specific permission to user or service account # noqa: E501
- # noqa: E501
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.revoke_user_permission_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.grant_user_permission_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
- :param str group:
+ :param str group: Permission group to grant to the account. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission
:return: UserModel
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'group'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -563,14 +856,14 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method revoke_user_permission" % key
+ " to method grant_user_permission" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
- raise ValueError("Missing the required parameter `id` when calling `revoke_user_permission`") # noqa: E501
+ 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 `grant_user_permission`") # noqa: E501
collection_formats = {}
@@ -600,7 +893,7 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
- '/api/v2/user/{id}/revoke', 'POST',
+ '/api/v2/user/{id}/grant', 'POST',
path_params,
query_params,
header_params,
@@ -609,7 +902,609 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='UserModel', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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 invite_users(self, **kwargs): # noqa: E501
+ """Invite users with given user groups and permissions. # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.invite_users(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[UserToCreate] body: Example Body: [ { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } ]
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.invite_users_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.invite_users_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def invite_users_with_http_info(self, **kwargs): # noqa: E501
+ """Invite users with given user groups and permissions. # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.invite_users_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[UserToCreate] body: Example Body: [ { \"emailAddress\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ], } ]
+ :return: UserModel
+ 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 invite_users" % 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/user/invite', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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_user_from_user_groups(self, id, **kwargs): # noqa: E501
+ """Removes specific groups from the user or service account # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_from_user_groups(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: The list of groups that should be removed from the account
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.remove_user_from_user_groups_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.remove_user_from_user_groups_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def remove_user_from_user_groups_with_http_info(self, id, **kwargs): # noqa: E501
+ """Removes specific groups from the user or service account # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_from_user_groups_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: The list of groups that should be removed from the account
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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_user_from_user_groups" % 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 `remove_user_from_user_groups`") # 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
+ 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/user/{id}/removeUserGroups', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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_permission_from_users(self, permission, **kwargs): # noqa: E501
+ """Revokes a specific permission from multiple users or service accounts # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_permission_from_users(permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: Permission to revoke from the accounts. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission (required)
+ :param list[str] body: List of users or service accounts which should be revoked by specified permission
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.revoke_permission_from_users_with_http_info(permission, **kwargs) # noqa: E501
+ else:
+ (data) = self.revoke_permission_from_users_with_http_info(permission, **kwargs) # noqa: E501
+ return data
+
+ def revoke_permission_from_users_with_http_info(self, permission, **kwargs): # noqa: E501
+ """Revokes a specific permission from multiple users or service accounts # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_permission_from_users_with_http_info(permission, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str permission: Permission to revoke from the accounts. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission (required)
+ :param list[str] body: List of users or service accounts which should be revoked by specified permission
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['permission', '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 revoke_permission_from_users" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'permission' is set
+ if self.api_client.client_side_validation and ('permission' not in params or
+ params['permission'] is None): # noqa: E501
+ raise ValueError("Missing the required parameter `permission` when calling `revoke_permission_from_users`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'permission' in params:
+ path_params['permission'] = params['permission'] # 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/user/revoke/{permission}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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_user_permission(self, id, **kwargs): # noqa: E501
+ """Revokes a specific permission from user or service account # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_user_permission(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str group:
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.revoke_user_permission_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.revoke_user_permission_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def revoke_user_permission_with_http_info(self, id, **kwargs): # noqa: E501
+ """Revokes a specific permission from user or service account # noqa: E501
+
+ Note: For original Tanzu Observability instances, applies to user accounts and service accounts. For Tanzu Observability instances that are onboarded to VMware Cloud services, applies only to service accounts. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.revoke_user_permission_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param str group:
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', 'group'] # 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 revoke_user_permission" % 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 `revoke_user_permission`") # 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 = {}
+ if 'group' in params:
+ form_params.append(('group', params['group'])) # noqa: E501
+
+ 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/x-www-form-urlencoded']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/user/{id}/revoke', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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 update_user(self, id, **kwargs): # noqa: E501
+ """Update user with given user groups, permissions and ingestion policy. # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_user(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param UserRequestDTO body: Example Body: { \"identifier\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ] }
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.update_user_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_user_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_user_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update user with given user groups, permissions and ingestion policy. # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_user_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param UserRequestDTO body: Example Body: { \"identifier\": \"user@example.com\", \"groups\": [ \"user_management\" ], \"userGroups\": [ \"8b23136b-ecd2-4cb5-8c92-62477dcc4090\" ], \"roles\": [ \"Role\" ] }
+ :return: UserModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_user" % 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 `update_user`") # 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
+ 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/user/{id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='UserModel', # 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 validate_users(self, **kwargs): # noqa: E501
+ """Returns valid users and service accounts, also invalid identifiers from the given list # 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.validate_users(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] body:
+ :return: ResponseContainerValidatedUsersDTO
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.validate_users_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.validate_users_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def validate_users_with_http_info(self, **kwargs): # noqa: E501
+ """Returns valid users and service accounts, also invalid identifiers from the given list # 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.validate_users_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[str] body:
+ :return: ResponseContainerValidatedUsersDTO
+ 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 validate_users" % 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/user/validateUsers', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerValidatedUsersDTO', # 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'),
diff --git a/wavefront_api_client/api/user_group_api.py b/wavefront_api_client/api/user_group_api.py
new file mode 100644
index 00000000..bada57b8
--- /dev/null
+++ b/wavefront_api_client/api/user_group_api.py
@@ -0,0 +1,929 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class UserGroupApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_roles_to_user_group(self, id, **kwargs): # noqa: E501 + """Add multiple roles to a specific user group # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_roles_to_user_group(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: List of roles that should be added to user group + :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_roles_to_user_group_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.add_roles_to_user_group_with_http_info(id, **kwargs) # noqa: E501 + return data + + def add_roles_to_user_group_with_http_info(self, id, **kwargs): # noqa: E501 + """Add multiple roles to a specific user group # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_roles_to_user_group_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: List of roles that should be added to user group + :return: ResponseContainerUserGroupModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', '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_roles_to_user_group" % 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 `add_roles_to_user_group`") # 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 + 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/{id}/addRoles', '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_users_to_user_group(self, id, **kwargs): # noqa: E501 + """Add multiple users to a specific user group # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_users_to_user_group(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: List of users that should be added to user group + :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_users_to_user_group_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.add_users_to_user_group_with_http_info(id, **kwargs) # noqa: E501 + return data + + def add_users_to_user_group_with_http_info(self, id, **kwargs): # noqa: E501 + """Add multiple users to a specific user group # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_users_to_user_group_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param list[str] body: List of users that should be added to user group + :return: ResponseContainerUserGroupModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', '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_users_to_user_group" % 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 `add_users_to_user_group`") # 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 + 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/{id}/addUsers', '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 create_user_group(self, **kwargs): # noqa: E501 + """Create a specific user group # noqa: E501 + + Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_user_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param UserGroupWrite body: Example Body:{ \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" }
+ :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.create_user_group_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.create_user_group_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def create_user_group_with_http_info(self, **kwargs): # noqa: E501
+ """Create a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_user_group_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param UserGroupWrite body: Example Body: { \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" }
+ :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 create_user_group" % 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', '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 delete_user_group(self, id, **kwargs): # noqa: E501
+ """Delete a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :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.delete_user_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_user_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def delete_user_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Delete a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerUserGroupModel
+ 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 delete_user_group" % 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 `delete_user_group`") # 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/usergroup/{id}', 'DELETE',
+ 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 get_all_user_groups(self, **kwargs): # noqa: E501
+ """Get all user groups for a customer # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_all_user_groups(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedUserGroupModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_all_user_groups_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_all_user_groups_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_all_user_groups_with_http_info(self, **kwargs): # noqa: E501
+ """Get all user groups for a customer # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_all_user_groups_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param int offset:
+ :param int limit:
+ :return: ResponseContainerPagedUserGroupModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['offset', 'limit'] # 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_all_user_groups" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'offset' in params:
+ query_params.append(('offset', params['offset'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # Authentication setting
+ auth_settings = ['api_key'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/api/v2/usergroup', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResponseContainerPagedUserGroupModel', # 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_user_group(self, id, **kwargs): # noqa: E501
+ """Get a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :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.get_user_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_user_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def get_user_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Get a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_user_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :return: ResponseContainerUserGroupModel
+ 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_user_group" % 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_user_group`") # 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/usergroup/{id}', 'GET',
+ 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
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_roles_from_user_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: List of roles that should be removed from user group
+ :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_roles_from_user_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.remove_roles_from_user_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def remove_roles_from_user_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Remove multiple roles from a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_roles_from_user_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: List of roles that should be removed from user group
+ :return: ResponseContainerUserGroupModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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_roles_from_user_group" % 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 `remove_roles_from_user_group`") # 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
+ 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/{id}/removeRoles', '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_users_from_user_group(self, id, **kwargs): # noqa: E501
+ """Remove multiple users from a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_users_from_user_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: List of users that should be removed from user group
+ :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_users_from_user_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.remove_users_from_user_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def remove_users_from_user_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Remove multiple users from a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # 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_users_from_user_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param list[str] body: List of users that should be removed from user group
+ :return: ResponseContainerUserGroupModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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_users_from_user_group" % 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 `remove_users_from_user_group`") # 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
+ 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/{id}/removeUsers', '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 update_user_group(self, id, **kwargs): # noqa: E501
+ """Update a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_user_group(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param UserGroupWrite body: Example Body: { \"id\": \"UserGroup identifier\", \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" }
+ :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.update_user_group_with_http_info(id, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_user_group_with_http_info(id, **kwargs) # noqa: E501
+ return data
+
+ def update_user_group_with_http_info(self, id, **kwargs): # noqa: E501
+ """Update a specific user group # noqa: E501
+
+ Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_user_group_with_http_info(id, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str id: (required)
+ :param UserGroupWrite body: Example Body: { \"id\": \"UserGroup identifier\", \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" }
+ :return: ResponseContainerUserGroupModel
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['id', '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 update_user_group" % 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 `update_user_group`") # 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
+ 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/{id}', 'PUT',
+ 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)
diff --git a/wavefront_api_client/api/wavefront_api.py b/wavefront_api_client/api/wavefront_api.py
new file mode 100644
index 00000000..fd859826
--- /dev/null
+++ b/wavefront_api_client/api/wavefront_api.py
@@ -0,0 +1,125 @@
+# coding: utf-8
+
+"""
+ Tanzu Observability REST API Documentation
+
+ The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from wavefront_api_client.api_client import ApiClient + + +class WavefrontApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_cluster_info(self, **kwargs): # noqa: E501 + """API endpoint to get cluster info # 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_cluster_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerClusterInfoDTO + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_cluster_info_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_cluster_info_with_http_info(**kwargs) # noqa: E501 + return data + + def get_cluster_info_with_http_info(self, **kwargs): # noqa: E501 + """API endpoint to get cluster info # 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_cluster_info_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResponseContainerClusterInfoDTO + 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_cluster_info" % 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 + + # 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/cluster/info', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerClusterInfoDTO', # 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) diff --git a/wavefront_api_client/api/webhook_api.py b/wavefront_api_client/api/webhook_api.py index 89dcaf03..8dd4002e 100644 --- a/wavefront_api_client/api/webhook_api.py +++ b/wavefront_api_client/api/webhook_api.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -38,18 +38,18 @@ def create_webhook(self, **kwargs): # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_webhook(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_webhook(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Notificant body: Example Body:{ \"description\": \"WebHook Description\", \"template\": \"POST Body -- Mustache syntax\", \"title\": \"WebHook Title\", \"triggers\": [ \"ALERT_OPENED\" ], \"recipient\": \"http://example.com\", \"customHttpHeaders\": {}, \"contentType\": \"text/plain\" }
:return: ResponseContainerNotificant
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.create_webhook_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_webhook_with_http_info(**kwargs) # noqa: E501
@@ -60,11 +60,11 @@ def create_webhook_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.create_webhook_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_webhook_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param Notificant body: Example Body: { \"description\": \"WebHook Description\", \"template\": \"POST Body -- Mustache syntax\", \"title\": \"WebHook Title\", \"triggers\": [ \"ALERT_OPENED\" ], \"recipient\": \"http://example.com\", \"customHttpHeaders\": {}, \"contentType\": \"text/plain\" }
:return: ResponseContainerNotificant
If the method is called asynchronously,
@@ -72,7 +72,7 @@ def create_webhook_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -122,7 +122,7 @@ def create_webhook_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerNotificant', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -133,18 +133,19 @@ def delete_webhook(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_webhook(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_webhook(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool unlink:
:return: ResponseContainerNotificant
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.delete_webhook_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_webhook_with_http_info(id, **kwargs) # noqa: E501
@@ -155,19 +156,20 @@ def delete_webhook_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.delete_webhook_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_webhook_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
+ :param bool unlink:
:return: ResponseContainerNotificant
If the method is called asynchronously,
returns the request thread.
"""
- all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params = ['id', 'unlink'] # noqa: E501
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -182,8 +184,8 @@ def delete_webhook_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `delete_webhook`") # noqa: E501
collection_formats = {}
@@ -193,6 +195,8 @@ def delete_webhook_with_http_info(self, id, **kwargs): # noqa: E501
path_params['id'] = params['id'] # noqa: E501
query_params = []
+ if 'unlink' in params:
+ query_params.append(('unlink', params['unlink'])) # noqa: E501
header_params = {}
@@ -217,7 +221,7 @@ def delete_webhook_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerNotificant', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -228,11 +232,11 @@ def get_all_webhooks(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_webhooks(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_webhooks(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedNotificant
@@ -240,7 +244,7 @@ def get_all_webhooks(self, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_all_webhooks_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_webhooks_with_http_info(**kwargs) # noqa: E501
@@ -251,11 +255,11 @@ def get_all_webhooks_with_http_info(self, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_all_webhooks_with_http_info(async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_all_webhooks_with_http_info(async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param int offset:
:param int limit:
:return: ResponseContainerPagedNotificant
@@ -264,7 +268,7 @@ def get_all_webhooks_with_http_info(self, **kwargs): # noqa: E501
"""
all_params = ['offset', 'limit'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -312,7 +316,7 @@ def get_all_webhooks_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerPagedNotificant', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -323,18 +327,18 @@ def get_webhook(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_webhook(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_webhook(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerNotificant
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.get_webhook_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_webhook_with_http_info(id, **kwargs) # noqa: E501
@@ -345,11 +349,11 @@ def get_webhook_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.get_webhook_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_webhook_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:return: ResponseContainerNotificant
If the method is called asynchronously,
@@ -357,7 +361,7 @@ def get_webhook_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -372,8 +376,8 @@ def get_webhook_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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_webhook`") # noqa: E501
collection_formats = {}
@@ -407,7 +411,7 @@ def get_webhook_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerNotificant', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
@@ -418,11 +422,11 @@ def update_webhook(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_webhook(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_webhook(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param Notificant body: Example Body: { \"description\": \"WebHook Description\", \"template\": \"POST Body -- Mustache syntax\", \"title\": \"WebHook Title\", \"triggers\": [ \"ALERT_OPENED\" ], \"recipient\": \"http://example.com\", \"customHttpHeaders\": {}, \"contentType\": \"text/plain\" }
:return: ResponseContainerNotificant
@@ -430,7 +434,7 @@ def update_webhook(self, id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- if kwargs.get('async'):
+ if kwargs.get('async_req'):
return self.update_webhook_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_webhook_with_http_info(id, **kwargs) # noqa: E501
@@ -441,11 +445,11 @@ def update_webhook_with_http_info(self, id, **kwargs): # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async=True
- >>> thread = api.update_webhook_with_http_info(id, async=True)
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.update_webhook_with_http_info(id, async_req=True)
>>> result = thread.get()
- :param async bool
+ :param async_req bool
:param str id: (required)
:param Notificant body: Example Body: { \"description\": \"WebHook Description\", \"template\": \"POST Body -- Mustache syntax\", \"title\": \"WebHook Title\", \"triggers\": [ \"ALERT_OPENED\" ], \"recipient\": \"http://example.com\", \"customHttpHeaders\": {}, \"contentType\": \"text/plain\" }
:return: ResponseContainerNotificant
@@ -454,7 +458,7 @@ def update_webhook_with_http_info(self, id, **kwargs): # noqa: E501
"""
all_params = ['id', 'body'] # noqa: E501
- all_params.append('async')
+ all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
@@ -469,8 +473,8 @@ def update_webhook_with_http_info(self, id, **kwargs): # noqa: E501
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
- if ('id' not in params or
- params['id'] is None):
+ 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 `update_webhook`") # noqa: E501
collection_formats = {}
@@ -510,7 +514,7 @@ def update_webhook_with_http_info(self, id, **kwargs): # noqa: E501
files=local_var_files,
response_type='ResponseContainerNotificant', # noqa: E501
auth_settings=auth_settings,
- async=params.get('async'),
+ 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'),
diff --git a/wavefront_api_client/api_client.py b/wavefront_api_client/api_client.py
index b8c819d8..5f79e1f0 100644
--- a/wavefront_api_client/api_client.py
+++ b/wavefront_api_client/api_client.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Wavefront Public API
+ Tanzu Observability REST API Documentation
- The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -66,18 +66,27 @@ def __init__(self, configuration=None, header_name=None, header_value=None, configuration = Configuration() self.configuration = configuration - self.pool = ThreadPool() + # Use the pool property to lazily initialize the ThreadPool. + self._pool = None self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.3.1/python' + self.user_agent = 'Swagger-Codegen/2.223.1/python' + self.client_side_validation = configuration.client_side_validation def __del__(self): - self.pool.close() - self.pool.join() + if self._pool is not None: + self._pool.close() + self._pool.join() + + @property + def pool(self): + if self._pool is None: + self._pool = ThreadPool() + return self._pool @property def user_agent(self): @@ -245,12 +254,12 @@ def __deserialize(self, data, klass): if type(klass) == str: if klass.startswith('list['): - sub_kls = re.match('list\[(.*)\]', klass).group(1) + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] if klass.startswith('dict('): - sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) return {k: self.__deserialize(v, sub_kls) for k, v in six.iteritems(data)} @@ -274,12 +283,12 @@ def __deserialize(self, data, klass): def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async=None, + response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): """Makes the HTTP request (synchronous) and returns deserialized data. - To make an async request, set the async parameter. + To make an async request, set the async_req parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -294,7 +303,7 @@ def call_api(self, resource_path, method, :param response: Response data type. :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. - :param async bool: execute request asynchronously + :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param collection_formats: dict of collection formats for path, query, @@ -307,13 +316,13 @@ def call_api(self, resource_path, method, timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: - If async parameter is True, + If async_req parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter async is False or missing, + If parameter async_req is False or missing, then the method will return the response directly. """ - if not async: + if not async_req: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, @@ -525,7 +534,7 @@ def __deserialize_file(self, response): content_disposition).group(1) path = os.path.join(os.path.dirname(path), filename) - with open(path, "wb") as f: + with open(path, "w") as f: f.write(response.data) return path @@ -541,7 +550,7 @@ def __deserialize_primitive(self, data, klass): try: return klass(data) except UnicodeEncodeError: - return six.u(data) + return six.text_type(data) except TypeError: return data @@ -591,6 +600,9 @@ def __deserialize_datatime(self, string): ) ) + def __hasattr(self, object, name): + return name in object.__class__.__dict__ + def __deserialize_model(self, data, klass): """Deserializes list or dict to model. @@ -599,8 +611,8 @@ def __deserialize_model(self, data, klass): :return: model object. """ - if not klass.swagger_types and not hasattr(klass, - 'get_real_child_model'): + if (not klass.swagger_types and + not self.__hasattr(klass, 'get_real_child_model')): return data kwargs = {} @@ -614,7 +626,13 @@ def __deserialize_model(self, data, klass): instance = klass(**kwargs) - if hasattr(instance, 'get_real_child_model'): + if (isinstance(instance, dict) and + klass.swagger_types is not None and + isinstance(data, dict)): + for key, value in data.items(): + if key not in klass.swagger_types: + instance[key] = value + if self.__hasattr(instance, 'get_real_child_model'): klass_name = instance.get_real_child_model(data) if klass_name: instance = self.__deserialize(data, klass_name) diff --git a/wavefront_api_client/configuration.py b/wavefront_api_client/configuration.py index 72f61357..945d0519 100644 --- a/wavefront_api_client/configuration.py +++ b/wavefront_api_client/configuration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -23,29 +23,22 @@ from six.moves import http_client as httplib -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): +class Configuration(object): """NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually. """ + _default = None + def __init__(self): """Constructor""" + if self._default: + for key in self._default.__dict__.keys(): + self.__dict__[key] = copy.copy(self._default.__dict__[key]) + return + # Default Base url self.host = "https://localhost" # Temp file folder for downloading files @@ -56,6 +49,8 @@ def __init__(self): self.api_key = {} # dict to store API prefix (e.g. Bearer) self.api_key_prefix = {} + # function to refresh API key if expired + self.refresh_api_key_hook = None # Username for HTTP basic authentication self.username = "" # Password for HTTP basic authentication @@ -101,6 +96,13 @@ def __init__(self): # Safe chars for path_param self.safe_chars_for_path_param = '' + # Disable client side validation + self.client_side_validation = True + + @classmethod + def set_default(cls, default): + cls._default = default + @property def logger_file(self): """The logger file. @@ -203,11 +205,17 @@ def get_api_key_with_prefix(self, identifier): :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ - if (self.api_key.get(identifier) and - self.api_key_prefix.get(identifier)): - return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 - elif self.api_key.get(identifier): - return self.api_key[identifier] + + if self.refresh_api_key_hook: + self.refresh_api_key_hook(self) + + key = self.api_key.get(identifier) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key def get_basic_auth_token(self): """Gets HTTP basic authentication header (string). @@ -243,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.3.1".\ + "SDK Package Version: 2.223.1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/wavefront_api_client/models/__init__.py b/wavefront_api_client/models/__init__.py index afd19bfe..b3aaf73e 100644 --- a/wavefront_api_client/models/__init__.py +++ b/wavefront_api_client/models/__init__.py @@ -2,12 +2,12 @@ # flake8: noqa """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,23 +16,53 @@ # import models into model package from wavefront_api_client.models.aws_base_credentials import AWSBaseCredentials +from wavefront_api_client.models.access_control_element import AccessControlElement +from wavefront_api_client.models.access_control_list_read_dto import AccessControlListReadDTO +from wavefront_api_client.models.access_control_list_simple import AccessControlListSimple +from wavefront_api_client.models.access_control_list_write_dto import AccessControlListWriteDTO +from wavefront_api_client.models.access_policy import AccessPolicy +from wavefront_api_client.models.access_policy_rule_dto import AccessPolicyRuleDTO +from wavefront_api_client.models.account import Account from wavefront_api_client.models.alert import Alert -from wavefront_api_client.models.avro_backed_standardized_dto import AvroBackedStandardizedDTO +from wavefront_api_client.models.alert_analytics_summary import AlertAnalyticsSummary +from wavefront_api_client.models.alert_analytics_summary_detail import AlertAnalyticsSummaryDetail +from wavefront_api_client.models.alert_dashboard import AlertDashboard +from wavefront_api_client.models.alert_error_group_info import AlertErrorGroupInfo +from wavefront_api_client.models.alert_error_group_summary import AlertErrorGroupSummary +from wavefront_api_client.models.alert_error_summary import AlertErrorSummary +from wavefront_api_client.models.alert_min import AlertMin +from wavefront_api_client.models.alert_route import AlertRoute +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 +from wavefront_api_client.models.app_search_filters import AppSearchFilters from wavefront_api_client.models.azure_activity_log_configuration import AzureActivityLogConfiguration from wavefront_api_client.models.azure_base_credentials import AzureBaseCredentials from wavefront_api_client.models.azure_configuration import AzureConfiguration from wavefront_api_client.models.chart import Chart from wavefront_api_client.models.chart_settings import ChartSettings from wavefront_api_client.models.chart_source_query import ChartSourceQuery +from wavefront_api_client.models.class_loader import ClassLoader from wavefront_api_client.models.cloud_integration import CloudIntegration from wavefront_api_client.models.cloud_trail_configuration import CloudTrailConfiguration from wavefront_api_client.models.cloud_watch_configuration import CloudWatchConfiguration +from wavefront_api_client.models.cluster_info_dto import ClusterInfoDTO +from wavefront_api_client.models.conversion import Conversion +from wavefront_api_client.models.conversion_object import ConversionObject from wavefront_api_client.models.customer_facing_user_object import CustomerFacingUserObject from wavefront_api_client.models.dashboard import Dashboard +from wavefront_api_client.models.dashboard_min import DashboardMin 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 from wavefront_api_client.models.event import Event from wavefront_api_client.models.event_search_request import EventSearchRequest @@ -42,24 +72,55 @@ from wavefront_api_client.models.facet_search_request_container import FacetSearchRequestContainer from wavefront_api_client.models.facets_response_container import FacetsResponseContainer from wavefront_api_client.models.facets_search_request_container import FacetsSearchRequestContainer +from wavefront_api_client.models.fast_reader_builder import FastReaderBuilder +from wavefront_api_client.models.field import Field +from wavefront_api_client.models.gcp_billing_configuration import GCPBillingConfiguration from wavefront_api_client.models.gcp_configuration import GCPConfiguration from wavefront_api_client.models.history_entry import HistoryEntry from wavefront_api_client.models.history_response import HistoryResponse +from wavefront_api_client.models.ingestion_policy_alert import IngestionPolicyAlert +from wavefront_api_client.models.ingestion_policy_metadata import IngestionPolicyMetadata +from wavefront_api_client.models.ingestion_policy_read_model import IngestionPolicyReadModel +from wavefront_api_client.models.ingestion_policy_write_model import IngestionPolicyWriteModel +from wavefront_api_client.models.install_alerts import InstallAlerts from wavefront_api_client.models.integration import Integration +from wavefront_api_client.models.integration_alert import IntegrationAlert from wavefront_api_client.models.integration_alias import IntegrationAlias from wavefront_api_client.models.integration_dashboard import IntegrationDashboard from wavefront_api_client.models.integration_manifest_group import IntegrationManifestGroup from wavefront_api_client.models.integration_metrics import IntegrationMetrics from wavefront_api_client.models.integration_status import IntegrationStatus from wavefront_api_client.models.json_node import JsonNode +from wavefront_api_client.models.kubernetes_component import KubernetesComponent +from wavefront_api_client.models.kubernetes_component_status import KubernetesComponentStatus +from wavefront_api_client.models.logical_type import LogicalType +from wavefront_api_client.models.logs_sort import LogsSort +from wavefront_api_client.models.logs_table import LogsTable from wavefront_api_client.models.maintenance_window import MaintenanceWindow from wavefront_api_client.models.message import Message from wavefront_api_client.models.metric_details import MetricDetails from wavefront_api_client.models.metric_details_response import MetricDetailsResponse from wavefront_api_client.models.metric_status import MetricStatus +from wavefront_api_client.models.metrics_policy_read_model import MetricsPolicyReadModel +from wavefront_api_client.models.metrics_policy_write_model import MetricsPolicyWriteModel +from wavefront_api_client.models.module import Module +from wavefront_api_client.models.module_descriptor import ModuleDescriptor +from wavefront_api_client.models.module_layer import ModuleLayer +from wavefront_api_client.models.monitored_application_dto import MonitoredApplicationDTO +from wavefront_api_client.models.monitored_cluster import MonitoredCluster +from wavefront_api_client.models.monitored_service_dto import MonitoredServiceDTO +from wavefront_api_client.models.new_relic_configuration import NewRelicConfiguration +from wavefront_api_client.models.new_relic_metric_filters import NewRelicMetricFilters from wavefront_api_client.models.notificant import Notificant +from wavefront_api_client.models.notification_messages import NotificationMessages +from wavefront_api_client.models.package import Package +from wavefront_api_client.models.paged import Paged +from wavefront_api_client.models.paged_account import PagedAccount from wavefront_api_client.models.paged_alert import PagedAlert +from wavefront_api_client.models.paged_alert_analytics_summary_detail import PagedAlertAnalyticsSummaryDetail 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 @@ -67,38 +128,91 @@ from wavefront_api_client.models.paged_derived_metric_definition_with_stats import PagedDerivedMetricDefinitionWithStats from wavefront_api_client.models.paged_event import PagedEvent from wavefront_api_client.models.paged_external_link import PagedExternalLink +from wavefront_api_client.models.paged_ingestion_policy_read_model import PagedIngestionPolicyReadModel from wavefront_api_client.models.paged_integration import PagedIntegration from wavefront_api_client.models.paged_maintenance_window import PagedMaintenanceWindow from wavefront_api_client.models.paged_message import PagedMessage +from wavefront_api_client.models.paged_monitored_application_dto import PagedMonitoredApplicationDTO +from wavefront_api_client.models.paged_monitored_cluster import PagedMonitoredCluster +from wavefront_api_client.models.paged_monitored_service_dto import PagedMonitoredServiceDTO from wavefront_api_client.models.paged_notificant import PagedNotificant from wavefront_api_client.models.paged_proxy import PagedProxy +from wavefront_api_client.models.paged_recent_app_map_search import PagedRecentAppMapSearch +from wavefront_api_client.models.paged_recent_traces_search import PagedRecentTracesSearch +from wavefront_api_client.models.paged_related_event import PagedRelatedEvent +from wavefront_api_client.models.paged_report_event_anomaly_dto import PagedReportEventAnomalyDTO +from wavefront_api_client.models.paged_role_dto import PagedRoleDTO +from wavefront_api_client.models.paged_saved_app_map_search import PagedSavedAppMapSearch +from wavefront_api_client.models.paged_saved_app_map_search_group import PagedSavedAppMapSearchGroup from wavefront_api_client.models.paged_saved_search import PagedSavedSearch +from wavefront_api_client.models.paged_saved_traces_search import PagedSavedTracesSearch +from wavefront_api_client.models.paged_saved_traces_search_group import PagedSavedTracesSearchGroup +from wavefront_api_client.models.paged_service_account import PagedServiceAccount from wavefront_api_client.models.paged_source import PagedSource +from wavefront_api_client.models.paged_span_sampling_policy import PagedSpanSamplingPolicy +from wavefront_api_client.models.paged_user_group_model import PagedUserGroupModel from wavefront_api_client.models.point import Point +from wavefront_api_client.models.policy_rule_read_model import PolicyRuleReadModel +from wavefront_api_client.models.policy_rule_write_model import PolicyRuleWriteModel from wavefront_api_client.models.proxy import Proxy from wavefront_api_client.models.query_event import QueryEvent from wavefront_api_client.models.query_result import QueryResult +from wavefront_api_client.models.query_type_dto import QueryTypeDTO from wavefront_api_client.models.raw_timeseries import RawTimeseries +from wavefront_api_client.models.recent_app_map_search import RecentAppMapSearch +from wavefront_api_client.models.recent_traces_search import RecentTracesSearch +from wavefront_api_client.models.related_anomaly import RelatedAnomaly +from wavefront_api_client.models.related_data import RelatedData +from wavefront_api_client.models.related_event import RelatedEvent +from wavefront_api_client.models.related_event_time_range import RelatedEventTimeRange +from wavefront_api_client.models.report_event_anomaly_dto import ReportEventAnomalyDTO from wavefront_api_client.models.response_container import ResponseContainer +from wavefront_api_client.models.response_container_access_policy import ResponseContainerAccessPolicy +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_alert_analytics_summary import ResponseContainerAlertAnalyticsSummary +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_cluster_info_dto import ResponseContainerClusterInfoDTO 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 from wavefront_api_client.models.response_container_facet_response import ResponseContainerFacetResponse from wavefront_api_client.models.response_container_facets_response_container import ResponseContainerFacetsResponseContainer from wavefront_api_client.models.response_container_history_response import ResponseContainerHistoryResponse +from wavefront_api_client.models.response_container_ingestion_policy_read_model import ResponseContainerIngestionPolicyReadModel 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_alert_error_group_info import ResponseContainerListAlertErrorGroupInfo +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 +from wavefront_api_client.models.response_container_list_service_account import ResponseContainerListServiceAccount +from wavefront_api_client.models.response_container_list_string import ResponseContainerListString +from wavefront_api_client.models.response_container_list_user_api_token import ResponseContainerListUserApiToken +from wavefront_api_client.models.response_container_list_user_dto import ResponseContainerListUserDTO from wavefront_api_client.models.response_container_maintenance_window import ResponseContainerMaintenanceWindow +from wavefront_api_client.models.response_container_map import ResponseContainerMap from wavefront_api_client.models.response_container_map_string_integer import ResponseContainerMapStringInteger from wavefront_api_client.models.response_container_map_string_integration_status import ResponseContainerMapStringIntegrationStatus from wavefront_api_client.models.response_container_message import ResponseContainerMessage +from wavefront_api_client.models.response_container_metrics_policy_read_model import ResponseContainerMetricsPolicyReadModel +from wavefront_api_client.models.response_container_monitored_application_dto import ResponseContainerMonitoredApplicationDTO +from wavefront_api_client.models.response_container_monitored_cluster import ResponseContainerMonitoredCluster +from wavefront_api_client.models.response_container_monitored_service_dto import ResponseContainerMonitoredServiceDTO from wavefront_api_client.models.response_container_notificant import ResponseContainerNotificant +from wavefront_api_client.models.response_container_paged_account import ResponseContainerPagedAccount from wavefront_api_client.models.response_container_paged_alert import ResponseContainerPagedAlert +from wavefront_api_client.models.response_container_paged_alert_analytics_summary_detail import ResponseContainerPagedAlertAnalyticsSummaryDetail 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 @@ -106,30 +220,93 @@ from wavefront_api_client.models.response_container_paged_derived_metric_definition_with_stats import ResponseContainerPagedDerivedMetricDefinitionWithStats from wavefront_api_client.models.response_container_paged_event import ResponseContainerPagedEvent from wavefront_api_client.models.response_container_paged_external_link import ResponseContainerPagedExternalLink +from wavefront_api_client.models.response_container_paged_ingestion_policy_read_model import ResponseContainerPagedIngestionPolicyReadModel from wavefront_api_client.models.response_container_paged_integration import ResponseContainerPagedIntegration from wavefront_api_client.models.response_container_paged_maintenance_window import ResponseContainerPagedMaintenanceWindow from wavefront_api_client.models.response_container_paged_message import ResponseContainerPagedMessage +from wavefront_api_client.models.response_container_paged_monitored_application_dto import ResponseContainerPagedMonitoredApplicationDTO +from wavefront_api_client.models.response_container_paged_monitored_cluster import ResponseContainerPagedMonitoredCluster +from wavefront_api_client.models.response_container_paged_monitored_service_dto import ResponseContainerPagedMonitoredServiceDTO from wavefront_api_client.models.response_container_paged_notificant import ResponseContainerPagedNotificant from wavefront_api_client.models.response_container_paged_proxy import ResponseContainerPagedProxy +from wavefront_api_client.models.response_container_paged_recent_app_map_search import ResponseContainerPagedRecentAppMapSearch +from wavefront_api_client.models.response_container_paged_recent_traces_search import ResponseContainerPagedRecentTracesSearch +from wavefront_api_client.models.response_container_paged_related_event import ResponseContainerPagedRelatedEvent +from wavefront_api_client.models.response_container_paged_report_event_anomaly_dto import ResponseContainerPagedReportEventAnomalyDTO +from wavefront_api_client.models.response_container_paged_role_dto import ResponseContainerPagedRoleDTO +from wavefront_api_client.models.response_container_paged_saved_app_map_search import ResponseContainerPagedSavedAppMapSearch +from wavefront_api_client.models.response_container_paged_saved_app_map_search_group import ResponseContainerPagedSavedAppMapSearchGroup from wavefront_api_client.models.response_container_paged_saved_search import ResponseContainerPagedSavedSearch +from wavefront_api_client.models.response_container_paged_saved_traces_search import ResponseContainerPagedSavedTracesSearch +from wavefront_api_client.models.response_container_paged_saved_traces_search_group import ResponseContainerPagedSavedTracesSearchGroup +from wavefront_api_client.models.response_container_paged_service_account import ResponseContainerPagedServiceAccount from wavefront_api_client.models.response_container_paged_source import ResponseContainerPagedSource +from wavefront_api_client.models.response_container_paged_span_sampling_policy import ResponseContainerPagedSpanSamplingPolicy +from wavefront_api_client.models.response_container_paged_user_group_model import ResponseContainerPagedUserGroupModel from wavefront_api_client.models.response_container_proxy import ResponseContainerProxy +from wavefront_api_client.models.response_container_query_type_dto import ResponseContainerQueryTypeDTO +from wavefront_api_client.models.response_container_recent_app_map_search import ResponseContainerRecentAppMapSearch +from wavefront_api_client.models.response_container_recent_traces_search import ResponseContainerRecentTracesSearch +from wavefront_api_client.models.response_container_role_dto import ResponseContainerRoleDTO +from wavefront_api_client.models.response_container_saved_app_map_search import ResponseContainerSavedAppMapSearch +from wavefront_api_client.models.response_container_saved_app_map_search_group import ResponseContainerSavedAppMapSearchGroup from wavefront_api_client.models.response_container_saved_search import ResponseContainerSavedSearch +from wavefront_api_client.models.response_container_saved_traces_search import ResponseContainerSavedTracesSearch +from wavefront_api_client.models.response_container_saved_traces_search_group import ResponseContainerSavedTracesSearchGroup +from wavefront_api_client.models.response_container_service_account import ResponseContainerServiceAccount +from wavefront_api_client.models.response_container_set_business_function import ResponseContainerSetBusinessFunction +from wavefront_api_client.models.response_container_set_source_label_pair import ResponseContainerSetSourceLabelPair from wavefront_api_client.models.response_container_source import ResponseContainerSource +from wavefront_api_client.models.response_container_span_sampling_policy import ResponseContainerSpanSamplingPolicy +from wavefront_api_client.models.response_container_string import ResponseContainerString from wavefront_api_client.models.response_container_tags_response import ResponseContainerTagsResponse +from wavefront_api_client.models.response_container_user_api_token import ResponseContainerUserApiToken +from wavefront_api_client.models.response_container_user_dto import ResponseContainerUserDTO +from wavefront_api_client.models.response_container_user_group_model import ResponseContainerUserGroupModel +from wavefront_api_client.models.response_container_validated_users_dto import ResponseContainerValidatedUsersDTO +from wavefront_api_client.models.response_container_void import ResponseContainerVoid from wavefront_api_client.models.response_status import ResponseStatus +from wavefront_api_client.models.role_create_dto import RoleCreateDTO +from wavefront_api_client.models.role_dto import RoleDTO +from wavefront_api_client.models.role_update_dto import RoleUpdateDTO +from wavefront_api_client.models.saved_app_map_search import SavedAppMapSearch +from wavefront_api_client.models.saved_app_map_search_group import SavedAppMapSearchGroup from wavefront_api_client.models.saved_search import SavedSearch +from wavefront_api_client.models.saved_traces_search import SavedTracesSearch +from wavefront_api_client.models.saved_traces_search_group import SavedTracesSearchGroup +from wavefront_api_client.models.schema import Schema from wavefront_api_client.models.search_query import SearchQuery +from wavefront_api_client.models.service_account import ServiceAccount +from wavefront_api_client.models.service_account_write import ServiceAccountWrite +from wavefront_api_client.models.setup import Setup +from wavefront_api_client.models.snowflake_configuration import SnowflakeConfiguration from wavefront_api_client.models.sortable_search_request import SortableSearchRequest from wavefront_api_client.models.sorting import Sorting from wavefront_api_client.models.source import Source from wavefront_api_client.models.source_label_pair import SourceLabelPair from wavefront_api_client.models.source_search_request_container import SourceSearchRequestContainer -from wavefront_api_client.models.stats_model import StatsModel +from wavefront_api_client.models.span import Span +from wavefront_api_client.models.span_sampling_policy import SpanSamplingPolicy +from wavefront_api_client.models.specific_data import SpecificData +from wavefront_api_client.models.stats_model_internal_use import StatsModelInternalUse +from wavefront_api_client.models.stripe import Stripe from wavefront_api_client.models.tags_response import TagsResponse from wavefront_api_client.models.target_info import TargetInfo -from wavefront_api_client.models.tesla_configuration import TeslaConfiguration from wavefront_api_client.models.timeseries import Timeseries +from wavefront_api_client.models.trace import Trace +from wavefront_api_client.models.triage_dashboard import TriageDashboard +from wavefront_api_client.models.tuple_result import TupleResult +from wavefront_api_client.models.tuple_value_result import TupleValueResult +from wavefront_api_client.models.user_api_token import UserApiToken +from wavefront_api_client.models.user_dto import UserDTO +from wavefront_api_client.models.user_group import UserGroup +from wavefront_api_client.models.user_group_model import UserGroupModel +from wavefront_api_client.models.user_group_properties_dto import UserGroupPropertiesDTO +from wavefront_api_client.models.user_group_write import UserGroupWrite from wavefront_api_client.models.user_model import UserModel +from wavefront_api_client.models.user_request_dto import UserRequestDTO from wavefront_api_client.models.user_to_create import UserToCreate +from wavefront_api_client.models.validated_users_dto import ValidatedUsersDTO +from wavefront_api_client.models.void import Void +from wavefront_api_client.models.vrops_configuration import VropsConfiguration from wavefront_api_client.models.wf_tags import WFTags diff --git a/wavefront_api_client/models/access_control_element.py b/wavefront_api_client/models/access_control_element.py new file mode 100644 index 00000000..99535a10 --- /dev/null +++ b/wavefront_api_client/models/access_control_element.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AccessControlElement(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 = { + 'description': 'str', + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'description': 'description', + 'id': 'id', + 'name': 'name' + } + + def __init__(self, description=None, id=None, name=None, _configuration=None): # noqa: E501 + """AccessControlElement - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._description = None + self._id = None + self._name = None + self.discriminator = None + + if description is not None: + self.description = description + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def description(self): + """Gets the description of this AccessControlElement. # noqa: E501 + + + :return: The description of this AccessControlElement. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AccessControlElement. + + + :param description: The description of this AccessControlElement. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def id(self): + """Gets the id of this AccessControlElement. # noqa: E501 + + + :return: The id of this AccessControlElement. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AccessControlElement. + + + :param id: The id of this AccessControlElement. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this AccessControlElement. # noqa: E501 + + + :return: The name of this AccessControlElement. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AccessControlElement. + + + :param name: The name of this AccessControlElement. # 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(AccessControlElement, 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, AccessControlElement): + 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, AccessControlElement): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/access_control_list_read_dto.py b/wavefront_api_client/models/access_control_list_read_dto.py new file mode 100644 index 00000000..af64a506 --- /dev/null +++ b/wavefront_api_client/models/access_control_list_read_dto.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AccessControlListReadDTO(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 = { + 'entity_id': 'str', + 'modify_acl': 'list[AccessControlElement]', + 'view_acl': 'list[AccessControlElement]' + } + + attribute_map = { + 'entity_id': 'entityId', + 'modify_acl': 'modifyAcl', + 'view_acl': 'viewAcl' + } + + def __init__(self, entity_id=None, modify_acl=None, view_acl=None, _configuration=None): # noqa: E501 + """AccessControlListReadDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._entity_id = None + self._modify_acl = None + self._view_acl = None + self.discriminator = None + + if entity_id is not None: + self.entity_id = entity_id + if modify_acl is not None: + self.modify_acl = modify_acl + if view_acl is not None: + self.view_acl = view_acl + + @property + def entity_id(self): + """Gets the entity_id of this AccessControlListReadDTO. # noqa: E501 + + The entity Id # noqa: E501 + + :return: The entity_id of this AccessControlListReadDTO. # noqa: E501 + :rtype: str + """ + return self._entity_id + + @entity_id.setter + def entity_id(self, entity_id): + """Sets the entity_id of this AccessControlListReadDTO. + + The entity Id # noqa: E501 + + :param entity_id: The entity_id of this AccessControlListReadDTO. # noqa: E501 + :type: str + """ + + self._entity_id = entity_id + + @property + def modify_acl(self): + """Gets the modify_acl of this AccessControlListReadDTO. # noqa: E501 + + List of users and user groups ids that have modify permission # noqa: E501 + + :return: The modify_acl of this AccessControlListReadDTO. # noqa: E501 + :rtype: list[AccessControlElement] + """ + return self._modify_acl + + @modify_acl.setter + def modify_acl(self, modify_acl): + """Sets the modify_acl of this AccessControlListReadDTO. + + List of users and user groups ids that have modify permission # noqa: E501 + + :param modify_acl: The modify_acl of this AccessControlListReadDTO. # noqa: E501 + :type: list[AccessControlElement] + """ + + self._modify_acl = modify_acl + + @property + def view_acl(self): + """Gets the view_acl of this AccessControlListReadDTO. # noqa: E501 + + List of users and user group ids that have view permission # noqa: E501 + + :return: The view_acl of this AccessControlListReadDTO. # noqa: E501 + :rtype: list[AccessControlElement] + """ + return self._view_acl + + @view_acl.setter + def view_acl(self, view_acl): + """Sets the view_acl of this AccessControlListReadDTO. + + List of users and user group ids that have view permission # noqa: E501 + + :param view_acl: The view_acl of this AccessControlListReadDTO. # noqa: E501 + :type: list[AccessControlElement] + """ + + self._view_acl = view_acl + + 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(AccessControlListReadDTO, 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, AccessControlListReadDTO): + 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, AccessControlListReadDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/access_control_list_simple.py b/wavefront_api_client/models/access_control_list_simple.py new file mode 100644 index 00000000..f70d9bd2 --- /dev/null +++ b/wavefront_api_client/models/access_control_list_simple.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AccessControlListSimple(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 = { + 'can_modify': 'list[str]', + 'can_view': 'list[str]' + } + + attribute_map = { + 'can_modify': 'canModify', + 'can_view': 'canView' + } + + def __init__(self, can_modify=None, can_view=None, _configuration=None): # noqa: E501 + """AccessControlListSimple - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._can_modify = None + self._can_view = None + self.discriminator = None + + if can_modify is not None: + self.can_modify = can_modify + if can_view is not None: + self.can_view = can_view + + @property + def can_modify(self): + """Gets the can_modify of this AccessControlListSimple. # noqa: E501 + + + :return: The can_modify of this AccessControlListSimple. # noqa: E501 + :rtype: list[str] + """ + return self._can_modify + + @can_modify.setter + def can_modify(self, can_modify): + """Sets the can_modify of this AccessControlListSimple. + + + :param can_modify: The can_modify of this AccessControlListSimple. # noqa: E501 + :type: list[str] + """ + + self._can_modify = can_modify + + @property + def can_view(self): + """Gets the can_view of this AccessControlListSimple. # noqa: E501 + + + :return: The can_view of this AccessControlListSimple. # noqa: E501 + :rtype: list[str] + """ + return self._can_view + + @can_view.setter + def can_view(self, can_view): + """Sets the can_view of this AccessControlListSimple. + + + :param can_view: The can_view of this AccessControlListSimple. # noqa: E501 + :type: list[str] + """ + + self._can_view = can_view + + 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(AccessControlListSimple, 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, AccessControlListSimple): + 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, AccessControlListSimple): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/access_control_list_write_dto.py b/wavefront_api_client/models/access_control_list_write_dto.py new file mode 100644 index 00000000..4d991143 --- /dev/null +++ b/wavefront_api_client/models/access_control_list_write_dto.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AccessControlListWriteDTO(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 = { + 'entity_id': 'str', + 'modify_acl': 'list[str]', + 'view_acl': 'list[str]' + } + + attribute_map = { + 'entity_id': 'entityId', + 'modify_acl': 'modifyAcl', + 'view_acl': 'viewAcl' + } + + def __init__(self, entity_id=None, modify_acl=None, view_acl=None, _configuration=None): # noqa: E501 + """AccessControlListWriteDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._entity_id = None + self._modify_acl = None + self._view_acl = None + self.discriminator = None + + if entity_id is not None: + self.entity_id = entity_id + if modify_acl is not None: + self.modify_acl = modify_acl + if view_acl is not None: + self.view_acl = view_acl + + @property + def entity_id(self): + """Gets the entity_id of this AccessControlListWriteDTO. # noqa: E501 + + The entity Id # noqa: E501 + + :return: The entity_id of this AccessControlListWriteDTO. # noqa: E501 + :rtype: str + """ + return self._entity_id + + @entity_id.setter + def entity_id(self, entity_id): + """Sets the entity_id of this AccessControlListWriteDTO. + + The entity Id # noqa: E501 + + :param entity_id: The entity_id of this AccessControlListWriteDTO. # noqa: E501 + :type: str + """ + + self._entity_id = entity_id + + @property + def modify_acl(self): + """Gets the modify_acl of this AccessControlListWriteDTO. # noqa: E501 + + List of users and user groups ids that have modify permission # noqa: E501 + + :return: The modify_acl of this AccessControlListWriteDTO. # noqa: E501 + :rtype: list[str] + """ + return self._modify_acl + + @modify_acl.setter + def modify_acl(self, modify_acl): + """Sets the modify_acl of this AccessControlListWriteDTO. + + List of users and user groups ids that have modify permission # noqa: E501 + + :param modify_acl: The modify_acl of this AccessControlListWriteDTO. # noqa: E501 + :type: list[str] + """ + + self._modify_acl = modify_acl + + @property + def view_acl(self): + """Gets the view_acl of this AccessControlListWriteDTO. # noqa: E501 + + List of users and user group ids that have view permission # noqa: E501 + + :return: The view_acl of this AccessControlListWriteDTO. # noqa: E501 + :rtype: list[str] + """ + return self._view_acl + + @view_acl.setter + def view_acl(self, view_acl): + """Sets the view_acl of this AccessControlListWriteDTO. + + List of users and user group ids that have view permission # noqa: E501 + + :param view_acl: The view_acl of this AccessControlListWriteDTO. # noqa: E501 + :type: list[str] + """ + + self._view_acl = view_acl + + 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(AccessControlListWriteDTO, 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, AccessControlListWriteDTO): + 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, AccessControlListWriteDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/access_policy.py b/wavefront_api_client/models/access_policy.py new file mode 100644 index 00000000..de274cf2 --- /dev/null +++ b/wavefront_api_client/models/access_policy.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AccessPolicy(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 = { + 'customer': 'str', + 'last_updated_ms': 'int', + 'policy_rules': 'list[AccessPolicyRuleDTO]' + } + + attribute_map = { + 'customer': 'customer', + 'last_updated_ms': 'lastUpdatedMs', + 'policy_rules': 'policyRules' + } + + def __init__(self, customer=None, last_updated_ms=None, policy_rules=None, _configuration=None): # noqa: E501 + """AccessPolicy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._customer = None + self._last_updated_ms = None + self._policy_rules = None + self.discriminator = None + + if customer is not None: + self.customer = customer + if last_updated_ms is not None: + self.last_updated_ms = last_updated_ms + if policy_rules is not None: + self.policy_rules = policy_rules + + @property + def customer(self): + """Gets the customer of this AccessPolicy. # noqa: E501 + + + :return: The customer of this AccessPolicy. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this AccessPolicy. + + + :param customer: The customer of this AccessPolicy. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def last_updated_ms(self): + """Gets the last_updated_ms of this AccessPolicy. # noqa: E501 + + + :return: The last_updated_ms of this AccessPolicy. # noqa: E501 + :rtype: int + """ + return self._last_updated_ms + + @last_updated_ms.setter + def last_updated_ms(self, last_updated_ms): + """Sets the last_updated_ms of this AccessPolicy. + + + :param last_updated_ms: The last_updated_ms of this AccessPolicy. # noqa: E501 + :type: int + """ + + self._last_updated_ms = last_updated_ms + + @property + def policy_rules(self): + """Gets the policy_rules of this AccessPolicy. # noqa: E501 + + + :return: The policy_rules of this AccessPolicy. # noqa: E501 + :rtype: list[AccessPolicyRuleDTO] + """ + return self._policy_rules + + @policy_rules.setter + def policy_rules(self, policy_rules): + """Sets the policy_rules of this AccessPolicy. + + + :param policy_rules: The policy_rules of this AccessPolicy. # noqa: E501 + :type: list[AccessPolicyRuleDTO] + """ + + self._policy_rules = policy_rules + + 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(AccessPolicy, 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, AccessPolicy): + 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, AccessPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/access_policy_rule_dto.py b/wavefront_api_client/models/access_policy_rule_dto.py new file mode 100644 index 00000000..00eb8886 --- /dev/null +++ b/wavefront_api_client/models/access_policy_rule_dto.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AccessPolicyRuleDTO(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 = { + 'action': 'str', + 'description': 'str', + 'name': 'str', + 'subnet': 'str' + } + + attribute_map = { + 'action': 'action', + 'description': 'description', + 'name': 'name', + 'subnet': 'subnet' + } + + def __init__(self, action=None, description=None, name=None, subnet=None, _configuration=None): # noqa: E501 + """AccessPolicyRuleDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._action = None + self._description = None + self._name = None + self._subnet = None + self.discriminator = None + + if action is not None: + self.action = action + if description is not None: + self.description = description + if name is not None: + self.name = name + if subnet is not None: + self.subnet = subnet + + @property + def action(self): + """Gets the action of this AccessPolicyRuleDTO. # noqa: E501 + + + :return: The action of this AccessPolicyRuleDTO. # noqa: E501 + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this AccessPolicyRuleDTO. + + + :param action: The action of this AccessPolicyRuleDTO. # noqa: E501 + :type: str + """ + allowed_values = ["ALLOW", "DENY"] # noqa: E501 + if (self._configuration.client_side_validation and + action not in allowed_values): + raise ValueError( + "Invalid value for `action` ({0}), must be one of {1}" # noqa: E501 + .format(action, allowed_values) + ) + + self._action = action + + @property + def description(self): + """Gets the description of this AccessPolicyRuleDTO. # noqa: E501 + + + :return: The description of this AccessPolicyRuleDTO. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AccessPolicyRuleDTO. + + + :param description: The description of this AccessPolicyRuleDTO. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this AccessPolicyRuleDTO. # noqa: E501 + + + :return: The name of this AccessPolicyRuleDTO. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AccessPolicyRuleDTO. + + + :param name: The name of this AccessPolicyRuleDTO. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def subnet(self): + """Gets the subnet of this AccessPolicyRuleDTO. # noqa: E501 + + + :return: The subnet of this AccessPolicyRuleDTO. # noqa: E501 + :rtype: str + """ + return self._subnet + + @subnet.setter + def subnet(self, subnet): + """Sets the subnet of this AccessPolicyRuleDTO. + + + :param subnet: The subnet of this AccessPolicyRuleDTO. # noqa: E501 + :type: str + """ + + self._subnet = subnet + + 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(AccessPolicyRuleDTO, 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, AccessPolicyRuleDTO): + 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, AccessPolicyRuleDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/account.py b/wavefront_api_client/models/account.py new file mode 100644 index 00000000..afedc6dd --- /dev/null +++ b/wavefront_api_client/models/account.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Account(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 = { + 'groups': 'list[str]', + 'identifier': 'str', + 'roles': 'list[str]', + 'united_permissions': 'list[str]', + 'united_roles': 'list[str]', + 'user_groups': 'list[str]' + } + + attribute_map = { + 'groups': 'groups', + 'identifier': 'identifier', + 'roles': 'roles', + 'united_permissions': 'unitedPermissions', + 'united_roles': 'unitedRoles', + 'user_groups': 'userGroups' + } + + def __init__(self, groups=None, identifier=None, roles=None, united_permissions=None, united_roles=None, user_groups=None, _configuration=None): # noqa: E501 + """Account - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._groups = None + self._identifier = None + self._roles = None + self._united_permissions = None + self._united_roles = None + self._user_groups = None + self.discriminator = None + + if groups is not None: + self.groups = groups + self.identifier = identifier + if roles is not None: + self.roles = roles + if united_permissions is not None: + self.united_permissions = united_permissions + if united_roles is not None: + self.united_roles = united_roles + if user_groups is not None: + self.user_groups = user_groups + + @property + def groups(self): + """Gets the groups of this Account. # noqa: E501 + + The list of account's permissions. # noqa: E501 + + :return: The groups of this Account. # noqa: E501 + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """Sets the groups of this Account. + + The list of account's permissions. # noqa: E501 + + :param groups: The groups of this Account. # noqa: E501 + :type: list[str] + """ + + self._groups = groups + + @property + def identifier(self): + """Gets the identifier of this Account. # noqa: E501 + + The unique identifier of an account. # noqa: E501 + + :return: The identifier of this Account. # noqa: E501 + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this Account. + + The unique identifier of an account. # noqa: E501 + + :param identifier: The identifier of this Account. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and identifier is None: + raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 + + self._identifier = identifier + + @property + def roles(self): + """Gets the roles of this Account. # noqa: E501 + + The list of account's roles. # noqa: E501 + + :return: The roles of this Account. # noqa: E501 + :rtype: list[str] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this Account. + + The list of account's roles. # noqa: E501 + + :param roles: The roles of this Account. # noqa: E501 + :type: list[str] + """ + + self._roles = roles + + @property + def united_permissions(self): + """Gets the united_permissions of this Account. # noqa: E501 + + The list of account's permissions assigned directly or through united roles assigned to it # noqa: E501 + + :return: The united_permissions of this Account. # noqa: E501 + :rtype: list[str] + """ + return self._united_permissions + + @united_permissions.setter + def united_permissions(self, united_permissions): + """Sets the united_permissions of this Account. + + The list of account's permissions assigned directly or through united roles assigned to it # noqa: E501 + + :param united_permissions: The united_permissions of this Account. # noqa: E501 + :type: list[str] + """ + + self._united_permissions = united_permissions + + @property + def united_roles(self): + """Gets the united_roles of this Account. # noqa: E501 + + The list of account's roles assigned directly or through user groups assigned to it # noqa: E501 + + :return: The united_roles of this Account. # noqa: E501 + :rtype: list[str] + """ + return self._united_roles + + @united_roles.setter + def united_roles(self, united_roles): + """Sets the united_roles of this Account. + + The list of account's roles assigned directly or through user groups assigned to it # noqa: E501 + + :param united_roles: The united_roles of this Account. # noqa: E501 + :type: list[str] + """ + + self._united_roles = united_roles + + @property + def user_groups(self): + """Gets the user_groups of this Account. # noqa: E501 + + The list of account's user groups. # noqa: E501 + + :return: The user_groups of this Account. # noqa: E501 + :rtype: list[str] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this Account. + + The list of account's user groups. # noqa: E501 + + :param user_groups: The user_groups of this Account. # noqa: E501 + :type: list[str] + """ + + self._user_groups = user_groups + + 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(Account, 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, Account): + 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, Account): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert.py b/wavefront_api_client/models/alert.py index 45ec0130..afbfbdc3 100644 --- a/wavefront_api_client/models/alert.py +++ b/wavefront_api_client/models/alert.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,10 +16,7 @@ import six -from wavefront_api_client.models.event import Event # noqa: F401,E501 -from wavefront_api_client.models.source_label_pair import SourceLabelPair # noqa: F401,E501 -from wavefront_api_client.models.target_info import TargetInfo # noqa: F401,E501 -from wavefront_api_client.models.wf_tags import WFTags # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class Alert(object): @@ -36,663 +33,1528 @@ class Alert(object): and the value is json key in definition. """ swagger_types = { - 'last_event_time': 'int', - 'name': 'str', - 'id': 'str', - 'target': 'str', - 'tags': 'WFTags', - 'status': 'list[str]', - 'display_expression': 'str', - 'condition_qb_enabled': 'bool', - 'display_expression_qb_enabled': 'bool', + 'acl': 'AccessControlListSimple', + 'active_maintenance_windows': 'list[str]', + 'additional_information': 'str', + 'alert_chart_base': 'int', + 'alert_chart_description': 'str', + 'alert_chart_units': 'str', + 'alert_sources': 'list[AlertSource]', + 'alert_triage_dashboards': 'list[AlertDashboard]', + 'alert_type': 'str', + 'alerts_last_day': 'int', + 'alerts_last_month': 'int', + 'alerts_last_week': 'int', + 'application': 'list[str]', + 'chart_attributes': 'JsonNode', + 'chart_settings': 'ChartSettings', 'condition': 'str', + 'condition_qb_enabled': 'bool', 'condition_qb_serialization': 'str', - 'display_expression_qb_serialization': 'str', - 'include_obsolete_metrics': 'bool', - 'severity': 'str', + 'condition_query_type': 'str', + 'conditions': 'dict(str, str)', + 'create_user_id': 'str', + 'created': 'int', + 'created_epoch_millis': 'int', 'creator_id': 'str', - 'additional_information': 'str', - 'resolve_after_minutes': 'int', - 'minutes': 'int', + 'deleted': 'bool', + 'display_expression': 'str', + 'display_expression_qb_enabled': 'bool', + 'display_expression_qb_serialization': 'str', + 'display_expression_query_type': 'str', + 'enable_pd_incident_by_series': 'bool', + 'evaluate_realtime_data': 'bool', + 'event': 'Event', + 'failing_host_label_pair_links': 'list[str]', 'failing_host_label_pairs': 'list[SourceLabelPair]', - 'query_failing': 'bool', - 'last_failed_time': 'int', - 'last_error_message': 'str', - 'metrics_used': 'list[str]', + 'hidden': 'bool', 'hosts_used': 'list[str]', + 'id': 'str', 'in_maintenance_host_label_pairs': 'list[SourceLabelPair]', - 'active_maintenance_windows': 'list[str]', - 'prefiring_host_label_pairs': 'list[SourceLabelPair]', - 'notificants': 'list[str]', - 'last_processed_millis': 'int', - 'process_rate_minutes': 'int', - 'points_scanned_at_last_query': 'int', + 'in_trash': 'bool', + 'include_obsolete_metrics': 'bool', + 'ingestion_policy_id': 'str', + 'last_error_message': 'str', + 'last_event_time': 'int', + 'last_failed_time': 'int', 'last_notification_millis': 'int', - 'notification_resend_frequency_minutes': 'int', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'event': 'Event', - 'updater_id': 'str', - 'created': 'int', - 'updated': 'int', - 'update_user_id': 'str', + 'last_processed_millis': 'int', 'last_query_time': 'int', - 'alerts_last_day': 'int', - 'alerts_last_week': 'int', - 'alerts_last_month': 'int', - 'snoozed': 'int', + 'metrics_used': 'list[str]', + 'minutes': 'int', + 'modify_acl_access': 'bool', + 'name': 'str', 'no_data_event': 'Event', - 'in_trash': 'bool', - 'create_user_id': 'str', - 'deleted': 'bool', + 'notificants': 'list[str]', + 'notification_resend_frequency_minutes': 'int', + 'num_points_in_failure_frame': 'int', + 'orphan': 'bool', + 'points_scanned_at_last_query': 'int', + 'prefiring_host_label_pairs': 'list[SourceLabelPair]', + 'process_rate_minutes': 'int', + 'query_failing': 'bool', + 'query_syntax_error': 'bool', + 'resolve_after_minutes': 'int', + 'runbook_links': 'list[str]', + 'secure_metric_details': 'bool', + 'service': 'list[str]', + 'severity': 'str', + 'severity_list': 'list[str]', + 'snoozed': 'int', + 'sort_attr': 'int', + 'status': 'list[str]', + 'system_alert_version': 'int', + 'system_owned': 'bool', + 'tagpaths': 'list[str]', + 'tags': 'WFTags', + 'target': 'str', + 'target_endpoints': 'list[str]', 'target_info': 'list[TargetInfo]', - 'sort_attr': 'int' + 'targets': 'dict(str, str)', + 'triage_dashboards': 'list[TriageDashboard]', + 'update_user_id': 'str', + 'updated': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' } attribute_map = { - 'last_event_time': 'lastEventTime', - 'name': 'name', - 'id': 'id', - 'target': 'target', - 'tags': 'tags', - 'status': 'status', - 'display_expression': 'displayExpression', - 'condition_qb_enabled': 'conditionQBEnabled', - 'display_expression_qb_enabled': 'displayExpressionQBEnabled', + 'acl': 'acl', + 'active_maintenance_windows': 'activeMaintenanceWindows', + 'additional_information': 'additionalInformation', + 'alert_chart_base': 'alertChartBase', + 'alert_chart_description': 'alertChartDescription', + 'alert_chart_units': 'alertChartUnits', + 'alert_sources': 'alertSources', + 'alert_triage_dashboards': 'alertTriageDashboards', + 'alert_type': 'alertType', + 'alerts_last_day': 'alertsLastDay', + 'alerts_last_month': 'alertsLastMonth', + 'alerts_last_week': 'alertsLastWeek', + 'application': 'application', + 'chart_attributes': 'chartAttributes', + 'chart_settings': 'chartSettings', 'condition': 'condition', + 'condition_qb_enabled': 'conditionQBEnabled', 'condition_qb_serialization': 'conditionQBSerialization', - 'display_expression_qb_serialization': 'displayExpressionQBSerialization', - 'include_obsolete_metrics': 'includeObsoleteMetrics', - 'severity': 'severity', + 'condition_query_type': 'conditionQueryType', + 'conditions': 'conditions', + 'create_user_id': 'createUserId', + 'created': 'created', + 'created_epoch_millis': 'createdEpochMillis', 'creator_id': 'creatorId', - 'additional_information': 'additionalInformation', - 'resolve_after_minutes': 'resolveAfterMinutes', - 'minutes': 'minutes', + 'deleted': 'deleted', + 'display_expression': 'displayExpression', + 'display_expression_qb_enabled': 'displayExpressionQBEnabled', + 'display_expression_qb_serialization': 'displayExpressionQBSerialization', + 'display_expression_query_type': 'displayExpressionQueryType', + 'enable_pd_incident_by_series': 'enablePDIncidentBySeries', + 'evaluate_realtime_data': 'evaluateRealtimeData', + 'event': 'event', + 'failing_host_label_pair_links': 'failingHostLabelPairLinks', 'failing_host_label_pairs': 'failingHostLabelPairs', - 'query_failing': 'queryFailing', - 'last_failed_time': 'lastFailedTime', - 'last_error_message': 'lastErrorMessage', - 'metrics_used': 'metricsUsed', + 'hidden': 'hidden', 'hosts_used': 'hostsUsed', + 'id': 'id', 'in_maintenance_host_label_pairs': 'inMaintenanceHostLabelPairs', - 'active_maintenance_windows': 'activeMaintenanceWindows', - 'prefiring_host_label_pairs': 'prefiringHostLabelPairs', - 'notificants': 'notificants', - 'last_processed_millis': 'lastProcessedMillis', - 'process_rate_minutes': 'processRateMinutes', - 'points_scanned_at_last_query': 'pointsScannedAtLastQuery', + 'in_trash': 'inTrash', + 'include_obsolete_metrics': 'includeObsoleteMetrics', + 'ingestion_policy_id': 'ingestionPolicyId', + 'last_error_message': 'lastErrorMessage', + 'last_event_time': 'lastEventTime', + 'last_failed_time': 'lastFailedTime', 'last_notification_millis': 'lastNotificationMillis', - 'notification_resend_frequency_minutes': 'notificationResendFrequencyMinutes', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'event': 'event', - 'updater_id': 'updaterId', - 'created': 'created', - 'updated': 'updated', - 'update_user_id': 'updateUserId', + 'last_processed_millis': 'lastProcessedMillis', 'last_query_time': 'lastQueryTime', - 'alerts_last_day': 'alertsLastDay', - 'alerts_last_week': 'alertsLastWeek', - 'alerts_last_month': 'alertsLastMonth', - 'snoozed': 'snoozed', + 'metrics_used': 'metricsUsed', + 'minutes': 'minutes', + 'modify_acl_access': 'modifyAclAccess', + 'name': 'name', 'no_data_event': 'noDataEvent', - 'in_trash': 'inTrash', - 'create_user_id': 'createUserId', - 'deleted': 'deleted', + 'notificants': 'notificants', + 'notification_resend_frequency_minutes': 'notificationResendFrequencyMinutes', + 'num_points_in_failure_frame': 'numPointsInFailureFrame', + 'orphan': 'orphan', + 'points_scanned_at_last_query': 'pointsScannedAtLastQuery', + 'prefiring_host_label_pairs': 'prefiringHostLabelPairs', + 'process_rate_minutes': 'processRateMinutes', + 'query_failing': 'queryFailing', + 'query_syntax_error': 'querySyntaxError', + 'resolve_after_minutes': 'resolveAfterMinutes', + 'runbook_links': 'runbookLinks', + 'secure_metric_details': 'secureMetricDetails', + 'service': 'service', + 'severity': 'severity', + 'severity_list': 'severityList', + 'snoozed': 'snoozed', + 'sort_attr': 'sortAttr', + 'status': 'status', + 'system_alert_version': 'systemAlertVersion', + 'system_owned': 'systemOwned', + 'tagpaths': 'tagpaths', + 'tags': 'tags', + 'target': 'target', + 'target_endpoints': 'targetEndpoints', 'target_info': 'targetInfo', - 'sort_attr': 'sortAttr' + 'targets': 'targets', + 'triage_dashboards': 'triageDashboards', + 'update_user_id': 'updateUserId', + 'updated': 'updated', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' } - def __init__(self, last_event_time=None, name=None, id=None, target=None, tags=None, status=None, display_expression=None, condition_qb_enabled=None, display_expression_qb_enabled=None, condition=None, condition_qb_serialization=None, display_expression_qb_serialization=None, include_obsolete_metrics=None, severity=None, creator_id=None, additional_information=None, resolve_after_minutes=None, minutes=None, failing_host_label_pairs=None, query_failing=None, last_failed_time=None, last_error_message=None, metrics_used=None, hosts_used=None, in_maintenance_host_label_pairs=None, active_maintenance_windows=None, prefiring_host_label_pairs=None, notificants=None, last_processed_millis=None, process_rate_minutes=None, points_scanned_at_last_query=None, last_notification_millis=None, notification_resend_frequency_minutes=None, created_epoch_millis=None, updated_epoch_millis=None, event=None, updater_id=None, created=None, updated=None, update_user_id=None, last_query_time=None, alerts_last_day=None, alerts_last_week=None, alerts_last_month=None, snoozed=None, no_data_event=None, in_trash=None, create_user_id=None, deleted=None, target_info=None, sort_attr=None): # noqa: E501 + def __init__(self, acl=None, active_maintenance_windows=None, additional_information=None, alert_chart_base=None, alert_chart_description=None, alert_chart_units=None, alert_sources=None, alert_triage_dashboards=None, alert_type=None, alerts_last_day=None, alerts_last_month=None, alerts_last_week=None, application=None, chart_attributes=None, chart_settings=None, condition=None, condition_qb_enabled=None, condition_qb_serialization=None, condition_query_type=None, conditions=None, create_user_id=None, created=None, created_epoch_millis=None, creator_id=None, deleted=None, display_expression=None, display_expression_qb_enabled=None, display_expression_qb_serialization=None, display_expression_query_type=None, enable_pd_incident_by_series=None, evaluate_realtime_data=None, event=None, failing_host_label_pair_links=None, failing_host_label_pairs=None, hidden=None, hosts_used=None, id=None, in_maintenance_host_label_pairs=None, in_trash=None, include_obsolete_metrics=None, ingestion_policy_id=None, last_error_message=None, last_event_time=None, last_failed_time=None, last_notification_millis=None, last_processed_millis=None, last_query_time=None, metrics_used=None, minutes=None, modify_acl_access=None, name=None, no_data_event=None, notificants=None, notification_resend_frequency_minutes=None, num_points_in_failure_frame=None, orphan=None, points_scanned_at_last_query=None, prefiring_host_label_pairs=None, process_rate_minutes=None, query_failing=None, query_syntax_error=None, resolve_after_minutes=None, runbook_links=None, secure_metric_details=None, service=None, severity=None, severity_list=None, snoozed=None, sort_attr=None, status=None, system_alert_version=None, system_owned=None, tagpaths=None, tags=None, target=None, target_endpoints=None, target_info=None, targets=None, triage_dashboards=None, update_user_id=None, updated=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 """Alert - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._last_event_time = None - self._name = None - self._id = None - self._target = None - self._tags = None - self._status = None - self._display_expression = None - self._condition_qb_enabled = None - self._display_expression_qb_enabled = None + self._acl = None + self._active_maintenance_windows = None + self._additional_information = None + self._alert_chart_base = None + self._alert_chart_description = None + self._alert_chart_units = None + self._alert_sources = None + self._alert_triage_dashboards = None + self._alert_type = None + self._alerts_last_day = None + self._alerts_last_month = None + self._alerts_last_week = None + self._application = None + self._chart_attributes = None + self._chart_settings = None self._condition = None + self._condition_qb_enabled = None self._condition_qb_serialization = None - self._display_expression_qb_serialization = None - self._include_obsolete_metrics = None - self._severity = None + self._condition_query_type = None + self._conditions = None + self._create_user_id = None + self._created = None + self._created_epoch_millis = None self._creator_id = None - self._additional_information = None - self._resolve_after_minutes = None - self._minutes = None + self._deleted = None + self._display_expression = None + self._display_expression_qb_enabled = None + self._display_expression_qb_serialization = None + self._display_expression_query_type = None + self._enable_pd_incident_by_series = None + self._evaluate_realtime_data = None + self._event = None + self._failing_host_label_pair_links = None self._failing_host_label_pairs = None - self._query_failing = None - self._last_failed_time = None - self._last_error_message = None - self._metrics_used = None + self._hidden = None self._hosts_used = None + self._id = None self._in_maintenance_host_label_pairs = None - self._active_maintenance_windows = None - self._prefiring_host_label_pairs = None - self._notificants = None - self._last_processed_millis = None - self._process_rate_minutes = None - self._points_scanned_at_last_query = None + self._in_trash = None + self._include_obsolete_metrics = None + self._ingestion_policy_id = None + self._last_error_message = None + self._last_event_time = None + self._last_failed_time = None self._last_notification_millis = None - self._notification_resend_frequency_minutes = None - self._created_epoch_millis = None - self._updated_epoch_millis = None - self._event = None - self._updater_id = None - self._created = None - self._updated = None - self._update_user_id = None + self._last_processed_millis = None self._last_query_time = None - self._alerts_last_day = None - self._alerts_last_week = None - self._alerts_last_month = None - self._snoozed = None + self._metrics_used = None + self._minutes = None + self._modify_acl_access = None + self._name = None self._no_data_event = None - self._in_trash = None - self._create_user_id = None - self._deleted = None - self._target_info = None + self._notificants = None + self._notification_resend_frequency_minutes = None + self._num_points_in_failure_frame = None + self._orphan = None + self._points_scanned_at_last_query = None + self._prefiring_host_label_pairs = None + self._process_rate_minutes = None + self._query_failing = None + self._query_syntax_error = None + self._resolve_after_minutes = None + self._runbook_links = None + self._secure_metric_details = None + self._service = None + self._severity = None + self._severity_list = None + self._snoozed = None self._sort_attr = None + self._status = None + self._system_alert_version = None + self._system_owned = None + self._tagpaths = None + self._tags = None + self._target = None + self._target_endpoints = None + self._target_info = None + self._targets = None + self._triage_dashboards = None + self._update_user_id = None + self._updated = None + self._updated_epoch_millis = None + self._updater_id = None self.discriminator = None - if last_event_time is not None: - self.last_event_time = last_event_time - self.name = name - if id is not None: - self.id = id - self.target = target - if tags is not None: - self.tags = tags - if status is not None: - self.status = status - if display_expression is not None: - self.display_expression = display_expression - if condition_qb_enabled is not None: - self.condition_qb_enabled = condition_qb_enabled - if display_expression_qb_enabled is not None: - self.display_expression_qb_enabled = display_expression_qb_enabled - self.condition = condition - if condition_qb_serialization is not None: - self.condition_qb_serialization = condition_qb_serialization - if display_expression_qb_serialization is not None: - self.display_expression_qb_serialization = display_expression_qb_serialization - if include_obsolete_metrics is not None: - self.include_obsolete_metrics = include_obsolete_metrics - self.severity = severity - if creator_id is not None: - self.creator_id = creator_id + if acl is not None: + self.acl = acl + if active_maintenance_windows is not None: + self.active_maintenance_windows = active_maintenance_windows if additional_information is not None: self.additional_information = additional_information - if resolve_after_minutes is not None: - self.resolve_after_minutes = resolve_after_minutes - self.minutes = minutes + if alert_chart_base is not None: + self.alert_chart_base = alert_chart_base + if alert_chart_description is not None: + self.alert_chart_description = alert_chart_description + if alert_chart_units is not None: + self.alert_chart_units = alert_chart_units + if alert_sources is not None: + self.alert_sources = alert_sources + if alert_triage_dashboards is not None: + self.alert_triage_dashboards = alert_triage_dashboards + if alert_type is not None: + self.alert_type = alert_type + if alerts_last_day is not None: + self.alerts_last_day = alerts_last_day + if alerts_last_month is not None: + self.alerts_last_month = alerts_last_month + if alerts_last_week is not None: + self.alerts_last_week = alerts_last_week + if application is not None: + self.application = application + if chart_attributes is not None: + self.chart_attributes = chart_attributes + if chart_settings is not None: + self.chart_settings = chart_settings + self.condition = condition + if condition_qb_enabled is not None: + self.condition_qb_enabled = condition_qb_enabled + if condition_qb_serialization is not None: + self.condition_qb_serialization = condition_qb_serialization + if condition_query_type is not None: + self.condition_query_type = condition_query_type + if conditions is not None: + self.conditions = conditions + if create_user_id is not None: + self.create_user_id = create_user_id + if created is not None: + self.created = created + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted + if display_expression is not None: + self.display_expression = display_expression + if display_expression_qb_enabled is not None: + self.display_expression_qb_enabled = display_expression_qb_enabled + if display_expression_qb_serialization is not None: + self.display_expression_qb_serialization = display_expression_qb_serialization + if display_expression_query_type is not None: + self.display_expression_query_type = display_expression_query_type + if enable_pd_incident_by_series is not None: + self.enable_pd_incident_by_series = enable_pd_incident_by_series + if evaluate_realtime_data is not None: + self.evaluate_realtime_data = evaluate_realtime_data + if event is not None: + self.event = event + if failing_host_label_pair_links is not None: + self.failing_host_label_pair_links = failing_host_label_pair_links if failing_host_label_pairs is not None: self.failing_host_label_pairs = failing_host_label_pairs - if query_failing is not None: - self.query_failing = query_failing - if last_failed_time is not None: - self.last_failed_time = last_failed_time - if last_error_message is not None: - self.last_error_message = last_error_message - if metrics_used is not None: - self.metrics_used = metrics_used + if hidden is not None: + self.hidden = hidden if hosts_used is not None: self.hosts_used = hosts_used + if id is not None: + self.id = id if in_maintenance_host_label_pairs is not None: self.in_maintenance_host_label_pairs = in_maintenance_host_label_pairs - if active_maintenance_windows is not None: - self.active_maintenance_windows = active_maintenance_windows - if prefiring_host_label_pairs is not None: - self.prefiring_host_label_pairs = prefiring_host_label_pairs - if notificants is not None: - self.notificants = notificants - if last_processed_millis is not None: - self.last_processed_millis = last_processed_millis - if process_rate_minutes is not None: - self.process_rate_minutes = process_rate_minutes - if points_scanned_at_last_query is not None: - self.points_scanned_at_last_query = points_scanned_at_last_query + if in_trash is not None: + self.in_trash = in_trash + if include_obsolete_metrics is not None: + self.include_obsolete_metrics = include_obsolete_metrics + if ingestion_policy_id is not None: + self.ingestion_policy_id = ingestion_policy_id + if last_error_message is not None: + self.last_error_message = last_error_message + if last_event_time is not None: + self.last_event_time = last_event_time + if last_failed_time is not None: + self.last_failed_time = last_failed_time if last_notification_millis is not None: self.last_notification_millis = last_notification_millis - if notification_resend_frequency_minutes is not None: - self.notification_resend_frequency_minutes = notification_resend_frequency_minutes - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis - if updated_epoch_millis is not None: - self.updated_epoch_millis = updated_epoch_millis - if event is not None: - self.event = event - if updater_id is not None: - self.updater_id = updater_id - if created is not None: - self.created = created - if updated is not None: - self.updated = updated - if update_user_id is not None: - self.update_user_id = update_user_id + if last_processed_millis is not None: + self.last_processed_millis = last_processed_millis if last_query_time is not None: self.last_query_time = last_query_time - if alerts_last_day is not None: - self.alerts_last_day = alerts_last_day - if alerts_last_week is not None: - self.alerts_last_week = alerts_last_week - if alerts_last_month is not None: - self.alerts_last_month = alerts_last_month - if snoozed is not None: - self.snoozed = snoozed + if metrics_used is not None: + self.metrics_used = metrics_used + self.minutes = minutes + if modify_acl_access is not None: + self.modify_acl_access = modify_acl_access + self.name = name if no_data_event is not None: self.no_data_event = no_data_event - if in_trash is not None: - self.in_trash = in_trash - if create_user_id is not None: - self.create_user_id = create_user_id - if deleted is not None: - self.deleted = deleted - if target_info is not None: - self.target_info = target_info + if notificants is not None: + self.notificants = notificants + if notification_resend_frequency_minutes is not None: + self.notification_resend_frequency_minutes = notification_resend_frequency_minutes + if num_points_in_failure_frame is not None: + self.num_points_in_failure_frame = num_points_in_failure_frame + if orphan is not None: + self.orphan = orphan + if points_scanned_at_last_query is not None: + self.points_scanned_at_last_query = points_scanned_at_last_query + if prefiring_host_label_pairs is not None: + self.prefiring_host_label_pairs = prefiring_host_label_pairs + if process_rate_minutes is not None: + self.process_rate_minutes = process_rate_minutes + if query_failing is not None: + self.query_failing = query_failing + if query_syntax_error is not None: + self.query_syntax_error = query_syntax_error + if resolve_after_minutes is not None: + self.resolve_after_minutes = resolve_after_minutes + if runbook_links is not None: + self.runbook_links = runbook_links + if secure_metric_details is not None: + self.secure_metric_details = secure_metric_details + if service is not None: + self.service = service + if severity is not None: + self.severity = severity + if severity_list is not None: + self.severity_list = severity_list + if snoozed is not None: + self.snoozed = snoozed if sort_attr is not None: self.sort_attr = sort_attr + if status is not None: + self.status = status + if system_alert_version is not None: + self.system_alert_version = system_alert_version + if system_owned is not None: + self.system_owned = system_owned + if tagpaths is not None: + self.tagpaths = tagpaths + if tags is not None: + self.tags = tags + if target is not None: + self.target = target + if target_endpoints is not None: + self.target_endpoints = target_endpoints + if target_info is not None: + self.target_info = target_info + if targets is not None: + self.targets = targets + if triage_dashboards is not None: + self.triage_dashboards = triage_dashboards + if update_user_id is not None: + self.update_user_id = update_user_id + if updated is not None: + self.updated = updated + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id @property - def last_event_time(self): - """Gets the last_event_time of this Alert. # noqa: E501 + def acl(self): + """Gets the acl of this Alert. # noqa: E501 - Start time (in epoch millis) of the last event associated with this alert. # noqa: E501 - :return: The last_event_time of this Alert. # noqa: E501 + :return: The acl of this Alert. # noqa: E501 + :rtype: AccessControlListSimple + """ + return self._acl + + @acl.setter + def acl(self, acl): + """Sets the acl of this Alert. + + + :param acl: The acl of this Alert. # noqa: E501 + :type: AccessControlListSimple + """ + + self._acl = acl + + @property + def active_maintenance_windows(self): + """Gets the active_maintenance_windows of this Alert. # noqa: E501 + + The names of the active maintenance windows that are affecting this alert # noqa: E501 + + :return: The active_maintenance_windows of this Alert. # noqa: E501 + :rtype: list[str] + """ + return self._active_maintenance_windows + + @active_maintenance_windows.setter + def active_maintenance_windows(self, active_maintenance_windows): + """Sets the active_maintenance_windows of this Alert. + + The names of the active maintenance windows that are affecting this alert # noqa: E501 + + :param active_maintenance_windows: The active_maintenance_windows of this Alert. # noqa: E501 + :type: list[str] + """ + + self._active_maintenance_windows = active_maintenance_windows + + @property + def additional_information(self): + """Gets the additional_information of this Alert. # noqa: E501 + + User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc # noqa: E501 + + :return: The additional_information of this Alert. # noqa: E501 + :rtype: str + """ + return self._additional_information + + @additional_information.setter + def additional_information(self, additional_information): + """Sets the additional_information of this Alert. + + User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc # noqa: E501 + + :param additional_information: The additional_information of this Alert. # noqa: E501 + :type: str + """ + + self._additional_information = additional_information + + @property + def alert_chart_base(self): + """Gets the alert_chart_base of this Alert. # noqa: E501 + + The base of alert chart. A linear chart will have base as 1. A logarithmic chart will have the other base value.The value should be an integer and should greater than or equal to 1. # noqa: E501 + + :return: The alert_chart_base of this Alert. # noqa: E501 :rtype: int """ - return self._last_event_time + return self._alert_chart_base - @last_event_time.setter - def last_event_time(self, last_event_time): - """Sets the last_event_time of this Alert. + @alert_chart_base.setter + def alert_chart_base(self, alert_chart_base): + """Sets the alert_chart_base of this Alert. - Start time (in epoch millis) of the last event associated with this alert. # noqa: E501 + The base of alert chart. A linear chart will have base as 1. A logarithmic chart will have the other base value.The value should be an integer and should greater than or equal to 1. # noqa: E501 - :param last_event_time: The last_event_time of this Alert. # noqa: E501 + :param alert_chart_base: The alert_chart_base of this Alert. # noqa: E501 :type: int """ - self._last_event_time = last_event_time + self._alert_chart_base = alert_chart_base + + @property + def alert_chart_description(self): + """Gets the alert_chart_description of this Alert. # noqa: E501 + + The description of alert chart. Different from alert additional info, this is used to describe the characteristics of the chart. # noqa: E501 + + :return: The alert_chart_description of this Alert. # noqa: E501 + :rtype: str + """ + return self._alert_chart_description + + @alert_chart_description.setter + def alert_chart_description(self, alert_chart_description): + """Sets the alert_chart_description of this Alert. + + The description of alert chart. Different from alert additional info, this is used to describe the characteristics of the chart. # noqa: E501 + + :param alert_chart_description: The alert_chart_description of this Alert. # noqa: E501 + :type: str + """ + + self._alert_chart_description = alert_chart_description + + @property + def alert_chart_units(self): + """Gets the alert_chart_units of this Alert. # noqa: E501 + + The y-axis unit of Alert chart. # noqa: E501 + + :return: The alert_chart_units of this Alert. # noqa: E501 + :rtype: str + """ + return self._alert_chart_units + + @alert_chart_units.setter + def alert_chart_units(self, alert_chart_units): + """Sets the alert_chart_units of this Alert. + + The y-axis unit of Alert chart. # noqa: E501 + + :param alert_chart_units: The alert_chart_units of this Alert. # noqa: E501 + :type: str + """ + + self._alert_chart_units = alert_chart_units + + @property + def alert_sources(self): + """Gets the alert_sources of this Alert. # noqa: E501 + + A list of queries represent multiple queries in alert. It must contains at least one query with AlertSourceType as CONDITION. # noqa: E501 + + :return: The alert_sources of this Alert. # noqa: E501 + :rtype: list[AlertSource] + """ + return self._alert_sources + + @alert_sources.setter + def alert_sources(self, alert_sources): + """Sets the alert_sources of this Alert. + + A list of queries represent multiple queries in alert. It must contains at least one query with AlertSourceType as CONDITION. # noqa: E501 + + :param alert_sources: The alert_sources of this Alert. # noqa: E501 + :type: list[AlertSource] + """ + + self._alert_sources = alert_sources + + @property + def alert_triage_dashboards(self): + """Gets the alert_triage_dashboards of this Alert. # noqa: E501 + + User-supplied dashboard and parameters to create dashboard links. Parameters must be specified as constants or variables. Constant parameters currently only supported # noqa: E501 + + :return: The alert_triage_dashboards of this Alert. # noqa: E501 + :rtype: list[AlertDashboard] + """ + return self._alert_triage_dashboards + + @alert_triage_dashboards.setter + def alert_triage_dashboards(self, alert_triage_dashboards): + """Sets the alert_triage_dashboards of this Alert. + + User-supplied dashboard and parameters to create dashboard links. Parameters must be specified as constants or variables. Constant parameters currently only supported # noqa: E501 + + :param alert_triage_dashboards: The alert_triage_dashboards of this Alert. # noqa: E501 + :type: list[AlertDashboard] + """ + + self._alert_triage_dashboards = alert_triage_dashboards + + @property + def alert_type(self): + """Gets the alert_type of this Alert. # noqa: E501 + + Alert type. # noqa: E501 + + :return: The alert_type of this Alert. # noqa: E501 + :rtype: str + """ + return self._alert_type + + @alert_type.setter + def alert_type(self, alert_type): + """Sets the alert_type of this Alert. + + Alert type. # noqa: E501 + + :param alert_type: The alert_type of this Alert. # noqa: E501 + :type: str + """ + allowed_values = ["CLASSIC", "THRESHOLD"] # noqa: E501 + if (self._configuration.client_side_validation and + alert_type not in allowed_values): + raise ValueError( + "Invalid value for `alert_type` ({0}), must be one of {1}" # noqa: E501 + .format(alert_type, allowed_values) + ) + + self._alert_type = alert_type + + @property + def alerts_last_day(self): + """Gets the alerts_last_day of this Alert. # noqa: E501 + + + :return: The alerts_last_day of this Alert. # noqa: E501 + :rtype: int + """ + return self._alerts_last_day + + @alerts_last_day.setter + def alerts_last_day(self, alerts_last_day): + """Sets the alerts_last_day of this Alert. + + + :param alerts_last_day: The alerts_last_day of this Alert. # noqa: E501 + :type: int + """ + + self._alerts_last_day = alerts_last_day + + @property + def alerts_last_month(self): + """Gets the alerts_last_month of this Alert. # noqa: E501 + + + :return: The alerts_last_month of this Alert. # noqa: E501 + :rtype: int + """ + return self._alerts_last_month + + @alerts_last_month.setter + def alerts_last_month(self, alerts_last_month): + """Sets the alerts_last_month of this Alert. + + + :param alerts_last_month: The alerts_last_month of this Alert. # noqa: E501 + :type: int + """ + + self._alerts_last_month = alerts_last_month + + @property + def alerts_last_week(self): + """Gets the alerts_last_week of this Alert. # noqa: E501 + + + :return: The alerts_last_week of this Alert. # noqa: E501 + :rtype: int + """ + return self._alerts_last_week + + @alerts_last_week.setter + def alerts_last_week(self, alerts_last_week): + """Sets the alerts_last_week of this Alert. + + + :param alerts_last_week: The alerts_last_week of this Alert. # noqa: E501 + :type: int + """ + + self._alerts_last_week = alerts_last_week + + @property + def application(self): + """Gets the application of this Alert. # noqa: E501 + + Lists the applications from the failingHostLabelPair of the alert. # noqa: E501 + + :return: The application of this Alert. # noqa: E501 + :rtype: list[str] + """ + return self._application + + @application.setter + def application(self, application): + """Sets the application of this Alert. + + Lists the applications from the failingHostLabelPair of the alert. # noqa: E501 + + :param application: The application of this Alert. # noqa: E501 + :type: list[str] + """ + + self._application = application + + @property + def chart_attributes(self): + """Gets the chart_attributes of this Alert. # noqa: E501 + + Additional chart settings for the alert (e.g. pie chart has its chart settings in this section). # noqa: E501 + + :return: The chart_attributes of this Alert. # noqa: E501 + :rtype: JsonNode + """ + return self._chart_attributes + + @chart_attributes.setter + def chart_attributes(self, chart_attributes): + """Sets the chart_attributes of this Alert. + + Additional chart settings for the alert (e.g. pie chart has its chart settings in this section). # noqa: E501 + + :param chart_attributes: The chart_attributes of this Alert. # noqa: E501 + :type: JsonNode + """ + + self._chart_attributes = chart_attributes + + @property + def chart_settings(self): + """Gets the chart_settings of this Alert. # noqa: E501 + + The old chart settings for the alert (e.g. chart type, chart range etc.). # noqa: E501 + + :return: The chart_settings of this Alert. # noqa: E501 + :rtype: ChartSettings + """ + return self._chart_settings + + @chart_settings.setter + def chart_settings(self, chart_settings): + """Sets the chart_settings of this Alert. + + The old chart settings for the alert (e.g. chart type, chart range etc.). # noqa: E501 + + :param chart_settings: The chart_settings of this Alert. # noqa: E501 + :type: ChartSettings + """ + + self._chart_settings = chart_settings + + @property + def condition(self): + """Gets the condition of this Alert. # noqa: E501 + + A Wavefront query that is evaluated at regular intervals (default 1m). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes # noqa: E501 + + :return: The condition of this Alert. # noqa: E501 + :rtype: str + """ + return self._condition + + @condition.setter + def condition(self, condition): + """Sets the condition of this Alert. + + A Wavefront query that is evaluated at regular intervals (default 1m). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes # noqa: E501 + + :param condition: The condition of this Alert. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and condition is None: + raise ValueError("Invalid value for `condition`, must not be `None`") # noqa: E501 + + self._condition = condition + + @property + def condition_qb_enabled(self): + """Gets the condition_qb_enabled of this Alert. # noqa: E501 + + Whether the condition query was created using the Query Builder. Default false # noqa: E501 + + :return: The condition_qb_enabled of this Alert. # noqa: E501 + :rtype: bool + """ + return self._condition_qb_enabled + + @condition_qb_enabled.setter + def condition_qb_enabled(self, condition_qb_enabled): + """Sets the condition_qb_enabled of this Alert. + + Whether the condition query was created using the Query Builder. Default false # noqa: E501 + + :param condition_qb_enabled: The condition_qb_enabled of this Alert. # noqa: E501 + :type: bool + """ + + self._condition_qb_enabled = condition_qb_enabled + + @property + def condition_qb_serialization(self): + """Gets the condition_qb_serialization of this Alert. # noqa: E501 + + The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true # noqa: E501 + + :return: The condition_qb_serialization of this Alert. # noqa: E501 + :rtype: str + """ + return self._condition_qb_serialization + + @condition_qb_serialization.setter + def condition_qb_serialization(self, condition_qb_serialization): + """Sets the condition_qb_serialization of this Alert. + + The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true # noqa: E501 + + :param condition_qb_serialization: The condition_qb_serialization of this Alert. # noqa: E501 + :type: str + """ + + self._condition_qb_serialization = condition_qb_serialization + + @property + def condition_query_type(self): + """Gets the condition_query_type of this Alert. # noqa: E501 + + + :return: The condition_query_type of this Alert. # noqa: E501 + :rtype: str + """ + return self._condition_query_type + + @condition_query_type.setter + def condition_query_type(self, condition_query_type): + """Sets the condition_query_type of this Alert. + + + :param condition_query_type: The condition_query_type of this Alert. # noqa: E501 + :type: str + """ + allowed_values = ["WQL", "PROMQL", "HYBRID"] # noqa: E501 + if (self._configuration.client_side_validation and + condition_query_type not in allowed_values): + raise ValueError( + "Invalid value for `condition_query_type` ({0}), must be one of {1}" # noqa: E501 + .format(condition_query_type, allowed_values) + ) + + self._condition_query_type = condition_query_type + + @property + def conditions(self): + """Gets the conditions of this Alert. # noqa: E501 + + Multi - alert conditions. # noqa: E501 + + :return: The conditions of this Alert. # noqa: E501 + :rtype: dict(str, str) + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this Alert. + + Multi - alert conditions. # noqa: E501 + + :param conditions: The conditions of this Alert. # noqa: E501 + :type: dict(str, str) + """ + + self._conditions = conditions + + @property + def create_user_id(self): + """Gets the create_user_id of this Alert. # noqa: E501 + + + :return: The create_user_id of this Alert. # noqa: E501 + :rtype: str + """ + return self._create_user_id + + @create_user_id.setter + def create_user_id(self, create_user_id): + """Sets the create_user_id of this Alert. + + + :param create_user_id: The create_user_id of this Alert. # noqa: E501 + :type: str + """ + + self._create_user_id = create_user_id + + @property + def created(self): + """Gets the created of this Alert. # noqa: E501 + + When this alert was created, in epoch millis # noqa: E501 + + :return: The created of this Alert. # noqa: E501 + :rtype: int + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this Alert. + + When this alert was created, in epoch millis # noqa: E501 + + :param created: The created of this Alert. # noqa: E501 + :type: int + """ + + self._created = created + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this Alert. # noqa: E501 + + + :return: The created_epoch_millis of this Alert. # 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 Alert. + + + :param created_epoch_millis: The created_epoch_millis of this Alert. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this Alert. # noqa: E501 + + + :return: The creator_id of this Alert. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this Alert. + + + :param creator_id: The creator_id of this Alert. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def deleted(self): + """Gets the deleted of this Alert. # noqa: E501 + + + :return: The deleted of this Alert. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this Alert. + + + :param deleted: The deleted of this Alert. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def display_expression(self): + """Gets the display_expression of this Alert. # noqa: E501 + + A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted # noqa: E501 + + :return: The display_expression of this Alert. # noqa: E501 + :rtype: str + """ + return self._display_expression + + @display_expression.setter + def display_expression(self, display_expression): + """Sets the display_expression of this Alert. + + A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted # noqa: E501 + + :param display_expression: The display_expression of this Alert. # noqa: E501 + :type: str + """ + + self._display_expression = display_expression + + @property + def display_expression_qb_enabled(self): + """Gets the display_expression_qb_enabled of this Alert. # noqa: E501 + + Whether the display expression query was created using the Query Builder. Default false # noqa: E501 + + :return: The display_expression_qb_enabled of this Alert. # noqa: E501 + :rtype: bool + """ + return self._display_expression_qb_enabled + + @display_expression_qb_enabled.setter + def display_expression_qb_enabled(self, display_expression_qb_enabled): + """Sets the display_expression_qb_enabled of this Alert. + + Whether the display expression query was created using the Query Builder. Default false # noqa: E501 + + :param display_expression_qb_enabled: The display_expression_qb_enabled of this Alert. # noqa: E501 + :type: bool + """ + + self._display_expression_qb_enabled = display_expression_qb_enabled + + @property + def display_expression_qb_serialization(self): + """Gets the display_expression_qb_serialization of this Alert. # noqa: E501 + + The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true # noqa: E501 + + :return: The display_expression_qb_serialization of this Alert. # noqa: E501 + :rtype: str + """ + return self._display_expression_qb_serialization + + @display_expression_qb_serialization.setter + def display_expression_qb_serialization(self, display_expression_qb_serialization): + """Sets the display_expression_qb_serialization of this Alert. + + The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true # noqa: E501 + + :param display_expression_qb_serialization: The display_expression_qb_serialization of this Alert. # noqa: E501 + :type: str + """ + + self._display_expression_qb_serialization = display_expression_qb_serialization + + @property + def display_expression_query_type(self): + """Gets the display_expression_query_type of this Alert. # noqa: E501 + + + :return: The display_expression_query_type of this Alert. # noqa: E501 + :rtype: str + """ + return self._display_expression_query_type + + @display_expression_query_type.setter + def display_expression_query_type(self, display_expression_query_type): + """Sets the display_expression_query_type of this Alert. + + + :param display_expression_query_type: The display_expression_query_type of this Alert. # noqa: E501 + :type: str + """ + allowed_values = ["WQL", "PROMQL", "HYBRID"] # noqa: E501 + if (self._configuration.client_side_validation and + display_expression_query_type not in allowed_values): + raise ValueError( + "Invalid value for `display_expression_query_type` ({0}), must be one of {1}" # noqa: E501 + .format(display_expression_query_type, allowed_values) + ) + + self._display_expression_query_type = display_expression_query_type + + @property + def enable_pd_incident_by_series(self): + """Gets the enable_pd_incident_by_series of this Alert. # noqa: E501 + + + :return: The enable_pd_incident_by_series of this Alert. # noqa: E501 + :rtype: bool + """ + return self._enable_pd_incident_by_series + + @enable_pd_incident_by_series.setter + def enable_pd_incident_by_series(self, enable_pd_incident_by_series): + """Sets the enable_pd_incident_by_series of this Alert. + + + :param enable_pd_incident_by_series: The enable_pd_incident_by_series of this Alert. # noqa: E501 + :type: bool + """ + + self._enable_pd_incident_by_series = enable_pd_incident_by_series + + @property + def evaluate_realtime_data(self): + """Gets the evaluate_realtime_data of this Alert. # noqa: E501 + + Whether to alert on the real-time ingestion stream (may be noisy due to late data) # noqa: E501 + + :return: The evaluate_realtime_data of this Alert. # noqa: E501 + :rtype: bool + """ + return self._evaluate_realtime_data + + @evaluate_realtime_data.setter + def evaluate_realtime_data(self, evaluate_realtime_data): + """Sets the evaluate_realtime_data of this Alert. + + Whether to alert on the real-time ingestion stream (may be noisy due to late data) # noqa: E501 + + :param evaluate_realtime_data: The evaluate_realtime_data of this Alert. # noqa: E501 + :type: bool + """ + + self._evaluate_realtime_data = evaluate_realtime_data + + @property + def event(self): + """Gets the event of this Alert. # noqa: E501 + + + :return: The event of this Alert. # noqa: E501 + :rtype: Event + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this Alert. + + + :param event: The event of this Alert. # noqa: E501 + :type: Event + """ + + self._event = event @property - def name(self): - """Gets the name of this Alert. # noqa: E501 + def failing_host_label_pair_links(self): + """Gets the failing_host_label_pair_links of this Alert. # noqa: E501 + List of links to tracing applications that caused a failing series # noqa: E501 - :return: The name of this Alert. # noqa: E501 - :rtype: str + :return: The failing_host_label_pair_links of this Alert. # noqa: E501 + :rtype: list[str] """ - return self._name + return self._failing_host_label_pair_links - @name.setter - def name(self, name): - """Sets the name of this Alert. + @failing_host_label_pair_links.setter + def failing_host_label_pair_links(self, failing_host_label_pair_links): + """Sets the failing_host_label_pair_links of this Alert. + List of links to tracing applications that caused a failing series # noqa: E501 - :param name: The name of this Alert. # noqa: E501 - :type: str + :param failing_host_label_pair_links: The failing_host_label_pair_links of this Alert. # noqa: E501 + :type: list[str] """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._failing_host_label_pair_links = failing_host_label_pair_links @property - def id(self): - """Gets the id of this Alert. # noqa: E501 + def failing_host_label_pairs(self): + """Gets the failing_host_label_pairs of this Alert. # noqa: E501 + Failing host/metric pairs # noqa: E501 - :return: The id of this Alert. # noqa: E501 - :rtype: str + :return: The failing_host_label_pairs of this Alert. # noqa: E501 + :rtype: list[SourceLabelPair] """ - return self._id + return self._failing_host_label_pairs - @id.setter - def id(self, id): - """Sets the id of this Alert. + @failing_host_label_pairs.setter + def failing_host_label_pairs(self, failing_host_label_pairs): + """Sets the failing_host_label_pairs of this Alert. + Failing host/metric pairs # noqa: E501 - :param id: The id of this Alert. # noqa: E501 - :type: str + :param failing_host_label_pairs: The failing_host_label_pairs of this Alert. # noqa: E501 + :type: list[SourceLabelPair] """ - self._id = id + self._failing_host_label_pairs = failing_host_label_pairs @property - def target(self): - """Gets the target of this Alert. # noqa: E501 + def hidden(self): + """Gets the hidden of this Alert. # noqa: E501 - The email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes # noqa: E501 - :return: The target of this Alert. # noqa: E501 - :rtype: str + :return: The hidden of this Alert. # noqa: E501 + :rtype: bool """ - return self._target + return self._hidden - @target.setter - def target(self, target): - """Sets the target of this Alert. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this Alert. - The email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes # noqa: E501 - :param target: The target of this Alert. # noqa: E501 - :type: str + :param hidden: The hidden of this Alert. # noqa: E501 + :type: bool """ - if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 - self._target = target + self._hidden = hidden @property - def tags(self): - """Gets the tags of this Alert. # noqa: E501 + def hosts_used(self): + """Gets the hosts_used of this Alert. # noqa: E501 + Number of hosts checked by the alert condition # noqa: E501 - :return: The tags of this Alert. # noqa: E501 - :rtype: WFTags + :return: The hosts_used of this Alert. # noqa: E501 + :rtype: list[str] """ - return self._tags + return self._hosts_used - @tags.setter - def tags(self, tags): - """Sets the tags of this Alert. + @hosts_used.setter + def hosts_used(self, hosts_used): + """Sets the hosts_used of this Alert. + Number of hosts checked by the alert condition # noqa: E501 - :param tags: The tags of this Alert. # noqa: E501 - :type: WFTags + :param hosts_used: The hosts_used of this Alert. # noqa: E501 + :type: list[str] """ - self._tags = tags + self._hosts_used = hosts_used @property - def status(self): - """Gets the status of this Alert. # noqa: E501 + def id(self): + """Gets the id of this Alert. # noqa: E501 - Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA # noqa: E501 - :return: The status of this Alert. # noqa: E501 - :rtype: list[str] + :return: The id of this Alert. # noqa: E501 + :rtype: str """ - return self._status + return self._id - @status.setter - def status(self, status): - """Sets the status of this Alert. + @id.setter + def id(self, id): + """Sets the id of this Alert. - Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA # noqa: E501 - :param status: The status of this Alert. # noqa: E501 - :type: list[str] + :param id: The id of this Alert. # noqa: E501 + :type: str """ - self._status = status + self._id = id @property - def display_expression(self): - """Gets the display_expression of this Alert. # noqa: E501 + def in_maintenance_host_label_pairs(self): + """Gets the in_maintenance_host_label_pairs of this Alert. # noqa: E501 - A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted # noqa: E501 + Lists the sources that will not be checked for this alert, due to matching a maintenance window # noqa: E501 - :return: The display_expression of this Alert. # noqa: E501 - :rtype: str + :return: The in_maintenance_host_label_pairs of this Alert. # noqa: E501 + :rtype: list[SourceLabelPair] """ - return self._display_expression + return self._in_maintenance_host_label_pairs - @display_expression.setter - def display_expression(self, display_expression): - """Sets the display_expression of this Alert. + @in_maintenance_host_label_pairs.setter + def in_maintenance_host_label_pairs(self, in_maintenance_host_label_pairs): + """Sets the in_maintenance_host_label_pairs of this Alert. - A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted # noqa: E501 + Lists the sources that will not be checked for this alert, due to matching a maintenance window # noqa: E501 - :param display_expression: The display_expression of this Alert. # noqa: E501 - :type: str + :param in_maintenance_host_label_pairs: The in_maintenance_host_label_pairs of this Alert. # noqa: E501 + :type: list[SourceLabelPair] """ - self._display_expression = display_expression + self._in_maintenance_host_label_pairs = in_maintenance_host_label_pairs @property - def condition_qb_enabled(self): - """Gets the condition_qb_enabled of this Alert. # noqa: E501 + def in_trash(self): + """Gets the in_trash of this Alert. # noqa: E501 - Whether the condition query was created using the Query Builder. Default false # noqa: E501 - :return: The condition_qb_enabled of this Alert. # noqa: E501 + :return: The in_trash of this Alert. # noqa: E501 :rtype: bool """ - return self._condition_qb_enabled + return self._in_trash - @condition_qb_enabled.setter - def condition_qb_enabled(self, condition_qb_enabled): - """Sets the condition_qb_enabled of this Alert. + @in_trash.setter + def in_trash(self, in_trash): + """Sets the in_trash of this Alert. - Whether the condition query was created using the Query Builder. Default false # noqa: E501 - :param condition_qb_enabled: The condition_qb_enabled of this Alert. # noqa: E501 + :param in_trash: The in_trash of this Alert. # noqa: E501 :type: bool """ - self._condition_qb_enabled = condition_qb_enabled + self._in_trash = in_trash @property - def display_expression_qb_enabled(self): - """Gets the display_expression_qb_enabled of this Alert. # noqa: E501 + def include_obsolete_metrics(self): + """Gets the include_obsolete_metrics of this Alert. # noqa: E501 - Whether the display expression query was created using the Query Builder. Default false # noqa: E501 + Whether to include obsolete metrics in alert query # noqa: E501 - :return: The display_expression_qb_enabled of this Alert. # noqa: E501 + :return: The include_obsolete_metrics of this Alert. # noqa: E501 :rtype: bool """ - return self._display_expression_qb_enabled + return self._include_obsolete_metrics - @display_expression_qb_enabled.setter - def display_expression_qb_enabled(self, display_expression_qb_enabled): - """Sets the display_expression_qb_enabled of this Alert. + @include_obsolete_metrics.setter + def include_obsolete_metrics(self, include_obsolete_metrics): + """Sets the include_obsolete_metrics of this Alert. - Whether the display expression query was created using the Query Builder. Default false # noqa: E501 + Whether to include obsolete metrics in alert query # noqa: E501 - :param display_expression_qb_enabled: The display_expression_qb_enabled of this Alert. # noqa: E501 + :param include_obsolete_metrics: The include_obsolete_metrics of this Alert. # noqa: E501 :type: bool """ - self._display_expression_qb_enabled = display_expression_qb_enabled + self._include_obsolete_metrics = include_obsolete_metrics @property - def condition(self): - """Gets the condition of this Alert. # noqa: E501 + def ingestion_policy_id(self): + """Gets the ingestion_policy_id of this Alert. # noqa: E501 - A Wavefront query that is evaluated at regular intervals (default 1m). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes # noqa: E501 + Get the ingestion policy Id associated with ingestion policy alert. # noqa: E501 - :return: The condition of this Alert. # noqa: E501 + :return: The ingestion_policy_id of this Alert. # noqa: E501 :rtype: str """ - return self._condition + return self._ingestion_policy_id - @condition.setter - def condition(self, condition): - """Sets the condition of this Alert. + @ingestion_policy_id.setter + def ingestion_policy_id(self, ingestion_policy_id): + """Sets the ingestion_policy_id of this Alert. - A Wavefront query that is evaluated at regular intervals (default 1m). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes # noqa: E501 + Get the ingestion policy Id associated with ingestion policy alert. # noqa: E501 - :param condition: The condition of this Alert. # noqa: E501 + :param ingestion_policy_id: The ingestion_policy_id of this Alert. # noqa: E501 :type: str """ - if condition is None: - raise ValueError("Invalid value for `condition`, must not be `None`") # noqa: E501 - self._condition = condition + self._ingestion_policy_id = ingestion_policy_id @property - def condition_qb_serialization(self): - """Gets the condition_qb_serialization of this Alert. # noqa: E501 + def last_error_message(self): + """Gets the last_error_message of this Alert. # noqa: E501 - The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true # noqa: E501 + The last error encountered when running this alert's condition query # noqa: E501 - :return: The condition_qb_serialization of this Alert. # noqa: E501 + :return: The last_error_message of this Alert. # noqa: E501 :rtype: str """ - return self._condition_qb_serialization + return self._last_error_message - @condition_qb_serialization.setter - def condition_qb_serialization(self, condition_qb_serialization): - """Sets the condition_qb_serialization of this Alert. + @last_error_message.setter + def last_error_message(self, last_error_message): + """Sets the last_error_message of this Alert. - The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true # noqa: E501 + The last error encountered when running this alert's condition query # noqa: E501 - :param condition_qb_serialization: The condition_qb_serialization of this Alert. # noqa: E501 + :param last_error_message: The last_error_message of this Alert. # noqa: E501 :type: str """ - self._condition_qb_serialization = condition_qb_serialization + self._last_error_message = last_error_message @property - def display_expression_qb_serialization(self): - """Gets the display_expression_qb_serialization of this Alert. # noqa: E501 + def last_event_time(self): + """Gets the last_event_time of this Alert. # noqa: E501 - The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true # noqa: E501 + Start time (in epoch millis) of the last event associated with this alert. # noqa: E501 - :return: The display_expression_qb_serialization of this Alert. # noqa: E501 - :rtype: str + :return: The last_event_time of this Alert. # noqa: E501 + :rtype: int """ - return self._display_expression_qb_serialization + return self._last_event_time - @display_expression_qb_serialization.setter - def display_expression_qb_serialization(self, display_expression_qb_serialization): - """Sets the display_expression_qb_serialization of this Alert. + @last_event_time.setter + def last_event_time(self, last_event_time): + """Sets the last_event_time of this Alert. - The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true # noqa: E501 + Start time (in epoch millis) of the last event associated with this alert. # noqa: E501 - :param display_expression_qb_serialization: The display_expression_qb_serialization of this Alert. # noqa: E501 - :type: str + :param last_event_time: The last_event_time of this Alert. # noqa: E501 + :type: int """ - self._display_expression_qb_serialization = display_expression_qb_serialization + self._last_event_time = last_event_time @property - def include_obsolete_metrics(self): - """Gets the include_obsolete_metrics of this Alert. # noqa: E501 + def last_failed_time(self): + """Gets the last_failed_time of this Alert. # noqa: E501 - Whether to include obsolete metrics in alert query # noqa: E501 + The time of the last error encountered when running this alert's condition query, in epoch millis # noqa: E501 - :return: The include_obsolete_metrics of this Alert. # noqa: E501 - :rtype: bool + :return: The last_failed_time of this Alert. # noqa: E501 + :rtype: int """ - return self._include_obsolete_metrics + return self._last_failed_time - @include_obsolete_metrics.setter - def include_obsolete_metrics(self, include_obsolete_metrics): - """Sets the include_obsolete_metrics of this Alert. + @last_failed_time.setter + def last_failed_time(self, last_failed_time): + """Sets the last_failed_time of this Alert. - Whether to include obsolete metrics in alert query # noqa: E501 + The time of the last error encountered when running this alert's condition query, in epoch millis # noqa: E501 - :param include_obsolete_metrics: The include_obsolete_metrics of this Alert. # noqa: E501 - :type: bool + :param last_failed_time: The last_failed_time of this Alert. # noqa: E501 + :type: int """ - self._include_obsolete_metrics = include_obsolete_metrics + self._last_failed_time = last_failed_time @property - def severity(self): - """Gets the severity of this Alert. # noqa: E501 + def last_notification_millis(self): + """Gets the last_notification_millis of this Alert. # noqa: E501 - Severity of the alert # noqa: E501 + When this alert last caused a notification, in epoch millis # noqa: E501 - :return: The severity of this Alert. # noqa: E501 - :rtype: str + :return: The last_notification_millis of this Alert. # noqa: E501 + :rtype: int """ - return self._severity + return self._last_notification_millis - @severity.setter - def severity(self, severity): - """Sets the severity of this Alert. + @last_notification_millis.setter + def last_notification_millis(self, last_notification_millis): + """Sets the last_notification_millis of this Alert. - Severity of the alert # noqa: E501 + When this alert last caused a notification, in epoch millis # noqa: E501 - :param severity: The severity of this Alert. # noqa: E501 - :type: str + :param last_notification_millis: The last_notification_millis of this Alert. # noqa: E501 + :type: int """ - if severity is None: - raise ValueError("Invalid value for `severity`, must not be `None`") # noqa: E501 - allowed_values = ["INFO", "SMOKE", "WARN", "SEVERE"] # noqa: E501 - if severity not in allowed_values: - raise ValueError( - "Invalid value for `severity` ({0}), must be one of {1}" # noqa: E501 - .format(severity, allowed_values) - ) - self._severity = severity + self._last_notification_millis = last_notification_millis @property - def creator_id(self): - """Gets the creator_id of this Alert. # noqa: E501 + def last_processed_millis(self): + """Gets the last_processed_millis of this Alert. # noqa: E501 + The time when this alert was last checked, in epoch millis # noqa: E501 - :return: The creator_id of this Alert. # noqa: E501 - :rtype: str + :return: The last_processed_millis of this Alert. # noqa: E501 + :rtype: int """ - return self._creator_id + return self._last_processed_millis - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this Alert. + @last_processed_millis.setter + def last_processed_millis(self, last_processed_millis): + """Sets the last_processed_millis of this Alert. + The time when this alert was last checked, in epoch millis # noqa: E501 - :param creator_id: The creator_id of this Alert. # noqa: E501 - :type: str + :param last_processed_millis: The last_processed_millis of this Alert. # noqa: E501 + :type: int """ - self._creator_id = creator_id + self._last_processed_millis = last_processed_millis @property - def additional_information(self): - """Gets the additional_information of this Alert. # noqa: E501 + def last_query_time(self): + """Gets the last_query_time of this Alert. # noqa: E501 - User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc # noqa: E501 + Last query time of the alert, averaged on hourly basis # noqa: E501 - :return: The additional_information of this Alert. # noqa: E501 - :rtype: str + :return: The last_query_time of this Alert. # noqa: E501 + :rtype: int """ - return self._additional_information + return self._last_query_time - @additional_information.setter - def additional_information(self, additional_information): - """Sets the additional_information of this Alert. + @last_query_time.setter + def last_query_time(self, last_query_time): + """Sets the last_query_time of this Alert. - User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc # noqa: E501 + Last query time of the alert, averaged on hourly basis # noqa: E501 - :param additional_information: The additional_information of this Alert. # noqa: E501 - :type: str + :param last_query_time: The last_query_time of this Alert. # noqa: E501 + :type: int """ - self._additional_information = additional_information + self._last_query_time = last_query_time @property - def resolve_after_minutes(self): - """Gets the resolve_after_minutes of this Alert. # noqa: E501 + def metrics_used(self): + """Gets the metrics_used of this Alert. # noqa: E501 - The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" # noqa: E501 + Number of metrics checked by the alert condition # noqa: E501 - :return: The resolve_after_minutes of this Alert. # noqa: E501 - :rtype: int + :return: The metrics_used of this Alert. # noqa: E501 + :rtype: list[str] """ - return self._resolve_after_minutes + return self._metrics_used - @resolve_after_minutes.setter - def resolve_after_minutes(self, resolve_after_minutes): - """Sets the resolve_after_minutes of this Alert. + @metrics_used.setter + def metrics_used(self, metrics_used): + """Sets the metrics_used of this Alert. - The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" # noqa: E501 + Number of metrics checked by the alert condition # noqa: E501 - :param resolve_after_minutes: The resolve_after_minutes of this Alert. # noqa: E501 - :type: int + :param metrics_used: The metrics_used of this Alert. # noqa: E501 + :type: list[str] """ - self._resolve_after_minutes = resolve_after_minutes + self._metrics_used = metrics_used @property def minutes(self): @@ -714,194 +1576,192 @@ def minutes(self, minutes): :param minutes: The minutes of this Alert. # noqa: E501 :type: int """ - if minutes is None: + if self._configuration.client_side_validation and minutes is None: raise ValueError("Invalid value for `minutes`, must not be `None`") # noqa: E501 self._minutes = minutes @property - def failing_host_label_pairs(self): - """Gets the failing_host_label_pairs of this Alert. # noqa: E501 + def modify_acl_access(self): + """Gets the modify_acl_access of this Alert. # noqa: E501 - Failing host/metric pairs # noqa: E501 + Whether the user has modify ACL access to the alert. # noqa: E501 - :return: The failing_host_label_pairs of this Alert. # noqa: E501 - :rtype: list[SourceLabelPair] + :return: The modify_acl_access of this Alert. # noqa: E501 + :rtype: bool """ - return self._failing_host_label_pairs + return self._modify_acl_access - @failing_host_label_pairs.setter - def failing_host_label_pairs(self, failing_host_label_pairs): - """Sets the failing_host_label_pairs of this Alert. + @modify_acl_access.setter + def modify_acl_access(self, modify_acl_access): + """Sets the modify_acl_access of this Alert. - Failing host/metric pairs # noqa: E501 + Whether the user has modify ACL access to the alert. # noqa: E501 - :param failing_host_label_pairs: The failing_host_label_pairs of this Alert. # noqa: E501 - :type: list[SourceLabelPair] + :param modify_acl_access: The modify_acl_access of this Alert. # noqa: E501 + :type: bool """ - self._failing_host_label_pairs = failing_host_label_pairs + self._modify_acl_access = modify_acl_access @property - def query_failing(self): - """Gets the query_failing of this Alert. # noqa: E501 + def name(self): + """Gets the name of this Alert. # noqa: E501 - Whether there was an exception when the alert condition last ran # noqa: E501 - :return: The query_failing of this Alert. # noqa: E501 - :rtype: bool + :return: The name of this Alert. # noqa: E501 + :rtype: str """ - return self._query_failing + return self._name - @query_failing.setter - def query_failing(self, query_failing): - """Sets the query_failing of this Alert. + @name.setter + def name(self, name): + """Sets the name of this Alert. - Whether there was an exception when the alert condition last ran # noqa: E501 - :param query_failing: The query_failing of this Alert. # noqa: E501 - :type: bool + :param name: The name of this Alert. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._query_failing = query_failing + self._name = name @property - def last_failed_time(self): - """Gets the last_failed_time of this Alert. # noqa: E501 + def no_data_event(self): + """Gets the no_data_event of this Alert. # noqa: E501 - The time of the last error encountered when running this alert's condition query, in epoch millis # noqa: E501 + No data event related to the alert # noqa: E501 - :return: The last_failed_time of this Alert. # noqa: E501 - :rtype: int + :return: The no_data_event of this Alert. # noqa: E501 + :rtype: Event """ - return self._last_failed_time + return self._no_data_event - @last_failed_time.setter - def last_failed_time(self, last_failed_time): - """Sets the last_failed_time of this Alert. + @no_data_event.setter + def no_data_event(self, no_data_event): + """Sets the no_data_event of this Alert. - The time of the last error encountered when running this alert's condition query, in epoch millis # noqa: E501 + No data event related to the alert # noqa: E501 - :param last_failed_time: The last_failed_time of this Alert. # noqa: E501 - :type: int + :param no_data_event: The no_data_event of this Alert. # noqa: E501 + :type: Event """ - self._last_failed_time = last_failed_time + self._no_data_event = no_data_event @property - def last_error_message(self): - """Gets the last_error_message of this Alert. # noqa: E501 + def notificants(self): + """Gets the notificants of this Alert. # noqa: E501 - The last error encountered when running this alert's condition query # noqa: E501 + A derived field listing the webhook ids used by this alert # noqa: E501 - :return: The last_error_message of this Alert. # noqa: E501 - :rtype: str + :return: The notificants of this Alert. # noqa: E501 + :rtype: list[str] """ - return self._last_error_message + return self._notificants - @last_error_message.setter - def last_error_message(self, last_error_message): - """Sets the last_error_message of this Alert. + @notificants.setter + def notificants(self, notificants): + """Sets the notificants of this Alert. - The last error encountered when running this alert's condition query # noqa: E501 + A derived field listing the webhook ids used by this alert # noqa: E501 - :param last_error_message: The last_error_message of this Alert. # noqa: E501 - :type: str + :param notificants: The notificants of this Alert. # noqa: E501 + :type: list[str] """ - self._last_error_message = last_error_message + self._notificants = notificants @property - def metrics_used(self): - """Gets the metrics_used of this Alert. # noqa: E501 + def notification_resend_frequency_minutes(self): + """Gets the notification_resend_frequency_minutes of this Alert. # noqa: E501 - Number of metrics checked by the alert condition # noqa: E501 + How often to re-trigger a continually failing alert. If absent or <= 0, no retriggering occurs # noqa: E501 - :return: The metrics_used of this Alert. # noqa: E501 - :rtype: list[str] + :return: The notification_resend_frequency_minutes of this Alert. # noqa: E501 + :rtype: int """ - return self._metrics_used + return self._notification_resend_frequency_minutes - @metrics_used.setter - def metrics_used(self, metrics_used): - """Sets the metrics_used of this Alert. + @notification_resend_frequency_minutes.setter + def notification_resend_frequency_minutes(self, notification_resend_frequency_minutes): + """Sets the notification_resend_frequency_minutes of this Alert. - Number of metrics checked by the alert condition # noqa: E501 + How often to re-trigger a continually failing alert. If absent or <= 0, no retriggering occurs # noqa: E501 - :param metrics_used: The metrics_used of this Alert. # noqa: E501 - :type: list[str] + :param notification_resend_frequency_minutes: The notification_resend_frequency_minutes of this Alert. # noqa: E501 + :type: int """ - self._metrics_used = metrics_used + self._notification_resend_frequency_minutes = notification_resend_frequency_minutes @property - def hosts_used(self): - """Gets the hosts_used of this Alert. # noqa: E501 + def num_points_in_failure_frame(self): + """Gets the num_points_in_failure_frame of this Alert. # noqa: E501 - Number of hosts checked by the alert condition # noqa: E501 + Number of points scanned in alert query time frame. # noqa: E501 - :return: The hosts_used of this Alert. # noqa: E501 - :rtype: list[str] + :return: The num_points_in_failure_frame of this Alert. # noqa: E501 + :rtype: int """ - return self._hosts_used + return self._num_points_in_failure_frame - @hosts_used.setter - def hosts_used(self, hosts_used): - """Sets the hosts_used of this Alert. + @num_points_in_failure_frame.setter + def num_points_in_failure_frame(self, num_points_in_failure_frame): + """Sets the num_points_in_failure_frame of this Alert. - Number of hosts checked by the alert condition # noqa: E501 + Number of points scanned in alert query time frame. # noqa: E501 - :param hosts_used: The hosts_used of this Alert. # noqa: E501 - :type: list[str] + :param num_points_in_failure_frame: The num_points_in_failure_frame of this Alert. # noqa: E501 + :type: int """ - self._hosts_used = hosts_used + self._num_points_in_failure_frame = num_points_in_failure_frame @property - def in_maintenance_host_label_pairs(self): - """Gets the in_maintenance_host_label_pairs of this Alert. # noqa: E501 + def orphan(self): + """Gets the orphan of this Alert. # noqa: E501 - Lists the sources that will not be checked for this alert, due to matching a maintenance window # noqa: E501 - :return: The in_maintenance_host_label_pairs of this Alert. # noqa: E501 - :rtype: list[SourceLabelPair] + :return: The orphan of this Alert. # noqa: E501 + :rtype: bool """ - return self._in_maintenance_host_label_pairs + return self._orphan - @in_maintenance_host_label_pairs.setter - def in_maintenance_host_label_pairs(self, in_maintenance_host_label_pairs): - """Sets the in_maintenance_host_label_pairs of this Alert. + @orphan.setter + def orphan(self, orphan): + """Sets the orphan of this Alert. - Lists the sources that will not be checked for this alert, due to matching a maintenance window # noqa: E501 - :param in_maintenance_host_label_pairs: The in_maintenance_host_label_pairs of this Alert. # noqa: E501 - :type: list[SourceLabelPair] + :param orphan: The orphan of this Alert. # noqa: E501 + :type: bool """ - self._in_maintenance_host_label_pairs = in_maintenance_host_label_pairs + self._orphan = orphan @property - def active_maintenance_windows(self): - """Gets the active_maintenance_windows of this Alert. # noqa: E501 + def points_scanned_at_last_query(self): + """Gets the points_scanned_at_last_query of this Alert. # noqa: E501 - The names of the active maintenance windows that are affecting this alert # noqa: E501 + A derived field recording the number of data points scanned when the system last computed this alert's condition # noqa: E501 - :return: The active_maintenance_windows of this Alert. # noqa: E501 - :rtype: list[str] + :return: The points_scanned_at_last_query of this Alert. # noqa: E501 + :rtype: int """ - return self._active_maintenance_windows + return self._points_scanned_at_last_query - @active_maintenance_windows.setter - def active_maintenance_windows(self, active_maintenance_windows): - """Sets the active_maintenance_windows of this Alert. + @points_scanned_at_last_query.setter + def points_scanned_at_last_query(self, points_scanned_at_last_query): + """Sets the points_scanned_at_last_query of this Alert. - The names of the active maintenance windows that are affecting this alert # noqa: E501 + A derived field recording the number of data points scanned when the system last computed this alert's condition # noqa: E501 - :param active_maintenance_windows: The active_maintenance_windows of this Alert. # noqa: E501 - :type: list[str] + :param points_scanned_at_last_query: The points_scanned_at_last_query of this Alert. # noqa: E501 + :type: int """ - self._active_maintenance_windows = active_maintenance_windows + self._points_scanned_at_last_query = points_scanned_at_last_query @property def prefiring_host_label_pairs(self): @@ -927,536 +1787,584 @@ def prefiring_host_label_pairs(self, prefiring_host_label_pairs): self._prefiring_host_label_pairs = prefiring_host_label_pairs @property - def notificants(self): - """Gets the notificants of this Alert. # noqa: E501 + def process_rate_minutes(self): + """Gets the process_rate_minutes of this Alert. # noqa: E501 - A derived field listing the webhook ids used by this alert # noqa: E501 + The interval between checks for this alert, in minutes. Defaults to 5 minutes # noqa: E501 - :return: The notificants of this Alert. # noqa: E501 - :rtype: list[str] + :return: The process_rate_minutes of this Alert. # noqa: E501 + :rtype: int """ - return self._notificants + return self._process_rate_minutes - @notificants.setter - def notificants(self, notificants): - """Sets the notificants of this Alert. + @process_rate_minutes.setter + def process_rate_minutes(self, process_rate_minutes): + """Sets the process_rate_minutes of this Alert. - A derived field listing the webhook ids used by this alert # noqa: E501 + The interval between checks for this alert, in minutes. Defaults to 5 minutes # noqa: E501 - :param notificants: The notificants of this Alert. # noqa: E501 - :type: list[str] + :param process_rate_minutes: The process_rate_minutes of this Alert. # noqa: E501 + :type: int """ - self._notificants = notificants + self._process_rate_minutes = process_rate_minutes @property - def last_processed_millis(self): - """Gets the last_processed_millis of this Alert. # noqa: E501 + def query_failing(self): + """Gets the query_failing of this Alert. # noqa: E501 - The time when this alert was last checked, in epoch millis # noqa: E501 + Whether there was an exception when the alert condition last ran # noqa: E501 - :return: The last_processed_millis of this Alert. # noqa: E501 - :rtype: int + :return: The query_failing of this Alert. # noqa: E501 + :rtype: bool """ - return self._last_processed_millis + return self._query_failing - @last_processed_millis.setter - def last_processed_millis(self, last_processed_millis): - """Sets the last_processed_millis of this Alert. + @query_failing.setter + def query_failing(self, query_failing): + """Sets the query_failing of this Alert. - The time when this alert was last checked, in epoch millis # noqa: E501 + Whether there was an exception when the alert condition last ran # noqa: E501 - :param last_processed_millis: The last_processed_millis of this Alert. # noqa: E501 - :type: int + :param query_failing: The query_failing of this Alert. # noqa: E501 + :type: bool """ - self._last_processed_millis = last_processed_millis + self._query_failing = query_failing @property - def process_rate_minutes(self): - """Gets the process_rate_minutes of this Alert. # noqa: E501 + def query_syntax_error(self): + """Gets the query_syntax_error of this Alert. # noqa: E501 - The interval between checks for this alert, in minutes. Defaults to 1 minute # noqa: E501 + Whether there was an query syntax exception when the alert condition last ran # noqa: E501 - :return: The process_rate_minutes of this Alert. # noqa: E501 - :rtype: int + :return: The query_syntax_error of this Alert. # noqa: E501 + :rtype: bool """ - return self._process_rate_minutes + return self._query_syntax_error - @process_rate_minutes.setter - def process_rate_minutes(self, process_rate_minutes): - """Sets the process_rate_minutes of this Alert. + @query_syntax_error.setter + def query_syntax_error(self, query_syntax_error): + """Sets the query_syntax_error of this Alert. - The interval between checks for this alert, in minutes. Defaults to 1 minute # noqa: E501 + Whether there was an query syntax exception when the alert condition last ran # noqa: E501 - :param process_rate_minutes: The process_rate_minutes of this Alert. # noqa: E501 - :type: int + :param query_syntax_error: The query_syntax_error of this Alert. # noqa: E501 + :type: bool """ - self._process_rate_minutes = process_rate_minutes + self._query_syntax_error = query_syntax_error @property - def points_scanned_at_last_query(self): - """Gets the points_scanned_at_last_query of this Alert. # noqa: E501 + def resolve_after_minutes(self): + """Gets the resolve_after_minutes of this Alert. # noqa: E501 - A derived field recording the number of data points scanned when the system last computed this alert's condition # noqa: E501 + The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" # noqa: E501 - :return: The points_scanned_at_last_query of this Alert. # noqa: E501 + :return: The resolve_after_minutes of this Alert. # noqa: E501 :rtype: int """ - return self._points_scanned_at_last_query + return self._resolve_after_minutes - @points_scanned_at_last_query.setter - def points_scanned_at_last_query(self, points_scanned_at_last_query): - """Sets the points_scanned_at_last_query of this Alert. + @resolve_after_minutes.setter + def resolve_after_minutes(self, resolve_after_minutes): + """Sets the resolve_after_minutes of this Alert. - A derived field recording the number of data points scanned when the system last computed this alert's condition # noqa: E501 + The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" # noqa: E501 - :param points_scanned_at_last_query: The points_scanned_at_last_query of this Alert. # noqa: E501 + :param resolve_after_minutes: The resolve_after_minutes of this Alert. # noqa: E501 :type: int """ - self._points_scanned_at_last_query = points_scanned_at_last_query + self._resolve_after_minutes = resolve_after_minutes @property - def last_notification_millis(self): - """Gets the last_notification_millis of this Alert. # noqa: E501 + def runbook_links(self): + """Gets the runbook_links of this Alert. # noqa: E501 - When this alert last caused a notification, in epoch millis # noqa: E501 + User-supplied runbook links for this alert. Useful for linking wiki page or documentation, etc to refer to when alert is triggered # noqa: E501 - :return: The last_notification_millis of this Alert. # noqa: E501 - :rtype: int + :return: The runbook_links of this Alert. # noqa: E501 + :rtype: list[str] """ - return self._last_notification_millis + return self._runbook_links - @last_notification_millis.setter - def last_notification_millis(self, last_notification_millis): - """Sets the last_notification_millis of this Alert. + @runbook_links.setter + def runbook_links(self, runbook_links): + """Sets the runbook_links of this Alert. - When this alert last caused a notification, in epoch millis # noqa: E501 + User-supplied runbook links for this alert. Useful for linking wiki page or documentation, etc to refer to when alert is triggered # noqa: E501 - :param last_notification_millis: The last_notification_millis of this Alert. # noqa: E501 - :type: int + :param runbook_links: The runbook_links of this Alert. # noqa: E501 + :type: list[str] """ - self._last_notification_millis = last_notification_millis + self._runbook_links = runbook_links @property - def notification_resend_frequency_minutes(self): - """Gets the notification_resend_frequency_minutes of this Alert. # noqa: E501 + def secure_metric_details(self): + """Gets the secure_metric_details of this Alert. # noqa: E501 - How often to re-trigger a continually failing alert. If absent or <= 0, no retriggering occurs # noqa: E501 + Whether to secure sensitive metric details and alert images in alert notifications, to not break Metrics Security. # noqa: E501 - :return: The notification_resend_frequency_minutes of this Alert. # noqa: E501 - :rtype: int + :return: The secure_metric_details of this Alert. # noqa: E501 + :rtype: bool """ - return self._notification_resend_frequency_minutes + return self._secure_metric_details - @notification_resend_frequency_minutes.setter - def notification_resend_frequency_minutes(self, notification_resend_frequency_minutes): - """Sets the notification_resend_frequency_minutes of this Alert. + @secure_metric_details.setter + def secure_metric_details(self, secure_metric_details): + """Sets the secure_metric_details of this Alert. - How often to re-trigger a continually failing alert. If absent or <= 0, no retriggering occurs # noqa: E501 + Whether to secure sensitive metric details and alert images in alert notifications, to not break Metrics Security. # noqa: E501 - :param notification_resend_frequency_minutes: The notification_resend_frequency_minutes of this Alert. # noqa: E501 - :type: int + :param secure_metric_details: The secure_metric_details of this Alert. # noqa: E501 + :type: bool """ - self._notification_resend_frequency_minutes = notification_resend_frequency_minutes + self._secure_metric_details = secure_metric_details @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this Alert. # noqa: E501 + def service(self): + """Gets the service of this Alert. # noqa: E501 + Lists the services from the failingHostLabelPair of the alert. # noqa: E501 - :return: The created_epoch_millis of this Alert. # noqa: E501 - :rtype: int + :return: The service of this Alert. # noqa: E501 + :rtype: list[str] """ - return self._created_epoch_millis + return self._service - @created_epoch_millis.setter - def created_epoch_millis(self, created_epoch_millis): - """Sets the created_epoch_millis of this Alert. + @service.setter + def service(self, service): + """Sets the service of this Alert. + Lists the services from the failingHostLabelPair of the alert. # noqa: E501 - :param created_epoch_millis: The created_epoch_millis of this Alert. # noqa: E501 - :type: int + :param service: The service of this Alert. # noqa: E501 + :type: list[str] """ - self._created_epoch_millis = created_epoch_millis + self._service = service @property - def updated_epoch_millis(self): - """Gets the updated_epoch_millis of this Alert. # noqa: E501 + def severity(self): + """Gets the severity of this Alert. # noqa: E501 + Severity of the alert # noqa: E501 - :return: The updated_epoch_millis of this Alert. # noqa: E501 - :rtype: int + :return: The severity of this Alert. # noqa: E501 + :rtype: str """ - return self._updated_epoch_millis + return self._severity - @updated_epoch_millis.setter - def updated_epoch_millis(self, updated_epoch_millis): - """Sets the updated_epoch_millis of this Alert. + @severity.setter + def severity(self, severity): + """Sets the severity of this Alert. + Severity of the alert # noqa: E501 - :param updated_epoch_millis: The updated_epoch_millis of this Alert. # noqa: E501 - :type: int + :param severity: The severity of this Alert. # noqa: E501 + :type: str """ + allowed_values = ["INFO", "SMOKE", "WARN", "SEVERE"] # noqa: E501 + if (self._configuration.client_side_validation and + severity not in allowed_values): + raise ValueError( + "Invalid value for `severity` ({0}), must be one of {1}" # noqa: E501 + .format(severity, allowed_values) + ) - self._updated_epoch_millis = updated_epoch_millis + self._severity = severity @property - def event(self): - """Gets the event of this Alert. # noqa: E501 + def severity_list(self): + """Gets the severity_list of this Alert. # noqa: E501 + Alert severity list for multi-threshold type. # noqa: E501 - :return: The event of this Alert. # noqa: E501 - :rtype: Event + :return: The severity_list of this Alert. # noqa: E501 + :rtype: list[str] """ - return self._event + return self._severity_list - @event.setter - def event(self, event): - """Sets the event of this Alert. + @severity_list.setter + def severity_list(self, severity_list): + """Sets the severity_list of this Alert. + Alert severity list for multi-threshold type. # noqa: E501 - :param event: The event of this Alert. # noqa: E501 - :type: Event + :param severity_list: The severity_list of this Alert. # noqa: E501 + :type: list[str] """ + allowed_values = ["INFO", "SMOKE", "WARN", "SEVERE"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(severity_list).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `severity_list` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(severity_list) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) - self._event = event + self._severity_list = severity_list @property - def updater_id(self): - """Gets the updater_id of this Alert. # noqa: E501 + def snoozed(self): + """Gets the snoozed of this Alert. # noqa: E501 + The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely # noqa: E501 - :return: The updater_id of this Alert. # noqa: E501 - :rtype: str + :return: The snoozed of this Alert. # noqa: E501 + :rtype: int """ - return self._updater_id + return self._snoozed - @updater_id.setter - def updater_id(self, updater_id): - """Sets the updater_id of this Alert. + @snoozed.setter + def snoozed(self, snoozed): + """Sets the snoozed of this Alert. + The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely # noqa: E501 - :param updater_id: The updater_id of this Alert. # noqa: E501 - :type: str + :param snoozed: The snoozed of this Alert. # noqa: E501 + :type: int """ - self._updater_id = updater_id + self._snoozed = snoozed @property - def created(self): - """Gets the created of this Alert. # noqa: E501 + def sort_attr(self): + """Gets the sort_attr of this Alert. # noqa: E501 - When this alert was created, in epoch millis # noqa: E501 + Attribute used for default alert sort that is derived from state and severity # noqa: E501 - :return: The created of this Alert. # noqa: E501 + :return: The sort_attr of this Alert. # noqa: E501 :rtype: int """ - return self._created + return self._sort_attr + + @sort_attr.setter + def sort_attr(self, sort_attr): + """Sets the sort_attr of this Alert. + + Attribute used for default alert sort that is derived from state and severity # noqa: E501 + + :param sort_attr: The sort_attr of this Alert. # noqa: E501 + :type: int + """ + + self._sort_attr = sort_attr + + @property + def status(self): + """Gets the status of this Alert. # noqa: E501 + + Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA # noqa: E501 + + :return: The status of this Alert. # noqa: E501 + :rtype: list[str] + """ + return self._status - @created.setter - def created(self, created): - """Sets the created of this Alert. + @status.setter + def status(self, status): + """Sets the status of this Alert. - When this alert was created, in epoch millis # noqa: E501 + Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA # noqa: E501 - :param created: The created of this Alert. # noqa: E501 - :type: int + :param status: The status of this Alert. # noqa: E501 + :type: list[str] """ - self._created = created + self._status = status @property - def updated(self): - """Gets the updated of this Alert. # noqa: E501 + def system_alert_version(self): + """Gets the system_alert_version of this Alert. # noqa: E501 - When the alert was last updated, in epoch millis # noqa: E501 + If this is a system alert, the version of it # noqa: E501 - :return: The updated of this Alert. # noqa: E501 + :return: The system_alert_version of this Alert. # noqa: E501 :rtype: int """ - return self._updated + return self._system_alert_version - @updated.setter - def updated(self, updated): - """Sets the updated of this Alert. + @system_alert_version.setter + def system_alert_version(self, system_alert_version): + """Sets the system_alert_version of this Alert. - When the alert was last updated, in epoch millis # noqa: E501 + If this is a system alert, the version of it # noqa: E501 - :param updated: The updated of this Alert. # noqa: E501 + :param system_alert_version: The system_alert_version of this Alert. # noqa: E501 :type: int """ - self._updated = updated + self._system_alert_version = system_alert_version @property - def update_user_id(self): - """Gets the update_user_id of this Alert. # noqa: E501 + def system_owned(self): + """Gets the system_owned of this Alert. # noqa: E501 - The user that last updated this alert # noqa: E501 + Whether this alert is system-owned and not writeable # noqa: E501 - :return: The update_user_id of this Alert. # noqa: E501 - :rtype: str + :return: The system_owned of this Alert. # noqa: E501 + :rtype: bool """ - return self._update_user_id + return self._system_owned - @update_user_id.setter - def update_user_id(self, update_user_id): - """Sets the update_user_id of this Alert. + @system_owned.setter + def system_owned(self, system_owned): + """Sets the system_owned of this Alert. - The user that last updated this alert # noqa: E501 + Whether this alert is system-owned and not writeable # noqa: E501 - :param update_user_id: The update_user_id of this Alert. # noqa: E501 - :type: str + :param system_owned: The system_owned of this Alert. # noqa: E501 + :type: bool """ - self._update_user_id = update_user_id + self._system_owned = system_owned @property - def last_query_time(self): - """Gets the last_query_time of this Alert. # noqa: E501 + def tagpaths(self): + """Gets the tagpaths of this Alert. # noqa: E501 - Last query time of the alert, averaged on hourly basis # noqa: E501 - :return: The last_query_time of this Alert. # noqa: E501 - :rtype: int + :return: The tagpaths of this Alert. # noqa: E501 + :rtype: list[str] """ - return self._last_query_time + return self._tagpaths - @last_query_time.setter - def last_query_time(self, last_query_time): - """Sets the last_query_time of this Alert. + @tagpaths.setter + def tagpaths(self, tagpaths): + """Sets the tagpaths of this Alert. - Last query time of the alert, averaged on hourly basis # noqa: E501 - :param last_query_time: The last_query_time of this Alert. # noqa: E501 - :type: int + :param tagpaths: The tagpaths of this Alert. # noqa: E501 + :type: list[str] """ - self._last_query_time = last_query_time + self._tagpaths = tagpaths @property - def alerts_last_day(self): - """Gets the alerts_last_day of this Alert. # noqa: E501 + def tags(self): + """Gets the tags of this Alert. # noqa: E501 - :return: The alerts_last_day of this Alert. # noqa: E501 - :rtype: int + :return: The tags of this Alert. # noqa: E501 + :rtype: WFTags """ - return self._alerts_last_day + return self._tags - @alerts_last_day.setter - def alerts_last_day(self, alerts_last_day): - """Sets the alerts_last_day of this Alert. + @tags.setter + def tags(self, tags): + """Sets the tags of this Alert. - :param alerts_last_day: The alerts_last_day of this Alert. # noqa: E501 - :type: int + :param tags: The tags of this Alert. # noqa: E501 + :type: WFTags """ - self._alerts_last_day = alerts_last_day + self._tags = tags @property - def alerts_last_week(self): - """Gets the alerts_last_week of this Alert. # noqa: E501 + def target(self): + """Gets the target of this Alert. # noqa: E501 + The email address or integration endpoint (such as PagerDuty or web hook) to notify when the alert status changes. Comma-separated list of targets. Multiple target types can be in the list. Alert target format: ({email}|pd:{pd_key}|target:{alert target ID}). You cannot update this value. # noqa: E501 - :return: The alerts_last_week of this Alert. # noqa: E501 - :rtype: int + :return: The target of this Alert. # noqa: E501 + :rtype: str """ - return self._alerts_last_week + return self._target - @alerts_last_week.setter - def alerts_last_week(self, alerts_last_week): - """Sets the alerts_last_week of this Alert. + @target.setter + def target(self, target): + """Sets the target of this Alert. + The email address or integration endpoint (such as PagerDuty or web hook) to notify when the alert status changes. Comma-separated list of targets. Multiple target types can be in the list. Alert target format: ({email}|pd:{pd_key}|target:{alert target ID}). You cannot update this value. # noqa: E501 - :param alerts_last_week: The alerts_last_week of this Alert. # noqa: E501 - :type: int + :param target: The target of this Alert. # noqa: E501 + :type: str """ - self._alerts_last_week = alerts_last_week + self._target = target @property - def alerts_last_month(self): - """Gets the alerts_last_month of this Alert. # noqa: E501 + def target_endpoints(self): + """Gets the target_endpoints of this Alert. # noqa: E501 - :return: The alerts_last_month of this Alert. # noqa: E501 - :rtype: int + :return: The target_endpoints of this Alert. # noqa: E501 + :rtype: list[str] """ - return self._alerts_last_month + return self._target_endpoints - @alerts_last_month.setter - def alerts_last_month(self, alerts_last_month): - """Sets the alerts_last_month of this Alert. + @target_endpoints.setter + def target_endpoints(self, target_endpoints): + """Sets the target_endpoints of this Alert. - :param alerts_last_month: The alerts_last_month of this Alert. # noqa: E501 - :type: int + :param target_endpoints: The target_endpoints of this Alert. # noqa: E501 + :type: list[str] """ - self._alerts_last_month = alerts_last_month + self._target_endpoints = target_endpoints @property - def snoozed(self): - """Gets the snoozed of this Alert. # noqa: E501 + def target_info(self): + """Gets the target_info of this Alert. # noqa: E501 - The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely # noqa: E501 + List of alert targets display information that includes name, id and type. # noqa: E501 - :return: The snoozed of this Alert. # noqa: E501 - :rtype: int + :return: The target_info of this Alert. # noqa: E501 + :rtype: list[TargetInfo] """ - return self._snoozed + return self._target_info - @snoozed.setter - def snoozed(self, snoozed): - """Sets the snoozed of this Alert. + @target_info.setter + def target_info(self, target_info): + """Sets the target_info of this Alert. - The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely # noqa: E501 + List of alert targets display information that includes name, id and type. # noqa: E501 - :param snoozed: The snoozed of this Alert. # noqa: E501 - :type: int + :param target_info: The target_info of this Alert. # noqa: E501 + :type: list[TargetInfo] """ - self._snoozed = snoozed + self._target_info = target_info @property - def no_data_event(self): - """Gets the no_data_event of this Alert. # noqa: E501 + def targets(self): + """Gets the targets of this Alert. # noqa: E501 - No data event related to the alert # noqa: E501 + Targets for severity. # noqa: E501 - :return: The no_data_event of this Alert. # noqa: E501 - :rtype: Event + :return: The targets of this Alert. # noqa: E501 + :rtype: dict(str, str) """ - return self._no_data_event + return self._targets - @no_data_event.setter - def no_data_event(self, no_data_event): - """Sets the no_data_event of this Alert. + @targets.setter + def targets(self, targets): + """Sets the targets of this Alert. - No data event related to the alert # noqa: E501 + Targets for severity. # noqa: E501 - :param no_data_event: The no_data_event of this Alert. # noqa: E501 - :type: Event + :param targets: The targets of this Alert. # noqa: E501 + :type: dict(str, str) """ - self._no_data_event = no_data_event + self._targets = targets @property - def in_trash(self): - """Gets the in_trash of this Alert. # noqa: E501 + def triage_dashboards(self): + """Gets the triage_dashboards of this Alert. # noqa: E501 + Deprecated for alertTriageDashboards # noqa: E501 - :return: The in_trash of this Alert. # noqa: E501 - :rtype: bool + :return: The triage_dashboards of this Alert. # noqa: E501 + :rtype: list[TriageDashboard] """ - return self._in_trash + return self._triage_dashboards - @in_trash.setter - def in_trash(self, in_trash): - """Sets the in_trash of this Alert. + @triage_dashboards.setter + def triage_dashboards(self, triage_dashboards): + """Sets the triage_dashboards of this Alert. + Deprecated for alertTriageDashboards # noqa: E501 - :param in_trash: The in_trash of this Alert. # noqa: E501 - :type: bool + :param triage_dashboards: The triage_dashboards of this Alert. # noqa: E501 + :type: list[TriageDashboard] """ - self._in_trash = in_trash + self._triage_dashboards = triage_dashboards @property - def create_user_id(self): - """Gets the create_user_id of this Alert. # noqa: E501 + def update_user_id(self): + """Gets the update_user_id of this Alert. # noqa: E501 + The user that last updated this alert # noqa: E501 - :return: The create_user_id of this Alert. # noqa: E501 + :return: The update_user_id of this Alert. # noqa: E501 :rtype: str """ - return self._create_user_id + return self._update_user_id - @create_user_id.setter - def create_user_id(self, create_user_id): - """Sets the create_user_id of this Alert. + @update_user_id.setter + def update_user_id(self, update_user_id): + """Sets the update_user_id of this Alert. + The user that last updated this alert # noqa: E501 - :param create_user_id: The create_user_id of this Alert. # noqa: E501 + :param update_user_id: The update_user_id of this Alert. # noqa: E501 :type: str """ - self._create_user_id = create_user_id + self._update_user_id = update_user_id @property - def deleted(self): - """Gets the deleted of this Alert. # noqa: E501 + def updated(self): + """Gets the updated of this Alert. # noqa: E501 + When the alert was last updated, in epoch millis # noqa: E501 - :return: The deleted of this Alert. # noqa: E501 - :rtype: bool + :return: The updated of this Alert. # noqa: E501 + :rtype: int """ - return self._deleted + return self._updated - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this Alert. + @updated.setter + def updated(self, updated): + """Sets the updated of this Alert. + When the alert was last updated, in epoch millis # noqa: E501 - :param deleted: The deleted of this Alert. # noqa: E501 - :type: bool + :param updated: The updated of this Alert. # noqa: E501 + :type: int """ - self._deleted = deleted + self._updated = updated @property - def target_info(self): - """Gets the target_info of this Alert. # noqa: E501 + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this Alert. # noqa: E501 - List of alert targets display information that includes name, id and type. # noqa: E501 - :return: The target_info of this Alert. # noqa: E501 - :rtype: list[TargetInfo] + :return: The updated_epoch_millis of this Alert. # noqa: E501 + :rtype: int """ - return self._target_info + return self._updated_epoch_millis - @target_info.setter - def target_info(self, target_info): - """Sets the target_info of this Alert. + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this Alert. - List of alert targets display information that includes name, id and type. # noqa: E501 - :param target_info: The target_info of this Alert. # noqa: E501 - :type: list[TargetInfo] + :param updated_epoch_millis: The updated_epoch_millis of this Alert. # noqa: E501 + :type: int """ - self._target_info = target_info + self._updated_epoch_millis = updated_epoch_millis @property - def sort_attr(self): - """Gets the sort_attr of this Alert. # noqa: E501 + def updater_id(self): + """Gets the updater_id of this Alert. # noqa: E501 - Attribute used for default alert sort that is derived from state and severity # noqa: E501 - :return: The sort_attr of this Alert. # noqa: E501 - :rtype: int + :return: The updater_id of this Alert. # noqa: E501 + :rtype: str """ - return self._sort_attr + return self._updater_id - @sort_attr.setter - def sort_attr(self, sort_attr): - """Sets the sort_attr of this Alert. + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this Alert. - Attribute used for default alert sort that is derived from state and severity # noqa: E501 - :param sort_attr: The sort_attr of this Alert. # noqa: E501 - :type: int + :param updater_id: The updater_id of this Alert. # noqa: E501 + :type: str """ - self._sort_attr = sort_attr + self._updater_id = updater_id def to_dict(self): """Returns the model properties as a dict""" @@ -1479,6 +2387,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Alert, dict): + for key, value in self.items(): + result[key] = value return result @@ -1495,8 +2406,11 @@ def __eq__(self, other): if not isinstance(other, Alert): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Alert): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert_analytics_summary.py b/wavefront_api_client/models/alert_analytics_summary.py new file mode 100644 index 00000000..d35dc973 --- /dev/null +++ b/wavefront_api_client/models/alert_analytics_summary.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AlertAnalyticsSummary(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 = { + 'total_active_no_target': 'int', + 'total_evaluated': 'int', + 'total_failed': 'int', + 'total_no_data': 'int' + } + + attribute_map = { + 'total_active_no_target': 'totalActiveNoTarget', + 'total_evaluated': 'totalEvaluated', + 'total_failed': 'totalFailed', + 'total_no_data': 'totalNoData' + } + + def __init__(self, total_active_no_target=None, total_evaluated=None, total_failed=None, total_no_data=None, _configuration=None): # noqa: E501 + """AlertAnalyticsSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._total_active_no_target = None + self._total_evaluated = None + self._total_failed = None + self._total_no_data = None + self.discriminator = None + + if total_active_no_target is not None: + self.total_active_no_target = total_active_no_target + if total_evaluated is not None: + self.total_evaluated = total_evaluated + if total_failed is not None: + self.total_failed = total_failed + if total_no_data is not None: + self.total_no_data = total_no_data + + @property + def total_active_no_target(self): + """Gets the total_active_no_target of this AlertAnalyticsSummary. # noqa: E501 + + + :return: The total_active_no_target of this AlertAnalyticsSummary. # noqa: E501 + :rtype: int + """ + return self._total_active_no_target + + @total_active_no_target.setter + def total_active_no_target(self, total_active_no_target): + """Sets the total_active_no_target of this AlertAnalyticsSummary. + + + :param total_active_no_target: The total_active_no_target of this AlertAnalyticsSummary. # noqa: E501 + :type: int + """ + + self._total_active_no_target = total_active_no_target + + @property + def total_evaluated(self): + """Gets the total_evaluated of this AlertAnalyticsSummary. # noqa: E501 + + + :return: The total_evaluated of this AlertAnalyticsSummary. # noqa: E501 + :rtype: int + """ + return self._total_evaluated + + @total_evaluated.setter + def total_evaluated(self, total_evaluated): + """Sets the total_evaluated of this AlertAnalyticsSummary. + + + :param total_evaluated: The total_evaluated of this AlertAnalyticsSummary. # noqa: E501 + :type: int + """ + + self._total_evaluated = total_evaluated + + @property + def total_failed(self): + """Gets the total_failed of this AlertAnalyticsSummary. # noqa: E501 + + + :return: The total_failed of this AlertAnalyticsSummary. # noqa: E501 + :rtype: int + """ + return self._total_failed + + @total_failed.setter + def total_failed(self, total_failed): + """Sets the total_failed of this AlertAnalyticsSummary. + + + :param total_failed: The total_failed of this AlertAnalyticsSummary. # noqa: E501 + :type: int + """ + + self._total_failed = total_failed + + @property + def total_no_data(self): + """Gets the total_no_data of this AlertAnalyticsSummary. # noqa: E501 + + + :return: The total_no_data of this AlertAnalyticsSummary. # noqa: E501 + :rtype: int + """ + return self._total_no_data + + @total_no_data.setter + def total_no_data(self, total_no_data): + """Sets the total_no_data of this AlertAnalyticsSummary. + + + :param total_no_data: The total_no_data of this AlertAnalyticsSummary. # noqa: E501 + :type: int + """ + + self._total_no_data = total_no_data + + 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(AlertAnalyticsSummary, 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, AlertAnalyticsSummary): + 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, AlertAnalyticsSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert_analytics_summary_detail.py b/wavefront_api_client/models/alert_analytics_summary_detail.py new file mode 100644 index 00000000..c22489f2 --- /dev/null +++ b/wavefront_api_client/models/alert_analytics_summary_detail.py @@ -0,0 +1,577 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AlertAnalyticsSummaryDetail(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 = { + 'alert_id': 'int', + 'alert_name': 'str', + 'avg_key_cardinality': 'int', + 'avg_latency': 'int', + 'avg_points': 'int', + 'checking_frequency': 'int', + 'creator_id': 'str', + 'error_groups_summary': 'list[AlertErrorGroupSummary]', + 'failure_percentage': 'float', + 'failure_percentage_range': 'str', + 'is_no_data': 'bool', + 'is_no_target': 'bool', + 'last_event_time': 'str', + 'last_updated_time': 'str', + 'last_updated_user_id': 'str', + 'tags': 'list[str]', + 'total_evaluated': 'int', + 'total_failed': 'int' + } + + attribute_map = { + 'alert_id': 'alertId', + 'alert_name': 'alertName', + 'avg_key_cardinality': 'avgKeyCardinality', + 'avg_latency': 'avgLatency', + 'avg_points': 'avgPoints', + 'checking_frequency': 'checkingFrequency', + 'creator_id': 'creatorId', + 'error_groups_summary': 'errorGroupsSummary', + 'failure_percentage': 'failurePercentage', + 'failure_percentage_range': 'failurePercentageRange', + 'is_no_data': 'isNoData', + 'is_no_target': 'isNoTarget', + 'last_event_time': 'lastEventTime', + 'last_updated_time': 'lastUpdatedTime', + 'last_updated_user_id': 'lastUpdatedUserId', + 'tags': 'tags', + 'total_evaluated': 'totalEvaluated', + 'total_failed': 'totalFailed' + } + + def __init__(self, alert_id=None, alert_name=None, avg_key_cardinality=None, avg_latency=None, avg_points=None, checking_frequency=None, creator_id=None, error_groups_summary=None, failure_percentage=None, failure_percentage_range=None, is_no_data=None, is_no_target=None, last_event_time=None, last_updated_time=None, last_updated_user_id=None, tags=None, total_evaluated=None, total_failed=None, _configuration=None): # noqa: E501 + """AlertAnalyticsSummaryDetail - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._alert_id = None + self._alert_name = None + self._avg_key_cardinality = None + self._avg_latency = None + self._avg_points = None + self._checking_frequency = None + self._creator_id = None + self._error_groups_summary = None + self._failure_percentage = None + self._failure_percentage_range = None + self._is_no_data = None + self._is_no_target = None + self._last_event_time = None + self._last_updated_time = None + self._last_updated_user_id = None + self._tags = None + self._total_evaluated = None + self._total_failed = None + self.discriminator = None + + if alert_id is not None: + self.alert_id = alert_id + if alert_name is not None: + self.alert_name = alert_name + if avg_key_cardinality is not None: + self.avg_key_cardinality = avg_key_cardinality + if avg_latency is not None: + self.avg_latency = avg_latency + if avg_points is not None: + self.avg_points = avg_points + if checking_frequency is not None: + self.checking_frequency = checking_frequency + if creator_id is not None: + self.creator_id = creator_id + if error_groups_summary is not None: + self.error_groups_summary = error_groups_summary + if failure_percentage is not None: + self.failure_percentage = failure_percentage + if failure_percentage_range is not None: + self.failure_percentage_range = failure_percentage_range + if is_no_data is not None: + self.is_no_data = is_no_data + if is_no_target is not None: + self.is_no_target = is_no_target + if last_event_time is not None: + self.last_event_time = last_event_time + if last_updated_time is not None: + self.last_updated_time = last_updated_time + if last_updated_user_id is not None: + self.last_updated_user_id = last_updated_user_id + if tags is not None: + self.tags = tags + if total_evaluated is not None: + self.total_evaluated = total_evaluated + if total_failed is not None: + self.total_failed = total_failed + + @property + def alert_id(self): + """Gets the alert_id of this AlertAnalyticsSummaryDetail. # noqa: E501 + + The alert id # noqa: E501 + + :return: The alert_id of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._alert_id + + @alert_id.setter + def alert_id(self, alert_id): + """Sets the alert_id of this AlertAnalyticsSummaryDetail. + + The alert id # noqa: E501 + + :param alert_id: The alert_id of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: int + """ + + self._alert_id = alert_id + + @property + def alert_name(self): + """Gets the alert_name of this AlertAnalyticsSummaryDetail. # noqa: E501 + + The alert name # noqa: E501 + + :return: The alert_name of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: str + """ + return self._alert_name + + @alert_name.setter + def alert_name(self, alert_name): + """Sets the alert_name of this AlertAnalyticsSummaryDetail. + + The alert name # noqa: E501 + + :param alert_name: The alert_name of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: str + """ + + self._alert_name = alert_name + + @property + def avg_key_cardinality(self): + """Gets the avg_key_cardinality of this AlertAnalyticsSummaryDetail. # noqa: E501 + + The average cardinality across all alert execution logs. # noqa: E501 + + :return: The avg_key_cardinality of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._avg_key_cardinality + + @avg_key_cardinality.setter + def avg_key_cardinality(self, avg_key_cardinality): + """Sets the avg_key_cardinality of this AlertAnalyticsSummaryDetail. + + The average cardinality across all alert execution logs. # noqa: E501 + + :param avg_key_cardinality: The avg_key_cardinality of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: int + """ + + self._avg_key_cardinality = avg_key_cardinality + + @property + def avg_latency(self): + """Gets the avg_latency of this AlertAnalyticsSummaryDetail. # noqa: E501 + + The average latency across all alert execution logs. # noqa: E501 + + :return: The avg_latency of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._avg_latency + + @avg_latency.setter + def avg_latency(self, avg_latency): + """Sets the avg_latency of this AlertAnalyticsSummaryDetail. + + The average latency across all alert execution logs. # noqa: E501 + + :param avg_latency: The avg_latency of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: int + """ + + self._avg_latency = avg_latency + + @property + def avg_points(self): + """Gets the avg_points of this AlertAnalyticsSummaryDetail. # noqa: E501 + + The average points across all alert execution logs. # noqa: E501 + + :return: The avg_points of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._avg_points + + @avg_points.setter + def avg_points(self, avg_points): + """Sets the avg_points of this AlertAnalyticsSummaryDetail. + + The average points across all alert execution logs. # noqa: E501 + + :param avg_points: The avg_points of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: int + """ + + self._avg_points = avg_points + + @property + def checking_frequency(self): + """Gets the checking_frequency of this AlertAnalyticsSummaryDetail. # noqa: E501 + + The checking frequency of the alert. # noqa: E501 + + :return: The checking_frequency of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._checking_frequency + + @checking_frequency.setter + def checking_frequency(self, checking_frequency): + """Sets the checking_frequency of this AlertAnalyticsSummaryDetail. + + The checking frequency of the alert. # noqa: E501 + + :param checking_frequency: The checking_frequency of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: int + """ + + self._checking_frequency = checking_frequency + + @property + def creator_id(self): + """Gets the creator_id of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The creator_id of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this AlertAnalyticsSummaryDetail. + + + :param creator_id: The creator_id of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def error_groups_summary(self): + """Gets the error_groups_summary of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The error_groups_summary of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: list[AlertErrorGroupSummary] + """ + return self._error_groups_summary + + @error_groups_summary.setter + def error_groups_summary(self, error_groups_summary): + """Sets the error_groups_summary of this AlertAnalyticsSummaryDetail. + + + :param error_groups_summary: The error_groups_summary of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: list[AlertErrorGroupSummary] + """ + + self._error_groups_summary = error_groups_summary + + @property + def failure_percentage(self): + """Gets the failure_percentage of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The failure_percentage of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: float + """ + return self._failure_percentage + + @failure_percentage.setter + def failure_percentage(self, failure_percentage): + """Sets the failure_percentage of this AlertAnalyticsSummaryDetail. + + + :param failure_percentage: The failure_percentage of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: float + """ + + self._failure_percentage = failure_percentage + + @property + def failure_percentage_range(self): + """Gets the failure_percentage_range of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The failure_percentage_range of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: str + """ + return self._failure_percentage_range + + @failure_percentage_range.setter + def failure_percentage_range(self, failure_percentage_range): + """Sets the failure_percentage_range of this AlertAnalyticsSummaryDetail. + + + :param failure_percentage_range: The failure_percentage_range of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: str + """ + + self._failure_percentage_range = failure_percentage_range + + @property + def is_no_data(self): + """Gets the is_no_data of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The is_no_data of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: bool + """ + return self._is_no_data + + @is_no_data.setter + def is_no_data(self, is_no_data): + """Sets the is_no_data of this AlertAnalyticsSummaryDetail. + + + :param is_no_data: The is_no_data of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: bool + """ + + self._is_no_data = is_no_data + + @property + def is_no_target(self): + """Gets the is_no_target of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The is_no_target of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: bool + """ + return self._is_no_target + + @is_no_target.setter + def is_no_target(self, is_no_target): + """Sets the is_no_target of this AlertAnalyticsSummaryDetail. + + + :param is_no_target: The is_no_target of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: bool + """ + + self._is_no_target = is_no_target + + @property + def last_event_time(self): + """Gets the last_event_time of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The last_event_time of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: str + """ + return self._last_event_time + + @last_event_time.setter + def last_event_time(self, last_event_time): + """Sets the last_event_time of this AlertAnalyticsSummaryDetail. + + + :param last_event_time: The last_event_time of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: str + """ + + self._last_event_time = last_event_time + + @property + def last_updated_time(self): + """Gets the last_updated_time of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The last_updated_time of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: str + """ + return self._last_updated_time + + @last_updated_time.setter + def last_updated_time(self, last_updated_time): + """Sets the last_updated_time of this AlertAnalyticsSummaryDetail. + + + :param last_updated_time: The last_updated_time of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: str + """ + + self._last_updated_time = last_updated_time + + @property + def last_updated_user_id(self): + """Gets the last_updated_user_id of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The last_updated_user_id of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: str + """ + return self._last_updated_user_id + + @last_updated_user_id.setter + def last_updated_user_id(self, last_updated_user_id): + """Sets the last_updated_user_id of this AlertAnalyticsSummaryDetail. + + + :param last_updated_user_id: The last_updated_user_id of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: str + """ + + self._last_updated_user_id = last_updated_user_id + + @property + def tags(self): + """Gets the tags of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The tags of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this AlertAnalyticsSummaryDetail. + + + :param tags: The tags of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: list[str] + """ + + self._tags = tags + + @property + def total_evaluated(self): + """Gets the total_evaluated of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The total_evaluated of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._total_evaluated + + @total_evaluated.setter + def total_evaluated(self, total_evaluated): + """Sets the total_evaluated of this AlertAnalyticsSummaryDetail. + + + :param total_evaluated: The total_evaluated of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: int + """ + + self._total_evaluated = total_evaluated + + @property + def total_failed(self): + """Gets the total_failed of this AlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The total_failed of this AlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._total_failed + + @total_failed.setter + def total_failed(self, total_failed): + """Sets the total_failed of this AlertAnalyticsSummaryDetail. + + + :param total_failed: The total_failed of this AlertAnalyticsSummaryDetail. # noqa: E501 + :type: int + """ + + self._total_failed = total_failed + + 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(AlertAnalyticsSummaryDetail, 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, AlertAnalyticsSummaryDetail): + 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, AlertAnalyticsSummaryDetail): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert_dashboard.py b/wavefront_api_client/models/alert_dashboard.py new file mode 100644 index 00000000..0fbd8aae --- /dev/null +++ b/wavefront_api_client/models/alert_dashboard.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AlertDashboard(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 = { + 'dashboard_id': 'str', + 'description': 'str', + 'parameters': 'dict(str, dict(str, str))' + } + + attribute_map = { + 'dashboard_id': 'dashboardId', + 'description': 'description', + 'parameters': 'parameters' + } + + def __init__(self, dashboard_id=None, description=None, parameters=None, _configuration=None): # noqa: E501 + """AlertDashboard - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._dashboard_id = None + self._description = None + self._parameters = None + self.discriminator = None + + if dashboard_id is not None: + self.dashboard_id = dashboard_id + if description is not None: + self.description = description + if parameters is not None: + self.parameters = parameters + + @property + def dashboard_id(self): + """Gets the dashboard_id of this AlertDashboard. # noqa: E501 + + + :return: The dashboard_id of this AlertDashboard. # noqa: E501 + :rtype: str + """ + return self._dashboard_id + + @dashboard_id.setter + def dashboard_id(self, dashboard_id): + """Sets the dashboard_id of this AlertDashboard. + + + :param dashboard_id: The dashboard_id of this AlertDashboard. # noqa: E501 + :type: str + """ + + self._dashboard_id = dashboard_id + + @property + def description(self): + """Gets the description of this AlertDashboard. # noqa: E501 + + + :return: The description of this AlertDashboard. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AlertDashboard. + + + :param description: The description of this AlertDashboard. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def parameters(self): + """Gets the parameters of this AlertDashboard. # noqa: E501 + + + :return: The parameters of this AlertDashboard. # noqa: E501 + :rtype: dict(str, dict(str, str)) + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this AlertDashboard. + + + :param parameters: The parameters of this AlertDashboard. # noqa: E501 + :type: dict(str, dict(str, str)) + """ + + self._parameters = parameters + + 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(AlertDashboard, 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, AlertDashboard): + 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, AlertDashboard): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert_error_group_info.py b/wavefront_api_client/models/alert_error_group_info.py new file mode 100644 index 00000000..3842fa96 --- /dev/null +++ b/wavefront_api_client/models/alert_error_group_info.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AlertErrorGroupInfo(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 = { + 'error_group_id': 'str', + 'error_group_name': 'str', + 'total_failed': 'int', + 'total_failed_per_group': 'int' + } + + attribute_map = { + 'error_group_id': 'errorGroupId', + 'error_group_name': 'errorGroupName', + 'total_failed': 'totalFailed', + 'total_failed_per_group': 'totalFailedPerGroup' + } + + def __init__(self, error_group_id=None, error_group_name=None, total_failed=None, total_failed_per_group=None, _configuration=None): # noqa: E501 + """AlertErrorGroupInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._error_group_id = None + self._error_group_name = None + self._total_failed = None + self._total_failed_per_group = None + self.discriminator = None + + if error_group_id is not None: + self.error_group_id = error_group_id + if error_group_name is not None: + self.error_group_name = error_group_name + if total_failed is not None: + self.total_failed = total_failed + if total_failed_per_group is not None: + self.total_failed_per_group = total_failed_per_group + + @property + def error_group_id(self): + """Gets the error_group_id of this AlertErrorGroupInfo. # noqa: E501 + + + :return: The error_group_id of this AlertErrorGroupInfo. # noqa: E501 + :rtype: str + """ + return self._error_group_id + + @error_group_id.setter + def error_group_id(self, error_group_id): + """Sets the error_group_id of this AlertErrorGroupInfo. + + + :param error_group_id: The error_group_id of this AlertErrorGroupInfo. # noqa: E501 + :type: str + """ + + self._error_group_id = error_group_id + + @property + def error_group_name(self): + """Gets the error_group_name of this AlertErrorGroupInfo. # noqa: E501 + + + :return: The error_group_name of this AlertErrorGroupInfo. # noqa: E501 + :rtype: str + """ + return self._error_group_name + + @error_group_name.setter + def error_group_name(self, error_group_name): + """Sets the error_group_name of this AlertErrorGroupInfo. + + + :param error_group_name: The error_group_name of this AlertErrorGroupInfo. # noqa: E501 + :type: str + """ + + self._error_group_name = error_group_name + + @property + def total_failed(self): + """Gets the total_failed of this AlertErrorGroupInfo. # noqa: E501 + + + :return: The total_failed of this AlertErrorGroupInfo. # noqa: E501 + :rtype: int + """ + return self._total_failed + + @total_failed.setter + def total_failed(self, total_failed): + """Sets the total_failed of this AlertErrorGroupInfo. + + + :param total_failed: The total_failed of this AlertErrorGroupInfo. # noqa: E501 + :type: int + """ + + self._total_failed = total_failed + + @property + def total_failed_per_group(self): + """Gets the total_failed_per_group of this AlertErrorGroupInfo. # noqa: E501 + + + :return: The total_failed_per_group of this AlertErrorGroupInfo. # noqa: E501 + :rtype: int + """ + return self._total_failed_per_group + + @total_failed_per_group.setter + def total_failed_per_group(self, total_failed_per_group): + """Sets the total_failed_per_group of this AlertErrorGroupInfo. + + + :param total_failed_per_group: The total_failed_per_group of this AlertErrorGroupInfo. # noqa: E501 + :type: int + """ + + self._total_failed_per_group = total_failed_per_group + + 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(AlertErrorGroupInfo, 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, AlertErrorGroupInfo): + 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, AlertErrorGroupInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert_error_group_summary.py b/wavefront_api_client/models/alert_error_group_summary.py new file mode 100644 index 00000000..72059c5e --- /dev/null +++ b/wavefront_api_client/models/alert_error_group_summary.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AlertErrorGroupSummary(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 = { + 'error_group_id': 'str', + 'error_group_name': 'str', + 'errors_summary': 'list[AlertErrorSummary]', + 'total_failed_per_group': 'int' + } + + attribute_map = { + 'error_group_id': 'errorGroupId', + 'error_group_name': 'errorGroupName', + 'errors_summary': 'errorsSummary', + 'total_failed_per_group': 'totalFailedPerGroup' + } + + def __init__(self, error_group_id=None, error_group_name=None, errors_summary=None, total_failed_per_group=None, _configuration=None): # noqa: E501 + """AlertErrorGroupSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._error_group_id = None + self._error_group_name = None + self._errors_summary = None + self._total_failed_per_group = None + self.discriminator = None + + if error_group_id is not None: + self.error_group_id = error_group_id + if error_group_name is not None: + self.error_group_name = error_group_name + if errors_summary is not None: + self.errors_summary = errors_summary + if total_failed_per_group is not None: + self.total_failed_per_group = total_failed_per_group + + @property + def error_group_id(self): + """Gets the error_group_id of this AlertErrorGroupSummary. # noqa: E501 + + + :return: The error_group_id of this AlertErrorGroupSummary. # noqa: E501 + :rtype: str + """ + return self._error_group_id + + @error_group_id.setter + def error_group_id(self, error_group_id): + """Sets the error_group_id of this AlertErrorGroupSummary. + + + :param error_group_id: The error_group_id of this AlertErrorGroupSummary. # noqa: E501 + :type: str + """ + + self._error_group_id = error_group_id + + @property + def error_group_name(self): + """Gets the error_group_name of this AlertErrorGroupSummary. # noqa: E501 + + + :return: The error_group_name of this AlertErrorGroupSummary. # noqa: E501 + :rtype: str + """ + return self._error_group_name + + @error_group_name.setter + def error_group_name(self, error_group_name): + """Sets the error_group_name of this AlertErrorGroupSummary. + + + :param error_group_name: The error_group_name of this AlertErrorGroupSummary. # noqa: E501 + :type: str + """ + + self._error_group_name = error_group_name + + @property + def errors_summary(self): + """Gets the errors_summary of this AlertErrorGroupSummary. # noqa: E501 + + + :return: The errors_summary of this AlertErrorGroupSummary. # noqa: E501 + :rtype: list[AlertErrorSummary] + """ + return self._errors_summary + + @errors_summary.setter + def errors_summary(self, errors_summary): + """Sets the errors_summary of this AlertErrorGroupSummary. + + + :param errors_summary: The errors_summary of this AlertErrorGroupSummary. # noqa: E501 + :type: list[AlertErrorSummary] + """ + + self._errors_summary = errors_summary + + @property + def total_failed_per_group(self): + """Gets the total_failed_per_group of this AlertErrorGroupSummary. # noqa: E501 + + + :return: The total_failed_per_group of this AlertErrorGroupSummary. # noqa: E501 + :rtype: int + """ + return self._total_failed_per_group + + @total_failed_per_group.setter + def total_failed_per_group(self, total_failed_per_group): + """Sets the total_failed_per_group of this AlertErrorGroupSummary. + + + :param total_failed_per_group: The total_failed_per_group of this AlertErrorGroupSummary. # noqa: E501 + :type: int + """ + + self._total_failed_per_group = total_failed_per_group + + 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(AlertErrorGroupSummary, 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, AlertErrorGroupSummary): + 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, AlertErrorGroupSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert_error_summary.py b/wavefront_api_client/models/alert_error_summary.py new file mode 100644 index 00000000..4153a43f --- /dev/null +++ b/wavefront_api_client/models/alert_error_summary.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AlertErrorSummary(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 = { + 'error_code': 'int', + 'error_group_id': 'str', + 'error_message': 'str', + 'recommendation_key': 'str', + 'total_matched': 'int' + } + + attribute_map = { + 'error_code': 'errorCode', + 'error_group_id': 'errorGroupId', + 'error_message': 'errorMessage', + 'recommendation_key': 'recommendationKey', + 'total_matched': 'totalMatched' + } + + def __init__(self, error_code=None, error_group_id=None, error_message=None, recommendation_key=None, total_matched=None, _configuration=None): # noqa: E501 + """AlertErrorSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._error_code = None + self._error_group_id = None + self._error_message = None + self._recommendation_key = None + self._total_matched = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_group_id is not None: + self.error_group_id = error_group_id + if error_message is not None: + self.error_message = error_message + if recommendation_key is not None: + self.recommendation_key = recommendation_key + if total_matched is not None: + self.total_matched = total_matched + + @property + def error_code(self): + """Gets the error_code of this AlertErrorSummary. # noqa: E501 + + + :return: The error_code of this AlertErrorSummary. # noqa: E501 + :rtype: int + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this AlertErrorSummary. + + + :param error_code: The error_code of this AlertErrorSummary. # noqa: E501 + :type: int + """ + + self._error_code = error_code + + @property + def error_group_id(self): + """Gets the error_group_id of this AlertErrorSummary. # noqa: E501 + + + :return: The error_group_id of this AlertErrorSummary. # noqa: E501 + :rtype: str + """ + return self._error_group_id + + @error_group_id.setter + def error_group_id(self, error_group_id): + """Sets the error_group_id of this AlertErrorSummary. + + + :param error_group_id: The error_group_id of this AlertErrorSummary. # noqa: E501 + :type: str + """ + + self._error_group_id = error_group_id + + @property + def error_message(self): + """Gets the error_message of this AlertErrorSummary. # noqa: E501 + + + :return: The error_message of this AlertErrorSummary. # noqa: E501 + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """Sets the error_message of this AlertErrorSummary. + + + :param error_message: The error_message of this AlertErrorSummary. # noqa: E501 + :type: str + """ + + self._error_message = error_message + + @property + def recommendation_key(self): + """Gets the recommendation_key of this AlertErrorSummary. # noqa: E501 + + + :return: The recommendation_key of this AlertErrorSummary. # noqa: E501 + :rtype: str + """ + return self._recommendation_key + + @recommendation_key.setter + def recommendation_key(self, recommendation_key): + """Sets the recommendation_key of this AlertErrorSummary. + + + :param recommendation_key: The recommendation_key of this AlertErrorSummary. # noqa: E501 + :type: str + """ + + self._recommendation_key = recommendation_key + + @property + def total_matched(self): + """Gets the total_matched of this AlertErrorSummary. # noqa: E501 + + + :return: The total_matched of this AlertErrorSummary. # noqa: E501 + :rtype: int + """ + return self._total_matched + + @total_matched.setter + def total_matched(self, total_matched): + """Sets the total_matched of this AlertErrorSummary. + + + :param total_matched: The total_matched of this AlertErrorSummary. # noqa: E501 + :type: int + """ + + self._total_matched = total_matched + + 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(AlertErrorSummary, 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, AlertErrorSummary): + 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, AlertErrorSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert_min.py b/wavefront_api_client/models/alert_min.py new file mode 100644 index 00000000..b3dff39b --- /dev/null +++ b/wavefront_api_client/models/alert_min.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AlertMin(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 = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None, _configuration=None): # noqa: E501 + """AlertMin - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this AlertMin. # noqa: E501 + + Unique identifier, also created epoch millis, of the alert # noqa: E501 + + :return: The id of this AlertMin. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AlertMin. + + Unique identifier, also created epoch millis, of the alert # noqa: E501 + + :param id: The id of this AlertMin. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this AlertMin. # noqa: E501 + + Name of the alert # noqa: E501 + + :return: The name of this AlertMin. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AlertMin. + + Name of the alert # noqa: E501 + + :param name: The name of this AlertMin. # 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(AlertMin, 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, AlertMin): + 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, AlertMin): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert_route.py b/wavefront_api_client/models/alert_route.py new file mode 100644 index 00000000..826ddd04 --- /dev/null +++ b/wavefront_api_client/models/alert_route.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AlertRoute(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 = { + 'filter': 'str', + 'method': 'str', + 'target': 'str' + } + + attribute_map = { + 'filter': 'filter', + 'method': 'method', + 'target': 'target' + } + + def __init__(self, filter=None, method=None, target=None, _configuration=None): # noqa: E501 + """AlertRoute - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._filter = None + self._method = None + self._target = None + self.discriminator = None + + self.filter = filter + self.method = method + self.target = target + + @property + def filter(self): + """Gets the filter of this AlertRoute. # noqa: E501 + + String that filters the route. Space delimited. Currently only allows single key value pair. filter: env* prod* # noqa: E501 + + :return: The filter of this AlertRoute. # noqa: E501 + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this AlertRoute. + + String that filters the route. Space delimited. Currently only allows single key value pair. filter: env* prod* # noqa: E501 + + :param filter: The filter of this AlertRoute. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and filter is None: + raise ValueError("Invalid value for `filter`, must not be `None`") # noqa: E501 + + self._filter = filter + + @property + def method(self): + """Gets the method of this AlertRoute. # noqa: E501 + + The end point for the alert route.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point # noqa: E501 + + :return: The method of this AlertRoute. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AlertRoute. + + The end point for the alert route.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point # noqa: E501 + + :param method: The method of this AlertRoute. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["WEBHOOK", "PAGERDUTY", "EMAIL"] # noqa: E501 + if (self._configuration.client_side_validation and + method not in allowed_values): + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def target(self): + """Gets the target of this AlertRoute. # noqa: E501 + + The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point # noqa: E501 + + :return: The target of this AlertRoute. # noqa: E501 + :rtype: str + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this AlertRoute. + + The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point # noqa: E501 + + :param target: The target of this AlertRoute. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and target is None: + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 + + self._target = target + + 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(AlertRoute, 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, AlertRoute): + 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, AlertRoute): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/alert_source.py b/wavefront_api_client/models/alert_source.py new file mode 100644 index 00000000..cffec0cb --- /dev/null +++ b/wavefront_api_client/models/alert_source.py @@ -0,0 +1,364 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AlertSource(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 = { + 'alert_source_type': 'list[str]', + 'color': 'str', + 'description': 'str', + 'hidden': 'bool', + 'name': 'str', + 'query': 'str', + 'query_builder_enabled': 'bool', + 'query_builder_serialization': 'str', + 'query_type': 'str' + } + + attribute_map = { + 'alert_source_type': 'alertSourceType', + 'color': 'color', + 'description': 'description', + 'hidden': 'hidden', + 'name': 'name', + 'query': 'query', + 'query_builder_enabled': 'queryBuilderEnabled', + 'query_builder_serialization': 'queryBuilderSerialization', + 'query_type': 'queryType' + } + + def __init__(self, alert_source_type=None, color=None, description=None, hidden=None, name=None, query=None, query_builder_enabled=None, query_builder_serialization=None, query_type=None, _configuration=None): # noqa: E501 + """AlertSource - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._alert_source_type = None + self._color = None + self._description = None + self._hidden = None + self._name = None + self._query = None + self._query_builder_enabled = None + self._query_builder_serialization = None + self._query_type = None + self.discriminator = None + + if alert_source_type is not None: + self.alert_source_type = alert_source_type + if color is not None: + self.color = color + if description is not None: + self.description = description + if hidden is not None: + self.hidden = hidden + if name is not None: + self.name = name + if query is not None: + self.query = query + if query_builder_enabled is not None: + self.query_builder_enabled = query_builder_enabled + if query_builder_serialization is not None: + self.query_builder_serialization = query_builder_serialization + if query_type is not None: + self.query_type = query_type + + @property + def alert_source_type(self): + """Gets the alert_source_type of this AlertSource. # noqa: E501 + + The types of the alert source (an array of CONDITION, AUDIT, VARIABLE) and the default one is [VARIABLE]. CONDITION alert source is the condition query in the alert. AUDIT alert source is the query to get more details when the alert changes state. VARIABLE alert source is a variable used in the other queries. # noqa: E501 + + :return: The alert_source_type of this AlertSource. # noqa: E501 + :rtype: list[str] + """ + return self._alert_source_type + + @alert_source_type.setter + def alert_source_type(self, alert_source_type): + """Sets the alert_source_type of this AlertSource. + + The types of the alert source (an array of CONDITION, AUDIT, VARIABLE) and the default one is [VARIABLE]. CONDITION alert source is the condition query in the alert. AUDIT alert source is the query to get more details when the alert changes state. VARIABLE alert source is a variable used in the other queries. # noqa: E501 + + :param alert_source_type: The alert_source_type of this AlertSource. # noqa: E501 + :type: list[str] + """ + allowed_values = ["VARIABLE", "CONDITION", "AUDIT"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(alert_source_type).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `alert_source_type` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(alert_source_type) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._alert_source_type = alert_source_type + + @property + def color(self): + """Gets the color of this AlertSource. # noqa: E501 + + The color of the alert source. # noqa: E501 + + :return: The color of this AlertSource. # noqa: E501 + :rtype: str + """ + return self._color + + @color.setter + def color(self, color): + """Sets the color of this AlertSource. + + The color of the alert source. # noqa: E501 + + :param color: The color of this AlertSource. # noqa: E501 + :type: str + """ + + self._color = color + + @property + def description(self): + """Gets the description of this AlertSource. # noqa: E501 + + The additional long description of the alert source. # noqa: E501 + + :return: The description of this AlertSource. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AlertSource. + + The additional long description of the alert source. # noqa: E501 + + :param description: The description of this AlertSource. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def hidden(self): + """Gets the hidden of this AlertSource. # noqa: E501 + + A flag to indicate whether the alert source is hidden or not. # noqa: E501 + + :return: The hidden of this AlertSource. # noqa: E501 + :rtype: bool + """ + return self._hidden + + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this AlertSource. + + A flag to indicate whether the alert source is hidden or not. # noqa: E501 + + :param hidden: The hidden of this AlertSource. # noqa: E501 + :type: bool + """ + + self._hidden = hidden + + @property + def name(self): + """Gets the name of this AlertSource. # noqa: E501 + + The alert source query name. Used as the variable name in the other query. # noqa: E501 + + :return: The name of this AlertSource. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AlertSource. + + The alert source query name. Used as the variable name in the other query. # noqa: E501 + + :param name: The name of this AlertSource. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def query(self): + """Gets the query of this AlertSource. # noqa: E501 + + The alert query. Support both Wavefront Query and Prometheus Query. # noqa: E501 + + :return: The query of this AlertSource. # noqa: E501 + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this AlertSource. + + The alert query. Support both Wavefront Query and Prometheus Query. # noqa: E501 + + :param query: The query of this AlertSource. # noqa: E501 + :type: str + """ + + self._query = query + + @property + def query_builder_enabled(self): + """Gets the query_builder_enabled of this AlertSource. # noqa: E501 + + A flag indicate whether the alert source query builder enabled or not. # noqa: E501 + + :return: The query_builder_enabled of this AlertSource. # noqa: E501 + :rtype: bool + """ + return self._query_builder_enabled + + @query_builder_enabled.setter + def query_builder_enabled(self, query_builder_enabled): + """Sets the query_builder_enabled of this AlertSource. + + A flag indicate whether the alert source query builder enabled or not. # noqa: E501 + + :param query_builder_enabled: The query_builder_enabled of this AlertSource. # noqa: E501 + :type: bool + """ + + self._query_builder_enabled = query_builder_enabled + + @property + def query_builder_serialization(self): + """Gets the query_builder_serialization of this AlertSource. # noqa: E501 + + The string serialization of the alert source query builder, mostly used by Tanzu Observability UI. # noqa: E501 + + :return: The query_builder_serialization of this AlertSource. # noqa: E501 + :rtype: str + """ + return self._query_builder_serialization + + @query_builder_serialization.setter + def query_builder_serialization(self, query_builder_serialization): + """Sets the query_builder_serialization of this AlertSource. + + The string serialization of the alert source query builder, mostly used by Tanzu Observability UI. # noqa: E501 + + :param query_builder_serialization: The query_builder_serialization of this AlertSource. # noqa: E501 + :type: str + """ + + self._query_builder_serialization = query_builder_serialization + + @property + def query_type(self): + """Gets the query_type of this AlertSource. # noqa: E501 + + The type of the alert query. Supported types are [PROMQL, WQL]. # noqa: E501 + + :return: The query_type of this AlertSource. # noqa: E501 + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this AlertSource. + + The type of the alert query. Supported types are [PROMQL, WQL]. # noqa: E501 + + :param query_type: The query_type of this AlertSource. # noqa: E501 + :type: str + """ + allowed_values = ["WQL", "PROMQL", "HYBRID"] # noqa: E501 + if (self._configuration.client_side_validation and + query_type not in allowed_values): + raise ValueError( + "Invalid value for `query_type` ({0}), must be one of {1}" # noqa: E501 + .format(query_type, allowed_values) + ) + + self._query_type = query_type + + 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(AlertSource, 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, AlertSource): + 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, AlertSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/annotation.py b/wavefront_api_client/models/annotation.py new file mode 100644 index 00000000..dbfe14f0 --- /dev/null +++ b/wavefront_api_client/models/annotation.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Annotation(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 = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None, _configuration=None): # noqa: E501 + """Annotation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._key = None + self._value = None + self.discriminator = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """Gets the key of this Annotation. # noqa: E501 + + + :return: The key of this Annotation. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Annotation. + + + :param key: The key of this Annotation. # noqa: E501 + :type: str + """ + + self._key = key + + @property + def value(self): + """Gets the value of this Annotation. # noqa: E501 + + + :return: The value of this Annotation. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this Annotation. + + + :param value: The value of this Annotation. # noqa: E501 + :type: str + """ + + self._value = value + + 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(Annotation, 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, Annotation): + 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, Annotation): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/anomaly.py b/wavefront_api_client/models/anomaly.py new file mode 100644 index 00000000..9d98bf20 --- /dev/null +++ b/wavefront_api_client/models/anomaly.py @@ -0,0 +1,770 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Anomaly(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 = { + 'chart_hash': 'str', + 'chart_link': 'str', + 'col': 'int', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'customer': 'str', + 'dashboard_id': 'str', + 'deleted': 'bool', + 'end_ms': 'int', + 'hosts_used': 'list[str]', + 'id': 'str', + 'image_link': 'str', + 'metrics_used': 'list[str]', + 'model': 'str', + 'original_stripes': 'list[Stripe]', + 'param_hash': 'str', + 'query_hash': 'str', + '_query_params': 'dict(str, str)', + 'row': 'int', + 'section': 'int', + 'start_ms': 'int', + 'updated_epoch_millis': 'int', + 'updated_ms': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'chart_hash': 'chartHash', + 'chart_link': 'chartLink', + 'col': 'col', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'customer': 'customer', + 'dashboard_id': 'dashboardId', + 'deleted': 'deleted', + 'end_ms': 'endMs', + 'hosts_used': 'hostsUsed', + 'id': 'id', + 'image_link': 'imageLink', + 'metrics_used': 'metricsUsed', + 'model': 'model', + 'original_stripes': 'originalStripes', + 'param_hash': 'paramHash', + 'query_hash': 'queryHash', + '_query_params': 'queryParams', + 'row': 'row', + 'section': 'section', + 'start_ms': 'startMs', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updated_ms': 'updatedMs', + 'updater_id': 'updaterId' + } + + def __init__(self, chart_hash=None, chart_link=None, col=None, created_epoch_millis=None, creator_id=None, customer=None, dashboard_id=None, deleted=None, end_ms=None, hosts_used=None, id=None, image_link=None, metrics_used=None, model=None, original_stripes=None, param_hash=None, query_hash=None, _query_params=None, row=None, section=None, start_ms=None, updated_epoch_millis=None, updated_ms=None, updater_id=None, _configuration=None): # noqa: E501 + """Anomaly - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._chart_hash = None + self._chart_link = None + self._col = None + self._created_epoch_millis = None + self._creator_id = None + self._customer = None + self._dashboard_id = None + self._deleted = None + self._end_ms = None + self._hosts_used = None + self._id = None + self._image_link = None + self._metrics_used = None + self._model = None + self._original_stripes = None + self._param_hash = None + self._query_hash = None + self.__query_params = None + self._row = None + self._section = None + self._start_ms = None + self._updated_epoch_millis = None + self._updated_ms = None + self._updater_id = None + self.discriminator = None + + self.chart_hash = chart_hash + if chart_link is not None: + self.chart_link = chart_link + self.col = col + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if customer is not None: + self.customer = customer + self.dashboard_id = dashboard_id + if deleted is not None: + self.deleted = deleted + self.end_ms = end_ms + if hosts_used is not None: + self.hosts_used = hosts_used + if id is not None: + self.id = id + if image_link is not None: + self.image_link = image_link + if metrics_used is not None: + self.metrics_used = metrics_used + if model is not None: + self.model = model + if original_stripes is not None: + self.original_stripes = original_stripes + self.param_hash = param_hash + self.query_hash = query_hash + self._query_params = _query_params + self.row = row + self.section = section + self.start_ms = start_ms + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + self.updated_ms = updated_ms + if updater_id is not None: + self.updater_id = updater_id + + @property + def chart_hash(self): + """Gets the chart_hash of this Anomaly. # noqa: E501 + + chart hash(as unique identifier) for this anomaly # noqa: E501 + + :return: The chart_hash of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._chart_hash + + @chart_hash.setter + def chart_hash(self, chart_hash): + """Sets the chart_hash of this Anomaly. + + chart hash(as unique identifier) for this anomaly # noqa: E501 + + :param chart_hash: The chart_hash of this Anomaly. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and chart_hash is None: + raise ValueError("Invalid value for `chart_hash`, must not be `None`") # noqa: E501 + + self._chart_hash = chart_hash + + @property + def chart_link(self): + """Gets the chart_link of this Anomaly. # noqa: E501 + + chart link for this anomaly # noqa: E501 + + :return: The chart_link of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._chart_link + + @chart_link.setter + def chart_link(self, chart_link): + """Sets the chart_link of this Anomaly. + + chart link for this anomaly # noqa: E501 + + :param chart_link: The chart_link of this Anomaly. # noqa: E501 + :type: str + """ + + self._chart_link = chart_link + + @property + def col(self): + """Gets the col of this Anomaly. # noqa: E501 + + column number for this anomaly # noqa: E501 + + :return: The col of this Anomaly. # noqa: E501 + :rtype: int + """ + return self._col + + @col.setter + def col(self, col): + """Sets the col of this Anomaly. + + column number for this anomaly # noqa: E501 + + :param col: The col of this Anomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and col is None: + raise ValueError("Invalid value for `col`, must not be `None`") # noqa: E501 + + self._col = col + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this Anomaly. # noqa: E501 + + + :return: The created_epoch_millis of this Anomaly. # 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 Anomaly. + + + :param created_epoch_millis: The created_epoch_millis of this Anomaly. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this Anomaly. # noqa: E501 + + + :return: The creator_id of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this Anomaly. + + + :param creator_id: The creator_id of this Anomaly. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def customer(self): + """Gets the customer of this Anomaly. # noqa: E501 + + id of the customer to which this anomaly belongs # noqa: E501 + + :return: The customer of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this Anomaly. + + id of the customer to which this anomaly belongs # noqa: E501 + + :param customer: The customer of this Anomaly. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def dashboard_id(self): + """Gets the dashboard_id of this Anomaly. # noqa: E501 + + dashboard id for this anomaly # noqa: E501 + + :return: The dashboard_id of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._dashboard_id + + @dashboard_id.setter + def dashboard_id(self, dashboard_id): + """Sets the dashboard_id of this Anomaly. + + dashboard id for this anomaly # noqa: E501 + + :param dashboard_id: The dashboard_id of this Anomaly. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and dashboard_id is None: + raise ValueError("Invalid value for `dashboard_id`, must not be `None`") # noqa: E501 + + self._dashboard_id = dashboard_id + + @property + def deleted(self): + """Gets the deleted of this Anomaly. # noqa: E501 + + + :return: The deleted of this Anomaly. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this Anomaly. + + + :param deleted: The deleted of this Anomaly. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def end_ms(self): + """Gets the end_ms of this Anomaly. # noqa: E501 + + endMs for this anomaly # noqa: E501 + + :return: The end_ms of this Anomaly. # noqa: E501 + :rtype: int + """ + return self._end_ms + + @end_ms.setter + def end_ms(self, end_ms): + """Sets the end_ms of this Anomaly. + + endMs for this anomaly # noqa: E501 + + :param end_ms: The end_ms of this Anomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and end_ms is None: + raise ValueError("Invalid value for `end_ms`, must not be `None`") # noqa: E501 + + self._end_ms = end_ms + + @property + def hosts_used(self): + """Gets the hosts_used of this Anomaly. # noqa: E501 + + list of hosts affected of this anomaly # noqa: E501 + + :return: The hosts_used of this Anomaly. # noqa: E501 + :rtype: list[str] + """ + return self._hosts_used + + @hosts_used.setter + def hosts_used(self, hosts_used): + """Sets the hosts_used of this Anomaly. + + list of hosts affected of this anomaly # noqa: E501 + + :param hosts_used: The hosts_used of this Anomaly. # noqa: E501 + :type: list[str] + """ + + self._hosts_used = hosts_used + + @property + def id(self): + """Gets the id of this Anomaly. # noqa: E501 + + unique id that defines this anomaly # noqa: E501 + + :return: The id of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Anomaly. + + unique id that defines this anomaly # noqa: E501 + + :param id: The id of this Anomaly. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def image_link(self): + """Gets the image_link of this Anomaly. # noqa: E501 + + image link for this anomaly # noqa: E501 + + :return: The image_link of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._image_link + + @image_link.setter + def image_link(self, image_link): + """Sets the image_link of this Anomaly. + + image link for this anomaly # noqa: E501 + + :param image_link: The image_link of this Anomaly. # noqa: E501 + :type: str + """ + + self._image_link = image_link + + @property + def metrics_used(self): + """Gets the metrics_used of this Anomaly. # noqa: E501 + + list of metrics used of this anomaly # noqa: E501 + + :return: The metrics_used of this Anomaly. # noqa: E501 + :rtype: list[str] + """ + return self._metrics_used + + @metrics_used.setter + def metrics_used(self, metrics_used): + """Sets the metrics_used of this Anomaly. + + list of metrics used of this anomaly # noqa: E501 + + :param metrics_used: The metrics_used of this Anomaly. # noqa: E501 + :type: list[str] + """ + + self._metrics_used = metrics_used + + @property + def model(self): + """Gets the model of this Anomaly. # noqa: E501 + + model for this anomaly # noqa: E501 + + :return: The model of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """Sets the model of this Anomaly. + + model for this anomaly # noqa: E501 + + :param model: The model of this Anomaly. # noqa: E501 + :type: str + """ + + self._model = model + + @property + def original_stripes(self): + """Gets the original_stripes of this Anomaly. # noqa: E501 + + list of originalStripe belongs to this anomaly # noqa: E501 + + :return: The original_stripes of this Anomaly. # noqa: E501 + :rtype: list[Stripe] + """ + return self._original_stripes + + @original_stripes.setter + def original_stripes(self, original_stripes): + """Sets the original_stripes of this Anomaly. + + list of originalStripe belongs to this anomaly # noqa: E501 + + :param original_stripes: The original_stripes of this Anomaly. # noqa: E501 + :type: list[Stripe] + """ + + self._original_stripes = original_stripes + + @property + def param_hash(self): + """Gets the param_hash of this Anomaly. # noqa: E501 + + param hash for this anomaly # noqa: E501 + + :return: The param_hash of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._param_hash + + @param_hash.setter + def param_hash(self, param_hash): + """Sets the param_hash of this Anomaly. + + param hash for this anomaly # noqa: E501 + + :param param_hash: The param_hash of this Anomaly. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and param_hash is None: + raise ValueError("Invalid value for `param_hash`, must not be `None`") # noqa: E501 + + self._param_hash = param_hash + + @property + def query_hash(self): + """Gets the query_hash of this Anomaly. # noqa: E501 + + query hash for this anomaly # noqa: E501 + + :return: The query_hash of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._query_hash + + @query_hash.setter + def query_hash(self, query_hash): + """Sets the query_hash of this Anomaly. + + query hash for this anomaly # noqa: E501 + + :param query_hash: The query_hash of this Anomaly. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and query_hash is None: + raise ValueError("Invalid value for `query_hash`, must not be `None`") # noqa: E501 + + self._query_hash = query_hash + + @property + def _query_params(self): + """Gets the _query_params of this Anomaly. # noqa: E501 + + map of query params belongs to this anomaly # noqa: E501 + + :return: The _query_params of this Anomaly. # noqa: E501 + :rtype: dict(str, str) + """ + return self.__query_params + + @_query_params.setter + def _query_params(self, _query_params): + """Sets the _query_params of this Anomaly. + + map of query params belongs to this anomaly # noqa: E501 + + :param _query_params: The _query_params of this Anomaly. # noqa: E501 + :type: dict(str, str) + """ + if self._configuration.client_side_validation and _query_params is None: + raise ValueError("Invalid value for `_query_params`, must not be `None`") # noqa: E501 + + self.__query_params = _query_params + + @property + def row(self): + """Gets the row of this Anomaly. # noqa: E501 + + row number for this anomaly # noqa: E501 + + :return: The row of this Anomaly. # noqa: E501 + :rtype: int + """ + return self._row + + @row.setter + def row(self, row): + """Sets the row of this Anomaly. + + row number for this anomaly # noqa: E501 + + :param row: The row of this Anomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and row is None: + raise ValueError("Invalid value for `row`, must not be `None`") # noqa: E501 + + self._row = row + + @property + def section(self): + """Gets the section of this Anomaly. # noqa: E501 + + section number for this anomaly # noqa: E501 + + :return: The section of this Anomaly. # noqa: E501 + :rtype: int + """ + return self._section + + @section.setter + def section(self, section): + """Sets the section of this Anomaly. + + section number for this anomaly # noqa: E501 + + :param section: The section of this Anomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and section is None: + raise ValueError("Invalid value for `section`, must not be `None`") # noqa: E501 + + self._section = section + + @property + def start_ms(self): + """Gets the start_ms of this Anomaly. # noqa: E501 + + startMs for this anomaly # noqa: E501 + + :return: The start_ms of this Anomaly. # noqa: E501 + :rtype: int + """ + return self._start_ms + + @start_ms.setter + def start_ms(self, start_ms): + """Sets the start_ms of this Anomaly. + + startMs for this anomaly # noqa: E501 + + :param start_ms: The start_ms of this Anomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and start_ms is None: + raise ValueError("Invalid value for `start_ms`, must not be `None`") # noqa: E501 + + self._start_ms = start_ms + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this Anomaly. # noqa: E501 + + + :return: The updated_epoch_millis of this Anomaly. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this Anomaly. + + + :param updated_epoch_millis: The updated_epoch_millis of this Anomaly. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updated_ms(self): + """Gets the updated_ms of this Anomaly. # noqa: E501 + + updateMs for this anomaly # noqa: E501 + + :return: The updated_ms of this Anomaly. # noqa: E501 + :rtype: int + """ + return self._updated_ms + + @updated_ms.setter + def updated_ms(self, updated_ms): + """Sets the updated_ms of this Anomaly. + + updateMs for this anomaly # noqa: E501 + + :param updated_ms: The updated_ms of this Anomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and updated_ms is None: + raise ValueError("Invalid value for `updated_ms`, must not be `None`") # noqa: E501 + + self._updated_ms = updated_ms + + @property + def updater_id(self): + """Gets the updater_id of this Anomaly. # noqa: E501 + + + :return: The updater_id of this Anomaly. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this Anomaly. + + + :param updater_id: The updater_id of this Anomaly. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(Anomaly, 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, Anomaly): + 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, Anomaly): + return True + + return self.to_dict() != other.to_dict() 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 00000000..088600b7 --- /dev/null +++ b/wavefront_api_client/models/api_token_model.py @@ -0,0 +1,326 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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", "CSP_USER_ACCOUNT", "CSP_AUTHORIZED_USER_ACCOUNT", "CSP_SERVICE_ACCOUNT", "CSP_AUTHORIZED_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/app_dynamics_configuration.py b/wavefront_api_client/models/app_dynamics_configuration.py new file mode 100644 index 00000000..d8208e39 --- /dev/null +++ b/wavefront_api_client/models/app_dynamics_configuration.py @@ -0,0 +1,436 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AppDynamicsConfiguration(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 = { + 'app_filter_regex': 'list[str]', + 'controller_name': 'str', + 'enable_app_infra_metrics': 'bool', + 'enable_backend_metrics': 'bool', + 'enable_business_trx_metrics': 'bool', + 'enable_error_metrics': 'bool', + 'enable_individual_node_metrics': 'bool', + 'enable_overall_perf_metrics': 'bool', + 'enable_rollup': 'bool', + 'enable_service_endpoint_metrics': 'bool', + 'encrypted_password': 'str', + 'user_name': 'str' + } + + attribute_map = { + 'app_filter_regex': 'appFilterRegex', + 'controller_name': 'controllerName', + 'enable_app_infra_metrics': 'enableAppInfraMetrics', + 'enable_backend_metrics': 'enableBackendMetrics', + 'enable_business_trx_metrics': 'enableBusinessTrxMetrics', + 'enable_error_metrics': 'enableErrorMetrics', + 'enable_individual_node_metrics': 'enableIndividualNodeMetrics', + 'enable_overall_perf_metrics': 'enableOverallPerfMetrics', + 'enable_rollup': 'enableRollup', + 'enable_service_endpoint_metrics': 'enableServiceEndpointMetrics', + 'encrypted_password': 'encryptedPassword', + 'user_name': 'userName' + } + + def __init__(self, app_filter_regex=None, controller_name=None, enable_app_infra_metrics=None, enable_backend_metrics=None, enable_business_trx_metrics=None, enable_error_metrics=None, enable_individual_node_metrics=None, enable_overall_perf_metrics=None, enable_rollup=None, enable_service_endpoint_metrics=None, encrypted_password=None, user_name=None, _configuration=None): # noqa: E501 + """AppDynamicsConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._app_filter_regex = None + self._controller_name = None + self._enable_app_infra_metrics = None + self._enable_backend_metrics = None + self._enable_business_trx_metrics = None + self._enable_error_metrics = None + self._enable_individual_node_metrics = None + self._enable_overall_perf_metrics = None + self._enable_rollup = None + self._enable_service_endpoint_metrics = None + self._encrypted_password = None + self._user_name = None + self.discriminator = None + + if app_filter_regex is not None: + self.app_filter_regex = app_filter_regex + self.controller_name = controller_name + if enable_app_infra_metrics is not None: + self.enable_app_infra_metrics = enable_app_infra_metrics + if enable_backend_metrics is not None: + self.enable_backend_metrics = enable_backend_metrics + if enable_business_trx_metrics is not None: + self.enable_business_trx_metrics = enable_business_trx_metrics + if enable_error_metrics is not None: + self.enable_error_metrics = enable_error_metrics + if enable_individual_node_metrics is not None: + self.enable_individual_node_metrics = enable_individual_node_metrics + if enable_overall_perf_metrics is not None: + self.enable_overall_perf_metrics = enable_overall_perf_metrics + if enable_rollup is not None: + self.enable_rollup = enable_rollup + if enable_service_endpoint_metrics is not None: + self.enable_service_endpoint_metrics = enable_service_endpoint_metrics + self.encrypted_password = encrypted_password + self.user_name = user_name + + @property + def app_filter_regex(self): + """Gets the app_filter_regex of this AppDynamicsConfiguration. # noqa: E501 + + List of regular expressions that a application name must match (case-insensitively) in order to be ingested. # noqa: E501 + + :return: The app_filter_regex of this AppDynamicsConfiguration. # noqa: E501 + :rtype: list[str] + """ + return self._app_filter_regex + + @app_filter_regex.setter + def app_filter_regex(self, app_filter_regex): + """Sets the app_filter_regex of this AppDynamicsConfiguration. + + List of regular expressions that a application name must match (case-insensitively) in order to be ingested. # noqa: E501 + + :param app_filter_regex: The app_filter_regex of this AppDynamicsConfiguration. # noqa: E501 + :type: list[str] + """ + + self._app_filter_regex = app_filter_regex + + @property + def controller_name(self): + """Gets the controller_name of this AppDynamicsConfiguration. # noqa: E501 + + Name of the SaaS controller. # noqa: E501 + + :return: The controller_name of this AppDynamicsConfiguration. # noqa: E501 + :rtype: str + """ + return self._controller_name + + @controller_name.setter + def controller_name(self, controller_name): + """Sets the controller_name of this AppDynamicsConfiguration. + + Name of the SaaS controller. # noqa: E501 + + :param controller_name: The controller_name of this AppDynamicsConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and controller_name is None: + raise ValueError("Invalid value for `controller_name`, must not be `None`") # noqa: E501 + + self._controller_name = controller_name + + @property + def enable_app_infra_metrics(self): + """Gets the enable_app_infra_metrics of this AppDynamicsConfiguration. # noqa: E501 + + Boolean flag to control Application Infrastructure metric injection. # noqa: E501 + + :return: The enable_app_infra_metrics of this AppDynamicsConfiguration. # noqa: E501 + :rtype: bool + """ + return self._enable_app_infra_metrics + + @enable_app_infra_metrics.setter + def enable_app_infra_metrics(self, enable_app_infra_metrics): + """Sets the enable_app_infra_metrics of this AppDynamicsConfiguration. + + Boolean flag to control Application Infrastructure metric injection. # noqa: E501 + + :param enable_app_infra_metrics: The enable_app_infra_metrics of this AppDynamicsConfiguration. # noqa: E501 + :type: bool + """ + + self._enable_app_infra_metrics = enable_app_infra_metrics + + @property + def enable_backend_metrics(self): + """Gets the enable_backend_metrics of this AppDynamicsConfiguration. # noqa: E501 + + Boolean flag to control Backend metric injection. # noqa: E501 + + :return: The enable_backend_metrics of this AppDynamicsConfiguration. # noqa: E501 + :rtype: bool + """ + return self._enable_backend_metrics + + @enable_backend_metrics.setter + def enable_backend_metrics(self, enable_backend_metrics): + """Sets the enable_backend_metrics of this AppDynamicsConfiguration. + + Boolean flag to control Backend metric injection. # noqa: E501 + + :param enable_backend_metrics: The enable_backend_metrics of this AppDynamicsConfiguration. # noqa: E501 + :type: bool + """ + + self._enable_backend_metrics = enable_backend_metrics + + @property + def enable_business_trx_metrics(self): + """Gets the enable_business_trx_metrics of this AppDynamicsConfiguration. # noqa: E501 + + Boolean flag to control Business Transaction metric injection. # noqa: E501 + + :return: The enable_business_trx_metrics of this AppDynamicsConfiguration. # noqa: E501 + :rtype: bool + """ + return self._enable_business_trx_metrics + + @enable_business_trx_metrics.setter + def enable_business_trx_metrics(self, enable_business_trx_metrics): + """Sets the enable_business_trx_metrics of this AppDynamicsConfiguration. + + Boolean flag to control Business Transaction metric injection. # noqa: E501 + + :param enable_business_trx_metrics: The enable_business_trx_metrics of this AppDynamicsConfiguration. # noqa: E501 + :type: bool + """ + + self._enable_business_trx_metrics = enable_business_trx_metrics + + @property + def enable_error_metrics(self): + """Gets the enable_error_metrics of this AppDynamicsConfiguration. # noqa: E501 + + Boolean flag to control Error metric injection. # noqa: E501 + + :return: The enable_error_metrics of this AppDynamicsConfiguration. # noqa: E501 + :rtype: bool + """ + return self._enable_error_metrics + + @enable_error_metrics.setter + def enable_error_metrics(self, enable_error_metrics): + """Sets the enable_error_metrics of this AppDynamicsConfiguration. + + Boolean flag to control Error metric injection. # noqa: E501 + + :param enable_error_metrics: The enable_error_metrics of this AppDynamicsConfiguration. # noqa: E501 + :type: bool + """ + + self._enable_error_metrics = enable_error_metrics + + @property + def enable_individual_node_metrics(self): + """Gets the enable_individual_node_metrics of this AppDynamicsConfiguration. # noqa: E501 + + Boolean flag to control Individual Node metric injection. # noqa: E501 + + :return: The enable_individual_node_metrics of this AppDynamicsConfiguration. # noqa: E501 + :rtype: bool + """ + return self._enable_individual_node_metrics + + @enable_individual_node_metrics.setter + def enable_individual_node_metrics(self, enable_individual_node_metrics): + """Sets the enable_individual_node_metrics of this AppDynamicsConfiguration. + + Boolean flag to control Individual Node metric injection. # noqa: E501 + + :param enable_individual_node_metrics: The enable_individual_node_metrics of this AppDynamicsConfiguration. # noqa: E501 + :type: bool + """ + + self._enable_individual_node_metrics = enable_individual_node_metrics + + @property + def enable_overall_perf_metrics(self): + """Gets the enable_overall_perf_metrics of this AppDynamicsConfiguration. # noqa: E501 + + Boolean flag to control Overall Performance metric injection. # noqa: E501 + + :return: The enable_overall_perf_metrics of this AppDynamicsConfiguration. # noqa: E501 + :rtype: bool + """ + return self._enable_overall_perf_metrics + + @enable_overall_perf_metrics.setter + def enable_overall_perf_metrics(self, enable_overall_perf_metrics): + """Sets the enable_overall_perf_metrics of this AppDynamicsConfiguration. + + Boolean flag to control Overall Performance metric injection. # noqa: E501 + + :param enable_overall_perf_metrics: The enable_overall_perf_metrics of this AppDynamicsConfiguration. # noqa: E501 + :type: bool + """ + + self._enable_overall_perf_metrics = enable_overall_perf_metrics + + @property + def enable_rollup(self): + """Gets the enable_rollup of this AppDynamicsConfiguration. # noqa: E501 + + Set this to 'false' to get separate results for all values within the time range, by default it is 'true'. # noqa: E501 + + :return: The enable_rollup of this AppDynamicsConfiguration. # noqa: E501 + :rtype: bool + """ + return self._enable_rollup + + @enable_rollup.setter + def enable_rollup(self, enable_rollup): + """Sets the enable_rollup of this AppDynamicsConfiguration. + + Set this to 'false' to get separate results for all values within the time range, by default it is 'true'. # noqa: E501 + + :param enable_rollup: The enable_rollup of this AppDynamicsConfiguration. # noqa: E501 + :type: bool + """ + + self._enable_rollup = enable_rollup + + @property + def enable_service_endpoint_metrics(self): + """Gets the enable_service_endpoint_metrics of this AppDynamicsConfiguration. # noqa: E501 + + Boolean flag to control Service End point metric injection. # noqa: E501 + + :return: The enable_service_endpoint_metrics of this AppDynamicsConfiguration. # noqa: E501 + :rtype: bool + """ + return self._enable_service_endpoint_metrics + + @enable_service_endpoint_metrics.setter + def enable_service_endpoint_metrics(self, enable_service_endpoint_metrics): + """Sets the enable_service_endpoint_metrics of this AppDynamicsConfiguration. + + Boolean flag to control Service End point metric injection. # noqa: E501 + + :param enable_service_endpoint_metrics: The enable_service_endpoint_metrics of this AppDynamicsConfiguration. # noqa: E501 + :type: bool + """ + + self._enable_service_endpoint_metrics = enable_service_endpoint_metrics + + @property + def encrypted_password(self): + """Gets the encrypted_password of this AppDynamicsConfiguration. # noqa: E501 + + Password for AppDynamics user. # noqa: E501 + + :return: The encrypted_password of this AppDynamicsConfiguration. # noqa: E501 + :rtype: str + """ + return self._encrypted_password + + @encrypted_password.setter + def encrypted_password(self, encrypted_password): + """Sets the encrypted_password of this AppDynamicsConfiguration. + + Password for AppDynamics user. # noqa: E501 + + :param encrypted_password: The encrypted_password of this AppDynamicsConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and encrypted_password is None: + raise ValueError("Invalid value for `encrypted_password`, must not be `None`") # noqa: E501 + + self._encrypted_password = encrypted_password + + @property + def user_name(self): + """Gets the user_name of this AppDynamicsConfiguration. # noqa: E501 + + Username is combination of userName and the account name. # noqa: E501 + + :return: The user_name of this AppDynamicsConfiguration. # noqa: E501 + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this AppDynamicsConfiguration. + + Username is combination of userName and the account name. # noqa: E501 + + :param user_name: The user_name of this AppDynamicsConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and user_name is None: + raise ValueError("Invalid value for `user_name`, must not be `None`") # noqa: E501 + + self._user_name = user_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(AppDynamicsConfiguration, 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, AppDynamicsConfiguration): + 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, AppDynamicsConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/app_search_filter.py b/wavefront_api_client/models/app_search_filter.py new file mode 100644 index 00000000..c548e6bd --- /dev/null +++ b/wavefront_api_client/models/app_search_filter.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AppSearchFilter(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 = { + 'filter_type': 'str', + 'values': 'AppSearchFilterValue' + } + + attribute_map = { + 'filter_type': 'filterType', + 'values': 'values' + } + + def __init__(self, filter_type=None, values=None, _configuration=None): # noqa: E501 + """AppSearchFilter - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._filter_type = None + self._values = None + self.discriminator = None + + if filter_type is not None: + self.filter_type = filter_type + if values is not None: + self.values = values + + @property + def filter_type(self): + """Gets the filter_type of this AppSearchFilter. # noqa: E501 + + + :return: The filter_type of this AppSearchFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this AppSearchFilter. + + + :param filter_type: The filter_type of this AppSearchFilter. # noqa: E501 + :type: str + """ + allowed_values = ["OPERATION", "TAG", "RAW_TAG", "SPAN_LOG", "DURATION", "SPAN_DURATION", "LIMIT", "ERROR", "TRACE_ID", "SOURCE"] # noqa: E501 + if (self._configuration.client_side_validation and + filter_type not in allowed_values): + raise ValueError( + "Invalid value for `filter_type` ({0}), must be one of {1}" # noqa: E501 + .format(filter_type, allowed_values) + ) + + self._filter_type = filter_type + + @property + def values(self): + """Gets the values of this AppSearchFilter. # noqa: E501 + + + :return: The values of this AppSearchFilter. # noqa: E501 + :rtype: AppSearchFilterValue + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this AppSearchFilter. + + + :param values: The values of this AppSearchFilter. # noqa: E501 + :type: AppSearchFilterValue + """ + + self._values = values + + 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(AppSearchFilter, 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, AppSearchFilter): + 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, AppSearchFilter): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/app_search_filter_value.py b/wavefront_api_client/models/app_search_filter_value.py new file mode 100644 index 00000000..1c6e7698 --- /dev/null +++ b/wavefront_api_client/models/app_search_filter_value.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AppSearchFilterValue(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 = { + 'array_value': 'list[str]', + 'logical_value': 'list[list[str]]', + 'string_value': 'str' + } + + attribute_map = { + 'array_value': 'arrayValue', + 'logical_value': 'logicalValue', + 'string_value': 'stringValue' + } + + def __init__(self, array_value=None, logical_value=None, string_value=None, _configuration=None): # noqa: E501 + """AppSearchFilterValue - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._array_value = None + self._logical_value = None + self._string_value = None + self.discriminator = None + + if array_value is not None: + self.array_value = array_value + if logical_value is not None: + self.logical_value = logical_value + if string_value is not None: + self.string_value = string_value + + @property + def array_value(self): + """Gets the array_value of this AppSearchFilterValue. # noqa: E501 + + + :return: The array_value of this AppSearchFilterValue. # noqa: E501 + :rtype: list[str] + """ + return self._array_value + + @array_value.setter + def array_value(self, array_value): + """Sets the array_value of this AppSearchFilterValue. + + + :param array_value: The array_value of this AppSearchFilterValue. # noqa: E501 + :type: list[str] + """ + + self._array_value = array_value + + @property + def logical_value(self): + """Gets the logical_value of this AppSearchFilterValue. # noqa: E501 + + + :return: The logical_value of this AppSearchFilterValue. # noqa: E501 + :rtype: list[list[str]] + """ + return self._logical_value + + @logical_value.setter + def logical_value(self, logical_value): + """Sets the logical_value of this AppSearchFilterValue. + + + :param logical_value: The logical_value of this AppSearchFilterValue. # noqa: E501 + :type: list[list[str]] + """ + + self._logical_value = logical_value + + @property + def string_value(self): + """Gets the string_value of this AppSearchFilterValue. # noqa: E501 + + + :return: The string_value of this AppSearchFilterValue. # noqa: E501 + :rtype: str + """ + return self._string_value + + @string_value.setter + def string_value(self, string_value): + """Sets the string_value of this AppSearchFilterValue. + + + :param string_value: The string_value of this AppSearchFilterValue. # noqa: E501 + :type: str + """ + + self._string_value = string_value + + 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(AppSearchFilterValue, 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, AppSearchFilterValue): + 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, AppSearchFilterValue): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/app_search_filters.py b/wavefront_api_client/models/app_search_filters.py new file mode 100644 index 00000000..f90b7a8e --- /dev/null +++ b/wavefront_api_client/models/app_search_filters.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 AppSearchFilters(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 = { + 'filters': 'list[AppSearchFilter]', + 'query': 'str' + } + + attribute_map = { + 'filters': 'filters', + 'query': 'query' + } + + def __init__(self, filters=None, query=None, _configuration=None): # noqa: E501 + """AppSearchFilters - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._filters = None + self._query = None + self.discriminator = None + + if filters is not None: + self.filters = filters + if query is not None: + self.query = query + + @property + def filters(self): + """Gets the filters of this AppSearchFilters. # noqa: E501 + + + :return: The filters of this AppSearchFilters. # noqa: E501 + :rtype: list[AppSearchFilter] + """ + return self._filters + + @filters.setter + def filters(self, filters): + """Sets the filters of this AppSearchFilters. + + + :param filters: The filters of this AppSearchFilters. # noqa: E501 + :type: list[AppSearchFilter] + """ + + self._filters = filters + + @property + def query(self): + """Gets the query of this AppSearchFilters. # noqa: E501 + + + :return: The query of this AppSearchFilters. # noqa: E501 + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this AppSearchFilters. + + + :param query: The query of this AppSearchFilters. # noqa: E501 + :type: str + """ + + self._query = query + + 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(AppSearchFilters, 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, AppSearchFilters): + 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, AppSearchFilters): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/aws_base_credentials.py b/wavefront_api_client/models/aws_base_credentials.py index 6b11dd9c..51e1bd92 100644 --- a/wavefront_api_client/models/aws_base_credentials.py +++ b/wavefront_api_client/models/aws_base_credentials.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class AWSBaseCredentials(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,49 +33,27 @@ class AWSBaseCredentials(object): and the value is json key in definition. """ swagger_types = { - 'role_arn': 'str', - 'external_id': 'str' + 'external_id': 'str', + 'role_arn': 'str' } attribute_map = { - 'role_arn': 'roleArn', - 'external_id': 'externalId' + 'external_id': 'externalId', + 'role_arn': 'roleArn' } - def __init__(self, role_arn=None, external_id=None): # noqa: E501 + def __init__(self, external_id=None, role_arn=None, _configuration=None): # noqa: E501 """AWSBaseCredentials - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._role_arn = None self._external_id = None + self._role_arn = None self.discriminator = None - self.role_arn = role_arn self.external_id = external_id - - @property - def role_arn(self): - """Gets the role_arn of this AWSBaseCredentials. # noqa: E501 - - The Role ARN that the customer has created in AWS IAM to allow access to Wavefront # noqa: E501 - - :return: The role_arn of this AWSBaseCredentials. # noqa: E501 - :rtype: str - """ - return self._role_arn - - @role_arn.setter - def role_arn(self, role_arn): - """Sets the role_arn of this AWSBaseCredentials. - - The Role ARN that the customer has created in AWS IAM to allow access to Wavefront # noqa: E501 - - :param role_arn: The role_arn of this AWSBaseCredentials. # noqa: E501 - :type: str - """ - if role_arn is None: - raise ValueError("Invalid value for `role_arn`, must not be `None`") # noqa: E501 - - self._role_arn = role_arn + self.role_arn = role_arn @property def external_id(self): @@ -95,11 +75,36 @@ def external_id(self, external_id): :param external_id: The external_id of this AWSBaseCredentials. # noqa: E501 :type: str """ - if external_id is None: + if self._configuration.client_side_validation and external_id is None: raise ValueError("Invalid value for `external_id`, must not be `None`") # noqa: E501 self._external_id = external_id + @property + def role_arn(self): + """Gets the role_arn of this AWSBaseCredentials. # noqa: E501 + + The Role ARN that the customer has created in AWS IAM to allow access to Tanzu Observability # noqa: E501 + + :return: The role_arn of this AWSBaseCredentials. # noqa: E501 + :rtype: str + """ + return self._role_arn + + @role_arn.setter + def role_arn(self, role_arn): + """Sets the role_arn of this AWSBaseCredentials. + + The Role ARN that the customer has created in AWS IAM to allow access to Tanzu Observability # noqa: E501 + + :param role_arn: The role_arn of this AWSBaseCredentials. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and role_arn is None: + raise ValueError("Invalid value for `role_arn`, must not be `None`") # noqa: E501 + + self._role_arn = role_arn + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -121,6 +126,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AWSBaseCredentials, dict): + for key, value in self.items(): + result[key] = value return result @@ -137,8 +145,11 @@ def __eq__(self, other): if not isinstance(other, AWSBaseCredentials): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AWSBaseCredentials): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/azure_activity_log_configuration.py b/wavefront_api_client/models/azure_activity_log_configuration.py index 488a5d26..25a15c2e 100644 --- a/wavefront_api_client/models/azure_activity_log_configuration.py +++ b/wavefront_api_client/models/azure_activity_log_configuration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.azure_base_credentials import AzureBaseCredentials # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class AzureActivityLogConfiguration(object): @@ -42,8 +42,11 @@ class AzureActivityLogConfiguration(object): 'category_filter': 'categoryFilter' } - def __init__(self, base_credentials=None, category_filter=None): # noqa: E501 + def __init__(self, base_credentials=None, category_filter=None, _configuration=None): # noqa: E501 """AzureActivityLogConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._base_credentials = None self._category_filter = None @@ -96,7 +99,8 @@ def category_filter(self, category_filter): :type: list[str] """ allowed_values = ["ADMINISTRATIVE", "SERVICEHEALTH", "ALERT", "AUTOSCALE", "SECURITY"] # noqa: E501 - if not set(category_filter).issubset(set(allowed_values)): + if (self._configuration.client_side_validation and + not set(category_filter).issubset(set(allowed_values))): # noqa: E501 raise ValueError( "Invalid values for `category_filter` [{0}], must be a subset of [{1}]" # noqa: E501 .format(", ".join(map(str, set(category_filter) - set(allowed_values))), # noqa: E501 @@ -126,6 +130,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AzureActivityLogConfiguration, dict): + for key, value in self.items(): + result[key] = value return result @@ -142,8 +149,11 @@ def __eq__(self, other): if not isinstance(other, AzureActivityLogConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureActivityLogConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/azure_base_credentials.py b/wavefront_api_client/models/azure_base_credentials.py index c0e72e2e..4a3660b5 100644 --- a/wavefront_api_client/models/azure_base_credentials.py +++ b/wavefront_api_client/models/azure_base_credentials.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class AzureBaseCredentials(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -32,27 +34,30 @@ class AzureBaseCredentials(object): """ swagger_types = { 'client_id': 'str', - 'tenant': 'str', - 'client_secret': 'str' + 'client_secret': 'str', + 'tenant': 'str' } attribute_map = { 'client_id': 'clientId', - 'tenant': 'tenant', - 'client_secret': 'clientSecret' + 'client_secret': 'clientSecret', + 'tenant': 'tenant' } - def __init__(self, client_id=None, tenant=None, client_secret=None): # noqa: E501 + def __init__(self, client_id=None, client_secret=None, tenant=None, _configuration=None): # noqa: E501 """AzureBaseCredentials - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._client_id = None - self._tenant = None self._client_secret = None + self._tenant = None self.discriminator = None self.client_id = client_id - self.tenant = tenant self.client_secret = client_secret + self.tenant = tenant @property def client_id(self): @@ -74,36 +79,11 @@ def client_id(self, client_id): :param client_id: The client_id of this AzureBaseCredentials. # noqa: E501 :type: str """ - if client_id is None: + if self._configuration.client_side_validation and client_id is None: raise ValueError("Invalid value for `client_id`, must not be `None`") # noqa: E501 self._client_id = client_id - @property - def tenant(self): - """Gets the tenant of this AzureBaseCredentials. # noqa: E501 - - Tenant Id for an Azure service account within your project. # noqa: E501 - - :return: The tenant of this AzureBaseCredentials. # noqa: E501 - :rtype: str - """ - return self._tenant - - @tenant.setter - def tenant(self, tenant): - """Sets the tenant of this AzureBaseCredentials. - - Tenant Id for an Azure service account within your project. # noqa: E501 - - :param tenant: The tenant of this AzureBaseCredentials. # noqa: E501 - :type: str - """ - if tenant is None: - raise ValueError("Invalid value for `tenant`, must not be `None`") # noqa: E501 - - self._tenant = tenant - @property def client_secret(self): """Gets the client_secret of this AzureBaseCredentials. # noqa: E501 @@ -124,11 +104,36 @@ def client_secret(self, client_secret): :param client_secret: The client_secret of this AzureBaseCredentials. # noqa: E501 :type: str """ - if client_secret is None: + if self._configuration.client_side_validation and client_secret is None: raise ValueError("Invalid value for `client_secret`, must not be `None`") # noqa: E501 self._client_secret = client_secret + @property + def tenant(self): + """Gets the tenant of this AzureBaseCredentials. # noqa: E501 + + Tenant Id for an Azure service account within your project. # noqa: E501 + + :return: The tenant of this AzureBaseCredentials. # noqa: E501 + :rtype: str + """ + return self._tenant + + @tenant.setter + def tenant(self, tenant): + """Sets the tenant of this AzureBaseCredentials. + + Tenant Id for an Azure service account within your project. # noqa: E501 + + :param tenant: The tenant of this AzureBaseCredentials. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and tenant is None: + raise ValueError("Invalid value for `tenant`, must not be `None`") # noqa: E501 + + self._tenant = tenant + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -150,6 +155,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AzureBaseCredentials, dict): + for key, value in self.items(): + result[key] = value return result @@ -166,8 +174,11 @@ def __eq__(self, other): if not isinstance(other, AzureBaseCredentials): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureBaseCredentials): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/azure_configuration.py b/wavefront_api_client/models/azure_configuration.py index b98715cc..fb59f1f4 100644 --- a/wavefront_api_client/models/azure_configuration.py +++ b/wavefront_api_client/models/azure_configuration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.azure_base_credentials import AzureBaseCredentials # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class AzureConfiguration(object): @@ -34,33 +34,36 @@ class AzureConfiguration(object): """ swagger_types = { 'base_credentials': 'AzureBaseCredentials', - 'metric_filter_regex': 'str', 'category_filter': 'list[str]', + 'metric_filter_regex': 'str', 'resource_group_filter': 'list[str]' } attribute_map = { 'base_credentials': 'baseCredentials', - 'metric_filter_regex': 'metricFilterRegex', 'category_filter': 'categoryFilter', + 'metric_filter_regex': 'metricFilterRegex', 'resource_group_filter': 'resourceGroupFilter' } - def __init__(self, base_credentials=None, metric_filter_regex=None, category_filter=None, resource_group_filter=None): # noqa: E501 + def __init__(self, base_credentials=None, category_filter=None, metric_filter_regex=None, resource_group_filter=None, _configuration=None): # noqa: E501 """AzureConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._base_credentials = None - self._metric_filter_regex = None self._category_filter = None + self._metric_filter_regex = None self._resource_group_filter = None self.discriminator = None if base_credentials is not None: self.base_credentials = base_credentials - if metric_filter_regex is not None: - self.metric_filter_regex = metric_filter_regex if category_filter is not None: self.category_filter = category_filter + if metric_filter_regex is not None: + self.metric_filter_regex = metric_filter_regex if resource_group_filter is not None: self.resource_group_filter = resource_group_filter @@ -85,29 +88,6 @@ def base_credentials(self, base_credentials): self._base_credentials = base_credentials - @property - def metric_filter_regex(self): - """Gets the metric_filter_regex of this AzureConfiguration. # noqa: E501 - - A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 - - :return: The metric_filter_regex of this AzureConfiguration. # noqa: E501 - :rtype: str - """ - return self._metric_filter_regex - - @metric_filter_regex.setter - def metric_filter_regex(self, metric_filter_regex): - """Sets the metric_filter_regex of this AzureConfiguration. - - A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 - - :param metric_filter_regex: The metric_filter_regex of this AzureConfiguration. # noqa: E501 - :type: str - """ - - self._metric_filter_regex = metric_filter_regex - @property def category_filter(self): """Gets the category_filter of this AzureConfiguration. # noqa: E501 @@ -131,6 +111,29 @@ def category_filter(self, category_filter): self._category_filter = category_filter + @property + def metric_filter_regex(self): + """Gets the metric_filter_regex of this AzureConfiguration. # noqa: E501 + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :return: The metric_filter_regex of this AzureConfiguration. # noqa: E501 + :rtype: str + """ + return self._metric_filter_regex + + @metric_filter_regex.setter + def metric_filter_regex(self, metric_filter_regex): + """Sets the metric_filter_regex of this AzureConfiguration. + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :param metric_filter_regex: The metric_filter_regex of this AzureConfiguration. # noqa: E501 + :type: str + """ + + self._metric_filter_regex = metric_filter_regex + @property def resource_group_filter(self): """Gets the resource_group_filter of this AzureConfiguration. # noqa: E501 @@ -175,6 +178,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AzureConfiguration, dict): + for key, value in self.items(): + result[key] = value return result @@ -191,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, AzureConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/chart.py b/wavefront_api_client/models/chart.py index ff740f4f..2f9ec06e 100644 --- a/wavefront_api_client/models/chart.py +++ b/wavefront_api_client/models/chart.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,9 +16,7 @@ import six -from wavefront_api_client.models.chart_settings import ChartSettings # noqa: F401,E501 -from wavefront_api_client.models.chart_source_query import ChartSourceQuery # noqa: F401,E501 -from wavefront_api_client.models.json_node import JsonNode # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class Chart(object): @@ -35,188 +33,215 @@ class Chart(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'description': 'str', - 'sources': 'list[ChartSourceQuery]', - 'include_obsolete_metrics': 'bool', - 'no_default_events': 'bool', + 'anomaly_detection_on': 'bool', + 'anomaly_sample_size': 'str', + 'anomaly_severity': 'str', + 'anomaly_type': 'str', 'base': 'int', - 'units': 'str', 'chart_attributes': 'JsonNode', - 'interpolate_points': 'bool', 'chart_settings': 'ChartSettings', - 'summarization': 'str' + 'description': 'str', + 'display_confidence_bounds': 'bool', + 'filter_out_non_anomalies': 'bool', + 'include_obsolete_metrics': 'bool', + 'interpolate_points': 'bool', + 'name': 'str', + 'no_default_events': 'bool', + 'sources': 'list[ChartSourceQuery]', + 'summarization': 'str', + 'units': 'str' } attribute_map = { - 'name': 'name', - 'description': 'description', - 'sources': 'sources', - 'include_obsolete_metrics': 'includeObsoleteMetrics', - 'no_default_events': 'noDefaultEvents', + 'anomaly_detection_on': 'anomalyDetectionOn', + 'anomaly_sample_size': 'anomalySampleSize', + 'anomaly_severity': 'anomalySeverity', + 'anomaly_type': 'anomalyType', 'base': 'base', - 'units': 'units', 'chart_attributes': 'chartAttributes', - 'interpolate_points': 'interpolatePoints', 'chart_settings': 'chartSettings', - 'summarization': 'summarization' + 'description': 'description', + 'display_confidence_bounds': 'displayConfidenceBounds', + 'filter_out_non_anomalies': 'filterOutNonAnomalies', + 'include_obsolete_metrics': 'includeObsoleteMetrics', + 'interpolate_points': 'interpolatePoints', + 'name': 'name', + 'no_default_events': 'noDefaultEvents', + 'sources': 'sources', + 'summarization': 'summarization', + 'units': 'units' } - def __init__(self, name=None, description=None, sources=None, include_obsolete_metrics=None, no_default_events=None, base=None, units=None, chart_attributes=None, interpolate_points=None, chart_settings=None, summarization=None): # noqa: E501 + def __init__(self, anomaly_detection_on=None, anomaly_sample_size=None, anomaly_severity=None, anomaly_type=None, base=None, chart_attributes=None, chart_settings=None, description=None, display_confidence_bounds=None, filter_out_non_anomalies=None, include_obsolete_metrics=None, interpolate_points=None, name=None, no_default_events=None, sources=None, summarization=None, units=None, _configuration=None): # noqa: E501 """Chart - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._description = None - self._sources = None - self._include_obsolete_metrics = None - self._no_default_events = None + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._anomaly_detection_on = None + self._anomaly_sample_size = None + self._anomaly_severity = None + self._anomaly_type = None self._base = None - self._units = None self._chart_attributes = None - self._interpolate_points = None self._chart_settings = None + self._description = None + self._display_confidence_bounds = None + self._filter_out_non_anomalies = None + self._include_obsolete_metrics = None + self._interpolate_points = None + self._name = None + self._no_default_events = None + self._sources = None self._summarization = None + self._units = None self.discriminator = None - self.name = name - if description is not None: - self.description = description - self.sources = sources - if include_obsolete_metrics is not None: - self.include_obsolete_metrics = include_obsolete_metrics - if no_default_events is not None: - self.no_default_events = no_default_events + if anomaly_detection_on is not None: + self.anomaly_detection_on = anomaly_detection_on + if anomaly_sample_size is not None: + self.anomaly_sample_size = anomaly_sample_size + if anomaly_severity is not None: + self.anomaly_severity = anomaly_severity + if anomaly_type is not None: + self.anomaly_type = anomaly_type if base is not None: self.base = base - if units is not None: - self.units = units if chart_attributes is not None: self.chart_attributes = chart_attributes - if interpolate_points is not None: - self.interpolate_points = interpolate_points if chart_settings is not None: self.chart_settings = chart_settings + if description is not None: + self.description = description + if display_confidence_bounds is not None: + self.display_confidence_bounds = display_confidence_bounds + if filter_out_non_anomalies is not None: + self.filter_out_non_anomalies = filter_out_non_anomalies + if include_obsolete_metrics is not None: + self.include_obsolete_metrics = include_obsolete_metrics + if interpolate_points is not None: + self.interpolate_points = interpolate_points + self.name = name + if no_default_events is not None: + self.no_default_events = no_default_events + self.sources = sources if summarization is not None: self.summarization = summarization + if units is not None: + self.units = units @property - def name(self): - """Gets the name of this Chart. # noqa: E501 + def anomaly_detection_on(self): + """Gets the anomaly_detection_on of this Chart. # noqa: E501 - Name of the source # noqa: E501 + Whether anomaly detection is on or of, default false # noqa: E501 - :return: The name of this Chart. # noqa: E501 - :rtype: str + :return: The anomaly_detection_on of this Chart. # noqa: E501 + :rtype: bool """ - return self._name + return self._anomaly_detection_on - @name.setter - def name(self, name): - """Sets the name of this Chart. + @anomaly_detection_on.setter + def anomaly_detection_on(self, anomaly_detection_on): + """Sets the anomaly_detection_on of this Chart. - Name of the source # noqa: E501 + Whether anomaly detection is on or of, default false # noqa: E501 - :param name: The name of this Chart. # noqa: E501 - :type: str + :param anomaly_detection_on: The anomaly_detection_on of this Chart. # noqa: E501 + :type: bool """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._anomaly_detection_on = anomaly_detection_on @property - def description(self): - """Gets the description of this Chart. # noqa: E501 + def anomaly_sample_size(self): + """Gets the anomaly_sample_size of this Chart. # noqa: E501 - Description of the chart # noqa: E501 + The amount of historical data to use for anomaly detection baselining # noqa: E501 - :return: The description of this Chart. # noqa: E501 + :return: The anomaly_sample_size of this Chart. # noqa: E501 :rtype: str """ - return self._description + return self._anomaly_sample_size - @description.setter - def description(self, description): - """Sets the description of this Chart. + @anomaly_sample_size.setter + def anomaly_sample_size(self, anomaly_sample_size): + """Sets the anomaly_sample_size of this Chart. - Description of the chart # noqa: E501 + The amount of historical data to use for anomaly detection baselining # noqa: E501 - :param description: The description of this Chart. # noqa: E501 + :param anomaly_sample_size: The anomaly_sample_size of this Chart. # noqa: E501 :type: str """ + allowed_values = ["2", "8", "35"] # noqa: E501 + if (self._configuration.client_side_validation and + anomaly_sample_size not in allowed_values): + raise ValueError( + "Invalid value for `anomaly_sample_size` ({0}), must be one of {1}" # noqa: E501 + .format(anomaly_sample_size, allowed_values) + ) - self._description = description - - @property - def sources(self): - """Gets the sources of this Chart. # noqa: E501 - - Query expression to plot on the chart # noqa: E501 - - :return: The sources of this Chart. # noqa: E501 - :rtype: list[ChartSourceQuery] - """ - return self._sources - - @sources.setter - def sources(self, sources): - """Sets the sources of this Chart. - - Query expression to plot on the chart # noqa: E501 - - :param sources: The sources of this Chart. # noqa: E501 - :type: list[ChartSourceQuery] - """ - if sources is None: - raise ValueError("Invalid value for `sources`, must not be `None`") # noqa: E501 - - self._sources = sources + self._anomaly_sample_size = anomaly_sample_size @property - def include_obsolete_metrics(self): - """Gets the include_obsolete_metrics of this Chart. # noqa: E501 + def anomaly_severity(self): + """Gets the anomaly_severity of this Chart. # noqa: E501 - Whether to show obsolete metrics. Default: false # noqa: E501 + Anomaly Severity. Default medium # noqa: E501 - :return: The include_obsolete_metrics of this Chart. # noqa: E501 - :rtype: bool + :return: The anomaly_severity of this Chart. # noqa: E501 + :rtype: str """ - return self._include_obsolete_metrics + return self._anomaly_severity - @include_obsolete_metrics.setter - def include_obsolete_metrics(self, include_obsolete_metrics): - """Sets the include_obsolete_metrics of this Chart. + @anomaly_severity.setter + def anomaly_severity(self, anomaly_severity): + """Sets the anomaly_severity of this Chart. - Whether to show obsolete metrics. Default: false # noqa: E501 + Anomaly Severity. Default medium # noqa: E501 - :param include_obsolete_metrics: The include_obsolete_metrics of this Chart. # noqa: E501 - :type: bool + :param anomaly_severity: The anomaly_severity of this Chart. # noqa: E501 + :type: str """ + allowed_values = ["low", "medium", "high"] # noqa: E501 + if (self._configuration.client_side_validation and + anomaly_severity not in allowed_values): + raise ValueError( + "Invalid value for `anomaly_severity` ({0}), must be one of {1}" # noqa: E501 + .format(anomaly_severity, allowed_values) + ) - self._include_obsolete_metrics = include_obsolete_metrics + self._anomaly_severity = anomaly_severity @property - def no_default_events(self): - """Gets the no_default_events of this Chart. # noqa: E501 + def anomaly_type(self): + """Gets the anomaly_type of this Chart. # noqa: E501 - Whether to hide events related to the sources in the charts produced. Default false (i.e. shows events) # noqa: E501 + Anomaly Type. Default both # noqa: E501 - :return: The no_default_events of this Chart. # noqa: E501 - :rtype: bool + :return: The anomaly_type of this Chart. # noqa: E501 + :rtype: str """ - return self._no_default_events + return self._anomaly_type - @no_default_events.setter - def no_default_events(self, no_default_events): - """Sets the no_default_events of this Chart. + @anomaly_type.setter + def anomaly_type(self, anomaly_type): + """Sets the anomaly_type of this Chart. - Whether to hide events related to the sources in the charts produced. Default false (i.e. shows events) # noqa: E501 + Anomaly Type. Default both # noqa: E501 - :param no_default_events: The no_default_events of this Chart. # noqa: E501 - :type: bool + :param anomaly_type: The anomaly_type of this Chart. # noqa: E501 + :type: str """ + allowed_values = ["both", "low", "high"] # noqa: E501 + if (self._configuration.client_side_validation and + anomaly_type not in allowed_values): + raise ValueError( + "Invalid value for `anomaly_type` ({0}), must be one of {1}" # noqa: E501 + .format(anomaly_type, allowed_values) + ) - self._no_default_events = no_default_events + self._anomaly_type = anomaly_type @property def base(self): @@ -241,29 +266,6 @@ def base(self, base): self._base = base - @property - def units(self): - """Gets the units of this Chart. # noqa: E501 - - String to label the units of the chart on the Y-axis # noqa: E501 - - :return: The units of this Chart. # noqa: E501 - :rtype: str - """ - return self._units - - @units.setter - def units(self, units): - """Sets the units of this Chart. - - String to label the units of the chart on the Y-axis # noqa: E501 - - :param units: The units of this Chart. # noqa: E501 - :type: str - """ - - self._units = units - @property def chart_attributes(self): """Gets the chart_attributes of this Chart. # noqa: E501 @@ -287,6 +289,119 @@ def chart_attributes(self, chart_attributes): self._chart_attributes = chart_attributes + @property + def chart_settings(self): + """Gets the chart_settings of this Chart. # noqa: E501 + + + :return: The chart_settings of this Chart. # noqa: E501 + :rtype: ChartSettings + """ + return self._chart_settings + + @chart_settings.setter + def chart_settings(self, chart_settings): + """Sets the chart_settings of this Chart. + + + :param chart_settings: The chart_settings of this Chart. # noqa: E501 + :type: ChartSettings + """ + + self._chart_settings = chart_settings + + @property + def description(self): + """Gets the description of this Chart. # noqa: E501 + + Description of the chart # noqa: E501 + + :return: The description of this Chart. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Chart. + + Description of the chart # noqa: E501 + + :param description: The description of this Chart. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def display_confidence_bounds(self): + """Gets the display_confidence_bounds of this Chart. # noqa: E501 + + Whether to show confidence bounds. Default false # noqa: E501 + + :return: The display_confidence_bounds of this Chart. # noqa: E501 + :rtype: bool + """ + return self._display_confidence_bounds + + @display_confidence_bounds.setter + def display_confidence_bounds(self, display_confidence_bounds): + """Sets the display_confidence_bounds of this Chart. + + Whether to show confidence bounds. Default false # noqa: E501 + + :param display_confidence_bounds: The display_confidence_bounds of this Chart. # noqa: E501 + :type: bool + """ + + self._display_confidence_bounds = display_confidence_bounds + + @property + def filter_out_non_anomalies(self): + """Gets the filter_out_non_anomalies of this Chart. # noqa: E501 + + Whether to filter out non anomalies. Default false # noqa: E501 + + :return: The filter_out_non_anomalies of this Chart. # noqa: E501 + :rtype: bool + """ + return self._filter_out_non_anomalies + + @filter_out_non_anomalies.setter + def filter_out_non_anomalies(self, filter_out_non_anomalies): + """Sets the filter_out_non_anomalies of this Chart. + + Whether to filter out non anomalies. Default false # noqa: E501 + + :param filter_out_non_anomalies: The filter_out_non_anomalies of this Chart. # noqa: E501 + :type: bool + """ + + self._filter_out_non_anomalies = filter_out_non_anomalies + + @property + def include_obsolete_metrics(self): + """Gets the include_obsolete_metrics of this Chart. # noqa: E501 + + Whether to show obsolete metrics. Default: false # noqa: E501 + + :return: The include_obsolete_metrics of this Chart. # noqa: E501 + :rtype: bool + """ + return self._include_obsolete_metrics + + @include_obsolete_metrics.setter + def include_obsolete_metrics(self, include_obsolete_metrics): + """Sets the include_obsolete_metrics of this Chart. + + Whether to show obsolete metrics. Default: false # noqa: E501 + + :param include_obsolete_metrics: The include_obsolete_metrics of this Chart. # noqa: E501 + :type: bool + """ + + self._include_obsolete_metrics = include_obsolete_metrics + @property def interpolate_points(self): """Gets the interpolate_points of this Chart. # noqa: E501 @@ -311,25 +426,77 @@ def interpolate_points(self, interpolate_points): self._interpolate_points = interpolate_points @property - def chart_settings(self): - """Gets the chart_settings of this Chart. # noqa: E501 + def name(self): + """Gets the name of this Chart. # noqa: E501 + Name of the source # noqa: E501 - :return: The chart_settings of this Chart. # noqa: E501 - :rtype: ChartSettings + :return: The name of this Chart. # noqa: E501 + :rtype: str """ - return self._chart_settings + return self._name - @chart_settings.setter - def chart_settings(self, chart_settings): - """Sets the chart_settings of this Chart. + @name.setter + def name(self, name): + """Sets the name of this Chart. + Name of the source # noqa: E501 - :param chart_settings: The chart_settings of this Chart. # noqa: E501 - :type: ChartSettings + :param name: The name of this Chart. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._chart_settings = chart_settings + self._name = name + + @property + def no_default_events(self): + """Gets the no_default_events of this Chart. # noqa: E501 + + Whether to hide events related to the sources in the charts produced. Default false (i.e. shows events) # noqa: E501 + + :return: The no_default_events of this Chart. # noqa: E501 + :rtype: bool + """ + return self._no_default_events + + @no_default_events.setter + def no_default_events(self, no_default_events): + """Sets the no_default_events of this Chart. + + Whether to hide events related to the sources in the charts produced. Default false (i.e. shows events) # noqa: E501 + + :param no_default_events: The no_default_events of this Chart. # noqa: E501 + :type: bool + """ + + self._no_default_events = no_default_events + + @property + def sources(self): + """Gets the sources of this Chart. # noqa: E501 + + Query expression to plot on the chart # noqa: E501 + + :return: The sources of this Chart. # noqa: E501 + :rtype: list[ChartSourceQuery] + """ + return self._sources + + @sources.setter + def sources(self, sources): + """Sets the sources of this Chart. + + Query expression to plot on the chart # noqa: E501 + + :param sources: The sources of this Chart. # noqa: E501 + :type: list[ChartSourceQuery] + """ + if self._configuration.client_side_validation and sources is None: + raise ValueError("Invalid value for `sources`, must not be `None`") # noqa: E501 + + self._sources = sources @property def summarization(self): @@ -352,7 +519,8 @@ def summarization(self, summarization): :type: str """ allowed_values = ["MEAN", "MEDIAN", "MIN", "MAX", "SUM", "COUNT", "LAST", "FIRST"] # noqa: E501 - if summarization not in allowed_values: + if (self._configuration.client_side_validation and + summarization not in allowed_values): raise ValueError( "Invalid value for `summarization` ({0}), must be one of {1}" # noqa: E501 .format(summarization, allowed_values) @@ -360,6 +528,29 @@ def summarization(self, summarization): self._summarization = summarization + @property + def units(self): + """Gets the units of this Chart. # noqa: E501 + + String to label the units of the chart on the Y-axis # noqa: E501 + + :return: The units of this Chart. # noqa: E501 + :rtype: str + """ + return self._units + + @units.setter + def units(self, units): + """Sets the units of this Chart. + + String to label the units of the chart on the Y-axis # noqa: E501 + + :param units: The units of this Chart. # noqa: E501 + :type: str + """ + + self._units = units + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -381,6 +572,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Chart, dict): + for key, value in self.items(): + result[key] = value return result @@ -397,8 +591,11 @@ def __eq__(self, other): if not isinstance(other, Chart): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Chart): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/chart_settings.py b/wavefront_api_client/models/chart_settings.py index 0ae4911e..df9ed239 100644 --- a/wavefront_api_client/models/chart_settings.py +++ b/wavefront_api_client/models/chart_settings.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class ChartSettings(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,377 +33,448 @@ class ChartSettings(object): and the value is json key in definition. """ swagger_types = { - 'type': 'str', - 'min': 'float', - 'max': 'float', + 'auto_column_tags': 'bool', + 'chart_default_color': 'str', + 'column_tags': 'str', + 'custom_tags': 'list[str]', + 'default_sort_column': 'str', 'expected_data_spacing': 'int', - 'plain_markdown_content': 'str', + 'fixed_legend_display_stats': 'list[str]', 'fixed_legend_enabled': 'bool', + 'fixed_legend_filter_field': 'str', + 'fixed_legend_filter_limit': 'int', + 'fixed_legend_filter_sort': 'str', + 'fixed_legend_hide_label': 'bool', + 'fixed_legend_position': 'str', + 'fixed_legend_show_metric_name': 'bool', + 'fixed_legend_show_source_name': 'bool', 'fixed_legend_use_raw_stats': 'bool', + 'group_by_source': 'bool', + 'invert_dynamic_legend_hover_control': 'bool', 'line_type': 'str', - 'stack_type': 'str', - 'windowing': 'str', - 'window_size': 'int', + 'logs_table': 'LogsTable', + 'max': 'float', + 'min': 'float', + 'num_tags': 'int', + 'plain_markdown_content': 'str', 'show_hosts': 'bool', 'show_labels': 'bool', 'show_raw_values': 'bool', - 'auto_column_tags': 'bool', - 'column_tags': 'str', - 'tag_mode': 'str', - 'num_tags': 'int', - 'custom_tags': 'list[str]', - 'group_by_source': 'bool', + 'show_value_column': 'bool', 'sort_values_descending': 'bool', - 'y1_max': 'float', - 'y1_min': 'float', - 'y1_units': 'str', - 'y0_scale_si_by1024': 'bool', - 'y1_scale_si_by1024': 'bool', - 'y0_unit_autoscaling': 'bool', - 'y1_unit_autoscaling': 'bool', - 'invert_dynamic_legend_hover_control': 'bool', - 'fixed_legend_position': 'str', - 'fixed_legend_display_stats': 'list[str]', - 'fixed_legend_filter_sort': 'str', - 'fixed_legend_filter_limit': 'int', - 'fixed_legend_filter_field': 'str', - 'fixed_legend_hide_label': 'bool', - 'xmax': 'float', - 'xmin': 'float', - 'ymax': 'float', - 'ymin': 'float', - 'time_based_coloring': 'bool', - 'sparkline_display_value_type': 'str', + 'sparkline_decimal_precision': 'int', 'sparkline_display_color': 'str', - 'sparkline_display_vertical_position': 'str', - 'sparkline_display_horizontal_position': 'str', 'sparkline_display_font_size': 'str', - 'sparkline_display_prefix': 'str', + 'sparkline_display_horizontal_position': 'str', 'sparkline_display_postfix': 'str', - 'sparkline_size': 'str', - 'sparkline_line_color': 'str', + 'sparkline_display_prefix': 'str', + 'sparkline_display_value_type': 'str', + 'sparkline_display_vertical_position': 'str', 'sparkline_fill_color': 'str', + 'sparkline_line_color': 'str', + 'sparkline_size': 'str', + 'sparkline_value_color_map_apply_to': 'str', 'sparkline_value_color_map_colors': 'list[str]', - 'sparkline_value_color_map_values_v2': 'list[float]', 'sparkline_value_color_map_values': 'list[int]', - 'sparkline_value_color_map_apply_to': 'str', - 'sparkline_decimal_precision': 'int', + 'sparkline_value_color_map_values_v2': 'list[float]', 'sparkline_value_text_map_text': 'list[str]', - 'sparkline_value_text_map_thresholds': 'list[float]' + 'sparkline_value_text_map_thresholds': 'list[float]', + 'stack_type': 'str', + 'tag_mode': 'str', + 'time_based_coloring': 'bool', + 'type': 'str', + 'window_size': 'int', + 'windowing': 'str', + 'xmax': 'float', + 'xmin': 'float', + 'y0_scale_siby1024': 'bool', + 'y0_unit_autoscaling': 'bool', + 'y1_max': 'float', + 'y1_min': 'float', + 'y1_scale_siby1024': 'bool', + 'y1_unit_autoscaling': 'bool', + 'y1_units': 'str', + 'ymax': 'float', + 'ymin': 'float' } attribute_map = { - 'type': 'type', - 'min': 'min', - 'max': 'max', + 'auto_column_tags': 'autoColumnTags', + 'chart_default_color': 'chartDefaultColor', + 'column_tags': 'columnTags', + 'custom_tags': 'customTags', + 'default_sort_column': 'defaultSortColumn', 'expected_data_spacing': 'expectedDataSpacing', - 'plain_markdown_content': 'plainMarkdownContent', + 'fixed_legend_display_stats': 'fixedLegendDisplayStats', 'fixed_legend_enabled': 'fixedLegendEnabled', + 'fixed_legend_filter_field': 'fixedLegendFilterField', + 'fixed_legend_filter_limit': 'fixedLegendFilterLimit', + 'fixed_legend_filter_sort': 'fixedLegendFilterSort', + 'fixed_legend_hide_label': 'fixedLegendHideLabel', + 'fixed_legend_position': 'fixedLegendPosition', + 'fixed_legend_show_metric_name': 'fixedLegendShowMetricName', + 'fixed_legend_show_source_name': 'fixedLegendShowSourceName', 'fixed_legend_use_raw_stats': 'fixedLegendUseRawStats', + 'group_by_source': 'groupBySource', + 'invert_dynamic_legend_hover_control': 'invertDynamicLegendHoverControl', 'line_type': 'lineType', - 'stack_type': 'stackType', - 'windowing': 'windowing', - 'window_size': 'windowSize', + 'logs_table': 'logsTable', + 'max': 'max', + 'min': 'min', + 'num_tags': 'numTags', + 'plain_markdown_content': 'plainMarkdownContent', 'show_hosts': 'showHosts', 'show_labels': 'showLabels', 'show_raw_values': 'showRawValues', - 'auto_column_tags': 'autoColumnTags', - 'column_tags': 'columnTags', - 'tag_mode': 'tagMode', - 'num_tags': 'numTags', - 'custom_tags': 'customTags', - 'group_by_source': 'groupBySource', + 'show_value_column': 'showValueColumn', 'sort_values_descending': 'sortValuesDescending', - 'y1_max': 'y1Max', - 'y1_min': 'y1Min', - 'y1_units': 'y1Units', - 'y0_scale_si_by1024': 'y0ScaleSIBy1024', - 'y1_scale_si_by1024': 'y1ScaleSIBy1024', - 'y0_unit_autoscaling': 'y0UnitAutoscaling', - 'y1_unit_autoscaling': 'y1UnitAutoscaling', - 'invert_dynamic_legend_hover_control': 'invertDynamicLegendHoverControl', - 'fixed_legend_position': 'fixedLegendPosition', - 'fixed_legend_display_stats': 'fixedLegendDisplayStats', - 'fixed_legend_filter_sort': 'fixedLegendFilterSort', - 'fixed_legend_filter_limit': 'fixedLegendFilterLimit', - 'fixed_legend_filter_field': 'fixedLegendFilterField', - 'fixed_legend_hide_label': 'fixedLegendHideLabel', - 'xmax': 'xmax', - 'xmin': 'xmin', - 'ymax': 'ymax', - 'ymin': 'ymin', - 'time_based_coloring': 'timeBasedColoring', - 'sparkline_display_value_type': 'sparklineDisplayValueType', + 'sparkline_decimal_precision': 'sparklineDecimalPrecision', 'sparkline_display_color': 'sparklineDisplayColor', - 'sparkline_display_vertical_position': 'sparklineDisplayVerticalPosition', - 'sparkline_display_horizontal_position': 'sparklineDisplayHorizontalPosition', 'sparkline_display_font_size': 'sparklineDisplayFontSize', - 'sparkline_display_prefix': 'sparklineDisplayPrefix', + 'sparkline_display_horizontal_position': 'sparklineDisplayHorizontalPosition', 'sparkline_display_postfix': 'sparklineDisplayPostfix', - 'sparkline_size': 'sparklineSize', - 'sparkline_line_color': 'sparklineLineColor', + 'sparkline_display_prefix': 'sparklineDisplayPrefix', + 'sparkline_display_value_type': 'sparklineDisplayValueType', + 'sparkline_display_vertical_position': 'sparklineDisplayVerticalPosition', 'sparkline_fill_color': 'sparklineFillColor', + 'sparkline_line_color': 'sparklineLineColor', + 'sparkline_size': 'sparklineSize', + 'sparkline_value_color_map_apply_to': 'sparklineValueColorMapApplyTo', 'sparkline_value_color_map_colors': 'sparklineValueColorMapColors', - 'sparkline_value_color_map_values_v2': 'sparklineValueColorMapValuesV2', 'sparkline_value_color_map_values': 'sparklineValueColorMapValues', - 'sparkline_value_color_map_apply_to': 'sparklineValueColorMapApplyTo', - 'sparkline_decimal_precision': 'sparklineDecimalPrecision', + 'sparkline_value_color_map_values_v2': 'sparklineValueColorMapValuesV2', 'sparkline_value_text_map_text': 'sparklineValueTextMapText', - 'sparkline_value_text_map_thresholds': 'sparklineValueTextMapThresholds' + 'sparkline_value_text_map_thresholds': 'sparklineValueTextMapThresholds', + 'stack_type': 'stackType', + 'tag_mode': 'tagMode', + 'time_based_coloring': 'timeBasedColoring', + 'type': 'type', + 'window_size': 'windowSize', + 'windowing': 'windowing', + 'xmax': 'xmax', + 'xmin': 'xmin', + 'y0_scale_siby1024': 'y0ScaleSIBy1024', + 'y0_unit_autoscaling': 'y0UnitAutoscaling', + 'y1_max': 'y1Max', + 'y1_min': 'y1Min', + 'y1_scale_siby1024': 'y1ScaleSIBy1024', + 'y1_unit_autoscaling': 'y1UnitAutoscaling', + 'y1_units': 'y1Units', + 'ymax': 'ymax', + 'ymin': 'ymin' } - def __init__(self, type=None, min=None, max=None, expected_data_spacing=None, plain_markdown_content=None, fixed_legend_enabled=None, fixed_legend_use_raw_stats=None, line_type=None, stack_type=None, windowing=None, window_size=None, show_hosts=None, show_labels=None, show_raw_values=None, auto_column_tags=None, column_tags=None, tag_mode=None, num_tags=None, custom_tags=None, group_by_source=None, sort_values_descending=None, y1_max=None, y1_min=None, y1_units=None, y0_scale_si_by1024=None, y1_scale_si_by1024=None, y0_unit_autoscaling=None, y1_unit_autoscaling=None, invert_dynamic_legend_hover_control=None, fixed_legend_position=None, fixed_legend_display_stats=None, fixed_legend_filter_sort=None, fixed_legend_filter_limit=None, fixed_legend_filter_field=None, fixed_legend_hide_label=None, xmax=None, xmin=None, ymax=None, ymin=None, time_based_coloring=None, sparkline_display_value_type=None, sparkline_display_color=None, sparkline_display_vertical_position=None, sparkline_display_horizontal_position=None, sparkline_display_font_size=None, sparkline_display_prefix=None, sparkline_display_postfix=None, sparkline_size=None, sparkline_line_color=None, sparkline_fill_color=None, sparkline_value_color_map_colors=None, sparkline_value_color_map_values_v2=None, sparkline_value_color_map_values=None, sparkline_value_color_map_apply_to=None, sparkline_decimal_precision=None, sparkline_value_text_map_text=None, sparkline_value_text_map_thresholds=None): # noqa: E501 + def __init__(self, auto_column_tags=None, chart_default_color=None, column_tags=None, custom_tags=None, default_sort_column=None, expected_data_spacing=None, fixed_legend_display_stats=None, fixed_legend_enabled=None, fixed_legend_filter_field=None, fixed_legend_filter_limit=None, fixed_legend_filter_sort=None, fixed_legend_hide_label=None, fixed_legend_position=None, fixed_legend_show_metric_name=None, fixed_legend_show_source_name=None, fixed_legend_use_raw_stats=None, group_by_source=None, invert_dynamic_legend_hover_control=None, line_type=None, logs_table=None, max=None, min=None, num_tags=None, plain_markdown_content=None, show_hosts=None, show_labels=None, show_raw_values=None, show_value_column=None, sort_values_descending=None, sparkline_decimal_precision=None, sparkline_display_color=None, sparkline_display_font_size=None, sparkline_display_horizontal_position=None, sparkline_display_postfix=None, sparkline_display_prefix=None, sparkline_display_value_type=None, sparkline_display_vertical_position=None, sparkline_fill_color=None, sparkline_line_color=None, sparkline_size=None, sparkline_value_color_map_apply_to=None, sparkline_value_color_map_colors=None, sparkline_value_color_map_values=None, sparkline_value_color_map_values_v2=None, sparkline_value_text_map_text=None, sparkline_value_text_map_thresholds=None, stack_type=None, tag_mode=None, time_based_coloring=None, type=None, window_size=None, windowing=None, xmax=None, xmin=None, y0_scale_siby1024=None, y0_unit_autoscaling=None, y1_max=None, y1_min=None, y1_scale_siby1024=None, y1_unit_autoscaling=None, y1_units=None, ymax=None, ymin=None, _configuration=None): # noqa: E501 """ChartSettings - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._type = None - self._min = None - self._max = None + self._auto_column_tags = None + self._chart_default_color = None + self._column_tags = None + self._custom_tags = None + self._default_sort_column = None self._expected_data_spacing = None - self._plain_markdown_content = None + self._fixed_legend_display_stats = None self._fixed_legend_enabled = None + self._fixed_legend_filter_field = None + self._fixed_legend_filter_limit = None + self._fixed_legend_filter_sort = None + self._fixed_legend_hide_label = None + self._fixed_legend_position = None + self._fixed_legend_show_metric_name = None + self._fixed_legend_show_source_name = None self._fixed_legend_use_raw_stats = None + self._group_by_source = None + self._invert_dynamic_legend_hover_control = None self._line_type = None - self._stack_type = None - self._windowing = None - self._window_size = None + self._logs_table = None + self._max = None + self._min = None + self._num_tags = None + self._plain_markdown_content = None self._show_hosts = None self._show_labels = None self._show_raw_values = None - self._auto_column_tags = None - self._column_tags = None - self._tag_mode = None - self._num_tags = None - self._custom_tags = None - self._group_by_source = None + self._show_value_column = None self._sort_values_descending = None - self._y1_max = None - self._y1_min = None - self._y1_units = None - self._y0_scale_si_by1024 = None - self._y1_scale_si_by1024 = None - self._y0_unit_autoscaling = None - self._y1_unit_autoscaling = None - self._invert_dynamic_legend_hover_control = None - self._fixed_legend_position = None - self._fixed_legend_display_stats = None - self._fixed_legend_filter_sort = None - self._fixed_legend_filter_limit = None - self._fixed_legend_filter_field = None - self._fixed_legend_hide_label = None - self._xmax = None - self._xmin = None - self._ymax = None - self._ymin = None - self._time_based_coloring = None - self._sparkline_display_value_type = None + self._sparkline_decimal_precision = None self._sparkline_display_color = None - self._sparkline_display_vertical_position = None - self._sparkline_display_horizontal_position = None self._sparkline_display_font_size = None - self._sparkline_display_prefix = None + self._sparkline_display_horizontal_position = None self._sparkline_display_postfix = None - self._sparkline_size = None - self._sparkline_line_color = None + self._sparkline_display_prefix = None + self._sparkline_display_value_type = None + self._sparkline_display_vertical_position = None self._sparkline_fill_color = None + self._sparkline_line_color = None + self._sparkline_size = None + self._sparkline_value_color_map_apply_to = None self._sparkline_value_color_map_colors = None - self._sparkline_value_color_map_values_v2 = None self._sparkline_value_color_map_values = None - self._sparkline_value_color_map_apply_to = None - self._sparkline_decimal_precision = None + self._sparkline_value_color_map_values_v2 = None self._sparkline_value_text_map_text = None self._sparkline_value_text_map_thresholds = None + self._stack_type = None + self._tag_mode = None + self._time_based_coloring = None + self._type = None + self._window_size = None + self._windowing = None + self._xmax = None + self._xmin = None + self._y0_scale_siby1024 = None + self._y0_unit_autoscaling = None + self._y1_max = None + self._y1_min = None + self._y1_scale_siby1024 = None + self._y1_unit_autoscaling = None + self._y1_units = None + self._ymax = None + self._ymin = None self.discriminator = None - self.type = type - if min is not None: - self.min = min - if max is not None: - self.max = max + if auto_column_tags is not None: + self.auto_column_tags = auto_column_tags + if chart_default_color is not None: + self.chart_default_color = chart_default_color + if column_tags is not None: + self.column_tags = column_tags + if custom_tags is not None: + self.custom_tags = custom_tags + if default_sort_column is not None: + self.default_sort_column = default_sort_column if expected_data_spacing is not None: self.expected_data_spacing = expected_data_spacing - if plain_markdown_content is not None: - self.plain_markdown_content = plain_markdown_content + if fixed_legend_display_stats is not None: + self.fixed_legend_display_stats = fixed_legend_display_stats if fixed_legend_enabled is not None: self.fixed_legend_enabled = fixed_legend_enabled + if fixed_legend_filter_field is not None: + self.fixed_legend_filter_field = fixed_legend_filter_field + if fixed_legend_filter_limit is not None: + self.fixed_legend_filter_limit = fixed_legend_filter_limit + if fixed_legend_filter_sort is not None: + self.fixed_legend_filter_sort = fixed_legend_filter_sort + if fixed_legend_hide_label is not None: + self.fixed_legend_hide_label = fixed_legend_hide_label + if fixed_legend_position is not None: + self.fixed_legend_position = fixed_legend_position + if fixed_legend_show_metric_name is not None: + self.fixed_legend_show_metric_name = fixed_legend_show_metric_name + if fixed_legend_show_source_name is not None: + self.fixed_legend_show_source_name = fixed_legend_show_source_name if fixed_legend_use_raw_stats is not None: self.fixed_legend_use_raw_stats = fixed_legend_use_raw_stats + if group_by_source is not None: + self.group_by_source = group_by_source + if invert_dynamic_legend_hover_control is not None: + self.invert_dynamic_legend_hover_control = invert_dynamic_legend_hover_control if line_type is not None: self.line_type = line_type - if stack_type is not None: - self.stack_type = stack_type - if windowing is not None: - self.windowing = windowing - if window_size is not None: - self.window_size = window_size + if logs_table is not None: + self.logs_table = logs_table + if max is not None: + self.max = max + if min is not None: + self.min = min + if num_tags is not None: + self.num_tags = num_tags + if plain_markdown_content is not None: + self.plain_markdown_content = plain_markdown_content if show_hosts is not None: self.show_hosts = show_hosts if show_labels is not None: self.show_labels = show_labels if show_raw_values is not None: self.show_raw_values = show_raw_values - if auto_column_tags is not None: - self.auto_column_tags = auto_column_tags - if column_tags is not None: - self.column_tags = column_tags - if tag_mode is not None: - self.tag_mode = tag_mode - if num_tags is not None: - self.num_tags = num_tags - if custom_tags is not None: - self.custom_tags = custom_tags - if group_by_source is not None: - self.group_by_source = group_by_source + if show_value_column is not None: + self.show_value_column = show_value_column if sort_values_descending is not None: self.sort_values_descending = sort_values_descending - if y1_max is not None: - self.y1_max = y1_max - if y1_min is not None: - self.y1_min = y1_min - if y1_units is not None: - self.y1_units = y1_units - if y0_scale_si_by1024 is not None: - self.y0_scale_si_by1024 = y0_scale_si_by1024 - if y1_scale_si_by1024 is not None: - self.y1_scale_si_by1024 = y1_scale_si_by1024 - if y0_unit_autoscaling is not None: - self.y0_unit_autoscaling = y0_unit_autoscaling - if y1_unit_autoscaling is not None: - self.y1_unit_autoscaling = y1_unit_autoscaling - if invert_dynamic_legend_hover_control is not None: - self.invert_dynamic_legend_hover_control = invert_dynamic_legend_hover_control - if fixed_legend_position is not None: - self.fixed_legend_position = fixed_legend_position - if fixed_legend_display_stats is not None: - self.fixed_legend_display_stats = fixed_legend_display_stats - if fixed_legend_filter_sort is not None: - self.fixed_legend_filter_sort = fixed_legend_filter_sort - if fixed_legend_filter_limit is not None: - self.fixed_legend_filter_limit = fixed_legend_filter_limit - if fixed_legend_filter_field is not None: - self.fixed_legend_filter_field = fixed_legend_filter_field - if fixed_legend_hide_label is not None: - self.fixed_legend_hide_label = fixed_legend_hide_label - if xmax is not None: - self.xmax = xmax - if xmin is not None: - self.xmin = xmin - if ymax is not None: - self.ymax = ymax - if ymin is not None: - self.ymin = ymin - if time_based_coloring is not None: - self.time_based_coloring = time_based_coloring - if sparkline_display_value_type is not None: - self.sparkline_display_value_type = sparkline_display_value_type + if sparkline_decimal_precision is not None: + self.sparkline_decimal_precision = sparkline_decimal_precision if sparkline_display_color is not None: self.sparkline_display_color = sparkline_display_color - if sparkline_display_vertical_position is not None: - self.sparkline_display_vertical_position = sparkline_display_vertical_position - if sparkline_display_horizontal_position is not None: - self.sparkline_display_horizontal_position = sparkline_display_horizontal_position if sparkline_display_font_size is not None: - self.sparkline_display_font_size = sparkline_display_font_size - if sparkline_display_prefix is not None: - self.sparkline_display_prefix = sparkline_display_prefix + self.sparkline_display_font_size = sparkline_display_font_size + if sparkline_display_horizontal_position is not None: + self.sparkline_display_horizontal_position = sparkline_display_horizontal_position if sparkline_display_postfix is not None: self.sparkline_display_postfix = sparkline_display_postfix - if sparkline_size is not None: - self.sparkline_size = sparkline_size - if sparkline_line_color is not None: - self.sparkline_line_color = sparkline_line_color + if sparkline_display_prefix is not None: + self.sparkline_display_prefix = sparkline_display_prefix + if sparkline_display_value_type is not None: + self.sparkline_display_value_type = sparkline_display_value_type + if sparkline_display_vertical_position is not None: + self.sparkline_display_vertical_position = sparkline_display_vertical_position if sparkline_fill_color is not None: self.sparkline_fill_color = sparkline_fill_color + if sparkline_line_color is not None: + self.sparkline_line_color = sparkline_line_color + if sparkline_size is not None: + self.sparkline_size = sparkline_size + if sparkline_value_color_map_apply_to is not None: + self.sparkline_value_color_map_apply_to = sparkline_value_color_map_apply_to if sparkline_value_color_map_colors is not None: self.sparkline_value_color_map_colors = sparkline_value_color_map_colors - if sparkline_value_color_map_values_v2 is not None: - self.sparkline_value_color_map_values_v2 = sparkline_value_color_map_values_v2 if sparkline_value_color_map_values is not None: self.sparkline_value_color_map_values = sparkline_value_color_map_values - if sparkline_value_color_map_apply_to is not None: - self.sparkline_value_color_map_apply_to = sparkline_value_color_map_apply_to - if sparkline_decimal_precision is not None: - self.sparkline_decimal_precision = sparkline_decimal_precision + if sparkline_value_color_map_values_v2 is not None: + self.sparkline_value_color_map_values_v2 = sparkline_value_color_map_values_v2 if sparkline_value_text_map_text is not None: self.sparkline_value_text_map_text = sparkline_value_text_map_text if sparkline_value_text_map_thresholds is not None: self.sparkline_value_text_map_thresholds = sparkline_value_text_map_thresholds + if stack_type is not None: + self.stack_type = stack_type + if tag_mode is not None: + self.tag_mode = tag_mode + if time_based_coloring is not None: + self.time_based_coloring = time_based_coloring + self.type = type + if window_size is not None: + self.window_size = window_size + if windowing is not None: + self.windowing = windowing + if xmax is not None: + self.xmax = xmax + if xmin is not None: + self.xmin = xmin + if y0_scale_siby1024 is not None: + self.y0_scale_siby1024 = y0_scale_siby1024 + if y0_unit_autoscaling is not None: + self.y0_unit_autoscaling = y0_unit_autoscaling + if y1_max is not None: + self.y1_max = y1_max + if y1_min is not None: + self.y1_min = y1_min + if y1_scale_siby1024 is not None: + self.y1_scale_siby1024 = y1_scale_siby1024 + if y1_unit_autoscaling is not None: + self.y1_unit_autoscaling = y1_unit_autoscaling + if y1_units is not None: + self.y1_units = y1_units + if ymax is not None: + self.ymax = ymax + if ymin is not None: + self.ymin = ymin @property - def type(self): - """Gets the type of this ChartSettings. # noqa: E501 + def auto_column_tags(self): + """Gets the auto_column_tags of this ChartSettings. # noqa: E501 - Chart Type. 'line' refers to the Line Plot, 'scatter' to the Point Plot, 'stacked-area' to the Stacked Area plot, 'table' to the Tabular View, 'scatterploy-xy' to Scatter Plot, 'markdown-widget' to the Markdown display, and 'sparkline' to the Single Stat view # noqa: E501 + deprecated # noqa: E501 - :return: The type of this ChartSettings. # noqa: E501 + :return: The auto_column_tags of this ChartSettings. # noqa: E501 + :rtype: bool + """ + return self._auto_column_tags + + @auto_column_tags.setter + def auto_column_tags(self, auto_column_tags): + """Sets the auto_column_tags of this ChartSettings. + + deprecated # noqa: E501 + + :param auto_column_tags: The auto_column_tags of this ChartSettings. # noqa: E501 + :type: bool + """ + + self._auto_column_tags = auto_column_tags + + @property + def chart_default_color(self): + """Gets the chart_default_color of this ChartSettings. # noqa: E501 + + Default color that will be used in any chart rendering. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 + + :return: The chart_default_color of this ChartSettings. # noqa: E501 :rtype: str """ - return self._type + return self._chart_default_color - @type.setter - def type(self, type): - """Sets the type of this ChartSettings. + @chart_default_color.setter + def chart_default_color(self, chart_default_color): + """Sets the chart_default_color of this ChartSettings. - Chart Type. 'line' refers to the Line Plot, 'scatter' to the Point Plot, 'stacked-area' to the Stacked Area plot, 'table' to the Tabular View, 'scatterploy-xy' to Scatter Plot, 'markdown-widget' to the Markdown display, and 'sparkline' to the Single Stat view # noqa: E501 + Default color that will be used in any chart rendering. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 - :param type: The type of this ChartSettings. # noqa: E501 + :param chart_default_color: The chart_default_color of this ChartSettings. # noqa: E501 :type: str """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["line", "scatterplot", "stacked-area", "table", "scatterplot-xy", "markdown-widget", "sparkline"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - self._type = type + self._chart_default_color = chart_default_color @property - def min(self): - """Gets the min of this ChartSettings. # noqa: E501 + def column_tags(self): + """Gets the column_tags of this ChartSettings. # noqa: E501 - Min value of Y-axis. Set to null or leave blank for auto # noqa: E501 + deprecated # noqa: E501 - :return: The min of this ChartSettings. # noqa: E501 - :rtype: float + :return: The column_tags of this ChartSettings. # noqa: E501 + :rtype: str """ - return self._min + return self._column_tags - @min.setter - def min(self, min): - """Sets the min of this ChartSettings. + @column_tags.setter + def column_tags(self, column_tags): + """Sets the column_tags of this ChartSettings. - Min value of Y-axis. Set to null or leave blank for auto # noqa: E501 + deprecated # noqa: E501 - :param min: The min of this ChartSettings. # noqa: E501 - :type: float + :param column_tags: The column_tags of this ChartSettings. # noqa: E501 + :type: str """ - self._min = min + self._column_tags = column_tags @property - def max(self): - """Gets the max of this ChartSettings. # noqa: E501 + def custom_tags(self): + """Gets the custom_tags of this ChartSettings. # noqa: E501 - Max value of Y-axis. Set to null or leave blank for auto # noqa: E501 + For the tabular view, a list of point tags to display when using the \"custom\" tag display mode # noqa: E501 - :return: The max of this ChartSettings. # noqa: E501 - :rtype: float + :return: The custom_tags of this ChartSettings. # noqa: E501 + :rtype: list[str] """ - return self._max + return self._custom_tags - @max.setter - def max(self, max): - """Sets the max of this ChartSettings. + @custom_tags.setter + def custom_tags(self, custom_tags): + """Sets the custom_tags of this ChartSettings. - Max value of Y-axis. Set to null or leave blank for auto # noqa: E501 + For the tabular view, a list of point tags to display when using the \"custom\" tag display mode # noqa: E501 - :param max: The max of this ChartSettings. # noqa: E501 - :type: float + :param custom_tags: The custom_tags of this ChartSettings. # noqa: E501 + :type: list[str] """ - self._max = max + self._custom_tags = custom_tags + + @property + def default_sort_column(self): + """Gets the default_sort_column of this ChartSettings. # noqa: E501 + + For the tabular view, to select column for default sort # noqa: E501 + + :return: The default_sort_column of this ChartSettings. # noqa: E501 + :rtype: str + """ + return self._default_sort_column + + @default_sort_column.setter + def default_sort_column(self, default_sort_column): + """Sets the default_sort_column of this ChartSettings. + + For the tabular view, to select column for default sort # noqa: E501 + + :param default_sort_column: The default_sort_column of this ChartSettings. # noqa: E501 + :type: str + """ + + self._default_sort_column = default_sort_column @property def expected_data_spacing(self): @@ -427,27 +500,27 @@ def expected_data_spacing(self, expected_data_spacing): self._expected_data_spacing = expected_data_spacing @property - def plain_markdown_content(self): - """Gets the plain_markdown_content of this ChartSettings. # noqa: E501 + def fixed_legend_display_stats(self): + """Gets the fixed_legend_display_stats of this ChartSettings. # noqa: E501 - The Markdown content for a Markdown display, in plain text. Use this field instead of `markdownContent`. # noqa: E501 + For a chart with a fixed legend, a list of statistics to display in the legend # noqa: E501 - :return: The plain_markdown_content of this ChartSettings. # noqa: E501 - :rtype: str + :return: The fixed_legend_display_stats of this ChartSettings. # noqa: E501 + :rtype: list[str] """ - return self._plain_markdown_content + return self._fixed_legend_display_stats - @plain_markdown_content.setter - def plain_markdown_content(self, plain_markdown_content): - """Sets the plain_markdown_content of this ChartSettings. + @fixed_legend_display_stats.setter + def fixed_legend_display_stats(self, fixed_legend_display_stats): + """Sets the fixed_legend_display_stats of this ChartSettings. - The Markdown content for a Markdown display, in plain text. Use this field instead of `markdownContent`. # noqa: E501 + For a chart with a fixed legend, a list of statistics to display in the legend # noqa: E501 - :param plain_markdown_content: The plain_markdown_content of this ChartSettings. # noqa: E501 - :type: str + :param fixed_legend_display_stats: The fixed_legend_display_stats of this ChartSettings. # noqa: E501 + :type: list[str] """ - self._plain_markdown_content = plain_markdown_content + self._fixed_legend_display_stats = fixed_legend_display_stats @property def fixed_legend_enabled(self): @@ -458,296 +531,367 @@ def fixed_legend_enabled(self): :return: The fixed_legend_enabled of this ChartSettings. # noqa: E501 :rtype: bool """ - return self._fixed_legend_enabled + return self._fixed_legend_enabled + + @fixed_legend_enabled.setter + def fixed_legend_enabled(self, fixed_legend_enabled): + """Sets the fixed_legend_enabled of this ChartSettings. + + Whether to enable a fixed tabular legend adjacent to the chart # noqa: E501 + + :param fixed_legend_enabled: The fixed_legend_enabled of this ChartSettings. # noqa: E501 + :type: bool + """ + + self._fixed_legend_enabled = fixed_legend_enabled + + @property + def fixed_legend_filter_field(self): + """Gets the fixed_legend_filter_field of this ChartSettings. # noqa: E501 + + Statistic to use for determining whether a series is displayed on the fixed legend # noqa: E501 + + :return: The fixed_legend_filter_field of this ChartSettings. # noqa: E501 + :rtype: str + """ + return self._fixed_legend_filter_field + + @fixed_legend_filter_field.setter + def fixed_legend_filter_field(self, fixed_legend_filter_field): + """Sets the fixed_legend_filter_field of this ChartSettings. + + Statistic to use for determining whether a series is displayed on the fixed legend # noqa: E501 + + :param fixed_legend_filter_field: The fixed_legend_filter_field of this ChartSettings. # noqa: E501 + :type: str + """ + allowed_values = ["CURRENT", "MEAN", "MEDIAN", "SUM", "MIN", "MAX", "COUNT"] # noqa: E501 + if (self._configuration.client_side_validation and + fixed_legend_filter_field not in allowed_values): + raise ValueError( + "Invalid value for `fixed_legend_filter_field` ({0}), must be one of {1}" # noqa: E501 + .format(fixed_legend_filter_field, allowed_values) + ) + + self._fixed_legend_filter_field = fixed_legend_filter_field + + @property + def fixed_legend_filter_limit(self): + """Gets the fixed_legend_filter_limit of this ChartSettings. # noqa: E501 + + Number of series to include in the fixed legend # noqa: E501 + + :return: The fixed_legend_filter_limit of this ChartSettings. # noqa: E501 + :rtype: int + """ + return self._fixed_legend_filter_limit + + @fixed_legend_filter_limit.setter + def fixed_legend_filter_limit(self, fixed_legend_filter_limit): + """Sets the fixed_legend_filter_limit of this ChartSettings. + + Number of series to include in the fixed legend # noqa: E501 + + :param fixed_legend_filter_limit: The fixed_legend_filter_limit of this ChartSettings. # noqa: E501 + :type: int + """ + + self._fixed_legend_filter_limit = fixed_legend_filter_limit + + @property + def fixed_legend_filter_sort(self): + """Gets the fixed_legend_filter_sort of this ChartSettings. # noqa: E501 + + Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend # noqa: E501 + + :return: The fixed_legend_filter_sort of this ChartSettings. # noqa: E501 + :rtype: str + """ + return self._fixed_legend_filter_sort - @fixed_legend_enabled.setter - def fixed_legend_enabled(self, fixed_legend_enabled): - """Sets the fixed_legend_enabled of this ChartSettings. + @fixed_legend_filter_sort.setter + def fixed_legend_filter_sort(self, fixed_legend_filter_sort): + """Sets the fixed_legend_filter_sort of this ChartSettings. - Whether to enable a fixed tabular legend adjacent to the chart # noqa: E501 + Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend # noqa: E501 - :param fixed_legend_enabled: The fixed_legend_enabled of this ChartSettings. # noqa: E501 - :type: bool + :param fixed_legend_filter_sort: The fixed_legend_filter_sort of this ChartSettings. # noqa: E501 + :type: str """ + allowed_values = ["TOP", "BOTTOM"] # noqa: E501 + if (self._configuration.client_side_validation and + fixed_legend_filter_sort not in allowed_values): + raise ValueError( + "Invalid value for `fixed_legend_filter_sort` ({0}), must be one of {1}" # noqa: E501 + .format(fixed_legend_filter_sort, allowed_values) + ) - self._fixed_legend_enabled = fixed_legend_enabled + self._fixed_legend_filter_sort = fixed_legend_filter_sort @property - def fixed_legend_use_raw_stats(self): - """Gets the fixed_legend_use_raw_stats of this ChartSettings. # noqa: E501 + def fixed_legend_hide_label(self): + """Gets the fixed_legend_hide_label of this ChartSettings. # noqa: E501 - If true, the legend uses non-summarized stats instead of summarized # noqa: E501 + deprecated # noqa: E501 - :return: The fixed_legend_use_raw_stats of this ChartSettings. # noqa: E501 + :return: The fixed_legend_hide_label of this ChartSettings. # noqa: E501 :rtype: bool """ - return self._fixed_legend_use_raw_stats + return self._fixed_legend_hide_label - @fixed_legend_use_raw_stats.setter - def fixed_legend_use_raw_stats(self, fixed_legend_use_raw_stats): - """Sets the fixed_legend_use_raw_stats of this ChartSettings. + @fixed_legend_hide_label.setter + def fixed_legend_hide_label(self, fixed_legend_hide_label): + """Sets the fixed_legend_hide_label of this ChartSettings. - If true, the legend uses non-summarized stats instead of summarized # noqa: E501 + deprecated # noqa: E501 - :param fixed_legend_use_raw_stats: The fixed_legend_use_raw_stats of this ChartSettings. # noqa: E501 + :param fixed_legend_hide_label: The fixed_legend_hide_label of this ChartSettings. # noqa: E501 :type: bool """ - self._fixed_legend_use_raw_stats = fixed_legend_use_raw_stats + self._fixed_legend_hide_label = fixed_legend_hide_label @property - def line_type(self): - """Gets the line_type of this ChartSettings. # noqa: E501 + def fixed_legend_position(self): + """Gets the fixed_legend_position of this ChartSettings. # noqa: E501 - Plot interpolation type. linear is default # noqa: E501 + Where the fixed legend should be displayed with respect to the chart # noqa: E501 - :return: The line_type of this ChartSettings. # noqa: E501 + :return: The fixed_legend_position of this ChartSettings. # noqa: E501 :rtype: str """ - return self._line_type + return self._fixed_legend_position - @line_type.setter - def line_type(self, line_type): - """Sets the line_type of this ChartSettings. + @fixed_legend_position.setter + def fixed_legend_position(self, fixed_legend_position): + """Sets the fixed_legend_position of this ChartSettings. - Plot interpolation type. linear is default # noqa: E501 + Where the fixed legend should be displayed with respect to the chart # noqa: E501 - :param line_type: The line_type of this ChartSettings. # noqa: E501 + :param fixed_legend_position: The fixed_legend_position of this ChartSettings. # noqa: E501 :type: str """ - allowed_values = ["linear", "step-before", "step-after", "basis", "cardinal", "monotone"] # noqa: E501 - if line_type not in allowed_values: + allowed_values = ["RIGHT", "TOP", "LEFT", "BOTTOM"] # noqa: E501 + if (self._configuration.client_side_validation and + fixed_legend_position not in allowed_values): raise ValueError( - "Invalid value for `line_type` ({0}), must be one of {1}" # noqa: E501 - .format(line_type, allowed_values) + "Invalid value for `fixed_legend_position` ({0}), must be one of {1}" # noqa: E501 + .format(fixed_legend_position, allowed_values) ) - self._line_type = line_type + self._fixed_legend_position = fixed_legend_position @property - def stack_type(self): - """Gets the stack_type of this ChartSettings. # noqa: E501 + def fixed_legend_show_metric_name(self): + """Gets the fixed_legend_show_metric_name of this ChartSettings. # noqa: E501 - Type of stacked chart (applicable only if chart type is stacked). zero (default) means stacked from y=0. expand means Normalized from 0 to 1. wiggle means Minimize weighted changes. silhouette means to Center the Stream # noqa: E501 + Whether to display Metric Name fixed legend # noqa: E501 - :return: The stack_type of this ChartSettings. # noqa: E501 - :rtype: str + :return: The fixed_legend_show_metric_name of this ChartSettings. # noqa: E501 + :rtype: bool """ - return self._stack_type + return self._fixed_legend_show_metric_name - @stack_type.setter - def stack_type(self, stack_type): - """Sets the stack_type of this ChartSettings. + @fixed_legend_show_metric_name.setter + def fixed_legend_show_metric_name(self, fixed_legend_show_metric_name): + """Sets the fixed_legend_show_metric_name of this ChartSettings. - Type of stacked chart (applicable only if chart type is stacked). zero (default) means stacked from y=0. expand means Normalized from 0 to 1. wiggle means Minimize weighted changes. silhouette means to Center the Stream # noqa: E501 + Whether to display Metric Name fixed legend # noqa: E501 - :param stack_type: The stack_type of this ChartSettings. # noqa: E501 - :type: str + :param fixed_legend_show_metric_name: The fixed_legend_show_metric_name of this ChartSettings. # noqa: E501 + :type: bool """ - allowed_values = ["zero", "expand", "wiggle", "silhouette"] # noqa: E501 - if stack_type not in allowed_values: - raise ValueError( - "Invalid value for `stack_type` ({0}), must be one of {1}" # noqa: E501 - .format(stack_type, allowed_values) - ) - self._stack_type = stack_type + self._fixed_legend_show_metric_name = fixed_legend_show_metric_name @property - def windowing(self): - """Gets the windowing of this ChartSettings. # noqa: E501 + def fixed_legend_show_source_name(self): + """Gets the fixed_legend_show_source_name of this ChartSettings. # noqa: E501 - For the tabular view, whether to use the full time window for the query or the last X minutes # noqa: E501 + Whether to display Source Name fixed legend # noqa: E501 - :return: The windowing of this ChartSettings. # noqa: E501 - :rtype: str + :return: The fixed_legend_show_source_name of this ChartSettings. # noqa: E501 + :rtype: bool """ - return self._windowing + return self._fixed_legend_show_source_name - @windowing.setter - def windowing(self, windowing): - """Sets the windowing of this ChartSettings. + @fixed_legend_show_source_name.setter + def fixed_legend_show_source_name(self, fixed_legend_show_source_name): + """Sets the fixed_legend_show_source_name of this ChartSettings. - For the tabular view, whether to use the full time window for the query or the last X minutes # noqa: E501 + Whether to display Source Name fixed legend # noqa: E501 - :param windowing: The windowing of this ChartSettings. # noqa: E501 - :type: str + :param fixed_legend_show_source_name: The fixed_legend_show_source_name of this ChartSettings. # noqa: E501 + :type: bool """ - allowed_values = ["full", "last"] # noqa: E501 - if windowing not in allowed_values: - raise ValueError( - "Invalid value for `windowing` ({0}), must be one of {1}" # noqa: E501 - .format(windowing, allowed_values) - ) - self._windowing = windowing + self._fixed_legend_show_source_name = fixed_legend_show_source_name @property - def window_size(self): - """Gets the window_size of this ChartSettings. # noqa: E501 + def fixed_legend_use_raw_stats(self): + """Gets the fixed_legend_use_raw_stats of this ChartSettings. # noqa: E501 - Width, in minutes, of the time window to use for \"last\" windowing # noqa: E501 + If true, the legend uses non-summarized stats instead of summarized # noqa: E501 - :return: The window_size of this ChartSettings. # noqa: E501 - :rtype: int + :return: The fixed_legend_use_raw_stats of this ChartSettings. # noqa: E501 + :rtype: bool """ - return self._window_size + return self._fixed_legend_use_raw_stats - @window_size.setter - def window_size(self, window_size): - """Sets the window_size of this ChartSettings. + @fixed_legend_use_raw_stats.setter + def fixed_legend_use_raw_stats(self, fixed_legend_use_raw_stats): + """Sets the fixed_legend_use_raw_stats of this ChartSettings. - Width, in minutes, of the time window to use for \"last\" windowing # noqa: E501 + If true, the legend uses non-summarized stats instead of summarized # noqa: E501 - :param window_size: The window_size of this ChartSettings. # noqa: E501 - :type: int + :param fixed_legend_use_raw_stats: The fixed_legend_use_raw_stats of this ChartSettings. # noqa: E501 + :type: bool """ - self._window_size = window_size + self._fixed_legend_use_raw_stats = fixed_legend_use_raw_stats @property - def show_hosts(self): - """Gets the show_hosts of this ChartSettings. # noqa: E501 + def group_by_source(self): + """Gets the group_by_source of this ChartSettings. # noqa: E501 - For the tabular view, whether to display sources. Default: true # noqa: E501 + For the tabular view, whether to group multi metrics into a single row by a common source. If false, each metric for each source is displayed in its own row. If true, multiple metrics for the same host will be displayed as different columns in the same row # noqa: E501 - :return: The show_hosts of this ChartSettings. # noqa: E501 + :return: The group_by_source of this ChartSettings. # noqa: E501 :rtype: bool """ - return self._show_hosts + return self._group_by_source - @show_hosts.setter - def show_hosts(self, show_hosts): - """Sets the show_hosts of this ChartSettings. + @group_by_source.setter + def group_by_source(self, group_by_source): + """Sets the group_by_source of this ChartSettings. - For the tabular view, whether to display sources. Default: true # noqa: E501 + For the tabular view, whether to group multi metrics into a single row by a common source. If false, each metric for each source is displayed in its own row. If true, multiple metrics for the same host will be displayed as different columns in the same row # noqa: E501 - :param show_hosts: The show_hosts of this ChartSettings. # noqa: E501 + :param group_by_source: The group_by_source of this ChartSettings. # noqa: E501 :type: bool """ - self._show_hosts = show_hosts + self._group_by_source = group_by_source @property - def show_labels(self): - """Gets the show_labels of this ChartSettings. # noqa: E501 + def invert_dynamic_legend_hover_control(self): + """Gets the invert_dynamic_legend_hover_control of this ChartSettings. # noqa: E501 - For the tabular view, whether to display labels. Default: true # noqa: E501 + Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) # noqa: E501 - :return: The show_labels of this ChartSettings. # noqa: E501 + :return: The invert_dynamic_legend_hover_control of this ChartSettings. # noqa: E501 :rtype: bool """ - return self._show_labels + return self._invert_dynamic_legend_hover_control - @show_labels.setter - def show_labels(self, show_labels): - """Sets the show_labels of this ChartSettings. + @invert_dynamic_legend_hover_control.setter + def invert_dynamic_legend_hover_control(self, invert_dynamic_legend_hover_control): + """Sets the invert_dynamic_legend_hover_control of this ChartSettings. - For the tabular view, whether to display labels. Default: true # noqa: E501 + Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) # noqa: E501 - :param show_labels: The show_labels of this ChartSettings. # noqa: E501 + :param invert_dynamic_legend_hover_control: The invert_dynamic_legend_hover_control of this ChartSettings. # noqa: E501 :type: bool """ - self._show_labels = show_labels + self._invert_dynamic_legend_hover_control = invert_dynamic_legend_hover_control @property - def show_raw_values(self): - """Gets the show_raw_values of this ChartSettings. # noqa: E501 + def line_type(self): + """Gets the line_type of this ChartSettings. # noqa: E501 - For the tabular view, whether to display raw values. Default: false # noqa: E501 + Plot interpolation type. linear is default # noqa: E501 - :return: The show_raw_values of this ChartSettings. # noqa: E501 - :rtype: bool + :return: The line_type of this ChartSettings. # noqa: E501 + :rtype: str """ - return self._show_raw_values + return self._line_type - @show_raw_values.setter - def show_raw_values(self, show_raw_values): - """Sets the show_raw_values of this ChartSettings. + @line_type.setter + def line_type(self, line_type): + """Sets the line_type of this ChartSettings. - For the tabular view, whether to display raw values. Default: false # noqa: E501 + Plot interpolation type. linear is default # noqa: E501 - :param show_raw_values: The show_raw_values of this ChartSettings. # noqa: E501 - :type: bool + :param line_type: The line_type of this ChartSettings. # noqa: E501 + :type: str """ + allowed_values = ["linear", "step-before", "step-after", "basis", "cardinal", "monotone"] # noqa: E501 + if (self._configuration.client_side_validation and + line_type not in allowed_values): + raise ValueError( + "Invalid value for `line_type` ({0}), must be one of {1}" # noqa: E501 + .format(line_type, allowed_values) + ) - self._show_raw_values = show_raw_values + self._line_type = line_type @property - def auto_column_tags(self): - """Gets the auto_column_tags of this ChartSettings. # noqa: E501 + def logs_table(self): + """Gets the logs_table of this ChartSettings. # noqa: E501 - deprecated # noqa: E501 - :return: The auto_column_tags of this ChartSettings. # noqa: E501 - :rtype: bool + :return: The logs_table of this ChartSettings. # noqa: E501 + :rtype: LogsTable """ - return self._auto_column_tags + return self._logs_table - @auto_column_tags.setter - def auto_column_tags(self, auto_column_tags): - """Sets the auto_column_tags of this ChartSettings. + @logs_table.setter + def logs_table(self, logs_table): + """Sets the logs_table of this ChartSettings. - deprecated # noqa: E501 - :param auto_column_tags: The auto_column_tags of this ChartSettings. # noqa: E501 - :type: bool + :param logs_table: The logs_table of this ChartSettings. # noqa: E501 + :type: LogsTable """ - self._auto_column_tags = auto_column_tags + self._logs_table = logs_table @property - def column_tags(self): - """Gets the column_tags of this ChartSettings. # noqa: E501 + def max(self): + """Gets the max of this ChartSettings. # noqa: E501 - deprecated # noqa: E501 + Max value of Y-axis. Set to null or leave blank for auto # noqa: E501 - :return: The column_tags of this ChartSettings. # noqa: E501 - :rtype: str + :return: The max of this ChartSettings. # noqa: E501 + :rtype: float """ - return self._column_tags + return self._max - @column_tags.setter - def column_tags(self, column_tags): - """Sets the column_tags of this ChartSettings. + @max.setter + def max(self, max): + """Sets the max of this ChartSettings. - deprecated # noqa: E501 + Max value of Y-axis. Set to null or leave blank for auto # noqa: E501 - :param column_tags: The column_tags of this ChartSettings. # noqa: E501 - :type: str + :param max: The max of this ChartSettings. # noqa: E501 + :type: float """ - self._column_tags = column_tags + self._max = max @property - def tag_mode(self): - """Gets the tag_mode of this ChartSettings. # noqa: E501 + def min(self): + """Gets the min of this ChartSettings. # noqa: E501 - For the tabular view, which mode to use to determine which point tags to display # noqa: E501 + Min value of Y-axis. Set to null or leave blank for auto # noqa: E501 - :return: The tag_mode of this ChartSettings. # noqa: E501 - :rtype: str + :return: The min of this ChartSettings. # noqa: E501 + :rtype: float """ - return self._tag_mode + return self._min - @tag_mode.setter - def tag_mode(self, tag_mode): - """Sets the tag_mode of this ChartSettings. + @min.setter + def min(self, min): + """Sets the min of this ChartSettings. - For the tabular view, which mode to use to determine which point tags to display # noqa: E501 + Min value of Y-axis. Set to null or leave blank for auto # noqa: E501 - :param tag_mode: The tag_mode of this ChartSettings. # noqa: E501 - :type: str + :param min: The min of this ChartSettings. # noqa: E501 + :type: float """ - allowed_values = ["all", "top", "custom"] # noqa: E501 - if tag_mode not in allowed_values: - raise ValueError( - "Invalid value for `tag_mode` ({0}), must be one of {1}" # noqa: E501 - .format(tag_mode, allowed_values) - ) - self._tag_mode = tag_mode + self._min = min @property def num_tags(self): @@ -773,943 +917,982 @@ def num_tags(self, num_tags): self._num_tags = num_tags @property - def custom_tags(self): - """Gets the custom_tags of this ChartSettings. # noqa: E501 + def plain_markdown_content(self): + """Gets the plain_markdown_content of this ChartSettings. # noqa: E501 - For the tabular view, a list of point tags to display when using the \"custom\" tag display mode # noqa: E501 + The Markdown content for a Markdown display, in plain text. Use this field instead of `markdownContent`. # noqa: E501 - :return: The custom_tags of this ChartSettings. # noqa: E501 - :rtype: list[str] + :return: The plain_markdown_content of this ChartSettings. # noqa: E501 + :rtype: str """ - return self._custom_tags + return self._plain_markdown_content - @custom_tags.setter - def custom_tags(self, custom_tags): - """Sets the custom_tags of this ChartSettings. + @plain_markdown_content.setter + def plain_markdown_content(self, plain_markdown_content): + """Sets the plain_markdown_content of this ChartSettings. - For the tabular view, a list of point tags to display when using the \"custom\" tag display mode # noqa: E501 + The Markdown content for a Markdown display, in plain text. Use this field instead of `markdownContent`. # noqa: E501 - :param custom_tags: The custom_tags of this ChartSettings. # noqa: E501 - :type: list[str] + :param plain_markdown_content: The plain_markdown_content of this ChartSettings. # noqa: E501 + :type: str """ - self._custom_tags = custom_tags + self._plain_markdown_content = plain_markdown_content @property - def group_by_source(self): - """Gets the group_by_source of this ChartSettings. # noqa: E501 + def show_hosts(self): + """Gets the show_hosts of this ChartSettings. # noqa: E501 - For the tabular view, whether to group multi metrics into a single row by a common source. If false, each metric for each source is displayed in its own row. If true, multiple metrics for the same host will be displayed as different columns in the same row # noqa: E501 + For the tabular view, whether to display sources. Default: true # noqa: E501 - :return: The group_by_source of this ChartSettings. # noqa: E501 + :return: The show_hosts of this ChartSettings. # noqa: E501 :rtype: bool """ - return self._group_by_source + return self._show_hosts - @group_by_source.setter - def group_by_source(self, group_by_source): - """Sets the group_by_source of this ChartSettings. + @show_hosts.setter + def show_hosts(self, show_hosts): + """Sets the show_hosts of this ChartSettings. - For the tabular view, whether to group multi metrics into a single row by a common source. If false, each metric for each source is displayed in its own row. If true, multiple metrics for the same host will be displayed as different columns in the same row # noqa: E501 + For the tabular view, whether to display sources. Default: true # noqa: E501 - :param group_by_source: The group_by_source of this ChartSettings. # noqa: E501 + :param show_hosts: The show_hosts of this ChartSettings. # noqa: E501 :type: bool """ - self._group_by_source = group_by_source + self._show_hosts = show_hosts @property - def sort_values_descending(self): - """Gets the sort_values_descending of this ChartSettings. # noqa: E501 + def show_labels(self): + """Gets the show_labels of this ChartSettings. # noqa: E501 - For the tabular view, whether to display display values in descending order. Default: false # noqa: E501 + For the tabular view, whether to display labels. Default: true # noqa: E501 - :return: The sort_values_descending of this ChartSettings. # noqa: E501 + :return: The show_labels of this ChartSettings. # noqa: E501 :rtype: bool """ - return self._sort_values_descending + return self._show_labels - @sort_values_descending.setter - def sort_values_descending(self, sort_values_descending): - """Sets the sort_values_descending of this ChartSettings. + @show_labels.setter + def show_labels(self, show_labels): + """Sets the show_labels of this ChartSettings. - For the tabular view, whether to display display values in descending order. Default: false # noqa: E501 + For the tabular view, whether to display labels. Default: true # noqa: E501 - :param sort_values_descending: The sort_values_descending of this ChartSettings. # noqa: E501 + :param show_labels: The show_labels of this ChartSettings. # noqa: E501 :type: bool """ - self._sort_values_descending = sort_values_descending + self._show_labels = show_labels @property - def y1_max(self): - """Gets the y1_max of this ChartSettings. # noqa: E501 + def show_raw_values(self): + """Gets the show_raw_values of this ChartSettings. # noqa: E501 - For plots with multiple Y-axes, max value for right-side Y-axis. Set null for auto # noqa: E501 + For the tabular view, whether to display raw values. Default: false # noqa: E501 - :return: The y1_max of this ChartSettings. # noqa: E501 - :rtype: float + :return: The show_raw_values of this ChartSettings. # noqa: E501 + :rtype: bool """ - return self._y1_max + return self._show_raw_values - @y1_max.setter - def y1_max(self, y1_max): - """Sets the y1_max of this ChartSettings. + @show_raw_values.setter + def show_raw_values(self, show_raw_values): + """Sets the show_raw_values of this ChartSettings. - For plots with multiple Y-axes, max value for right-side Y-axis. Set null for auto # noqa: E501 + For the tabular view, whether to display raw values. Default: false # noqa: E501 - :param y1_max: The y1_max of this ChartSettings. # noqa: E501 - :type: float + :param show_raw_values: The show_raw_values of this ChartSettings. # noqa: E501 + :type: bool """ - self._y1_max = y1_max + self._show_raw_values = show_raw_values @property - def y1_min(self): - """Gets the y1_min of this ChartSettings. # noqa: E501 + def show_value_column(self): + """Gets the show_value_column of this ChartSettings. # noqa: E501 - For plots with multiple Y-axes, min value for right-side Y-axis. Set null for auto # noqa: E501 + For the tabular view, whether to display value column. Default: true # noqa: E501 - :return: The y1_min of this ChartSettings. # noqa: E501 - :rtype: float + :return: The show_value_column of this ChartSettings. # noqa: E501 + :rtype: bool """ - return self._y1_min + return self._show_value_column - @y1_min.setter - def y1_min(self, y1_min): - """Sets the y1_min of this ChartSettings. + @show_value_column.setter + def show_value_column(self, show_value_column): + """Sets the show_value_column of this ChartSettings. - For plots with multiple Y-axes, min value for right-side Y-axis. Set null for auto # noqa: E501 + For the tabular view, whether to display value column. Default: true # noqa: E501 - :param y1_min: The y1_min of this ChartSettings. # noqa: E501 - :type: float + :param show_value_column: The show_value_column of this ChartSettings. # noqa: E501 + :type: bool """ - self._y1_min = y1_min + self._show_value_column = show_value_column @property - def y1_units(self): - """Gets the y1_units of this ChartSettings. # noqa: E501 + def sort_values_descending(self): + """Gets the sort_values_descending of this ChartSettings. # noqa: E501 - For plots with multiple Y-axes, units for right-side Y-axis # noqa: E501 + For the tabular view, whether to display display values in descending order. Default: false # noqa: E501 - :return: The y1_units of this ChartSettings. # noqa: E501 - :rtype: str + :return: The sort_values_descending of this ChartSettings. # noqa: E501 + :rtype: bool """ - return self._y1_units + return self._sort_values_descending - @y1_units.setter - def y1_units(self, y1_units): - """Sets the y1_units of this ChartSettings. + @sort_values_descending.setter + def sort_values_descending(self, sort_values_descending): + """Sets the sort_values_descending of this ChartSettings. - For plots with multiple Y-axes, units for right-side Y-axis # noqa: E501 + For the tabular view, whether to display display values in descending order. Default: false # noqa: E501 - :param y1_units: The y1_units of this ChartSettings. # noqa: E501 - :type: str + :param sort_values_descending: The sort_values_descending of this ChartSettings. # noqa: E501 + :type: bool """ - self._y1_units = y1_units + self._sort_values_descending = sort_values_descending @property - def y0_scale_si_by1024(self): - """Gets the y0_scale_si_by1024 of this ChartSettings. # noqa: E501 + def sparkline_decimal_precision(self): + """Gets the sparkline_decimal_precision of this ChartSettings. # noqa: E501 - Default: false. Whether to scale numerical magnitude labels for left Y-axis by 1024 in the IEC/Binary manner (instead of by 1000 like SI) # noqa: E501 + For the single stat view, the decimal precision of the displayed number # noqa: E501 - :return: The y0_scale_si_by1024 of this ChartSettings. # noqa: E501 - :rtype: bool + :return: The sparkline_decimal_precision of this ChartSettings. # noqa: E501 + :rtype: int """ - return self._y0_scale_si_by1024 + return self._sparkline_decimal_precision - @y0_scale_si_by1024.setter - def y0_scale_si_by1024(self, y0_scale_si_by1024): - """Sets the y0_scale_si_by1024 of this ChartSettings. + @sparkline_decimal_precision.setter + def sparkline_decimal_precision(self, sparkline_decimal_precision): + """Sets the sparkline_decimal_precision of this ChartSettings. - Default: false. Whether to scale numerical magnitude labels for left Y-axis by 1024 in the IEC/Binary manner (instead of by 1000 like SI) # noqa: E501 + For the single stat view, the decimal precision of the displayed number # noqa: E501 - :param y0_scale_si_by1024: The y0_scale_si_by1024 of this ChartSettings. # noqa: E501 - :type: bool + :param sparkline_decimal_precision: The sparkline_decimal_precision of this ChartSettings. # noqa: E501 + :type: int """ - self._y0_scale_si_by1024 = y0_scale_si_by1024 + self._sparkline_decimal_precision = sparkline_decimal_precision @property - def y1_scale_si_by1024(self): - """Gets the y1_scale_si_by1024 of this ChartSettings. # noqa: E501 + def sparkline_display_color(self): + """Gets the sparkline_display_color of this ChartSettings. # noqa: E501 - Default: false. Whether to scale numerical magnitude labels for right Y-axis by 1024 in the IEC/Binary manner (instead of by 1000 like SI) # noqa: E501 + For the single stat view, the color of the displayed text (when not dynamically determined). Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 - :return: The y1_scale_si_by1024 of this ChartSettings. # noqa: E501 - :rtype: bool + :return: The sparkline_display_color of this ChartSettings. # noqa: E501 + :rtype: str + """ + return self._sparkline_display_color + + @sparkline_display_color.setter + def sparkline_display_color(self, sparkline_display_color): + """Sets the sparkline_display_color of this ChartSettings. + + For the single stat view, the color of the displayed text (when not dynamically determined). Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 + + :param sparkline_display_color: The sparkline_display_color of this ChartSettings. # noqa: E501 + :type: str """ - return self._y1_scale_si_by1024 - @y1_scale_si_by1024.setter - def y1_scale_si_by1024(self, y1_scale_si_by1024): - """Sets the y1_scale_si_by1024 of this ChartSettings. + self._sparkline_display_color = sparkline_display_color - Default: false. Whether to scale numerical magnitude labels for right Y-axis by 1024 in the IEC/Binary manner (instead of by 1000 like SI) # noqa: E501 + @property + def sparkline_display_font_size(self): + """Gets the sparkline_display_font_size of this ChartSettings. # noqa: E501 - :param y1_scale_si_by1024: The y1_scale_si_by1024 of this ChartSettings. # noqa: E501 - :type: bool + For the single stat view, the font size of the displayed text, in percent # noqa: E501 + + :return: The sparkline_display_font_size of this ChartSettings. # noqa: E501 + :rtype: str + """ + return self._sparkline_display_font_size + + @sparkline_display_font_size.setter + def sparkline_display_font_size(self, sparkline_display_font_size): + """Sets the sparkline_display_font_size of this ChartSettings. + + For the single stat view, the font size of the displayed text, in percent # noqa: E501 + + :param sparkline_display_font_size: The sparkline_display_font_size of this ChartSettings. # noqa: E501 + :type: str """ - self._y1_scale_si_by1024 = y1_scale_si_by1024 + self._sparkline_display_font_size = sparkline_display_font_size @property - def y0_unit_autoscaling(self): - """Gets the y0_unit_autoscaling of this ChartSettings. # noqa: E501 + def sparkline_display_horizontal_position(self): + """Gets the sparkline_display_horizontal_position of this ChartSettings. # noqa: E501 - Default: false. Whether to automatically adjust magnitude labels and units for the left Y-axis to favor smaller magnitudes and larger units # noqa: E501 + For the single stat view, the horizontal position of the displayed text # noqa: E501 - :return: The y0_unit_autoscaling of this ChartSettings. # noqa: E501 - :rtype: bool + :return: The sparkline_display_horizontal_position of this ChartSettings. # noqa: E501 + :rtype: str """ - return self._y0_unit_autoscaling + return self._sparkline_display_horizontal_position - @y0_unit_autoscaling.setter - def y0_unit_autoscaling(self, y0_unit_autoscaling): - """Sets the y0_unit_autoscaling of this ChartSettings. + @sparkline_display_horizontal_position.setter + def sparkline_display_horizontal_position(self, sparkline_display_horizontal_position): + """Sets the sparkline_display_horizontal_position of this ChartSettings. - Default: false. Whether to automatically adjust magnitude labels and units for the left Y-axis to favor smaller magnitudes and larger units # noqa: E501 + For the single stat view, the horizontal position of the displayed text # noqa: E501 - :param y0_unit_autoscaling: The y0_unit_autoscaling of this ChartSettings. # noqa: E501 - :type: bool + :param sparkline_display_horizontal_position: The sparkline_display_horizontal_position of this ChartSettings. # noqa: E501 + :type: str """ + allowed_values = ["MIDDLE", "LEFT", "RIGHT"] # noqa: E501 + if (self._configuration.client_side_validation and + sparkline_display_horizontal_position not in allowed_values): + raise ValueError( + "Invalid value for `sparkline_display_horizontal_position` ({0}), must be one of {1}" # noqa: E501 + .format(sparkline_display_horizontal_position, allowed_values) + ) - self._y0_unit_autoscaling = y0_unit_autoscaling + self._sparkline_display_horizontal_position = sparkline_display_horizontal_position @property - def y1_unit_autoscaling(self): - """Gets the y1_unit_autoscaling of this ChartSettings. # noqa: E501 + def sparkline_display_postfix(self): + """Gets the sparkline_display_postfix of this ChartSettings. # noqa: E501 - Default: false. Whether to automatically adjust magnitude labels and units for the right Y-axis to favor smaller magnitudes and larger units # noqa: E501 + For the single stat view, a string to append to the displayed text # noqa: E501 - :return: The y1_unit_autoscaling of this ChartSettings. # noqa: E501 - :rtype: bool + :return: The sparkline_display_postfix of this ChartSettings. # noqa: E501 + :rtype: str """ - return self._y1_unit_autoscaling + return self._sparkline_display_postfix - @y1_unit_autoscaling.setter - def y1_unit_autoscaling(self, y1_unit_autoscaling): - """Sets the y1_unit_autoscaling of this ChartSettings. + @sparkline_display_postfix.setter + def sparkline_display_postfix(self, sparkline_display_postfix): + """Sets the sparkline_display_postfix of this ChartSettings. - Default: false. Whether to automatically adjust magnitude labels and units for the right Y-axis to favor smaller magnitudes and larger units # noqa: E501 + For the single stat view, a string to append to the displayed text # noqa: E501 - :param y1_unit_autoscaling: The y1_unit_autoscaling of this ChartSettings. # noqa: E501 - :type: bool + :param sparkline_display_postfix: The sparkline_display_postfix of this ChartSettings. # noqa: E501 + :type: str """ - self._y1_unit_autoscaling = y1_unit_autoscaling + self._sparkline_display_postfix = sparkline_display_postfix @property - def invert_dynamic_legend_hover_control(self): - """Gets the invert_dynamic_legend_hover_control of this ChartSettings. # noqa: E501 + def sparkline_display_prefix(self): + """Gets the sparkline_display_prefix of this ChartSettings. # noqa: E501 - Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) # noqa: E501 + For the single stat view, a string to add before the displayed text # noqa: E501 - :return: The invert_dynamic_legend_hover_control of this ChartSettings. # noqa: E501 - :rtype: bool + :return: The sparkline_display_prefix of this ChartSettings. # noqa: E501 + :rtype: str """ - return self._invert_dynamic_legend_hover_control + return self._sparkline_display_prefix - @invert_dynamic_legend_hover_control.setter - def invert_dynamic_legend_hover_control(self, invert_dynamic_legend_hover_control): - """Sets the invert_dynamic_legend_hover_control of this ChartSettings. + @sparkline_display_prefix.setter + def sparkline_display_prefix(self, sparkline_display_prefix): + """Sets the sparkline_display_prefix of this ChartSettings. - Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) # noqa: E501 + For the single stat view, a string to add before the displayed text # noqa: E501 - :param invert_dynamic_legend_hover_control: The invert_dynamic_legend_hover_control of this ChartSettings. # noqa: E501 - :type: bool + :param sparkline_display_prefix: The sparkline_display_prefix of this ChartSettings. # noqa: E501 + :type: str """ - self._invert_dynamic_legend_hover_control = invert_dynamic_legend_hover_control + self._sparkline_display_prefix = sparkline_display_prefix @property - def fixed_legend_position(self): - """Gets the fixed_legend_position of this ChartSettings. # noqa: E501 + def sparkline_display_value_type(self): + """Gets the sparkline_display_value_type of this ChartSettings. # noqa: E501 - Where the fixed legend should be displayed with respect to the chart # noqa: E501 + For the single stat view, whether to display the name of the query or the value of query # noqa: E501 - :return: The fixed_legend_position of this ChartSettings. # noqa: E501 + :return: The sparkline_display_value_type of this ChartSettings. # noqa: E501 :rtype: str """ - return self._fixed_legend_position + return self._sparkline_display_value_type - @fixed_legend_position.setter - def fixed_legend_position(self, fixed_legend_position): - """Sets the fixed_legend_position of this ChartSettings. + @sparkline_display_value_type.setter + def sparkline_display_value_type(self, sparkline_display_value_type): + """Sets the sparkline_display_value_type of this ChartSettings. - Where the fixed legend should be displayed with respect to the chart # noqa: E501 + For the single stat view, whether to display the name of the query or the value of query # noqa: E501 - :param fixed_legend_position: The fixed_legend_position of this ChartSettings. # noqa: E501 + :param sparkline_display_value_type: The sparkline_display_value_type of this ChartSettings. # noqa: E501 :type: str """ - allowed_values = ["RIGHT", "TOP", "LEFT", "BOTTOM"] # noqa: E501 - if fixed_legend_position not in allowed_values: + allowed_values = ["VALUE", "LABEL"] # noqa: E501 + if (self._configuration.client_side_validation and + sparkline_display_value_type not in allowed_values): raise ValueError( - "Invalid value for `fixed_legend_position` ({0}), must be one of {1}" # noqa: E501 - .format(fixed_legend_position, allowed_values) + "Invalid value for `sparkline_display_value_type` ({0}), must be one of {1}" # noqa: E501 + .format(sparkline_display_value_type, allowed_values) ) - self._fixed_legend_position = fixed_legend_position + self._sparkline_display_value_type = sparkline_display_value_type @property - def fixed_legend_display_stats(self): - """Gets the fixed_legend_display_stats of this ChartSettings. # noqa: E501 + def sparkline_display_vertical_position(self): + """Gets the sparkline_display_vertical_position of this ChartSettings. # noqa: E501 - For a chart with a fixed legend, a list of statistics to display in the legend # noqa: E501 + deprecated # noqa: E501 - :return: The fixed_legend_display_stats of this ChartSettings. # noqa: E501 - :rtype: list[str] + :return: The sparkline_display_vertical_position of this ChartSettings. # noqa: E501 + :rtype: str """ - return self._fixed_legend_display_stats + return self._sparkline_display_vertical_position - @fixed_legend_display_stats.setter - def fixed_legend_display_stats(self, fixed_legend_display_stats): - """Sets the fixed_legend_display_stats of this ChartSettings. + @sparkline_display_vertical_position.setter + def sparkline_display_vertical_position(self, sparkline_display_vertical_position): + """Sets the sparkline_display_vertical_position of this ChartSettings. - For a chart with a fixed legend, a list of statistics to display in the legend # noqa: E501 + deprecated # noqa: E501 - :param fixed_legend_display_stats: The fixed_legend_display_stats of this ChartSettings. # noqa: E501 - :type: list[str] + :param sparkline_display_vertical_position: The sparkline_display_vertical_position of this ChartSettings. # noqa: E501 + :type: str """ - self._fixed_legend_display_stats = fixed_legend_display_stats + self._sparkline_display_vertical_position = sparkline_display_vertical_position @property - def fixed_legend_filter_sort(self): - """Gets the fixed_legend_filter_sort of this ChartSettings. # noqa: E501 + def sparkline_fill_color(self): + """Gets the sparkline_fill_color of this ChartSettings. # noqa: E501 - Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend # noqa: E501 + For the single stat view, the color of the background fill. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 - :return: The fixed_legend_filter_sort of this ChartSettings. # noqa: E501 + :return: The sparkline_fill_color of this ChartSettings. # noqa: E501 :rtype: str """ - return self._fixed_legend_filter_sort + return self._sparkline_fill_color - @fixed_legend_filter_sort.setter - def fixed_legend_filter_sort(self, fixed_legend_filter_sort): - """Sets the fixed_legend_filter_sort of this ChartSettings. + @sparkline_fill_color.setter + def sparkline_fill_color(self, sparkline_fill_color): + """Sets the sparkline_fill_color of this ChartSettings. - Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend # noqa: E501 + For the single stat view, the color of the background fill. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 - :param fixed_legend_filter_sort: The fixed_legend_filter_sort of this ChartSettings. # noqa: E501 + :param sparkline_fill_color: The sparkline_fill_color of this ChartSettings. # noqa: E501 :type: str """ - allowed_values = ["TOP", "BOTTOM"] # noqa: E501 - if fixed_legend_filter_sort not in allowed_values: - raise ValueError( - "Invalid value for `fixed_legend_filter_sort` ({0}), must be one of {1}" # noqa: E501 - .format(fixed_legend_filter_sort, allowed_values) - ) - self._fixed_legend_filter_sort = fixed_legend_filter_sort + self._sparkline_fill_color = sparkline_fill_color @property - def fixed_legend_filter_limit(self): - """Gets the fixed_legend_filter_limit of this ChartSettings. # noqa: E501 + def sparkline_line_color(self): + """Gets the sparkline_line_color of this ChartSettings. # noqa: E501 - Number of series to include in the fixed legend # noqa: E501 + For the single stat view, the color of the line. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 - :return: The fixed_legend_filter_limit of this ChartSettings. # noqa: E501 - :rtype: int + :return: The sparkline_line_color of this ChartSettings. # noqa: E501 + :rtype: str """ - return self._fixed_legend_filter_limit + return self._sparkline_line_color - @fixed_legend_filter_limit.setter - def fixed_legend_filter_limit(self, fixed_legend_filter_limit): - """Sets the fixed_legend_filter_limit of this ChartSettings. + @sparkline_line_color.setter + def sparkline_line_color(self, sparkline_line_color): + """Sets the sparkline_line_color of this ChartSettings. - Number of series to include in the fixed legend # noqa: E501 + For the single stat view, the color of the line. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 - :param fixed_legend_filter_limit: The fixed_legend_filter_limit of this ChartSettings. # noqa: E501 - :type: int + :param sparkline_line_color: The sparkline_line_color of this ChartSettings. # noqa: E501 + :type: str """ - self._fixed_legend_filter_limit = fixed_legend_filter_limit + self._sparkline_line_color = sparkline_line_color @property - def fixed_legend_filter_field(self): - """Gets the fixed_legend_filter_field of this ChartSettings. # noqa: E501 + def sparkline_size(self): + """Gets the sparkline_size of this ChartSettings. # noqa: E501 - Statistic to use for determining whether a series is displayed on the fixed legend # noqa: E501 + For the single stat view, a misleadingly named property. This determines whether the sparkline of the statistic is displayed in the chart BACKGROUND, BOTTOM, or NONE # noqa: E501 - :return: The fixed_legend_filter_field of this ChartSettings. # noqa: E501 + :return: The sparkline_size of this ChartSettings. # noqa: E501 :rtype: str """ - return self._fixed_legend_filter_field + return self._sparkline_size - @fixed_legend_filter_field.setter - def fixed_legend_filter_field(self, fixed_legend_filter_field): - """Sets the fixed_legend_filter_field of this ChartSettings. + @sparkline_size.setter + def sparkline_size(self, sparkline_size): + """Sets the sparkline_size of this ChartSettings. - Statistic to use for determining whether a series is displayed on the fixed legend # noqa: E501 + For the single stat view, a misleadingly named property. This determines whether the sparkline of the statistic is displayed in the chart BACKGROUND, BOTTOM, or NONE # noqa: E501 - :param fixed_legend_filter_field: The fixed_legend_filter_field of this ChartSettings. # noqa: E501 + :param sparkline_size: The sparkline_size of this ChartSettings. # noqa: E501 :type: str """ - allowed_values = ["CURRENT", "MEAN", "MEDIAN", "SUM", "MIN", "MAX", "COUNT"] # noqa: E501 - if fixed_legend_filter_field not in allowed_values: + allowed_values = ["BACKGROUND", "BOTTOM", "NONE"] # noqa: E501 + if (self._configuration.client_side_validation and + sparkline_size not in allowed_values): raise ValueError( - "Invalid value for `fixed_legend_filter_field` ({0}), must be one of {1}" # noqa: E501 - .format(fixed_legend_filter_field, allowed_values) + "Invalid value for `sparkline_size` ({0}), must be one of {1}" # noqa: E501 + .format(sparkline_size, allowed_values) ) - self._fixed_legend_filter_field = fixed_legend_filter_field + self._sparkline_size = sparkline_size @property - def fixed_legend_hide_label(self): - """Gets the fixed_legend_hide_label of this ChartSettings. # noqa: E501 + def sparkline_value_color_map_apply_to(self): + """Gets the sparkline_value_color_map_apply_to of this ChartSettings. # noqa: E501 - deprecated # noqa: E501 + For the single stat view, whether to apply dynamic color settings to the displayed TEXT or BACKGROUND # noqa: E501 - :return: The fixed_legend_hide_label of this ChartSettings. # noqa: E501 - :rtype: bool + :return: The sparkline_value_color_map_apply_to of this ChartSettings. # noqa: E501 + :rtype: str """ - return self._fixed_legend_hide_label + return self._sparkline_value_color_map_apply_to - @fixed_legend_hide_label.setter - def fixed_legend_hide_label(self, fixed_legend_hide_label): - """Sets the fixed_legend_hide_label of this ChartSettings. + @sparkline_value_color_map_apply_to.setter + def sparkline_value_color_map_apply_to(self, sparkline_value_color_map_apply_to): + """Sets the sparkline_value_color_map_apply_to of this ChartSettings. - deprecated # noqa: E501 + For the single stat view, whether to apply dynamic color settings to the displayed TEXT or BACKGROUND # noqa: E501 - :param fixed_legend_hide_label: The fixed_legend_hide_label of this ChartSettings. # noqa: E501 - :type: bool + :param sparkline_value_color_map_apply_to: The sparkline_value_color_map_apply_to of this ChartSettings. # noqa: E501 + :type: str """ + allowed_values = ["TEXT", "BACKGROUND"] # noqa: E501 + if (self._configuration.client_side_validation and + sparkline_value_color_map_apply_to not in allowed_values): + raise ValueError( + "Invalid value for `sparkline_value_color_map_apply_to` ({0}), must be one of {1}" # noqa: E501 + .format(sparkline_value_color_map_apply_to, allowed_values) + ) - self._fixed_legend_hide_label = fixed_legend_hide_label + self._sparkline_value_color_map_apply_to = sparkline_value_color_map_apply_to @property - def xmax(self): - """Gets the xmax of this ChartSettings. # noqa: E501 + def sparkline_value_color_map_colors(self): + """Gets the sparkline_value_color_map_colors of this ChartSettings. # noqa: E501 - For x-y scatterplots, max value for X-axis. Set null for auto # noqa: E501 + For the single stat view, a list of colors that differing query values map to. Must contain one more element than sparklineValueColorMapValuesV2. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 - :return: The xmax of this ChartSettings. # noqa: E501 - :rtype: float + :return: The sparkline_value_color_map_colors of this ChartSettings. # noqa: E501 + :rtype: list[str] """ - return self._xmax + return self._sparkline_value_color_map_colors - @xmax.setter - def xmax(self, xmax): - """Sets the xmax of this ChartSettings. + @sparkline_value_color_map_colors.setter + def sparkline_value_color_map_colors(self, sparkline_value_color_map_colors): + """Sets the sparkline_value_color_map_colors of this ChartSettings. - For x-y scatterplots, max value for X-axis. Set null for auto # noqa: E501 + For the single stat view, a list of colors that differing query values map to. Must contain one more element than sparklineValueColorMapValuesV2. Values should be in \"rgba(<rval>, <gval>, <bval>, <aval>)\" format # noqa: E501 - :param xmax: The xmax of this ChartSettings. # noqa: E501 - :type: float + :param sparkline_value_color_map_colors: The sparkline_value_color_map_colors of this ChartSettings. # noqa: E501 + :type: list[str] """ - self._xmax = xmax + self._sparkline_value_color_map_colors = sparkline_value_color_map_colors @property - def xmin(self): - """Gets the xmin of this ChartSettings. # noqa: E501 + def sparkline_value_color_map_values(self): + """Gets the sparkline_value_color_map_values of this ChartSettings. # noqa: E501 - For x-y scatterplots, min value for X-axis. Set null for auto # noqa: E501 + deprecated # noqa: E501 - :return: The xmin of this ChartSettings. # noqa: E501 - :rtype: float + :return: The sparkline_value_color_map_values of this ChartSettings. # noqa: E501 + :rtype: list[int] """ - return self._xmin - - @xmin.setter - def xmin(self, xmin): - """Sets the xmin of this ChartSettings. + return self._sparkline_value_color_map_values - For x-y scatterplots, min value for X-axis. Set null for auto # noqa: E501 + @sparkline_value_color_map_values.setter + def sparkline_value_color_map_values(self, sparkline_value_color_map_values): + """Sets the sparkline_value_color_map_values of this ChartSettings. - :param xmin: The xmin of this ChartSettings. # noqa: E501 - :type: float + deprecated # noqa: E501 + + :param sparkline_value_color_map_values: The sparkline_value_color_map_values of this ChartSettings. # noqa: E501 + :type: list[int] """ - self._xmin = xmin + self._sparkline_value_color_map_values = sparkline_value_color_map_values @property - def ymax(self): - """Gets the ymax of this ChartSettings. # noqa: E501 + def sparkline_value_color_map_values_v2(self): + """Gets the sparkline_value_color_map_values_v2 of this ChartSettings. # noqa: E501 - For x-y scatterplots, max value for Y-axis. Set null for auto # noqa: E501 + For the single stat view, a list of boundaries for mapping different query values to colors. Must contain one less element than sparklineValueColorMapColors # noqa: E501 - :return: The ymax of this ChartSettings. # noqa: E501 - :rtype: float + :return: The sparkline_value_color_map_values_v2 of this ChartSettings. # noqa: E501 + :rtype: list[float] """ - return self._ymax + return self._sparkline_value_color_map_values_v2 - @ymax.setter - def ymax(self, ymax): - """Sets the ymax of this ChartSettings. + @sparkline_value_color_map_values_v2.setter + def sparkline_value_color_map_values_v2(self, sparkline_value_color_map_values_v2): + """Sets the sparkline_value_color_map_values_v2 of this ChartSettings. - For x-y scatterplots, max value for Y-axis. Set null for auto # noqa: E501 + For the single stat view, a list of boundaries for mapping different query values to colors. Must contain one less element than sparklineValueColorMapColors # noqa: E501 - :param ymax: The ymax of this ChartSettings. # noqa: E501 - :type: float + :param sparkline_value_color_map_values_v2: The sparkline_value_color_map_values_v2 of this ChartSettings. # noqa: E501 + :type: list[float] """ - self._ymax = ymax + self._sparkline_value_color_map_values_v2 = sparkline_value_color_map_values_v2 @property - def ymin(self): - """Gets the ymin of this ChartSettings. # noqa: E501 + def sparkline_value_text_map_text(self): + """Gets the sparkline_value_text_map_text of this ChartSettings. # noqa: E501 - For x-y scatterplots, min value for Y-axis. Set null for auto # noqa: E501 + For the single stat view, a list of display text values that different query values map to. Must contain one more element than sparklineValueTextMapThresholds # noqa: E501 - :return: The ymin of this ChartSettings. # noqa: E501 - :rtype: float + :return: The sparkline_value_text_map_text of this ChartSettings. # noqa: E501 + :rtype: list[str] """ - return self._ymin + return self._sparkline_value_text_map_text - @ymin.setter - def ymin(self, ymin): - """Sets the ymin of this ChartSettings. + @sparkline_value_text_map_text.setter + def sparkline_value_text_map_text(self, sparkline_value_text_map_text): + """Sets the sparkline_value_text_map_text of this ChartSettings. - For x-y scatterplots, min value for Y-axis. Set null for auto # noqa: E501 + For the single stat view, a list of display text values that different query values map to. Must contain one more element than sparklineValueTextMapThresholds # noqa: E501 - :param ymin: The ymin of this ChartSettings. # noqa: E501 - :type: float + :param sparkline_value_text_map_text: The sparkline_value_text_map_text of this ChartSettings. # noqa: E501 + :type: list[str] """ - self._ymin = ymin + self._sparkline_value_text_map_text = sparkline_value_text_map_text @property - def time_based_coloring(self): - """Gets the time_based_coloring of this ChartSettings. # noqa: E501 + def sparkline_value_text_map_thresholds(self): + """Gets the sparkline_value_text_map_thresholds of this ChartSettings. # noqa: E501 - Fox x-y scatterplots, whether to color more recent points as darker than older points. Default: false # noqa: E501 + For the single stat view, a list of threshold boundaries for mapping different query values to display text. Must contain one less element than sparklineValueTextMapText # noqa: E501 - :return: The time_based_coloring of this ChartSettings. # noqa: E501 - :rtype: bool + :return: The sparkline_value_text_map_thresholds of this ChartSettings. # noqa: E501 + :rtype: list[float] """ - return self._time_based_coloring + return self._sparkline_value_text_map_thresholds - @time_based_coloring.setter - def time_based_coloring(self, time_based_coloring): - """Sets the time_based_coloring of this ChartSettings. + @sparkline_value_text_map_thresholds.setter + def sparkline_value_text_map_thresholds(self, sparkline_value_text_map_thresholds): + """Sets the sparkline_value_text_map_thresholds of this ChartSettings. - Fox x-y scatterplots, whether to color more recent points as darker than older points. Default: false # noqa: E501 + For the single stat view, a list of threshold boundaries for mapping different query values to display text. Must contain one less element than sparklineValueTextMapText # noqa: E501 - :param time_based_coloring: The time_based_coloring of this ChartSettings. # noqa: E501 - :type: bool + :param sparkline_value_text_map_thresholds: The sparkline_value_text_map_thresholds of this ChartSettings. # noqa: E501 + :type: list[float] """ - self._time_based_coloring = time_based_coloring + self._sparkline_value_text_map_thresholds = sparkline_value_text_map_thresholds @property - def sparkline_display_value_type(self): - """Gets the sparkline_display_value_type of this ChartSettings. # noqa: E501 + def stack_type(self): + """Gets the stack_type of this ChartSettings. # noqa: E501 - For the single stat view, whether to display the name of the query or the value of query # noqa: E501 + Type of stacked chart (applicable only if chart type is stacked). zero (default) means stacked from y=0. expand means Normalized from 0 to 1. wiggle means Minimize weighted changes. silhouette means to Center the Stream # noqa: E501 - :return: The sparkline_display_value_type of this ChartSettings. # noqa: E501 + :return: The stack_type of this ChartSettings. # noqa: E501 :rtype: str """ - return self._sparkline_display_value_type + return self._stack_type - @sparkline_display_value_type.setter - def sparkline_display_value_type(self, sparkline_display_value_type): - """Sets the sparkline_display_value_type of this ChartSettings. + @stack_type.setter + def stack_type(self, stack_type): + """Sets the stack_type of this ChartSettings. - For the single stat view, whether to display the name of the query or the value of query # noqa: E501 + Type of stacked chart (applicable only if chart type is stacked). zero (default) means stacked from y=0. expand means Normalized from 0 to 1. wiggle means Minimize weighted changes. silhouette means to Center the Stream # noqa: E501 - :param sparkline_display_value_type: The sparkline_display_value_type of this ChartSettings. # noqa: E501 + :param stack_type: The stack_type of this ChartSettings. # noqa: E501 :type: str """ - allowed_values = ["VALUE", "LABEL"] # noqa: E501 - if sparkline_display_value_type not in allowed_values: + allowed_values = ["zero", "expand", "wiggle", "silhouette", "bars"] # noqa: E501 + if (self._configuration.client_side_validation and + stack_type not in allowed_values): raise ValueError( - "Invalid value for `sparkline_display_value_type` ({0}), must be one of {1}" # noqa: E501 - .format(sparkline_display_value_type, allowed_values) + "Invalid value for `stack_type` ({0}), must be one of {1}" # noqa: E501 + .format(stack_type, allowed_values) ) - self._sparkline_display_value_type = sparkline_display_value_type + self._stack_type = stack_type @property - def sparkline_display_color(self): - """Gets the sparkline_display_color of this ChartSettings. # noqa: E501 + def tag_mode(self): + """Gets the tag_mode of this ChartSettings. # noqa: E501 - For the single stat view, the color of the displayed text (when not dynamically determined). Values should be in\"rgba(The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class ChartSourceQuery(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,59 +33,90 @@ class ChartSourceQuery(object): and the value is json key in definition. """ swagger_types = { + 'disabled': 'bool', 'name': 'str', 'query': 'str', - 'disabled': 'bool', - 'secondary_axis': 'bool', - 'scatter_plot_source': 'str', - 'querybuilder_serialization': 'str', + 'query_type': 'str', 'querybuilder_enabled': 'bool', - 'source_description': 'str', - 'source_color': 'str' + 'querybuilder_serialization': 'str', + 'scatter_plot_source': 'str', + 'secondary_axis': 'bool', + 'source_color': 'str', + 'source_description': 'str' } attribute_map = { + 'disabled': 'disabled', 'name': 'name', 'query': 'query', - 'disabled': 'disabled', - 'secondary_axis': 'secondaryAxis', - 'scatter_plot_source': 'scatterPlotSource', - 'querybuilder_serialization': 'querybuilderSerialization', + 'query_type': 'queryType', 'querybuilder_enabled': 'querybuilderEnabled', - 'source_description': 'sourceDescription', - 'source_color': 'sourceColor' + 'querybuilder_serialization': 'querybuilderSerialization', + 'scatter_plot_source': 'scatterPlotSource', + 'secondary_axis': 'secondaryAxis', + 'source_color': 'sourceColor', + 'source_description': 'sourceDescription' } - def __init__(self, name=None, query=None, disabled=None, secondary_axis=None, scatter_plot_source=None, querybuilder_serialization=None, querybuilder_enabled=None, source_description=None, source_color=None): # noqa: E501 + def __init__(self, disabled=None, name=None, query=None, query_type=None, querybuilder_enabled=None, querybuilder_serialization=None, scatter_plot_source=None, secondary_axis=None, source_color=None, source_description=None, _configuration=None): # noqa: E501 """ChartSourceQuery - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._disabled = None self._name = None self._query = None - self._disabled = None - self._secondary_axis = None - self._scatter_plot_source = None - self._querybuilder_serialization = None + self._query_type = None self._querybuilder_enabled = None - self._source_description = None + self._querybuilder_serialization = None + self._scatter_plot_source = None + self._secondary_axis = None self._source_color = None + self._source_description = None self.discriminator = None - self.name = name - self.query = query if disabled is not None: self.disabled = disabled - if secondary_axis is not None: - self.secondary_axis = secondary_axis - if scatter_plot_source is not None: - self.scatter_plot_source = scatter_plot_source - if querybuilder_serialization is not None: - self.querybuilder_serialization = querybuilder_serialization + self.name = name + self.query = query + if query_type is not None: + self.query_type = query_type if querybuilder_enabled is not None: self.querybuilder_enabled = querybuilder_enabled - if source_description is not None: - self.source_description = source_description + if querybuilder_serialization is not None: + self.querybuilder_serialization = querybuilder_serialization + if scatter_plot_source is not None: + self.scatter_plot_source = scatter_plot_source + if secondary_axis is not None: + self.secondary_axis = secondary_axis if source_color is not None: self.source_color = source_color + if source_description is not None: + self.source_description = source_description + + @property + def disabled(self): + """Gets the disabled of this ChartSourceQuery. # noqa: E501 + + Whether the source is disabled # noqa: E501 + + :return: The disabled of this ChartSourceQuery. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this ChartSourceQuery. + + Whether the source is disabled # noqa: E501 + + :param disabled: The disabled of this ChartSourceQuery. # noqa: E501 + :type: bool + """ + + self._disabled = disabled @property def name(self): @@ -105,7 +138,7 @@ def name(self, name): :param name: The name of this ChartSourceQuery. # noqa: E501 :type: str """ - if name is None: + if self._configuration.client_side_validation and name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -130,56 +163,86 @@ def query(self, query): :param query: The query of this ChartSourceQuery. # noqa: E501 :type: str """ - if query is None: + if self._configuration.client_side_validation and query is None: raise ValueError("Invalid value for `query`, must not be `None`") # noqa: E501 self._query = query @property - def disabled(self): - """Gets the disabled of this ChartSourceQuery. # noqa: E501 + def query_type(self): + """Gets the query_type of this ChartSourceQuery. # noqa: E501 - Whether the source is disabled # noqa: E501 + Query type of the source # noqa: E501 - :return: The disabled of this ChartSourceQuery. # noqa: E501 - :rtype: bool + :return: The query_type of this ChartSourceQuery. # noqa: E501 + :rtype: str """ - return self._disabled + return self._query_type - @disabled.setter - def disabled(self, disabled): - """Sets the disabled of this ChartSourceQuery. + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this ChartSourceQuery. - Whether the source is disabled # noqa: E501 + Query type of the source # noqa: E501 - :param disabled: The disabled of this ChartSourceQuery. # noqa: E501 - :type: bool + :param query_type: The query_type of this ChartSourceQuery. # noqa: E501 + :type: str """ + allowed_values = ["WQL", "PROMQL", "HYBRID"] # noqa: E501 + if (self._configuration.client_side_validation and + query_type not in allowed_values): + raise ValueError( + "Invalid value for `query_type` ({0}), must be one of {1}" # noqa: E501 + .format(query_type, allowed_values) + ) - self._disabled = disabled + self._query_type = query_type @property - def secondary_axis(self): - """Gets the secondary_axis of this ChartSourceQuery. # noqa: E501 + def querybuilder_enabled(self): + """Gets the querybuilder_enabled of this ChartSourceQuery. # noqa: E501 - Determines if this source relates to the right hand Y-axis or not # noqa: E501 + Whether or not this source line should have the query builder enabled # noqa: E501 - :return: The secondary_axis of this ChartSourceQuery. # noqa: E501 + :return: The querybuilder_enabled of this ChartSourceQuery. # noqa: E501 :rtype: bool """ - return self._secondary_axis + return self._querybuilder_enabled - @secondary_axis.setter - def secondary_axis(self, secondary_axis): - """Sets the secondary_axis of this ChartSourceQuery. + @querybuilder_enabled.setter + def querybuilder_enabled(self, querybuilder_enabled): + """Sets the querybuilder_enabled of this ChartSourceQuery. - Determines if this source relates to the right hand Y-axis or not # noqa: E501 + Whether or not this source line should have the query builder enabled # noqa: E501 - :param secondary_axis: The secondary_axis of this ChartSourceQuery. # noqa: E501 + :param querybuilder_enabled: The querybuilder_enabled of this ChartSourceQuery. # noqa: E501 :type: bool """ - self._secondary_axis = secondary_axis + self._querybuilder_enabled = querybuilder_enabled + + @property + def querybuilder_serialization(self): + """Gets the querybuilder_serialization of this ChartSourceQuery. # noqa: E501 + + Opaque representation of the querybuilder # noqa: E501 + + :return: The querybuilder_serialization of this ChartSourceQuery. # noqa: E501 + :rtype: str + """ + return self._querybuilder_serialization + + @querybuilder_serialization.setter + def querybuilder_serialization(self, querybuilder_serialization): + """Sets the querybuilder_serialization of this ChartSourceQuery. + + Opaque representation of the querybuilder # noqa: E501 + + :param querybuilder_serialization: The querybuilder_serialization of this ChartSourceQuery. # noqa: E501 + :type: str + """ + + self._querybuilder_serialization = querybuilder_serialization @property def scatter_plot_source(self): @@ -202,7 +265,8 @@ def scatter_plot_source(self, scatter_plot_source): :type: str """ allowed_values = ["X", "Y"] # noqa: E501 - if scatter_plot_source not in allowed_values: + if (self._configuration.client_side_validation and + scatter_plot_source not in allowed_values): raise ValueError( "Invalid value for `scatter_plot_source` ({0}), must be one of {1}" # noqa: E501 .format(scatter_plot_source, allowed_values) @@ -211,50 +275,50 @@ def scatter_plot_source(self, scatter_plot_source): self._scatter_plot_source = scatter_plot_source @property - def querybuilder_serialization(self): - """Gets the querybuilder_serialization of this ChartSourceQuery. # noqa: E501 + def secondary_axis(self): + """Gets the secondary_axis of this ChartSourceQuery. # noqa: E501 - Opaque representation of the querybuilder # noqa: E501 + Determines if this source relates to the right hand Y-axis or not # noqa: E501 - :return: The querybuilder_serialization of this ChartSourceQuery. # noqa: E501 - :rtype: str + :return: The secondary_axis of this ChartSourceQuery. # noqa: E501 + :rtype: bool """ - return self._querybuilder_serialization + return self._secondary_axis - @querybuilder_serialization.setter - def querybuilder_serialization(self, querybuilder_serialization): - """Sets the querybuilder_serialization of this ChartSourceQuery. + @secondary_axis.setter + def secondary_axis(self, secondary_axis): + """Sets the secondary_axis of this ChartSourceQuery. - Opaque representation of the querybuilder # noqa: E501 + Determines if this source relates to the right hand Y-axis or not # noqa: E501 - :param querybuilder_serialization: The querybuilder_serialization of this ChartSourceQuery. # noqa: E501 - :type: str + :param secondary_axis: The secondary_axis of this ChartSourceQuery. # noqa: E501 + :type: bool """ - self._querybuilder_serialization = querybuilder_serialization + self._secondary_axis = secondary_axis @property - def querybuilder_enabled(self): - """Gets the querybuilder_enabled of this ChartSourceQuery. # noqa: E501 + def source_color(self): + """Gets the source_color of this ChartSourceQuery. # noqa: E501 - Whether or not this source line should have the query builder enabled # noqa: E501 + The color used to draw all results from this source (auto if unset) # noqa: E501 - :return: The querybuilder_enabled of this ChartSourceQuery. # noqa: E501 - :rtype: bool + :return: The source_color of this ChartSourceQuery. # noqa: E501 + :rtype: str """ - return self._querybuilder_enabled + return self._source_color - @querybuilder_enabled.setter - def querybuilder_enabled(self, querybuilder_enabled): - """Sets the querybuilder_enabled of this ChartSourceQuery. + @source_color.setter + def source_color(self, source_color): + """Sets the source_color of this ChartSourceQuery. - Whether or not this source line should have the query builder enabled # noqa: E501 + The color used to draw all results from this source (auto if unset) # noqa: E501 - :param querybuilder_enabled: The querybuilder_enabled of this ChartSourceQuery. # noqa: E501 - :type: bool + :param source_color: The source_color of this ChartSourceQuery. # noqa: E501 + :type: str """ - self._querybuilder_enabled = querybuilder_enabled + self._source_color = source_color @property def source_description(self): @@ -279,29 +343,6 @@ def source_description(self, source_description): self._source_description = source_description - @property - def source_color(self): - """Gets the source_color of this ChartSourceQuery. # noqa: E501 - - The color used to draw all results from this source (auto if unset) # noqa: E501 - - :return: The source_color of this ChartSourceQuery. # noqa: E501 - :rtype: str - """ - return self._source_color - - @source_color.setter - def source_color(self, source_color): - """Sets the source_color of this ChartSourceQuery. - - The color used to draw all results from this source (auto if unset) # noqa: E501 - - :param source_color: The source_color of this ChartSourceQuery. # noqa: E501 - :type: str - """ - - self._source_color = source_color - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -323,6 +364,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ChartSourceQuery, dict): + for key, value in self.items(): + result[key] = value return result @@ -339,8 +383,11 @@ def __eq__(self, other): if not isinstance(other, ChartSourceQuery): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ChartSourceQuery): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/class_loader.py b/wavefront_api_client/models/class_loader.py new file mode 100644 index 00000000..d6f4b171 --- /dev/null +++ b/wavefront_api_client/models/class_loader.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ClassLoader(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 = { + 'defined_packages': 'list[Package]', + 'name': 'str', + 'parent': 'ClassLoader', + 'registered_as_parallel_capable': 'bool', + 'unnamed_module': 'Module' + } + + attribute_map = { + 'defined_packages': 'definedPackages', + 'name': 'name', + 'parent': 'parent', + 'registered_as_parallel_capable': 'registeredAsParallelCapable', + 'unnamed_module': 'unnamedModule' + } + + def __init__(self, defined_packages=None, name=None, parent=None, registered_as_parallel_capable=None, unnamed_module=None, _configuration=None): # noqa: E501 + """ClassLoader - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._defined_packages = None + self._name = None + self._parent = None + self._registered_as_parallel_capable = None + self._unnamed_module = None + self.discriminator = None + + if defined_packages is not None: + self.defined_packages = defined_packages + if name is not None: + self.name = name + if parent is not None: + self.parent = parent + if registered_as_parallel_capable is not None: + self.registered_as_parallel_capable = registered_as_parallel_capable + if unnamed_module is not None: + self.unnamed_module = unnamed_module + + @property + def defined_packages(self): + """Gets the defined_packages of this ClassLoader. # noqa: E501 + + + :return: The defined_packages of this ClassLoader. # noqa: E501 + :rtype: list[Package] + """ + return self._defined_packages + + @defined_packages.setter + def defined_packages(self, defined_packages): + """Sets the defined_packages of this ClassLoader. + + + :param defined_packages: The defined_packages of this ClassLoader. # noqa: E501 + :type: list[Package] + """ + + self._defined_packages = defined_packages + + @property + def name(self): + """Gets the name of this ClassLoader. # noqa: E501 + + + :return: The name of this ClassLoader. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ClassLoader. + + + :param name: The name of this ClassLoader. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def parent(self): + """Gets the parent of this ClassLoader. # noqa: E501 + + + :return: The parent of this ClassLoader. # noqa: E501 + :rtype: ClassLoader + """ + return self._parent + + @parent.setter + def parent(self, parent): + """Sets the parent of this ClassLoader. + + + :param parent: The parent of this ClassLoader. # noqa: E501 + :type: ClassLoader + """ + + self._parent = parent + + @property + def registered_as_parallel_capable(self): + """Gets the registered_as_parallel_capable of this ClassLoader. # noqa: E501 + + + :return: The registered_as_parallel_capable of this ClassLoader. # noqa: E501 + :rtype: bool + """ + return self._registered_as_parallel_capable + + @registered_as_parallel_capable.setter + def registered_as_parallel_capable(self, registered_as_parallel_capable): + """Sets the registered_as_parallel_capable of this ClassLoader. + + + :param registered_as_parallel_capable: The registered_as_parallel_capable of this ClassLoader. # noqa: E501 + :type: bool + """ + + self._registered_as_parallel_capable = registered_as_parallel_capable + + @property + def unnamed_module(self): + """Gets the unnamed_module of this ClassLoader. # noqa: E501 + + + :return: The unnamed_module of this ClassLoader. # noqa: E501 + :rtype: Module + """ + return self._unnamed_module + + @unnamed_module.setter + def unnamed_module(self, unnamed_module): + """Sets the unnamed_module of this ClassLoader. + + + :param unnamed_module: The unnamed_module of this ClassLoader. # noqa: E501 + :type: Module + """ + + self._unnamed_module = unnamed_module + + 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(ClassLoader, 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, ClassLoader): + 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, ClassLoader): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/cloud_integration.py b/wavefront_api_client/models/cloud_integration.py index d7ce1da9..ef74b860 100644 --- a/wavefront_api_client/models/cloud_integration.py +++ b/wavefront_api_client/models/cloud_integration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,7 @@ import six -from wavefront_api_client.models.azure_activity_log_configuration import AzureActivityLogConfiguration # noqa: F401,E501 -from wavefront_api_client.models.azure_configuration import AzureConfiguration # noqa: F401,E501 -from wavefront_api_client.models.cloud_trail_configuration import CloudTrailConfiguration # noqa: F401,E501 -from wavefront_api_client.models.cloud_watch_configuration import CloudWatchConfiguration # noqa: F401,E501 -from wavefront_api_client.models.ec2_configuration import EC2Configuration # noqa: F401,E501 -from wavefront_api_client.models.event import Event # noqa: F401,E501 -from wavefront_api_client.models.gcp_configuration import GCPConfiguration # noqa: F401,E501 -from wavefront_api_client.models.tesla_configuration import TeslaConfiguration # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class CloudIntegration(object): @@ -40,379 +33,417 @@ class CloudIntegration(object): and the value is json key in definition. """ swagger_types = { - 'force_save': 'bool', - 'name': 'str', - 'id': 'str', - 'service': 'str', - 'creator_id': 'str', 'additional_tags': 'dict(str, str)', - 'last_received_data_point_ms': 'int', - 'last_metric_count': 'int', - 'cloud_watch': 'CloudWatchConfiguration', + 'app_dynamics': 'AppDynamicsConfiguration', + 'azure': 'AzureConfiguration', + 'azure_activity_log': 'AzureActivityLogConfiguration', 'cloud_trail': 'CloudTrailConfiguration', + 'cloud_watch': 'CloudWatchConfiguration', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'deleted': 'bool', + 'disabled': 'bool', + 'dynatrace': 'DynatraceConfiguration', 'ec2': 'EC2Configuration', + 'force_save': 'bool', 'gcp': 'GCPConfiguration', - 'tesla': 'TeslaConfiguration', - 'azure': 'AzureConfiguration', - 'azure_activity_log': 'AzureActivityLogConfiguration', + 'gcp_billing': 'GCPBillingConfiguration', + 'id': 'str', + 'in_trash': 'bool', 'last_error': 'str', + 'last_error_event': 'Event', 'last_error_ms': 'int', - 'disabled': 'bool', - 'last_processor_id': 'str', + 'last_metric_count': 'int', 'last_processing_timestamp': 'int', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', + 'last_processor_id': 'str', + 'last_received_data_point_ms': 'int', + 'name': 'str', + 'new_relic': 'NewRelicConfiguration', + 'reuse_external_id_credential': 'str', + 'service': 'str', 'service_refresh_rate_in_mins': 'int', + 'snowflake': 'SnowflakeConfiguration', + 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'in_trash': 'bool', - 'last_error_event': 'Event', - 'deleted': 'bool' + 'vrops': 'VropsConfiguration' } attribute_map = { - 'force_save': 'forceSave', - 'name': 'name', - 'id': 'id', - 'service': 'service', - 'creator_id': 'creatorId', 'additional_tags': 'additionalTags', - 'last_received_data_point_ms': 'lastReceivedDataPointMs', - 'last_metric_count': 'lastMetricCount', - 'cloud_watch': 'cloudWatch', + 'app_dynamics': 'appDynamics', + 'azure': 'azure', + 'azure_activity_log': 'azureActivityLog', 'cloud_trail': 'cloudTrail', + 'cloud_watch': 'cloudWatch', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'deleted': 'deleted', + 'disabled': 'disabled', + 'dynatrace': 'dynatrace', 'ec2': 'ec2', + 'force_save': 'forceSave', 'gcp': 'gcp', - 'tesla': 'tesla', - 'azure': 'azure', - 'azure_activity_log': 'azureActivityLog', + 'gcp_billing': 'gcpBilling', + 'id': 'id', + 'in_trash': 'inTrash', 'last_error': 'lastError', + 'last_error_event': 'lastErrorEvent', 'last_error_ms': 'lastErrorMs', - 'disabled': 'disabled', - 'last_processor_id': 'lastProcessorId', + 'last_metric_count': 'lastMetricCount', 'last_processing_timestamp': 'lastProcessingTimestamp', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', + 'last_processor_id': 'lastProcessorId', + 'last_received_data_point_ms': 'lastReceivedDataPointMs', + 'name': 'name', + 'new_relic': 'newRelic', + 'reuse_external_id_credential': 'reuseExternalIdCredential', + 'service': 'service', 'service_refresh_rate_in_mins': 'serviceRefreshRateInMins', + 'snowflake': 'snowflake', + 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'in_trash': 'inTrash', - 'last_error_event': 'lastErrorEvent', - 'deleted': 'deleted' + 'vrops': 'vrops' } - def __init__(self, force_save=None, name=None, id=None, service=None, creator_id=None, additional_tags=None, last_received_data_point_ms=None, last_metric_count=None, cloud_watch=None, cloud_trail=None, ec2=None, gcp=None, tesla=None, azure=None, azure_activity_log=None, last_error=None, last_error_ms=None, disabled=None, last_processor_id=None, last_processing_timestamp=None, created_epoch_millis=None, updated_epoch_millis=None, service_refresh_rate_in_mins=None, updater_id=None, in_trash=None, last_error_event=None, deleted=None): # noqa: E501 + def __init__(self, additional_tags=None, app_dynamics=None, azure=None, azure_activity_log=None, cloud_trail=None, cloud_watch=None, created_epoch_millis=None, creator_id=None, deleted=None, disabled=None, dynatrace=None, ec2=None, force_save=None, gcp=None, gcp_billing=None, id=None, in_trash=None, last_error=None, last_error_event=None, last_error_ms=None, last_metric_count=None, last_processing_timestamp=None, last_processor_id=None, last_received_data_point_ms=None, name=None, new_relic=None, reuse_external_id_credential=None, service=None, service_refresh_rate_in_mins=None, snowflake=None, updated_epoch_millis=None, updater_id=None, vrops=None, _configuration=None): # noqa: E501 """CloudIntegration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._force_save = None - self._name = None - self._id = None - self._service = None - self._creator_id = None self._additional_tags = None - self._last_received_data_point_ms = None - self._last_metric_count = None - self._cloud_watch = None + self._app_dynamics = None + self._azure = None + self._azure_activity_log = None self._cloud_trail = None + self._cloud_watch = None + self._created_epoch_millis = None + self._creator_id = None + self._deleted = None + self._disabled = None + self._dynatrace = None self._ec2 = None + self._force_save = None self._gcp = None - self._tesla = None - self._azure = None - self._azure_activity_log = None + self._gcp_billing = None + self._id = None + self._in_trash = None self._last_error = None + self._last_error_event = None self._last_error_ms = None - self._disabled = None - self._last_processor_id = None + self._last_metric_count = None self._last_processing_timestamp = None - self._created_epoch_millis = None - self._updated_epoch_millis = None + self._last_processor_id = None + self._last_received_data_point_ms = None + self._name = None + self._new_relic = None + self._reuse_external_id_credential = None + self._service = None self._service_refresh_rate_in_mins = None + self._snowflake = None + self._updated_epoch_millis = None self._updater_id = None - self._in_trash = None - self._last_error_event = None - self._deleted = None + self._vrops = None self.discriminator = None - if force_save is not None: - self.force_save = force_save - self.name = name - if id is not None: - self.id = id - self.service = service - if creator_id is not None: - self.creator_id = creator_id if additional_tags is not None: self.additional_tags = additional_tags - if last_received_data_point_ms is not None: - self.last_received_data_point_ms = last_received_data_point_ms - if last_metric_count is not None: - self.last_metric_count = last_metric_count - if cloud_watch is not None: - self.cloud_watch = cloud_watch + if app_dynamics is not None: + self.app_dynamics = app_dynamics + if azure is not None: + self.azure = azure + if azure_activity_log is not None: + self.azure_activity_log = azure_activity_log if cloud_trail is not None: self.cloud_trail = cloud_trail + if cloud_watch is not None: + self.cloud_watch = cloud_watch + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted + if disabled is not None: + self.disabled = disabled + if dynatrace is not None: + self.dynatrace = dynatrace if ec2 is not None: self.ec2 = ec2 + if force_save is not None: + self.force_save = force_save if gcp is not None: self.gcp = gcp - if tesla is not None: - self.tesla = tesla - if azure is not None: - self.azure = azure - if azure_activity_log is not None: - self.azure_activity_log = azure_activity_log + if gcp_billing is not None: + self.gcp_billing = gcp_billing + if id is not None: + self.id = id + if in_trash is not None: + self.in_trash = in_trash if last_error is not None: self.last_error = last_error + if last_error_event is not None: + self.last_error_event = last_error_event if last_error_ms is not None: self.last_error_ms = last_error_ms - if disabled is not None: - self.disabled = disabled - if last_processor_id is not None: - self.last_processor_id = last_processor_id + if last_metric_count is not None: + self.last_metric_count = last_metric_count if last_processing_timestamp is not None: self.last_processing_timestamp = last_processing_timestamp - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis - if updated_epoch_millis is not None: - self.updated_epoch_millis = updated_epoch_millis + if last_processor_id is not None: + self.last_processor_id = last_processor_id + if last_received_data_point_ms is not None: + self.last_received_data_point_ms = last_received_data_point_ms + self.name = name + if new_relic is not None: + self.new_relic = new_relic + if reuse_external_id_credential is not None: + self.reuse_external_id_credential = reuse_external_id_credential + self.service = service if service_refresh_rate_in_mins is not None: self.service_refresh_rate_in_mins = service_refresh_rate_in_mins + if snowflake is not None: + self.snowflake = snowflake + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id - if in_trash is not None: - self.in_trash = in_trash - if last_error_event is not None: - self.last_error_event = last_error_event - if deleted is not None: - self.deleted = deleted + if vrops is not None: + self.vrops = vrops @property - def force_save(self): - """Gets the force_save of this CloudIntegration. # noqa: E501 + def additional_tags(self): + """Gets the additional_tags of this CloudIntegration. # noqa: E501 + A list of point tag key-values to add to every point ingested using this integration # noqa: E501 - :return: The force_save of this CloudIntegration. # noqa: E501 - :rtype: bool + :return: The additional_tags of this CloudIntegration. # noqa: E501 + :rtype: dict(str, str) """ - return self._force_save + return self._additional_tags - @force_save.setter - def force_save(self, force_save): - """Sets the force_save of this CloudIntegration. + @additional_tags.setter + def additional_tags(self, additional_tags): + """Sets the additional_tags of this CloudIntegration. + A list of point tag key-values to add to every point ingested using this integration # noqa: E501 - :param force_save: The force_save of this CloudIntegration. # noqa: E501 - :type: bool + :param additional_tags: The additional_tags of this CloudIntegration. # noqa: E501 + :type: dict(str, str) """ - self._force_save = force_save + self._additional_tags = additional_tags @property - def name(self): - """Gets the name of this CloudIntegration. # noqa: E501 + def app_dynamics(self): + """Gets the app_dynamics of this CloudIntegration. # noqa: E501 - The human-readable name of this integration # noqa: E501 - :return: The name of this CloudIntegration. # noqa: E501 - :rtype: str + :return: The app_dynamics of this CloudIntegration. # noqa: E501 + :rtype: AppDynamicsConfiguration """ - return self._name + return self._app_dynamics - @name.setter - def name(self, name): - """Sets the name of this CloudIntegration. + @app_dynamics.setter + def app_dynamics(self, app_dynamics): + """Sets the app_dynamics of this CloudIntegration. - The human-readable name of this integration # noqa: E501 - :param name: The name of this CloudIntegration. # noqa: E501 - :type: str + :param app_dynamics: The app_dynamics of this CloudIntegration. # noqa: E501 + :type: AppDynamicsConfiguration """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._app_dynamics = app_dynamics @property - def id(self): - """Gets the id of this CloudIntegration. # noqa: E501 + def azure(self): + """Gets the azure of this CloudIntegration. # noqa: E501 - :return: The id of this CloudIntegration. # noqa: E501 - :rtype: str + :return: The azure of this CloudIntegration. # noqa: E501 + :rtype: AzureConfiguration """ - return self._id + return self._azure - @id.setter - def id(self, id): - """Sets the id of this CloudIntegration. + @azure.setter + def azure(self, azure): + """Sets the azure of this CloudIntegration. - :param id: The id of this CloudIntegration. # noqa: E501 - :type: str + :param azure: The azure of this CloudIntegration. # noqa: E501 + :type: AzureConfiguration """ - self._id = id + self._azure = azure @property - def service(self): - """Gets the service of this CloudIntegration. # noqa: E501 + def azure_activity_log(self): + """Gets the azure_activity_log of this CloudIntegration. # noqa: E501 - A value denoting which cloud service this integration integrates with # noqa: E501 - :return: The service of this CloudIntegration. # noqa: E501 - :rtype: str + :return: The azure_activity_log of this CloudIntegration. # noqa: E501 + :rtype: AzureActivityLogConfiguration """ - return self._service + return self._azure_activity_log - @service.setter - def service(self, service): - """Sets the service of this CloudIntegration. + @azure_activity_log.setter + def azure_activity_log(self, azure_activity_log): + """Sets the azure_activity_log of this CloudIntegration. - A value denoting which cloud service this integration integrates with # noqa: E501 - :param service: The service of this CloudIntegration. # noqa: E501 - :type: str + :param azure_activity_log: The azure_activity_log of this CloudIntegration. # noqa: E501 + :type: AzureActivityLogConfiguration """ - if service is None: - raise ValueError("Invalid value for `service`, must not be `None`") # noqa: E501 - allowed_values = ["CLOUDWATCH", "CLOUDTRAIL", "EC2", "GCP", "TESLA", "AZURE", "AZUREACTIVITYLOG"] # noqa: E501 - if service not in allowed_values: - raise ValueError( - "Invalid value for `service` ({0}), must be one of {1}" # noqa: E501 - .format(service, allowed_values) - ) - self._service = service + self._azure_activity_log = azure_activity_log @property - def creator_id(self): - """Gets the creator_id of this CloudIntegration. # noqa: E501 + def cloud_trail(self): + """Gets the cloud_trail of this CloudIntegration. # noqa: E501 - :return: The creator_id of this CloudIntegration. # noqa: E501 - :rtype: str + :return: The cloud_trail of this CloudIntegration. # noqa: E501 + :rtype: CloudTrailConfiguration """ - return self._creator_id + return self._cloud_trail - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this CloudIntegration. + @cloud_trail.setter + def cloud_trail(self, cloud_trail): + """Sets the cloud_trail of this CloudIntegration. - :param creator_id: The creator_id of this CloudIntegration. # noqa: E501 - :type: str + :param cloud_trail: The cloud_trail of this CloudIntegration. # noqa: E501 + :type: CloudTrailConfiguration """ - self._creator_id = creator_id + self._cloud_trail = cloud_trail @property - def additional_tags(self): - """Gets the additional_tags of this CloudIntegration. # noqa: E501 + def cloud_watch(self): + """Gets the cloud_watch of this CloudIntegration. # noqa: E501 - A list of point tag key-values to add to every point ingested using this integration # noqa: E501 - :return: The additional_tags of this CloudIntegration. # noqa: E501 - :rtype: dict(str, str) + :return: The cloud_watch of this CloudIntegration. # noqa: E501 + :rtype: CloudWatchConfiguration """ - return self._additional_tags + return self._cloud_watch - @additional_tags.setter - def additional_tags(self, additional_tags): - """Sets the additional_tags of this CloudIntegration. + @cloud_watch.setter + def cloud_watch(self, cloud_watch): + """Sets the cloud_watch of this CloudIntegration. - A list of point tag key-values to add to every point ingested using this integration # noqa: E501 - :param additional_tags: The additional_tags of this CloudIntegration. # noqa: E501 - :type: dict(str, str) + :param cloud_watch: The cloud_watch of this CloudIntegration. # noqa: E501 + :type: CloudWatchConfiguration """ - self._additional_tags = additional_tags + self._cloud_watch = cloud_watch @property - def last_received_data_point_ms(self): - """Gets the last_received_data_point_ms of this CloudIntegration. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this CloudIntegration. # noqa: E501 - Time that this integration last received a data point, in epoch millis # noqa: E501 - :return: The last_received_data_point_ms of this CloudIntegration. # noqa: E501 + :return: The created_epoch_millis of this CloudIntegration. # noqa: E501 :rtype: int """ - return self._last_received_data_point_ms + return self._created_epoch_millis - @last_received_data_point_ms.setter - def last_received_data_point_ms(self, last_received_data_point_ms): - """Sets the last_received_data_point_ms of this CloudIntegration. + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): + """Sets the created_epoch_millis of this CloudIntegration. - Time that this integration last received a data point, in epoch millis # noqa: E501 - :param last_received_data_point_ms: The last_received_data_point_ms of this CloudIntegration. # noqa: E501 + :param created_epoch_millis: The created_epoch_millis of this CloudIntegration. # noqa: E501 :type: int """ - self._last_received_data_point_ms = last_received_data_point_ms + self._created_epoch_millis = created_epoch_millis @property - def last_metric_count(self): - """Gets the last_metric_count of this CloudIntegration. # noqa: E501 + def creator_id(self): + """Gets the creator_id of this CloudIntegration. # noqa: E501 - Number of metrics / events ingested by this integration the last time it ran # noqa: E501 - :return: The last_metric_count of this CloudIntegration. # noqa: E501 - :rtype: int + :return: The creator_id of this CloudIntegration. # noqa: E501 + :rtype: str """ - return self._last_metric_count + return self._creator_id - @last_metric_count.setter - def last_metric_count(self, last_metric_count): - """Sets the last_metric_count of this CloudIntegration. + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this CloudIntegration. - Number of metrics / events ingested by this integration the last time it ran # noqa: E501 - :param last_metric_count: The last_metric_count of this CloudIntegration. # noqa: E501 - :type: int + :param creator_id: The creator_id of this CloudIntegration. # noqa: E501 + :type: str """ - self._last_metric_count = last_metric_count + self._creator_id = creator_id @property - def cloud_watch(self): - """Gets the cloud_watch of this CloudIntegration. # noqa: E501 + def deleted(self): + """Gets the deleted of this CloudIntegration. # noqa: E501 - :return: The cloud_watch of this CloudIntegration. # noqa: E501 - :rtype: CloudWatchConfiguration + :return: The deleted of this CloudIntegration. # noqa: E501 + :rtype: bool """ - return self._cloud_watch + return self._deleted - @cloud_watch.setter - def cloud_watch(self, cloud_watch): - """Sets the cloud_watch of this CloudIntegration. + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this CloudIntegration. - :param cloud_watch: The cloud_watch of this CloudIntegration. # noqa: E501 - :type: CloudWatchConfiguration + :param deleted: The deleted of this CloudIntegration. # noqa: E501 + :type: bool """ - self._cloud_watch = cloud_watch + self._deleted = deleted @property - def cloud_trail(self): - """Gets the cloud_trail of this CloudIntegration. # noqa: E501 + def disabled(self): + """Gets the disabled of this CloudIntegration. # noqa: E501 + True when an aws credential failed to authenticate. # noqa: E501 - :return: The cloud_trail of this CloudIntegration. # noqa: E501 - :rtype: CloudTrailConfiguration + :return: The disabled of this CloudIntegration. # noqa: E501 + :rtype: bool """ - return self._cloud_trail + return self._disabled - @cloud_trail.setter - def cloud_trail(self, cloud_trail): - """Sets the cloud_trail of this CloudIntegration. + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this CloudIntegration. + True when an aws credential failed to authenticate. # noqa: E501 - :param cloud_trail: The cloud_trail of this CloudIntegration. # noqa: E501 - :type: CloudTrailConfiguration + :param disabled: The disabled of this CloudIntegration. # noqa: E501 + :type: bool """ - self._cloud_trail = cloud_trail + self._disabled = disabled + + @property + def dynatrace(self): + """Gets the dynatrace of this CloudIntegration. # noqa: E501 + + + :return: The dynatrace of this CloudIntegration. # noqa: E501 + :rtype: DynatraceConfiguration + """ + return self._dynatrace + + @dynatrace.setter + def dynatrace(self, dynatrace): + """Sets the dynatrace of this CloudIntegration. + + + :param dynatrace: The dynatrace of this CloudIntegration. # noqa: E501 + :type: DynatraceConfiguration + """ + + self._dynatrace = dynatrace @property def ec2(self): @@ -435,6 +466,27 @@ def ec2(self, ec2): self._ec2 = ec2 + @property + def force_save(self): + """Gets the force_save of this CloudIntegration. # noqa: E501 + + + :return: The force_save of this CloudIntegration. # noqa: E501 + :rtype: bool + """ + return self._force_save + + @force_save.setter + def force_save(self, force_save): + """Sets the force_save of this CloudIntegration. + + + :param force_save: The force_save of this CloudIntegration. # noqa: E501 + :type: bool + """ + + self._force_save = force_save + @property def gcp(self): """Gets the gcp of this CloudIntegration. # noqa: E501 @@ -457,67 +509,67 @@ def gcp(self, gcp): self._gcp = gcp @property - def tesla(self): - """Gets the tesla of this CloudIntegration. # noqa: E501 + def gcp_billing(self): + """Gets the gcp_billing of this CloudIntegration. # noqa: E501 - :return: The tesla of this CloudIntegration. # noqa: E501 - :rtype: TeslaConfiguration + :return: The gcp_billing of this CloudIntegration. # noqa: E501 + :rtype: GCPBillingConfiguration """ - return self._tesla + return self._gcp_billing - @tesla.setter - def tesla(self, tesla): - """Sets the tesla of this CloudIntegration. + @gcp_billing.setter + def gcp_billing(self, gcp_billing): + """Sets the gcp_billing of this CloudIntegration. - :param tesla: The tesla of this CloudIntegration. # noqa: E501 - :type: TeslaConfiguration + :param gcp_billing: The gcp_billing of this CloudIntegration. # noqa: E501 + :type: GCPBillingConfiguration """ - self._tesla = tesla + self._gcp_billing = gcp_billing @property - def azure(self): - """Gets the azure of this CloudIntegration. # noqa: E501 + def id(self): + """Gets the id of this CloudIntegration. # noqa: E501 - :return: The azure of this CloudIntegration. # noqa: E501 - :rtype: AzureConfiguration + :return: The id of this CloudIntegration. # noqa: E501 + :rtype: str """ - return self._azure + return self._id - @azure.setter - def azure(self, azure): - """Sets the azure of this CloudIntegration. + @id.setter + def id(self, id): + """Sets the id of this CloudIntegration. - :param azure: The azure of this CloudIntegration. # noqa: E501 - :type: AzureConfiguration + :param id: The id of this CloudIntegration. # noqa: E501 + :type: str """ - self._azure = azure + self._id = id @property - def azure_activity_log(self): - """Gets the azure_activity_log of this CloudIntegration. # noqa: E501 + def in_trash(self): + """Gets the in_trash of this CloudIntegration. # noqa: E501 - :return: The azure_activity_log of this CloudIntegration. # noqa: E501 - :rtype: AzureActivityLogConfiguration + :return: The in_trash of this CloudIntegration. # noqa: E501 + :rtype: bool """ - return self._azure_activity_log + return self._in_trash - @azure_activity_log.setter - def azure_activity_log(self, azure_activity_log): - """Sets the azure_activity_log of this CloudIntegration. + @in_trash.setter + def in_trash(self, in_trash): + """Sets the in_trash of this CloudIntegration. - :param azure_activity_log: The azure_activity_log of this CloudIntegration. # noqa: E501 - :type: AzureActivityLogConfiguration + :param in_trash: The in_trash of this CloudIntegration. # noqa: E501 + :type: bool """ - self._azure_activity_log = azure_activity_log + self._in_trash = in_trash @property def last_error(self): @@ -542,6 +594,27 @@ def last_error(self, last_error): self._last_error = last_error + @property + def last_error_event(self): + """Gets the last_error_event of this CloudIntegration. # noqa: E501 + + + :return: The last_error_event of this CloudIntegration. # noqa: E501 + :rtype: Event + """ + return self._last_error_event + + @last_error_event.setter + def last_error_event(self, last_error_event): + """Sets the last_error_event of this CloudIntegration. + + + :param last_error_event: The last_error_event of this CloudIntegration. # noqa: E501 + :type: Event + """ + + self._last_error_event = last_error_event + @property def last_error_ms(self): """Gets the last_error_ms of this CloudIntegration. # noqa: E501 @@ -566,27 +639,50 @@ def last_error_ms(self, last_error_ms): self._last_error_ms = last_error_ms @property - def disabled(self): - """Gets the disabled of this CloudIntegration. # noqa: E501 + def last_metric_count(self): + """Gets the last_metric_count of this CloudIntegration. # noqa: E501 - True when an aws credential failed to authenticate. # noqa: E501 + Number of metrics / events ingested by this integration the last time it ran # noqa: E501 - :return: The disabled of this CloudIntegration. # noqa: E501 - :rtype: bool + :return: The last_metric_count of this CloudIntegration. # noqa: E501 + :rtype: int """ - return self._disabled + return self._last_metric_count - @disabled.setter - def disabled(self, disabled): - """Sets the disabled of this CloudIntegration. + @last_metric_count.setter + def last_metric_count(self, last_metric_count): + """Sets the last_metric_count of this CloudIntegration. - True when an aws credential failed to authenticate. # noqa: E501 + Number of metrics / events ingested by this integration the last time it ran # noqa: E501 - :param disabled: The disabled of this CloudIntegration. # noqa: E501 - :type: bool + :param last_metric_count: The last_metric_count of this CloudIntegration. # noqa: E501 + :type: int """ - self._disabled = disabled + self._last_metric_count = last_metric_count + + @property + def last_processing_timestamp(self): + """Gets the last_processing_timestamp of this CloudIntegration. # noqa: E501 + + Time, in epoch millis, that this integration was last processed # noqa: E501 + + :return: The last_processing_timestamp of this CloudIntegration. # noqa: E501 + :rtype: int + """ + return self._last_processing_timestamp + + @last_processing_timestamp.setter + def last_processing_timestamp(self, last_processing_timestamp): + """Sets the last_processing_timestamp of this CloudIntegration. + + Time, in epoch millis, that this integration was last processed # noqa: E501 + + :param last_processing_timestamp: The last_processing_timestamp of this CloudIntegration. # noqa: E501 + :type: int + """ + + self._last_processing_timestamp = last_processing_timestamp @property def last_processor_id(self): @@ -612,69 +708,126 @@ def last_processor_id(self, last_processor_id): self._last_processor_id = last_processor_id @property - def last_processing_timestamp(self): - """Gets the last_processing_timestamp of this CloudIntegration. # noqa: E501 + def last_received_data_point_ms(self): + """Gets the last_received_data_point_ms of this CloudIntegration. # noqa: E501 - Time, in epoch millis, that this integration was last processed # noqa: E501 + Time that this integration last received a data point, in epoch millis # noqa: E501 - :return: The last_processing_timestamp of this CloudIntegration. # noqa: E501 + :return: The last_received_data_point_ms of this CloudIntegration. # noqa: E501 :rtype: int """ - return self._last_processing_timestamp + return self._last_received_data_point_ms - @last_processing_timestamp.setter - def last_processing_timestamp(self, last_processing_timestamp): - """Sets the last_processing_timestamp of this CloudIntegration. + @last_received_data_point_ms.setter + def last_received_data_point_ms(self, last_received_data_point_ms): + """Sets the last_received_data_point_ms of this CloudIntegration. - Time, in epoch millis, that this integration was last processed # noqa: E501 + Time that this integration last received a data point, in epoch millis # noqa: E501 - :param last_processing_timestamp: The last_processing_timestamp of this CloudIntegration. # noqa: E501 + :param last_received_data_point_ms: The last_received_data_point_ms of this CloudIntegration. # noqa: E501 :type: int """ - self._last_processing_timestamp = last_processing_timestamp + self._last_received_data_point_ms = last_received_data_point_ms @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this CloudIntegration. # noqa: E501 + def name(self): + """Gets the name of this CloudIntegration. # noqa: E501 + The human-readable name of this integration # noqa: E501 - :return: The created_epoch_millis of this CloudIntegration. # noqa: E501 - :rtype: int + :return: The name of this CloudIntegration. # noqa: E501 + :rtype: str """ - return self._created_epoch_millis + return self._name - @created_epoch_millis.setter - def created_epoch_millis(self, created_epoch_millis): - """Sets the created_epoch_millis of this CloudIntegration. + @name.setter + def name(self, name): + """Sets the name of this CloudIntegration. + The human-readable name of this integration # noqa: E501 - :param created_epoch_millis: The created_epoch_millis of this CloudIntegration. # noqa: E501 - :type: int + :param name: The name of this CloudIntegration. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._created_epoch_millis = created_epoch_millis + self._name = name @property - def updated_epoch_millis(self): - """Gets the updated_epoch_millis of this CloudIntegration. # noqa: E501 + def new_relic(self): + """Gets the new_relic of this CloudIntegration. # noqa: E501 - :return: The updated_epoch_millis of this CloudIntegration. # noqa: E501 - :rtype: int + :return: The new_relic of this CloudIntegration. # noqa: E501 + :rtype: NewRelicConfiguration """ - return self._updated_epoch_millis + return self._new_relic - @updated_epoch_millis.setter - def updated_epoch_millis(self, updated_epoch_millis): - """Sets the updated_epoch_millis of this CloudIntegration. + @new_relic.setter + def new_relic(self, new_relic): + """Sets the new_relic of this CloudIntegration. - :param updated_epoch_millis: The updated_epoch_millis of this CloudIntegration. # noqa: E501 - :type: int + :param new_relic: The new_relic of this CloudIntegration. # noqa: E501 + :type: NewRelicConfiguration """ - self._updated_epoch_millis = updated_epoch_millis + self._new_relic = new_relic + + @property + def reuse_external_id_credential(self): + """Gets the reuse_external_id_credential of this CloudIntegration. # noqa: E501 + + + :return: The reuse_external_id_credential of this CloudIntegration. # noqa: E501 + :rtype: str + """ + return self._reuse_external_id_credential + + @reuse_external_id_credential.setter + def reuse_external_id_credential(self, reuse_external_id_credential): + """Sets the reuse_external_id_credential of this CloudIntegration. + + + :param reuse_external_id_credential: The reuse_external_id_credential of this CloudIntegration. # noqa: E501 + :type: str + """ + + self._reuse_external_id_credential = reuse_external_id_credential + + @property + def service(self): + """Gets the service of this CloudIntegration. # noqa: E501 + + A value denoting which cloud service this integration integrates with # noqa: E501 + + :return: The service of this CloudIntegration. # noqa: E501 + :rtype: str + """ + return self._service + + @service.setter + def service(self, service): + """Sets the service of this CloudIntegration. + + A value denoting which cloud service this integration integrates with # noqa: E501 + + :param service: The service of this CloudIntegration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and service is None: + raise ValueError("Invalid value for `service`, must not be `None`") # noqa: E501 + allowed_values = ["CLOUDWATCH", "CLOUDTRAIL", "EC2", "GCP", "GCPBILLING", "AZURE", "AZUREACTIVITYLOG", "NEWRELIC", "APPDYNAMICS", "VROPS", "SNOWFLAKE", "DYNATRACE"] # noqa: E501 + if (self._configuration.client_side_validation and + service not in allowed_values): + raise ValueError( + "Invalid value for `service` ({0}), must be one of {1}" # noqa: E501 + .format(service, allowed_values) + ) + + self._service = service @property def service_refresh_rate_in_mins(self): @@ -700,88 +853,88 @@ def service_refresh_rate_in_mins(self, service_refresh_rate_in_mins): self._service_refresh_rate_in_mins = service_refresh_rate_in_mins @property - def updater_id(self): - """Gets the updater_id of this CloudIntegration. # noqa: E501 + def snowflake(self): + """Gets the snowflake of this CloudIntegration. # noqa: E501 - :return: The updater_id of this CloudIntegration. # noqa: E501 - :rtype: str + :return: The snowflake of this CloudIntegration. # noqa: E501 + :rtype: SnowflakeConfiguration """ - return self._updater_id + return self._snowflake - @updater_id.setter - def updater_id(self, updater_id): - """Sets the updater_id of this CloudIntegration. + @snowflake.setter + def snowflake(self, snowflake): + """Sets the snowflake of this CloudIntegration. - :param updater_id: The updater_id of this CloudIntegration. # noqa: E501 - :type: str + :param snowflake: The snowflake of this CloudIntegration. # noqa: E501 + :type: SnowflakeConfiguration """ - self._updater_id = updater_id + self._snowflake = snowflake @property - def in_trash(self): - """Gets the in_trash of this CloudIntegration. # noqa: E501 + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this CloudIntegration. # noqa: E501 - :return: The in_trash of this CloudIntegration. # noqa: E501 - :rtype: bool + :return: The updated_epoch_millis of this CloudIntegration. # noqa: E501 + :rtype: int """ - return self._in_trash + return self._updated_epoch_millis - @in_trash.setter - def in_trash(self, in_trash): - """Sets the in_trash of this CloudIntegration. + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this CloudIntegration. - :param in_trash: The in_trash of this CloudIntegration. # noqa: E501 - :type: bool + :param updated_epoch_millis: The updated_epoch_millis of this CloudIntegration. # noqa: E501 + :type: int """ - self._in_trash = in_trash + self._updated_epoch_millis = updated_epoch_millis @property - def last_error_event(self): - """Gets the last_error_event of this CloudIntegration. # noqa: E501 + def updater_id(self): + """Gets the updater_id of this CloudIntegration. # noqa: E501 - :return: The last_error_event of this CloudIntegration. # noqa: E501 - :rtype: Event + :return: The updater_id of this CloudIntegration. # noqa: E501 + :rtype: str """ - return self._last_error_event + return self._updater_id - @last_error_event.setter - def last_error_event(self, last_error_event): - """Sets the last_error_event of this CloudIntegration. + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this CloudIntegration. - :param last_error_event: The last_error_event of this CloudIntegration. # noqa: E501 - :type: Event + :param updater_id: The updater_id of this CloudIntegration. # noqa: E501 + :type: str """ - self._last_error_event = last_error_event + self._updater_id = updater_id @property - def deleted(self): - """Gets the deleted of this CloudIntegration. # noqa: E501 + def vrops(self): + """Gets the vrops of this CloudIntegration. # noqa: E501 - :return: The deleted of this CloudIntegration. # noqa: E501 - :rtype: bool + :return: The vrops of this CloudIntegration. # noqa: E501 + :rtype: VropsConfiguration """ - return self._deleted + return self._vrops - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this CloudIntegration. + @vrops.setter + def vrops(self, vrops): + """Sets the vrops of this CloudIntegration. - :param deleted: The deleted of this CloudIntegration. # noqa: E501 - :type: bool + :param vrops: The vrops of this CloudIntegration. # noqa: E501 + :type: VropsConfiguration """ - self._deleted = deleted + self._vrops = vrops def to_dict(self): """Returns the model properties as a dict""" @@ -804,6 +957,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CloudIntegration, dict): + for key, value in self.items(): + result[key] = value return result @@ -820,8 +976,11 @@ def __eq__(self, other): if not isinstance(other, CloudIntegration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CloudIntegration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/cloud_trail_configuration.py b/wavefront_api_client/models/cloud_trail_configuration.py index 4f9a981f..e0da501c 100644 --- a/wavefront_api_client/models/cloud_trail_configuration.py +++ b/wavefront_api_client/models/cloud_trail_configuration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.aws_base_credentials import AWSBaseCredentials # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class CloudTrailConfiguration(object): @@ -33,87 +33,42 @@ class CloudTrailConfiguration(object): and the value is json key in definition. """ swagger_types = { - 'region': 'str', - 'prefix': 'str', 'base_credentials': 'AWSBaseCredentials', 'bucket_name': 'str', - 'filter_rule': 'str' + 'filter_rule': 'str', + 'prefix': 'str', + 'region': 'str' } attribute_map = { - 'region': 'region', - 'prefix': 'prefix', 'base_credentials': 'baseCredentials', 'bucket_name': 'bucketName', - 'filter_rule': 'filterRule' + 'filter_rule': 'filterRule', + 'prefix': 'prefix', + 'region': 'region' } - def __init__(self, region=None, prefix=None, base_credentials=None, bucket_name=None, filter_rule=None): # noqa: E501 + def __init__(self, base_credentials=None, bucket_name=None, filter_rule=None, prefix=None, region=None, _configuration=None): # noqa: E501 """CloudTrailConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._region = None - self._prefix = None self._base_credentials = None self._bucket_name = None self._filter_rule = None + self._prefix = None + self._region = None self.discriminator = None - self.region = region - if prefix is not None: - self.prefix = prefix if base_credentials is not None: self.base_credentials = base_credentials self.bucket_name = bucket_name if filter_rule is not None: self.filter_rule = filter_rule - - @property - def region(self): - """Gets the region of this CloudTrailConfiguration. # noqa: E501 - - The AWS region of the S3 bucket where CloudTrail logs are stored # noqa: E501 - - :return: The region of this CloudTrailConfiguration. # noqa: E501 - :rtype: str - """ - return self._region - - @region.setter - def region(self, region): - """Sets the region of this CloudTrailConfiguration. - - The AWS region of the S3 bucket where CloudTrail logs are stored # noqa: E501 - - :param region: The region of this CloudTrailConfiguration. # noqa: E501 - :type: str - """ - if region is None: - raise ValueError("Invalid value for `region`, must not be `None`") # noqa: E501 - - self._region = region - - @property - def prefix(self): - """Gets the prefix of this CloudTrailConfiguration. # noqa: E501 - - The common prefix, if any, appended to all CloudTrail log files # noqa: E501 - - :return: The prefix of this CloudTrailConfiguration. # noqa: E501 - :rtype: str - """ - return self._prefix - - @prefix.setter - def prefix(self, prefix): - """Sets the prefix of this CloudTrailConfiguration. - - The common prefix, if any, appended to all CloudTrail log files # noqa: E501 - - :param prefix: The prefix of this CloudTrailConfiguration. # noqa: E501 - :type: str - """ - - self._prefix = prefix + if prefix is not None: + self.prefix = prefix + self.region = region @property def base_credentials(self): @@ -156,7 +111,7 @@ def bucket_name(self, bucket_name): :param bucket_name: The bucket_name of this CloudTrailConfiguration. # noqa: E501 :type: str """ - if bucket_name is None: + if self._configuration.client_side_validation and bucket_name is None: raise ValueError("Invalid value for `bucket_name`, must not be `None`") # noqa: E501 self._bucket_name = bucket_name @@ -184,6 +139,54 @@ def filter_rule(self, filter_rule): self._filter_rule = filter_rule + @property + def prefix(self): + """Gets the prefix of this CloudTrailConfiguration. # noqa: E501 + + The common prefix, if any, appended to all CloudTrail log files # noqa: E501 + + :return: The prefix of this CloudTrailConfiguration. # noqa: E501 + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this CloudTrailConfiguration. + + The common prefix, if any, appended to all CloudTrail log files # noqa: E501 + + :param prefix: The prefix of this CloudTrailConfiguration. # noqa: E501 + :type: str + """ + + self._prefix = prefix + + @property + def region(self): + """Gets the region of this CloudTrailConfiguration. # noqa: E501 + + The AWS region of the S3 bucket where CloudTrail logs are stored # noqa: E501 + + :return: The region of this CloudTrailConfiguration. # noqa: E501 + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this CloudTrailConfiguration. + + The AWS region of the S3 bucket where CloudTrail logs are stored # noqa: E501 + + :param region: The region of this CloudTrailConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and region is None: + raise ValueError("Invalid value for `region`, must not be `None`") # noqa: E501 + + self._region = region + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -205,6 +208,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CloudTrailConfiguration, dict): + for key, value in self.items(): + result[key] = value return result @@ -221,8 +227,11 @@ def __eq__(self, other): if not isinstance(other, CloudTrailConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CloudTrailConfiguration): + 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 0287dd75..50c9e365 100644 --- a/wavefront_api_client/models/cloud_watch_configuration.py +++ b/wavefront_api_client/models/cloud_watch_configuration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.aws_base_credentials import AWSBaseCredentials # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class CloudWatchConfiguration(object): @@ -34,45 +34,68 @@ class CloudWatchConfiguration(object): """ swagger_types = { 'base_credentials': 'AWSBaseCredentials', - 'metric_filter_regex': 'str', 'instance_selection_tags': 'dict(str, str)', - 'volume_selection_tags': 'dict(str, str)', + 'instance_selection_tags_expr': 'str', + 'metric_filter_regex': 'str', + 'namespaces': 'list[str]', 'point_tag_filter_regex': 'str', - 'namespaces': 'list[str]' + 's3_bucket_name_filter_regex': 'str', + 'thread_distribution_in_mins': 'int', + 'volume_selection_tags': 'dict(str, str)', + 'volume_selection_tags_expr': 'str' } attribute_map = { 'base_credentials': 'baseCredentials', - 'metric_filter_regex': 'metricFilterRegex', 'instance_selection_tags': 'instanceSelectionTags', - 'volume_selection_tags': 'volumeSelectionTags', + 'instance_selection_tags_expr': 'instanceSelectionTagsExpr', + 'metric_filter_regex': 'metricFilterRegex', + 'namespaces': 'namespaces', 'point_tag_filter_regex': 'pointTagFilterRegex', - 'namespaces': 'namespaces' + 's3_bucket_name_filter_regex': 's3BucketNameFilterRegex', + 'thread_distribution_in_mins': 'threadDistributionInMins', + 'volume_selection_tags': 'volumeSelectionTags', + 'volume_selection_tags_expr': 'volumeSelectionTagsExpr' } - def __init__(self, base_credentials=None, metric_filter_regex=None, instance_selection_tags=None, volume_selection_tags=None, point_tag_filter_regex=None, namespaces=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, s3_bucket_name_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() + self._configuration = _configuration self._base_credentials = None - self._metric_filter_regex = None self._instance_selection_tags = None - self._volume_selection_tags = None - self._point_tag_filter_regex = None + self._instance_selection_tags_expr = None + self._metric_filter_regex = None self._namespaces = None + self._point_tag_filter_regex = None + self._s3_bucket_name_filter_regex = None + self._thread_distribution_in_mins = None + self._volume_selection_tags = None + self._volume_selection_tags_expr = None self.discriminator = None if base_credentials is not None: self.base_credentials = base_credentials - if metric_filter_regex is not None: - self.metric_filter_regex = metric_filter_regex if instance_selection_tags is not None: self.instance_selection_tags = instance_selection_tags - if volume_selection_tags is not None: - self.volume_selection_tags = volume_selection_tags - if point_tag_filter_regex is not None: - self.point_tag_filter_regex = point_tag_filter_regex + if instance_selection_tags_expr is not None: + self.instance_selection_tags_expr = instance_selection_tags_expr + if metric_filter_regex is not None: + self.metric_filter_regex = metric_filter_regex if namespaces is not None: self.namespaces = namespaces + if point_tag_filter_regex is not None: + self.point_tag_filter_regex = point_tag_filter_regex + if s3_bucket_name_filter_regex is not None: + self.s3_bucket_name_filter_regex = s3_bucket_name_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: + self.volume_selection_tags_expr = volume_selection_tags_expr @property def base_credentials(self): @@ -95,34 +118,11 @@ def base_credentials(self, base_credentials): self._base_credentials = base_credentials - @property - def metric_filter_regex(self): - """Gets the metric_filter_regex of this CloudWatchConfiguration. # noqa: E501 - - A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested # noqa: E501 - - :return: The metric_filter_regex of this CloudWatchConfiguration. # noqa: E501 - :rtype: str - """ - return self._metric_filter_regex - - @metric_filter_regex.setter - def metric_filter_regex(self, metric_filter_regex): - """Sets the metric_filter_regex of this CloudWatchConfiguration. - - A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested # noqa: E501 - - :param metric_filter_regex: The metric_filter_regex of this CloudWatchConfiguration. # noqa: E501 - :type: str - """ - - self._metric_filter_regex = metric_filter_regex - @property def instance_selection_tags(self): """Gets the instance_selection_tags of this CloudWatchConfiguration. # noqa: E501 - A comma-separated white list of AWS instance tag-value pairs (in AWS). If the instance's AWS tags match this whitelist, CloudWatch data about this instance is ingested. Multiple entries are OR'ed # noqa: E501 + A string->string map of allow list of AWS instance tag-value pairs (in AWS). If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested. Multiple entries are OR'ed # noqa: E501 :return: The instance_selection_tags of this CloudWatchConfiguration. # noqa: E501 :rtype: dict(str, str) @@ -133,7 +133,7 @@ def instance_selection_tags(self): def instance_selection_tags(self, instance_selection_tags): """Sets the instance_selection_tags of this CloudWatchConfiguration. - A comma-separated white list of AWS instance tag-value pairs (in AWS). If the instance's AWS tags match this whitelist, CloudWatch data about this instance is ingested. Multiple entries are OR'ed # noqa: E501 + A string->string map of allow list of AWS instance tag-value pairs (in AWS). If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested. Multiple entries are OR'ed # noqa: E501 :param instance_selection_tags: The instance_selection_tags of this CloudWatchConfiguration. # noqa: E501 :type: dict(str, str) @@ -142,50 +142,50 @@ def instance_selection_tags(self, instance_selection_tags): self._instance_selection_tags = instance_selection_tags @property - def volume_selection_tags(self): - """Gets the volume_selection_tags of this CloudWatchConfiguration. # noqa: E501 + def instance_selection_tags_expr(self): + """Gets the instance_selection_tags_expr of this CloudWatchConfiguration. # noqa: E501 - A comma-separated white list of AWS volume tag-value pairs (in AWS). If the volume's AWS tags match this whitelist, CloudWatch data about this volume is ingested. Multiple entries are OR'ed # noqa: E501 + A string expressing the allow list of AWS instance tag-value pairs. If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested. Multiple entries are OR'ed and also OR'ed with entries from instanceSelectionTags. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". # noqa: E501 - :return: The volume_selection_tags of this CloudWatchConfiguration. # noqa: E501 - :rtype: dict(str, str) + :return: The instance_selection_tags_expr of this CloudWatchConfiguration. # noqa: E501 + :rtype: str """ - return self._volume_selection_tags + return self._instance_selection_tags_expr - @volume_selection_tags.setter - def volume_selection_tags(self, volume_selection_tags): - """Sets the volume_selection_tags of this CloudWatchConfiguration. + @instance_selection_tags_expr.setter + def instance_selection_tags_expr(self, instance_selection_tags_expr): + """Sets the instance_selection_tags_expr of this CloudWatchConfiguration. - A comma-separated white list of AWS volume tag-value pairs (in AWS). If the volume's AWS tags match this whitelist, CloudWatch data about this volume is ingested. Multiple entries are OR'ed # noqa: E501 + A string expressing the allow list of AWS instance tag-value pairs. If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested. Multiple entries are OR'ed and also OR'ed with entries from instanceSelectionTags. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". # noqa: E501 - :param volume_selection_tags: The volume_selection_tags of this CloudWatchConfiguration. # noqa: E501 - :type: dict(str, str) + :param instance_selection_tags_expr: The instance_selection_tags_expr of this CloudWatchConfiguration. # noqa: E501 + :type: str """ - self._volume_selection_tags = volume_selection_tags + self._instance_selection_tags_expr = instance_selection_tags_expr @property - def point_tag_filter_regex(self): - """Gets the point_tag_filter_regex of this CloudWatchConfiguration. # noqa: E501 + def metric_filter_regex(self): + """Gets the metric_filter_regex of this CloudWatchConfiguration. # noqa: E501 - A regular expression that AWS tag key name must match (case-insensitively) in order to be ingested # noqa: E501 + A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested # noqa: E501 - :return: The point_tag_filter_regex of this CloudWatchConfiguration. # noqa: E501 + :return: The metric_filter_regex of this CloudWatchConfiguration. # noqa: E501 :rtype: str """ - return self._point_tag_filter_regex + return self._metric_filter_regex - @point_tag_filter_regex.setter - def point_tag_filter_regex(self, point_tag_filter_regex): - """Sets the point_tag_filter_regex of this CloudWatchConfiguration. + @metric_filter_regex.setter + def metric_filter_regex(self, metric_filter_regex): + """Sets the metric_filter_regex of this CloudWatchConfiguration. - A regular expression that AWS tag key name must match (case-insensitively) in order to be ingested # noqa: E501 + A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested # noqa: E501 - :param point_tag_filter_regex: The point_tag_filter_regex of this CloudWatchConfiguration. # noqa: E501 + :param metric_filter_regex: The metric_filter_regex of this CloudWatchConfiguration. # noqa: E501 :type: str """ - self._point_tag_filter_regex = point_tag_filter_regex + self._metric_filter_regex = metric_filter_regex @property def namespaces(self): @@ -210,6 +210,121 @@ def namespaces(self, namespaces): self._namespaces = namespaces + @property + def point_tag_filter_regex(self): + """Gets the point_tag_filter_regex of this CloudWatchConfiguration. # noqa: E501 + + A regular expression that AWS tag key name must match (case-insensitively) in order to be ingested # noqa: E501 + + :return: The point_tag_filter_regex of this CloudWatchConfiguration. # noqa: E501 + :rtype: str + """ + return self._point_tag_filter_regex + + @point_tag_filter_regex.setter + def point_tag_filter_regex(self, point_tag_filter_regex): + """Sets the point_tag_filter_regex of this CloudWatchConfiguration. + + A regular expression that AWS tag key name must match (case-insensitively) in order to be ingested # noqa: E501 + + :param point_tag_filter_regex: The point_tag_filter_regex of this CloudWatchConfiguration. # noqa: E501 + :type: str + """ + + self._point_tag_filter_regex = point_tag_filter_regex + + @property + def s3_bucket_name_filter_regex(self): + """Gets the s3_bucket_name_filter_regex of this CloudWatchConfiguration. # noqa: E501 + + A regular expression that a AWS S3 Bucket name must match (case-insensitively) in order to be ingested # noqa: E501 + + :return: The s3_bucket_name_filter_regex of this CloudWatchConfiguration. # noqa: E501 + :rtype: str + """ + return self._s3_bucket_name_filter_regex + + @s3_bucket_name_filter_regex.setter + def s3_bucket_name_filter_regex(self, s3_bucket_name_filter_regex): + """Sets the s3_bucket_name_filter_regex of this CloudWatchConfiguration. + + A regular expression that a AWS S3 Bucket name must match (case-insensitively) in order to be ingested # noqa: E501 + + :param s3_bucket_name_filter_regex: The s3_bucket_name_filter_regex of this CloudWatchConfiguration. # noqa: E501 + :type: str + """ + + self._s3_bucket_name_filter_regex = s3_bucket_name_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 + + 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 # noqa: E501 + + :return: The volume_selection_tags of this CloudWatchConfiguration. # noqa: E501 + :rtype: dict(str, str) + """ + return self._volume_selection_tags + + @volume_selection_tags.setter + def volume_selection_tags(self, volume_selection_tags): + """Sets the volume_selection_tags of this CloudWatchConfiguration. + + 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 # noqa: E501 + + :param volume_selection_tags: The volume_selection_tags of this CloudWatchConfiguration. # noqa: E501 + :type: dict(str, str) + """ + + self._volume_selection_tags = volume_selection_tags + + @property + def volume_selection_tags_expr(self): + """Gets the volume_selection_tags_expr of this CloudWatchConfiguration. # noqa: E501 + + 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\". # noqa: E501 + + :return: The volume_selection_tags_expr of this CloudWatchConfiguration. # noqa: E501 + :rtype: str + """ + return self._volume_selection_tags_expr + + @volume_selection_tags_expr.setter + def volume_selection_tags_expr(self, volume_selection_tags_expr): + """Sets the volume_selection_tags_expr of this CloudWatchConfiguration. + + 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\". # noqa: E501 + + :param volume_selection_tags_expr: The volume_selection_tags_expr of this CloudWatchConfiguration. # noqa: E501 + :type: str + """ + + self._volume_selection_tags_expr = volume_selection_tags_expr + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -231,6 +346,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CloudWatchConfiguration, dict): + for key, value in self.items(): + result[key] = value return result @@ -247,8 +365,11 @@ def __eq__(self, other): if not isinstance(other, CloudWatchConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CloudWatchConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/cluster_info_dto.py b/wavefront_api_client/models/cluster_info_dto.py new file mode 100644 index 00000000..bec12fbe --- /dev/null +++ b/wavefront_api_client/models/cluster_info_dto.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ClusterInfoDTO(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 = { + 'cluster_alias': 'str', + 'status_page_link': 'str' + } + + attribute_map = { + 'cluster_alias': 'clusterAlias', + 'status_page_link': 'statusPageLink' + } + + def __init__(self, cluster_alias=None, status_page_link=None, _configuration=None): # noqa: E501 + """ClusterInfoDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._cluster_alias = None + self._status_page_link = None + self.discriminator = None + + if cluster_alias is not None: + self.cluster_alias = cluster_alias + if status_page_link is not None: + self.status_page_link = status_page_link + + @property + def cluster_alias(self): + """Gets the cluster_alias of this ClusterInfoDTO. # noqa: E501 + + + :return: The cluster_alias of this ClusterInfoDTO. # noqa: E501 + :rtype: str + """ + return self._cluster_alias + + @cluster_alias.setter + def cluster_alias(self, cluster_alias): + """Sets the cluster_alias of this ClusterInfoDTO. + + + :param cluster_alias: The cluster_alias of this ClusterInfoDTO. # noqa: E501 + :type: str + """ + + self._cluster_alias = cluster_alias + + @property + def status_page_link(self): + """Gets the status_page_link of this ClusterInfoDTO. # noqa: E501 + + + :return: The status_page_link of this ClusterInfoDTO. # noqa: E501 + :rtype: str + """ + return self._status_page_link + + @status_page_link.setter + def status_page_link(self, status_page_link): + """Sets the status_page_link of this ClusterInfoDTO. + + + :param status_page_link: The status_page_link of this ClusterInfoDTO. # noqa: E501 + :type: str + """ + + self._status_page_link = status_page_link + + 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(ClusterInfoDTO, 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, ClusterInfoDTO): + 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, ClusterInfoDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/conversion.py b/wavefront_api_client/models/conversion.py new file mode 100644 index 00000000..d5bc7789 --- /dev/null +++ b/wavefront_api_client/models/conversion.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Conversion(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 = { + 'logical_type_name': 'str', + 'recommended_schema': 'Schema' + } + + attribute_map = { + 'logical_type_name': 'logicalTypeName', + 'recommended_schema': 'recommendedSchema' + } + + def __init__(self, logical_type_name=None, recommended_schema=None, _configuration=None): # noqa: E501 + """Conversion - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._logical_type_name = None + self._recommended_schema = None + self.discriminator = None + + if logical_type_name is not None: + self.logical_type_name = logical_type_name + if recommended_schema is not None: + self.recommended_schema = recommended_schema + + @property + def logical_type_name(self): + """Gets the logical_type_name of this Conversion. # noqa: E501 + + + :return: The logical_type_name of this Conversion. # noqa: E501 + :rtype: str + """ + return self._logical_type_name + + @logical_type_name.setter + def logical_type_name(self, logical_type_name): + """Sets the logical_type_name of this Conversion. + + + :param logical_type_name: The logical_type_name of this Conversion. # noqa: E501 + :type: str + """ + + self._logical_type_name = logical_type_name + + @property + def recommended_schema(self): + """Gets the recommended_schema of this Conversion. # noqa: E501 + + + :return: The recommended_schema of this Conversion. # noqa: E501 + :rtype: Schema + """ + return self._recommended_schema + + @recommended_schema.setter + def recommended_schema(self, recommended_schema): + """Sets the recommended_schema of this Conversion. + + + :param recommended_schema: The recommended_schema of this Conversion. # noqa: E501 + :type: Schema + """ + + self._recommended_schema = recommended_schema + + 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(Conversion, 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, Conversion): + 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, Conversion): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/conversion_object.py b/wavefront_api_client/models/conversion_object.py new file mode 100644 index 00000000..73becaa4 --- /dev/null +++ b/wavefront_api_client/models/conversion_object.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ConversionObject(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 = { + 'logical_type_name': 'str', + 'recommended_schema': 'Schema' + } + + attribute_map = { + 'logical_type_name': 'logicalTypeName', + 'recommended_schema': 'recommendedSchema' + } + + def __init__(self, logical_type_name=None, recommended_schema=None, _configuration=None): # noqa: E501 + """ConversionObject - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._logical_type_name = None + self._recommended_schema = None + self.discriminator = None + + if logical_type_name is not None: + self.logical_type_name = logical_type_name + if recommended_schema is not None: + self.recommended_schema = recommended_schema + + @property + def logical_type_name(self): + """Gets the logical_type_name of this ConversionObject. # noqa: E501 + + + :return: The logical_type_name of this ConversionObject. # noqa: E501 + :rtype: str + """ + return self._logical_type_name + + @logical_type_name.setter + def logical_type_name(self, logical_type_name): + """Sets the logical_type_name of this ConversionObject. + + + :param logical_type_name: The logical_type_name of this ConversionObject. # noqa: E501 + :type: str + """ + + self._logical_type_name = logical_type_name + + @property + def recommended_schema(self): + """Gets the recommended_schema of this ConversionObject. # noqa: E501 + + + :return: The recommended_schema of this ConversionObject. # noqa: E501 + :rtype: Schema + """ + return self._recommended_schema + + @recommended_schema.setter + def recommended_schema(self, recommended_schema): + """Sets the recommended_schema of this ConversionObject. + + + :param recommended_schema: The recommended_schema of this ConversionObject. # noqa: E501 + :type: Schema + """ + + self._recommended_schema = recommended_schema + + 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(ConversionObject, 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, ConversionObject): + 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, ConversionObject): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/customer_facing_user_object.py b/wavefront_api_client/models/customer_facing_user_object.py index 02a4df5d..ecad7f75 100644 --- a/wavefront_api_client/models/customer_facing_user_object.py +++ b/wavefront_api_client/models/customer_facing_user_object.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class CustomerFacingUserObject(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,77 +33,70 @@ class CustomerFacingUserObject(object): and the value is json key in definition. """ swagger_types = { - 'id': 'str', 'customer': 'str', - 'identifier': 'str', + 'escaped_identifier': 'str', + 'gravatar_url': 'str', 'groups': 'list[str]', + 'id': 'str', + 'identifier': 'str', 'last_successful_login': 'int', '_self': 'bool', - 'escaped_identifier': 'str', - 'gravatar_url': 'str' + 'united_permissions': 'list[str]', + 'united_roles': 'list[str]', + 'user_groups': 'list[str]' } attribute_map = { - 'id': 'id', 'customer': 'customer', - 'identifier': 'identifier', + 'escaped_identifier': 'escapedIdentifier', + 'gravatar_url': 'gravatarUrl', 'groups': 'groups', + 'id': 'id', + 'identifier': 'identifier', 'last_successful_login': 'lastSuccessfulLogin', '_self': 'self', - 'escaped_identifier': 'escapedIdentifier', - 'gravatar_url': 'gravatarUrl' + 'united_permissions': 'unitedPermissions', + 'united_roles': 'unitedRoles', + 'user_groups': 'userGroups' } - def __init__(self, id=None, customer=None, identifier=None, groups=None, last_successful_login=None, _self=None, escaped_identifier=None, gravatar_url=None): # noqa: E501 + def __init__(self, customer=None, escaped_identifier=None, gravatar_url=None, groups=None, id=None, identifier=None, last_successful_login=None, _self=None, united_permissions=None, united_roles=None, user_groups=None, _configuration=None): # noqa: E501 """CustomerFacingUserObject - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._id = None self._customer = None - self._identifier = None + self._escaped_identifier = None + self._gravatar_url = None self._groups = None + self._id = None + self._identifier = None self._last_successful_login = None self.__self = None - self._escaped_identifier = None - self._gravatar_url = None + self._united_permissions = None + self._united_roles = None + self._user_groups = None self.discriminator = None - self.id = id self.customer = customer - self.identifier = identifier + if escaped_identifier is not None: + self.escaped_identifier = escaped_identifier + if gravatar_url is not None: + self.gravatar_url = gravatar_url if groups is not None: self.groups = groups + self.id = id + self.identifier = identifier if last_successful_login is not None: self.last_successful_login = last_successful_login self._self = _self - if escaped_identifier is not None: - self.escaped_identifier = escaped_identifier - if gravatar_url is not None: - self.gravatar_url = gravatar_url - - @property - def id(self): - """Gets the id of this CustomerFacingUserObject. # noqa: E501 - - The unique identifier of this user, which should be their valid email address # noqa: E501 - - :return: The id of this CustomerFacingUserObject. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this CustomerFacingUserObject. - - The unique identifier of this user, which should be their valid email address # noqa: E501 - - :param id: The id of this CustomerFacingUserObject. # noqa: E501 - :type: str - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id + if united_permissions is not None: + self.united_permissions = united_permissions + if united_roles is not None: + self.united_roles = united_roles + if user_groups is not None: + self.user_groups = user_groups @property def customer(self): @@ -123,35 +118,56 @@ def customer(self, customer): :param customer: The customer of this CustomerFacingUserObject. # noqa: E501 :type: str """ - if customer is None: + if self._configuration.client_side_validation and customer is None: raise ValueError("Invalid value for `customer`, must not be `None`") # noqa: E501 self._customer = customer @property - def identifier(self): - """Gets the identifier of this CustomerFacingUserObject. # noqa: E501 + def escaped_identifier(self): + """Gets the escaped_identifier of this CustomerFacingUserObject. # noqa: E501 - The unique identifier of this user, which should be their valid email address # noqa: E501 + URL Escaped Identifier # noqa: E501 - :return: The identifier of this CustomerFacingUserObject. # noqa: E501 + :return: The escaped_identifier of this CustomerFacingUserObject. # noqa: E501 :rtype: str """ - return self._identifier + return self._escaped_identifier - @identifier.setter - def identifier(self, identifier): - """Sets the identifier of this CustomerFacingUserObject. + @escaped_identifier.setter + def escaped_identifier(self, escaped_identifier): + """Sets the escaped_identifier of this CustomerFacingUserObject. - The unique identifier of this user, which should be their valid email address # noqa: E501 + URL Escaped Identifier # noqa: E501 - :param identifier: The identifier of this CustomerFacingUserObject. # noqa: E501 + :param escaped_identifier: The escaped_identifier of this CustomerFacingUserObject. # noqa: E501 :type: str """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 - self._identifier = identifier + self._escaped_identifier = escaped_identifier + + @property + def gravatar_url(self): + """Gets the gravatar_url of this CustomerFacingUserObject. # noqa: E501 + + URL id For User's gravatar (see gravatar.com), if one exists. # noqa: E501 + + :return: The gravatar_url of this CustomerFacingUserObject. # noqa: E501 + :rtype: str + """ + return self._gravatar_url + + @gravatar_url.setter + def gravatar_url(self, gravatar_url): + """Sets the gravatar_url of this CustomerFacingUserObject. + + URL id For User's gravatar (see gravatar.com), if one exists. # noqa: E501 + + :param gravatar_url: The gravatar_url of this CustomerFacingUserObject. # noqa: E501 + :type: str + """ + + self._gravatar_url = gravatar_url @property def groups(self): @@ -176,6 +192,56 @@ def groups(self, groups): self._groups = groups + @property + def id(self): + """Gets the id of this CustomerFacingUserObject. # noqa: E501 + + The unique identifier of this user, which should be their valid email address # noqa: E501 + + :return: The id of this CustomerFacingUserObject. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CustomerFacingUserObject. + + The unique identifier of this user, which should be their valid email address # noqa: E501 + + :param id: The id of this CustomerFacingUserObject. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def identifier(self): + """Gets the identifier of this CustomerFacingUserObject. # noqa: E501 + + The unique identifier of this user, which should be their valid email address # noqa: E501 + + :return: The identifier of this CustomerFacingUserObject. # noqa: E501 + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this CustomerFacingUserObject. + + The unique identifier of this user, which should be their valid email address # noqa: E501 + + :param identifier: The identifier of this CustomerFacingUserObject. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and identifier is None: + raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 + + self._identifier = identifier + @property def last_successful_login(self): """Gets the last_successful_login of this CustomerFacingUserObject. # noqa: E501 @@ -219,56 +285,79 @@ def _self(self, _self): :param _self: The _self of this CustomerFacingUserObject. # noqa: E501 :type: bool """ - if _self is None: + if self._configuration.client_side_validation and _self is None: raise ValueError("Invalid value for `_self`, must not be `None`") # noqa: E501 self.__self = _self @property - def escaped_identifier(self): - """Gets the escaped_identifier of this CustomerFacingUserObject. # noqa: E501 + def united_permissions(self): + """Gets the united_permissions of this CustomerFacingUserObject. # noqa: E501 - URL Escaped Identifier # noqa: E501 + The list of account's permissions assigned directly or through united roles assigned to it # noqa: E501 - :return: The escaped_identifier of this CustomerFacingUserObject. # noqa: E501 - :rtype: str + :return: The united_permissions of this CustomerFacingUserObject. # noqa: E501 + :rtype: list[str] """ - return self._escaped_identifier + return self._united_permissions - @escaped_identifier.setter - def escaped_identifier(self, escaped_identifier): - """Sets the escaped_identifier of this CustomerFacingUserObject. + @united_permissions.setter + def united_permissions(self, united_permissions): + """Sets the united_permissions of this CustomerFacingUserObject. - URL Escaped Identifier # noqa: E501 + The list of account's permissions assigned directly or through united roles assigned to it # noqa: E501 - :param escaped_identifier: The escaped_identifier of this CustomerFacingUserObject. # noqa: E501 - :type: str + :param united_permissions: The united_permissions of this CustomerFacingUserObject. # noqa: E501 + :type: list[str] """ - self._escaped_identifier = escaped_identifier + self._united_permissions = united_permissions @property - def gravatar_url(self): - """Gets the gravatar_url of this CustomerFacingUserObject. # noqa: E501 + def united_roles(self): + """Gets the united_roles of this CustomerFacingUserObject. # noqa: E501 - URL id For User's gravatar (see gravatar.com), if one exists. # noqa: E501 + The list of account's roles assigned directly or through user groups assigned to it # noqa: E501 - :return: The gravatar_url of this CustomerFacingUserObject. # noqa: E501 - :rtype: str + :return: The united_roles of this CustomerFacingUserObject. # noqa: E501 + :rtype: list[str] """ - return self._gravatar_url + return self._united_roles - @gravatar_url.setter - def gravatar_url(self, gravatar_url): - """Sets the gravatar_url of this CustomerFacingUserObject. + @united_roles.setter + def united_roles(self, united_roles): + """Sets the united_roles of this CustomerFacingUserObject. - URL id For User's gravatar (see gravatar.com), if one exists. # noqa: E501 + The list of account's roles assigned directly or through user groups assigned to it # noqa: E501 - :param gravatar_url: The gravatar_url of this CustomerFacingUserObject. # noqa: E501 - :type: str + :param united_roles: The united_roles of this CustomerFacingUserObject. # noqa: E501 + :type: list[str] """ - self._gravatar_url = gravatar_url + self._united_roles = united_roles + + @property + def user_groups(self): + """Gets the user_groups of this CustomerFacingUserObject. # noqa: E501 + + List of user group identifiers this user belongs to # noqa: E501 + + :return: The user_groups of this CustomerFacingUserObject. # noqa: E501 + :rtype: list[str] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this CustomerFacingUserObject. + + List of user group identifiers this user belongs to # noqa: E501 + + :param user_groups: The user_groups of this CustomerFacingUserObject. # noqa: E501 + :type: list[str] + """ + + self._user_groups = user_groups def to_dict(self): """Returns the model properties as a dict""" @@ -291,6 +380,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CustomerFacingUserObject, dict): + for key, value in self.items(): + result[key] = value return result @@ -307,8 +399,11 @@ def __eq__(self, other): if not isinstance(other, CustomerFacingUserObject): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomerFacingUserObject): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/dashboard.py b/wavefront_api_client/models/dashboard.py index adf3b88f..4fce7b1c 100644 --- a/wavefront_api_client/models/dashboard.py +++ b/wavefront_api_client/models/dashboard.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,9 +16,7 @@ import six -from wavefront_api_client.models.dashboard_parameter_value import DashboardParameterValue # noqa: F401,E501 -from wavefront_api_client.models.dashboard_section import DashboardSection # noqa: F401,E501 -from wavefront_api_client.models.wf_tags import WFTags # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class Dashboard(object): @@ -35,271 +33,352 @@ class Dashboard(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'id': 'str', - 'parameters': 'dict(str, str)', - 'tags': 'WFTags', + 'acl': 'AccessControlListSimple', + 'chart_title_bg_color': 'str', + 'chart_title_color': 'str', + 'chart_title_scalar': 'int', + 'created_epoch_millis': 'int', + 'creator_id': 'str', 'customer': 'str', + 'dashboard_attributes': 'JsonNode', + 'default_end_time': 'int', + 'default_start_time': 'int', + 'default_time_window': 'str', + 'deleted': 'bool', 'description': 'str', - 'url': 'str', - 'creator_id': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'event_filter_type': 'str', - 'sections': 'list[DashboardSection]', - 'parameter_details': 'dict(str, DashboardParameterValue)', + 'disable_refresh_in_live_mode': 'bool', 'display_description': 'bool', - 'display_section_table_of_contents': 'bool', 'display_query_parameters': 'bool', - 'chart_title_scalar': 'int', + 'display_section_table_of_contents': 'bool', + 'event_filter_type': 'str', 'event_query': 'str', - 'default_time_window': 'str', - 'default_start_time': 'int', - 'default_end_time': 'int', - 'chart_title_color': 'str', - 'chart_title_bg_color': 'str', - 'views_last_day': 'int', - 'views_last_week': 'int', - 'views_last_month': 'int', + 'favorite': 'bool', + 'force_v2_ui': 'bool', 'hidden': 'bool', - 'deleted': 'bool', - 'system_owned': 'bool', + 'hide_chart_warning': 'bool', + 'id': 'str', + 'include_obsolete_metrics': 'bool', + 'modify_acl_access': 'bool', + 'name': 'str', 'num_charts': 'int', 'num_favorites': 'int', - 'favorite': 'bool' + 'orphan': 'bool', + 'parameter_details': 'dict(str, DashboardParameterValue)', + 'parameters': 'dict(str, str)', + 'sections': 'list[DashboardSection]', + 'system_owned': 'bool', + 'tags': 'WFTags', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'url': 'str', + 'views_last_day': 'int', + 'views_last_month': 'int', + 'views_last_week': 'int' } attribute_map = { - 'name': 'name', - 'id': 'id', - 'parameters': 'parameters', - 'tags': 'tags', + 'acl': 'acl', + 'chart_title_bg_color': 'chartTitleBgColor', + 'chart_title_color': 'chartTitleColor', + 'chart_title_scalar': 'chartTitleScalar', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', 'customer': 'customer', + 'dashboard_attributes': 'dashboardAttributes', + 'default_end_time': 'defaultEndTime', + 'default_start_time': 'defaultStartTime', + 'default_time_window': 'defaultTimeWindow', + 'deleted': 'deleted', 'description': 'description', - 'url': 'url', - 'creator_id': 'creatorId', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'event_filter_type': 'eventFilterType', - 'sections': 'sections', - 'parameter_details': 'parameterDetails', + 'disable_refresh_in_live_mode': 'disableRefreshInLiveMode', 'display_description': 'displayDescription', - 'display_section_table_of_contents': 'displaySectionTableOfContents', 'display_query_parameters': 'displayQueryParameters', - 'chart_title_scalar': 'chartTitleScalar', + 'display_section_table_of_contents': 'displaySectionTableOfContents', + 'event_filter_type': 'eventFilterType', 'event_query': 'eventQuery', - 'default_time_window': 'defaultTimeWindow', - 'default_start_time': 'defaultStartTime', - 'default_end_time': 'defaultEndTime', - 'chart_title_color': 'chartTitleColor', - 'chart_title_bg_color': 'chartTitleBgColor', - 'views_last_day': 'viewsLastDay', - 'views_last_week': 'viewsLastWeek', - 'views_last_month': 'viewsLastMonth', + 'favorite': 'favorite', + 'force_v2_ui': 'forceV2UI', 'hidden': 'hidden', - 'deleted': 'deleted', - 'system_owned': 'systemOwned', + 'hide_chart_warning': 'hideChartWarning', + 'id': 'id', + 'include_obsolete_metrics': 'includeObsoleteMetrics', + 'modify_acl_access': 'modifyAclAccess', + 'name': 'name', 'num_charts': 'numCharts', 'num_favorites': 'numFavorites', - 'favorite': 'favorite' + 'orphan': 'orphan', + 'parameter_details': 'parameterDetails', + 'parameters': 'parameters', + 'sections': 'sections', + 'system_owned': 'systemOwned', + 'tags': 'tags', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'url': 'url', + 'views_last_day': 'viewsLastDay', + 'views_last_month': 'viewsLastMonth', + 'views_last_week': 'viewsLastWeek' } - def __init__(self, name=None, id=None, parameters=None, tags=None, customer=None, description=None, url=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, event_filter_type=None, sections=None, parameter_details=None, display_description=None, display_section_table_of_contents=None, display_query_parameters=None, chart_title_scalar=None, event_query=None, default_time_window=None, default_start_time=None, default_end_time=None, chart_title_color=None, chart_title_bg_color=None, views_last_day=None, views_last_week=None, views_last_month=None, hidden=None, deleted=None, system_owned=None, num_charts=None, num_favorites=None, favorite=None): # noqa: E501 + def __init__(self, acl=None, chart_title_bg_color=None, chart_title_color=None, chart_title_scalar=None, created_epoch_millis=None, creator_id=None, customer=None, dashboard_attributes=None, default_end_time=None, default_start_time=None, default_time_window=None, deleted=None, description=None, disable_refresh_in_live_mode=None, display_description=None, display_query_parameters=None, display_section_table_of_contents=None, event_filter_type=None, event_query=None, favorite=None, force_v2_ui=None, hidden=None, hide_chart_warning=None, id=None, include_obsolete_metrics=None, modify_acl_access=None, name=None, num_charts=None, num_favorites=None, orphan=None, parameter_details=None, parameters=None, sections=None, system_owned=None, tags=None, updated_epoch_millis=None, updater_id=None, url=None, views_last_day=None, views_last_month=None, views_last_week=None, _configuration=None): # noqa: E501 """Dashboard - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._name = None - self._id = None - self._parameters = None - self._tags = None + self._acl = None + self._chart_title_bg_color = None + self._chart_title_color = None + self._chart_title_scalar = None + self._created_epoch_millis = None + self._creator_id = None self._customer = None + self._dashboard_attributes = None + self._default_end_time = None + self._default_start_time = None + self._default_time_window = None + self._deleted = None self._description = None - self._url = None - self._creator_id = None - self._created_epoch_millis = None - self._updated_epoch_millis = None - self._updater_id = None - self._event_filter_type = None - self._sections = None - self._parameter_details = None + self._disable_refresh_in_live_mode = None self._display_description = None - self._display_section_table_of_contents = None self._display_query_parameters = None - self._chart_title_scalar = None + self._display_section_table_of_contents = None + self._event_filter_type = None self._event_query = None - self._default_time_window = None - self._default_start_time = None - self._default_end_time = None - self._chart_title_color = None - self._chart_title_bg_color = None - self._views_last_day = None - self._views_last_week = None - self._views_last_month = None + self._favorite = None + self._force_v2_ui = None self._hidden = None - self._deleted = None - self._system_owned = None + self._hide_chart_warning = None + self._id = None + self._include_obsolete_metrics = None + self._modify_acl_access = None + self._name = None self._num_charts = None self._num_favorites = None - self._favorite = None + self._orphan = None + self._parameter_details = None + self._parameters = None + self._sections = None + self._system_owned = None + self._tags = None + self._updated_epoch_millis = None + self._updater_id = None + self._url = None + self._views_last_day = None + self._views_last_month = None + self._views_last_week = None self.discriminator = None - self.name = name - self.id = id - if parameters is not None: - self.parameters = parameters - if tags is not None: - self.tags = tags + if acl is not None: + self.acl = acl + if chart_title_bg_color is not None: + self.chart_title_bg_color = chart_title_bg_color + if chart_title_color is not None: + self.chart_title_color = chart_title_color + if chart_title_scalar is not None: + self.chart_title_scalar = chart_title_scalar + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id if customer is not None: self.customer = customer + if dashboard_attributes is not None: + self.dashboard_attributes = dashboard_attributes + if default_end_time is not None: + self.default_end_time = default_end_time + if default_start_time is not None: + self.default_start_time = default_start_time + if default_time_window is not None: + self.default_time_window = default_time_window + if deleted is not None: + self.deleted = deleted if description is not None: self.description = description - self.url = url - if creator_id is not None: - self.creator_id = creator_id - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis - if updated_epoch_millis is not None: - self.updated_epoch_millis = updated_epoch_millis - if updater_id is not None: - self.updater_id = updater_id - if event_filter_type is not None: - self.event_filter_type = event_filter_type - self.sections = sections - if parameter_details is not None: - self.parameter_details = parameter_details + if disable_refresh_in_live_mode is not None: + self.disable_refresh_in_live_mode = disable_refresh_in_live_mode if display_description is not None: self.display_description = display_description - if display_section_table_of_contents is not None: - self.display_section_table_of_contents = display_section_table_of_contents if display_query_parameters is not None: self.display_query_parameters = display_query_parameters - if chart_title_scalar is not None: - self.chart_title_scalar = chart_title_scalar + if display_section_table_of_contents is not None: + self.display_section_table_of_contents = display_section_table_of_contents + if event_filter_type is not None: + self.event_filter_type = event_filter_type if event_query is not None: self.event_query = event_query - if default_time_window is not None: - self.default_time_window = default_time_window - if default_start_time is not None: - self.default_start_time = default_start_time - if default_end_time is not None: - self.default_end_time = default_end_time - if chart_title_color is not None: - self.chart_title_color = chart_title_color - if chart_title_bg_color is not None: - self.chart_title_bg_color = chart_title_bg_color - if views_last_day is not None: - self.views_last_day = views_last_day - if views_last_week is not None: - self.views_last_week = views_last_week - if views_last_month is not None: - self.views_last_month = views_last_month + if favorite is not None: + self.favorite = favorite + if force_v2_ui is not None: + self.force_v2_ui = force_v2_ui if hidden is not None: self.hidden = hidden - if deleted is not None: - self.deleted = deleted - if system_owned is not None: - self.system_owned = system_owned + if hide_chart_warning is not None: + self.hide_chart_warning = hide_chart_warning + self.id = id + if include_obsolete_metrics is not None: + self.include_obsolete_metrics = include_obsolete_metrics + if modify_acl_access is not None: + self.modify_acl_access = modify_acl_access + self.name = name if num_charts is not None: self.num_charts = num_charts if num_favorites is not None: self.num_favorites = num_favorites - if favorite is not None: - self.favorite = favorite + if orphan is not None: + self.orphan = orphan + if parameter_details is not None: + self.parameter_details = parameter_details + if parameters is not None: + self.parameters = parameters + self.sections = sections + if system_owned is not None: + self.system_owned = system_owned + if tags is not None: + self.tags = tags + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + self.url = url + if views_last_day is not None: + self.views_last_day = views_last_day + if views_last_month is not None: + self.views_last_month = views_last_month + if views_last_week is not None: + self.views_last_week = views_last_week @property - def name(self): - """Gets the name of this Dashboard. # noqa: E501 + def acl(self): + """Gets the acl of this Dashboard. # noqa: E501 - Name of the dashboard # noqa: E501 - :return: The name of this Dashboard. # noqa: E501 + :return: The acl of this Dashboard. # noqa: E501 + :rtype: AccessControlListSimple + """ + return self._acl + + @acl.setter + def acl(self, acl): + """Sets the acl of this Dashboard. + + + :param acl: The acl of this Dashboard. # noqa: E501 + :type: AccessControlListSimple + """ + + self._acl = acl + + @property + def chart_title_bg_color(self): + """Gets the chart_title_bg_color of this Dashboard. # noqa: E501 + + Background color of the chart title text area, in rgba(rvalue,gvalue,bvalue,avalue) # noqa: E501 + + :return: The chart_title_bg_color of this Dashboard. # noqa: E501 :rtype: str """ - return self._name + return self._chart_title_bg_color - @name.setter - def name(self, name): - """Sets the name of this Dashboard. + @chart_title_bg_color.setter + def chart_title_bg_color(self, chart_title_bg_color): + """Sets the chart_title_bg_color of this Dashboard. + + Background color of the chart title text area, in rgba(rvalue,gvalue,bvalue,avalue) # noqa: E501 + + :param chart_title_bg_color: The chart_title_bg_color of this Dashboard. # noqa: E501 + :type: str + """ + + self._chart_title_bg_color = chart_title_bg_color + + @property + def chart_title_color(self): + """Gets the chart_title_color of this Dashboard. # noqa: E501 + + Text color of the chart title text are, in rgba(rvalue,gvalue,bvalue,avalue) # noqa: E501 + + :return: The chart_title_color of this Dashboard. # noqa: E501 + :rtype: str + """ + return self._chart_title_color - Name of the dashboard # noqa: E501 + @chart_title_color.setter + def chart_title_color(self, chart_title_color): + """Sets the chart_title_color of this Dashboard. - :param name: The name of this Dashboard. # noqa: E501 + Text color of the chart title text are, in rgba(rvalue,gvalue,bvalue,avalue) # noqa: E501 + + :param chart_title_color: The chart_title_color of this Dashboard. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._chart_title_color = chart_title_color @property - def id(self): - """Gets the id of this Dashboard. # noqa: E501 + def chart_title_scalar(self): + """Gets the chart_title_scalar of this Dashboard. # noqa: E501 - Unique identifier, also URL slug, of the dashboard # noqa: E501 + Scale (normally 100) of chart title text size # noqa: E501 - :return: The id of this Dashboard. # noqa: E501 - :rtype: str + :return: The chart_title_scalar of this Dashboard. # noqa: E501 + :rtype: int """ - return self._id + return self._chart_title_scalar - @id.setter - def id(self, id): - """Sets the id of this Dashboard. + @chart_title_scalar.setter + def chart_title_scalar(self, chart_title_scalar): + """Sets the chart_title_scalar of this Dashboard. - Unique identifier, also URL slug, of the dashboard # noqa: E501 + Scale (normally 100) of chart title text size # noqa: E501 - :param id: The id of this Dashboard. # noqa: E501 - :type: str + :param chart_title_scalar: The chart_title_scalar of this Dashboard. # noqa: E501 + :type: int """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._id = id + self._chart_title_scalar = chart_title_scalar @property - def parameters(self): - """Gets the parameters of this Dashboard. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this Dashboard. # noqa: E501 - Deprecated. An obsolete representation of dashboard parameters # noqa: E501 - :return: The parameters of this Dashboard. # noqa: E501 - :rtype: dict(str, str) + :return: The created_epoch_millis of this Dashboard. # noqa: E501 + :rtype: int """ - return self._parameters + return self._created_epoch_millis - @parameters.setter - def parameters(self, parameters): - """Sets the parameters of this Dashboard. + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): + """Sets the created_epoch_millis of this Dashboard. - Deprecated. An obsolete representation of dashboard parameters # noqa: E501 - :param parameters: The parameters of this Dashboard. # noqa: E501 - :type: dict(str, str) + :param created_epoch_millis: The created_epoch_millis of this Dashboard. # noqa: E501 + :type: int """ - self._parameters = parameters + self._created_epoch_millis = created_epoch_millis @property - def tags(self): - """Gets the tags of this Dashboard. # noqa: E501 + def creator_id(self): + """Gets the creator_id of this Dashboard. # noqa: E501 - :return: The tags of this Dashboard. # noqa: E501 - :rtype: WFTags + :return: The creator_id of this Dashboard. # noqa: E501 + :rtype: str """ - return self._tags + return self._creator_id - @tags.setter - def tags(self, tags): - """Sets the tags of this Dashboard. + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this Dashboard. - :param tags: The tags of this Dashboard. # noqa: E501 - :type: WFTags + :param creator_id: The creator_id of this Dashboard. # noqa: E501 + :type: str """ - self._tags = tags + self._creator_id = creator_id @property def customer(self): @@ -325,136 +404,232 @@ def customer(self, customer): self._customer = customer @property - def description(self): - """Gets the description of this Dashboard. # noqa: E501 + def dashboard_attributes(self): + """Gets the dashboard_attributes of this Dashboard. # noqa: E501 - Human-readable description of the dashboard # noqa: E501 + Experimental Dashboard Attributes # noqa: E501 - :return: The description of this Dashboard. # noqa: E501 - :rtype: str + :return: The dashboard_attributes of this Dashboard. # noqa: E501 + :rtype: JsonNode """ - return self._description + return self._dashboard_attributes - @description.setter - def description(self, description): - """Sets the description of this Dashboard. + @dashboard_attributes.setter + def dashboard_attributes(self, dashboard_attributes): + """Sets the dashboard_attributes of this Dashboard. - Human-readable description of the dashboard # noqa: E501 + Experimental Dashboard Attributes # noqa: E501 - :param description: The description of this Dashboard. # noqa: E501 - :type: str + :param dashboard_attributes: The dashboard_attributes of this Dashboard. # noqa: E501 + :type: JsonNode """ - self._description = description + self._dashboard_attributes = dashboard_attributes @property - def url(self): - """Gets the url of this Dashboard. # noqa: E501 + def default_end_time(self): + """Gets the default_end_time of this Dashboard. # noqa: E501 - Unique identifier, also URL slug, of the dashboard # noqa: E501 + Default end time in milliseconds to query charts # noqa: E501 - :return: The url of this Dashboard. # noqa: E501 + :return: The default_end_time of this Dashboard. # noqa: E501 + :rtype: int + """ + return self._default_end_time + + @default_end_time.setter + def default_end_time(self, default_end_time): + """Sets the default_end_time of this Dashboard. + + Default end time in milliseconds to query charts # noqa: E501 + + :param default_end_time: The default_end_time of this Dashboard. # noqa: E501 + :type: int + """ + + self._default_end_time = default_end_time + + @property + def default_start_time(self): + """Gets the default_start_time of this Dashboard. # noqa: E501 + + Default start time in milliseconds to query charts # noqa: E501 + + :return: The default_start_time of this Dashboard. # noqa: E501 + :rtype: int + """ + return self._default_start_time + + @default_start_time.setter + def default_start_time(self, default_start_time): + """Sets the default_start_time of this Dashboard. + + Default start time in milliseconds to query charts # noqa: E501 + + :param default_start_time: The default_start_time of this Dashboard. # noqa: E501 + :type: int + """ + + self._default_start_time = default_start_time + + @property + def default_time_window(self): + """Gets the default_time_window of this Dashboard. # noqa: E501 + + Default time window to query charts # noqa: E501 + + :return: The default_time_window of this Dashboard. # noqa: E501 :rtype: str """ - return self._url + return self._default_time_window - @url.setter - def url(self, url): - """Sets the url of this Dashboard. + @default_time_window.setter + def default_time_window(self, default_time_window): + """Sets the default_time_window of this Dashboard. - Unique identifier, also URL slug, of the dashboard # noqa: E501 + Default time window to query charts # noqa: E501 - :param url: The url of this Dashboard. # noqa: E501 + :param default_time_window: The default_time_window of this Dashboard. # noqa: E501 :type: str """ - if url is None: - raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 - self._url = url + self._default_time_window = default_time_window @property - def creator_id(self): - """Gets the creator_id of this Dashboard. # noqa: E501 + def deleted(self): + """Gets the deleted of this Dashboard. # noqa: E501 - :return: The creator_id of this Dashboard. # noqa: E501 + :return: The deleted of this Dashboard. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this Dashboard. + + + :param deleted: The deleted of this Dashboard. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def description(self): + """Gets the description of this Dashboard. # noqa: E501 + + Human-readable description of the dashboard # noqa: E501 + + :return: The description of this Dashboard. # noqa: E501 :rtype: str """ - return self._creator_id + return self._description - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this Dashboard. + @description.setter + def description(self, description): + """Sets the description of this Dashboard. + Human-readable description of the dashboard # noqa: E501 - :param creator_id: The creator_id of this Dashboard. # noqa: E501 + :param description: The description of this Dashboard. # noqa: E501 :type: str """ - self._creator_id = creator_id + self._description = description @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this Dashboard. # noqa: E501 + def disable_refresh_in_live_mode(self): + """Gets the disable_refresh_in_live_mode of this Dashboard. # noqa: E501 + Refresh variables in Live Mode # noqa: E501 - :return: The created_epoch_millis of this Dashboard. # noqa: E501 - :rtype: int + :return: The disable_refresh_in_live_mode of this Dashboard. # noqa: E501 + :rtype: bool """ - return self._created_epoch_millis + return self._disable_refresh_in_live_mode - @created_epoch_millis.setter - def created_epoch_millis(self, created_epoch_millis): - """Sets the created_epoch_millis of this Dashboard. + @disable_refresh_in_live_mode.setter + def disable_refresh_in_live_mode(self, disable_refresh_in_live_mode): + """Sets the disable_refresh_in_live_mode of this Dashboard. + Refresh variables in Live Mode # noqa: E501 - :param created_epoch_millis: The created_epoch_millis of this Dashboard. # noqa: E501 - :type: int + :param disable_refresh_in_live_mode: The disable_refresh_in_live_mode of this Dashboard. # noqa: E501 + :type: bool """ - self._created_epoch_millis = created_epoch_millis + self._disable_refresh_in_live_mode = disable_refresh_in_live_mode @property - def updated_epoch_millis(self): - """Gets the updated_epoch_millis of this Dashboard. # noqa: E501 + def display_description(self): + """Gets the display_description of this Dashboard. # noqa: E501 + Whether the dashboard description section is opened by default when the dashboard is shown # noqa: E501 - :return: The updated_epoch_millis of this Dashboard. # noqa: E501 - :rtype: int + :return: The display_description of this Dashboard. # noqa: E501 + :rtype: bool """ - return self._updated_epoch_millis + return self._display_description - @updated_epoch_millis.setter - def updated_epoch_millis(self, updated_epoch_millis): - """Sets the updated_epoch_millis of this Dashboard. + @display_description.setter + def display_description(self, display_description): + """Sets the display_description of this Dashboard. + + Whether the dashboard description section is opened by default when the dashboard is shown # noqa: E501 + + :param display_description: The display_description of this Dashboard. # noqa: E501 + :type: bool + """ + + self._display_description = display_description + + @property + def display_query_parameters(self): + """Gets the display_query_parameters of this Dashboard. # noqa: E501 + + Whether the dashboard parameters section is opened by default when the dashboard is shown # noqa: E501 + + :return: The display_query_parameters of this Dashboard. # noqa: E501 + :rtype: bool + """ + return self._display_query_parameters + + @display_query_parameters.setter + def display_query_parameters(self, display_query_parameters): + """Sets the display_query_parameters of this Dashboard. + Whether the dashboard parameters section is opened by default when the dashboard is shown # noqa: E501 - :param updated_epoch_millis: The updated_epoch_millis of this Dashboard. # noqa: E501 - :type: int + :param display_query_parameters: The display_query_parameters of this Dashboard. # noqa: E501 + :type: bool """ - self._updated_epoch_millis = updated_epoch_millis + self._display_query_parameters = display_query_parameters @property - def updater_id(self): - """Gets the updater_id of this Dashboard. # noqa: E501 + def display_section_table_of_contents(self): + """Gets the display_section_table_of_contents of this Dashboard. # noqa: E501 + Whether the \"pills\" quick-linked the sections of the dashboard are displayed by default when the dashboard is shown # noqa: E501 - :return: The updater_id of this Dashboard. # noqa: E501 - :rtype: str + :return: The display_section_table_of_contents of this Dashboard. # noqa: E501 + :rtype: bool """ - return self._updater_id + return self._display_section_table_of_contents - @updater_id.setter - def updater_id(self, updater_id): - """Sets the updater_id of this Dashboard. + @display_section_table_of_contents.setter + def display_section_table_of_contents(self, display_section_table_of_contents): + """Sets the display_section_table_of_contents of this Dashboard. + Whether the \"pills\" quick-linked the sections of the dashboard are displayed by default when the dashboard is shown # noqa: E501 - :param updater_id: The updater_id of this Dashboard. # noqa: E501 - :type: str + :param display_section_table_of_contents: The display_section_table_of_contents of this Dashboard. # noqa: E501 + :type: bool """ - self._updater_id = updater_id + self._display_section_table_of_contents = display_section_table_of_contents @property def event_filter_type(self): @@ -477,7 +652,8 @@ def event_filter_type(self, event_filter_type): :type: str """ allowed_values = ["BYCHART", "AUTOMATIC", "ALL", "NONE", "BYDASHBOARD", "BYCHARTANDDASHBOARD"] # noqa: E501 - if event_filter_type not in allowed_values: + if (self._configuration.client_side_validation and + event_filter_type not in allowed_values): raise ValueError( "Invalid value for `event_filter_type` ({0}), must be one of {1}" # noqa: E501 .format(event_filter_type, allowed_values) @@ -486,473 +662,519 @@ def event_filter_type(self, event_filter_type): self._event_filter_type = event_filter_type @property - def sections(self): - """Gets the sections of this Dashboard. # noqa: E501 + def event_query(self): + """Gets the event_query of this Dashboard. # noqa: E501 - Dashboard chart sections # noqa: E501 + Event query to run on dashboard charts # noqa: E501 - :return: The sections of this Dashboard. # noqa: E501 - :rtype: list[DashboardSection] + :return: The event_query of this Dashboard. # noqa: E501 + :rtype: str """ - return self._sections + return self._event_query - @sections.setter - def sections(self, sections): - """Sets the sections of this Dashboard. + @event_query.setter + def event_query(self, event_query): + """Sets the event_query of this Dashboard. - Dashboard chart sections # noqa: E501 + Event query to run on dashboard charts # noqa: E501 - :param sections: The sections of this Dashboard. # noqa: E501 - :type: list[DashboardSection] + :param event_query: The event_query of this Dashboard. # noqa: E501 + :type: str """ - if sections is None: - raise ValueError("Invalid value for `sections`, must not be `None`") # noqa: E501 - self._sections = sections + self._event_query = event_query @property - def parameter_details(self): - """Gets the parameter_details of this Dashboard. # noqa: E501 + def favorite(self): + """Gets the favorite of this Dashboard. # noqa: E501 - The current (as of Wavefront 4.0) JSON representation of dashboard parameters. This is a map from a parameter name to its representation # noqa: E501 - :return: The parameter_details of this Dashboard. # noqa: E501 - :rtype: dict(str, DashboardParameterValue) + :return: The favorite of this Dashboard. # noqa: E501 + :rtype: bool """ - return self._parameter_details + return self._favorite - @parameter_details.setter - def parameter_details(self, parameter_details): - """Sets the parameter_details of this Dashboard. + @favorite.setter + def favorite(self, favorite): + """Sets the favorite of this Dashboard. - The current (as of Wavefront 4.0) JSON representation of dashboard parameters. This is a map from a parameter name to its representation # noqa: E501 - :param parameter_details: The parameter_details of this Dashboard. # noqa: E501 - :type: dict(str, DashboardParameterValue) + :param favorite: The favorite of this Dashboard. # noqa: E501 + :type: bool """ - self._parameter_details = parameter_details + self._favorite = favorite @property - def display_description(self): - """Gets the display_description of this Dashboard. # noqa: E501 + def force_v2_ui(self): + """Gets the force_v2_ui of this Dashboard. # noqa: E501 - Whether the dashboard description section is opened by default when the dashboard is shown # noqa: E501 + Whether to force this dashboard to use the V2 UI # noqa: E501 - :return: The display_description of this Dashboard. # noqa: E501 + :return: The force_v2_ui of this Dashboard. # noqa: E501 :rtype: bool """ - return self._display_description + return self._force_v2_ui - @display_description.setter - def display_description(self, display_description): - """Sets the display_description of this Dashboard. + @force_v2_ui.setter + def force_v2_ui(self, force_v2_ui): + """Sets the force_v2_ui of this Dashboard. - Whether the dashboard description section is opened by default when the dashboard is shown # noqa: E501 + Whether to force this dashboard to use the V2 UI # noqa: E501 - :param display_description: The display_description of this Dashboard. # noqa: E501 + :param force_v2_ui: The force_v2_ui of this Dashboard. # noqa: E501 :type: bool """ - self._display_description = display_description + self._force_v2_ui = force_v2_ui @property - def display_section_table_of_contents(self): - """Gets the display_section_table_of_contents of this Dashboard. # noqa: E501 + def hidden(self): + """Gets the hidden of this Dashboard. # noqa: E501 - Whether the \"pills\" quick-linked the sections of the dashboard are displayed by default when the dashboard is shown # noqa: E501 - :return: The display_section_table_of_contents of this Dashboard. # noqa: E501 + :return: The hidden of this Dashboard. # noqa: E501 :rtype: bool """ - return self._display_section_table_of_contents + return self._hidden - @display_section_table_of_contents.setter - def display_section_table_of_contents(self, display_section_table_of_contents): - """Sets the display_section_table_of_contents of this Dashboard. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this Dashboard. - Whether the \"pills\" quick-linked the sections of the dashboard are displayed by default when the dashboard is shown # noqa: E501 - :param display_section_table_of_contents: The display_section_table_of_contents of this Dashboard. # noqa: E501 + :param hidden: The hidden of this Dashboard. # noqa: E501 :type: bool """ - self._display_section_table_of_contents = display_section_table_of_contents + self._hidden = hidden @property - def display_query_parameters(self): - """Gets the display_query_parameters of this Dashboard. # noqa: E501 + def hide_chart_warning(self): + """Gets the hide_chart_warning of this Dashboard. # noqa: E501 - Whether the dashboard parameters section is opened by default when the dashboard is shown # noqa: E501 + Hide chart warning # noqa: E501 - :return: The display_query_parameters of this Dashboard. # noqa: E501 + :return: The hide_chart_warning of this Dashboard. # noqa: E501 :rtype: bool """ - return self._display_query_parameters + return self._hide_chart_warning - @display_query_parameters.setter - def display_query_parameters(self, display_query_parameters): - """Sets the display_query_parameters of this Dashboard. + @hide_chart_warning.setter + def hide_chart_warning(self, hide_chart_warning): + """Sets the hide_chart_warning of this Dashboard. - Whether the dashboard parameters section is opened by default when the dashboard is shown # noqa: E501 + Hide chart warning # noqa: E501 - :param display_query_parameters: The display_query_parameters of this Dashboard. # noqa: E501 + :param hide_chart_warning: The hide_chart_warning of this Dashboard. # noqa: E501 :type: bool """ - self._display_query_parameters = display_query_parameters + self._hide_chart_warning = hide_chart_warning @property - def chart_title_scalar(self): - """Gets the chart_title_scalar of this Dashboard. # noqa: E501 + def id(self): + """Gets the id of this Dashboard. # noqa: E501 - Scale (normally 100) of chart title text size # noqa: E501 + Unique identifier, also URL slug, of the dashboard # noqa: E501 - :return: The chart_title_scalar of this Dashboard. # noqa: E501 - :rtype: int + :return: The id of this Dashboard. # noqa: E501 + :rtype: str """ - return self._chart_title_scalar + return self._id - @chart_title_scalar.setter - def chart_title_scalar(self, chart_title_scalar): - """Sets the chart_title_scalar of this Dashboard. + @id.setter + def id(self, id): + """Sets the id of this Dashboard. - Scale (normally 100) of chart title text size # noqa: E501 + Unique identifier, also URL slug, of the dashboard # noqa: E501 - :param chart_title_scalar: The chart_title_scalar of this Dashboard. # noqa: E501 - :type: int + :param id: The id of this Dashboard. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._chart_title_scalar = chart_title_scalar + self._id = id @property - def event_query(self): - """Gets the event_query of this Dashboard. # noqa: E501 + def include_obsolete_metrics(self): + """Gets the include_obsolete_metrics of this Dashboard. # noqa: E501 - Event query to run on dashboard charts # noqa: E501 + Whether to include the obsolete metrics # noqa: E501 - :return: The event_query of this Dashboard. # noqa: E501 - :rtype: str + :return: The include_obsolete_metrics of this Dashboard. # noqa: E501 + :rtype: bool """ - return self._event_query + return self._include_obsolete_metrics - @event_query.setter - def event_query(self, event_query): - """Sets the event_query of this Dashboard. + @include_obsolete_metrics.setter + def include_obsolete_metrics(self, include_obsolete_metrics): + """Sets the include_obsolete_metrics of this Dashboard. - Event query to run on dashboard charts # noqa: E501 + Whether to include the obsolete metrics # noqa: E501 - :param event_query: The event_query of this Dashboard. # noqa: E501 - :type: str + :param include_obsolete_metrics: The include_obsolete_metrics of this Dashboard. # noqa: E501 + :type: bool """ - self._event_query = event_query + self._include_obsolete_metrics = include_obsolete_metrics @property - def default_time_window(self): - """Gets the default_time_window of this Dashboard. # noqa: E501 + def modify_acl_access(self): + """Gets the modify_acl_access of this Dashboard. # noqa: E501 - Default time window to query charts # noqa: E501 + Whether the user has modify ACL access to the dashboard. # noqa: E501 - :return: The default_time_window of this Dashboard. # noqa: E501 + :return: The modify_acl_access of this Dashboard. # noqa: E501 + :rtype: bool + """ + return self._modify_acl_access + + @modify_acl_access.setter + def modify_acl_access(self, modify_acl_access): + """Sets the modify_acl_access of this Dashboard. + + Whether the user has modify ACL access to the dashboard. # noqa: E501 + + :param modify_acl_access: The modify_acl_access of this Dashboard. # noqa: E501 + :type: bool + """ + + self._modify_acl_access = modify_acl_access + + @property + def name(self): + """Gets the name of this Dashboard. # noqa: E501 + + Name of the dashboard # noqa: E501 + + :return: The name of this Dashboard. # noqa: E501 :rtype: str """ - return self._default_time_window + return self._name - @default_time_window.setter - def default_time_window(self, default_time_window): - """Sets the default_time_window of this Dashboard. + @name.setter + def name(self, name): + """Sets the name of this Dashboard. - Default time window to query charts # noqa: E501 + Name of the dashboard # noqa: E501 - :param default_time_window: The default_time_window of this Dashboard. # noqa: E501 + :param name: The name of this Dashboard. # noqa: E501 :type: str """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._default_time_window = default_time_window + self._name = name @property - def default_start_time(self): - """Gets the default_start_time of this Dashboard. # noqa: E501 + def num_charts(self): + """Gets the num_charts of this Dashboard. # noqa: E501 - Default start time in milliseconds to query charts # noqa: E501 - :return: The default_start_time of this Dashboard. # noqa: E501 + :return: The num_charts of this Dashboard. # noqa: E501 :rtype: int """ - return self._default_start_time + return self._num_charts - @default_start_time.setter - def default_start_time(self, default_start_time): - """Sets the default_start_time of this Dashboard. + @num_charts.setter + def num_charts(self, num_charts): + """Sets the num_charts of this Dashboard. - Default start time in milliseconds to query charts # noqa: E501 - :param default_start_time: The default_start_time of this Dashboard. # noqa: E501 + :param num_charts: The num_charts of this Dashboard. # noqa: E501 :type: int """ - self._default_start_time = default_start_time + self._num_charts = num_charts @property - def default_end_time(self): - """Gets the default_end_time of this Dashboard. # noqa: E501 + def num_favorites(self): + """Gets the num_favorites of this Dashboard. # noqa: E501 - Default end time in milliseconds to query charts # noqa: E501 - :return: The default_end_time of this Dashboard. # noqa: E501 + :return: The num_favorites of this Dashboard. # noqa: E501 :rtype: int """ - return self._default_end_time + return self._num_favorites - @default_end_time.setter - def default_end_time(self, default_end_time): - """Sets the default_end_time of this Dashboard. + @num_favorites.setter + def num_favorites(self, num_favorites): + """Sets the num_favorites of this Dashboard. - Default end time in milliseconds to query charts # noqa: E501 - :param default_end_time: The default_end_time of this Dashboard. # noqa: E501 + :param num_favorites: The num_favorites of this Dashboard. # noqa: E501 :type: int """ - self._default_end_time = default_end_time + self._num_favorites = num_favorites + + @property + def orphan(self): + """Gets the orphan of this Dashboard. # noqa: E501 + + + :return: The orphan of this Dashboard. # noqa: E501 + :rtype: bool + """ + return self._orphan + + @orphan.setter + def orphan(self, orphan): + """Sets the orphan of this Dashboard. + + + :param orphan: The orphan of this Dashboard. # noqa: E501 + :type: bool + """ + + self._orphan = orphan @property - def chart_title_color(self): - """Gets the chart_title_color of this Dashboard. # noqa: E501 + def parameter_details(self): + """Gets the parameter_details of this Dashboard. # noqa: E501 - Text color of the chart title text are, in rgba(rvalue,gvalue,bvalue,avalue) # noqa: E501 + The current (as of Wavefront 4.0) JSON representation of dashboard parameters. This is a map from a parameter name to its representation # noqa: E501 - :return: The chart_title_color of this Dashboard. # noqa: E501 - :rtype: str + :return: The parameter_details of this Dashboard. # noqa: E501 + :rtype: dict(str, DashboardParameterValue) """ - return self._chart_title_color + return self._parameter_details - @chart_title_color.setter - def chart_title_color(self, chart_title_color): - """Sets the chart_title_color of this Dashboard. + @parameter_details.setter + def parameter_details(self, parameter_details): + """Sets the parameter_details of this Dashboard. - Text color of the chart title text are, in rgba(rvalue,gvalue,bvalue,avalue) # noqa: E501 + The current (as of Wavefront 4.0) JSON representation of dashboard parameters. This is a map from a parameter name to its representation # noqa: E501 - :param chart_title_color: The chart_title_color of this Dashboard. # noqa: E501 - :type: str + :param parameter_details: The parameter_details of this Dashboard. # noqa: E501 + :type: dict(str, DashboardParameterValue) """ - self._chart_title_color = chart_title_color + self._parameter_details = parameter_details @property - def chart_title_bg_color(self): - """Gets the chart_title_bg_color of this Dashboard. # noqa: E501 + def parameters(self): + """Gets the parameters of this Dashboard. # noqa: E501 - Background color of the chart title text area, in rgba(rvalue,gvalue,bvalue,avalue) # noqa: E501 + Deprecated. An obsolete representation of dashboard parameters # noqa: E501 - :return: The chart_title_bg_color of this Dashboard. # noqa: E501 - :rtype: str + :return: The parameters of this Dashboard. # noqa: E501 + :rtype: dict(str, str) """ - return self._chart_title_bg_color + return self._parameters - @chart_title_bg_color.setter - def chart_title_bg_color(self, chart_title_bg_color): - """Sets the chart_title_bg_color of this Dashboard. + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this Dashboard. - Background color of the chart title text area, in rgba(rvalue,gvalue,bvalue,avalue) # noqa: E501 + Deprecated. An obsolete representation of dashboard parameters # noqa: E501 - :param chart_title_bg_color: The chart_title_bg_color of this Dashboard. # noqa: E501 - :type: str + :param parameters: The parameters of this Dashboard. # noqa: E501 + :type: dict(str, str) """ - self._chart_title_bg_color = chart_title_bg_color + self._parameters = parameters @property - def views_last_day(self): - """Gets the views_last_day of this Dashboard. # noqa: E501 + def sections(self): + """Gets the sections of this Dashboard. # noqa: E501 + Dashboard chart sections # noqa: E501 - :return: The views_last_day of this Dashboard. # noqa: E501 - :rtype: int + :return: The sections of this Dashboard. # noqa: E501 + :rtype: list[DashboardSection] """ - return self._views_last_day + return self._sections - @views_last_day.setter - def views_last_day(self, views_last_day): - """Sets the views_last_day of this Dashboard. + @sections.setter + def sections(self, sections): + """Sets the sections of this Dashboard. + Dashboard chart sections # noqa: E501 - :param views_last_day: The views_last_day of this Dashboard. # noqa: E501 - :type: int + :param sections: The sections of this Dashboard. # noqa: E501 + :type: list[DashboardSection] """ + if self._configuration.client_side_validation and sections is None: + raise ValueError("Invalid value for `sections`, must not be `None`") # noqa: E501 - self._views_last_day = views_last_day + self._sections = sections @property - def views_last_week(self): - """Gets the views_last_week of this Dashboard. # noqa: E501 + def system_owned(self): + """Gets the system_owned of this Dashboard. # noqa: E501 + Whether this dashboard is system-owned and not writeable # noqa: E501 - :return: The views_last_week of this Dashboard. # noqa: E501 - :rtype: int + :return: The system_owned of this Dashboard. # noqa: E501 + :rtype: bool """ - return self._views_last_week + return self._system_owned - @views_last_week.setter - def views_last_week(self, views_last_week): - """Sets the views_last_week of this Dashboard. + @system_owned.setter + def system_owned(self, system_owned): + """Sets the system_owned of this Dashboard. + Whether this dashboard is system-owned and not writeable # noqa: E501 - :param views_last_week: The views_last_week of this Dashboard. # noqa: E501 - :type: int + :param system_owned: The system_owned of this Dashboard. # noqa: E501 + :type: bool """ - self._views_last_week = views_last_week + self._system_owned = system_owned @property - def views_last_month(self): - """Gets the views_last_month of this Dashboard. # noqa: E501 + def tags(self): + """Gets the tags of this Dashboard. # noqa: E501 - :return: The views_last_month of this Dashboard. # noqa: E501 - :rtype: int + :return: The tags of this Dashboard. # noqa: E501 + :rtype: WFTags """ - return self._views_last_month + return self._tags - @views_last_month.setter - def views_last_month(self, views_last_month): - """Sets the views_last_month of this Dashboard. + @tags.setter + def tags(self, tags): + """Sets the tags of this Dashboard. - :param views_last_month: The views_last_month of this Dashboard. # noqa: E501 - :type: int + :param tags: The tags of this Dashboard. # noqa: E501 + :type: WFTags """ - self._views_last_month = views_last_month + self._tags = tags @property - def hidden(self): - """Gets the hidden of this Dashboard. # noqa: E501 + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this Dashboard. # noqa: E501 - :return: The hidden of this Dashboard. # noqa: E501 - :rtype: bool + :return: The updated_epoch_millis of this Dashboard. # noqa: E501 + :rtype: int """ - return self._hidden + return self._updated_epoch_millis - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this Dashboard. + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this Dashboard. - :param hidden: The hidden of this Dashboard. # noqa: E501 - :type: bool + :param updated_epoch_millis: The updated_epoch_millis of this Dashboard. # noqa: E501 + :type: int """ - self._hidden = hidden + self._updated_epoch_millis = updated_epoch_millis @property - def deleted(self): - """Gets the deleted of this Dashboard. # noqa: E501 + def updater_id(self): + """Gets the updater_id of this Dashboard. # noqa: E501 - :return: The deleted of this Dashboard. # noqa: E501 - :rtype: bool + :return: The updater_id of this Dashboard. # noqa: E501 + :rtype: str """ - return self._deleted + return self._updater_id - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this Dashboard. + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this Dashboard. - :param deleted: The deleted of this Dashboard. # noqa: E501 - :type: bool + :param updater_id: The updater_id of this Dashboard. # noqa: E501 + :type: str """ - self._deleted = deleted + self._updater_id = updater_id @property - def system_owned(self): - """Gets the system_owned of this Dashboard. # noqa: E501 + def url(self): + """Gets the url of this Dashboard. # noqa: E501 - Whether this dashboard is system-owned and not writeable # noqa: E501 + Unique identifier, also URL slug, of the dashboard # noqa: E501 - :return: The system_owned of this Dashboard. # noqa: E501 - :rtype: bool + :return: The url of this Dashboard. # noqa: E501 + :rtype: str """ - return self._system_owned + return self._url - @system_owned.setter - def system_owned(self, system_owned): - """Sets the system_owned of this Dashboard. + @url.setter + def url(self, url): + """Sets the url of this Dashboard. - Whether this dashboard is system-owned and not writeable # noqa: E501 + Unique identifier, also URL slug, of the dashboard # noqa: E501 - :param system_owned: The system_owned of this Dashboard. # noqa: E501 - :type: bool + :param url: The url of this Dashboard. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and url is None: + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 - self._system_owned = system_owned + self._url = url @property - def num_charts(self): - """Gets the num_charts of this Dashboard. # noqa: E501 + def views_last_day(self): + """Gets the views_last_day of this Dashboard. # noqa: E501 - :return: The num_charts of this Dashboard. # noqa: E501 + :return: The views_last_day of this Dashboard. # noqa: E501 :rtype: int """ - return self._num_charts + return self._views_last_day - @num_charts.setter - def num_charts(self, num_charts): - """Sets the num_charts of this Dashboard. + @views_last_day.setter + def views_last_day(self, views_last_day): + """Sets the views_last_day of this Dashboard. - :param num_charts: The num_charts of this Dashboard. # noqa: E501 + :param views_last_day: The views_last_day of this Dashboard. # noqa: E501 :type: int """ - self._num_charts = num_charts + self._views_last_day = views_last_day @property - def num_favorites(self): - """Gets the num_favorites of this Dashboard. # noqa: E501 + def views_last_month(self): + """Gets the views_last_month of this Dashboard. # noqa: E501 - :return: The num_favorites of this Dashboard. # noqa: E501 + :return: The views_last_month of this Dashboard. # noqa: E501 :rtype: int """ - return self._num_favorites + return self._views_last_month - @num_favorites.setter - def num_favorites(self, num_favorites): - """Sets the num_favorites of this Dashboard. + @views_last_month.setter + def views_last_month(self, views_last_month): + """Sets the views_last_month of this Dashboard. - :param num_favorites: The num_favorites of this Dashboard. # noqa: E501 + :param views_last_month: The views_last_month of this Dashboard. # noqa: E501 :type: int """ - self._num_favorites = num_favorites + self._views_last_month = views_last_month @property - def favorite(self): - """Gets the favorite of this Dashboard. # noqa: E501 + def views_last_week(self): + """Gets the views_last_week of this Dashboard. # noqa: E501 - :return: The favorite of this Dashboard. # noqa: E501 - :rtype: bool + :return: The views_last_week of this Dashboard. # noqa: E501 + :rtype: int """ - return self._favorite + return self._views_last_week - @favorite.setter - def favorite(self, favorite): - """Sets the favorite of this Dashboard. + @views_last_week.setter + def views_last_week(self, views_last_week): + """Sets the views_last_week of this Dashboard. - :param favorite: The favorite of this Dashboard. # noqa: E501 - :type: bool + :param views_last_week: The views_last_week of this Dashboard. # noqa: E501 + :type: int """ - self._favorite = favorite + self._views_last_week = views_last_week def to_dict(self): """Returns the model properties as a dict""" @@ -975,6 +1197,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Dashboard, dict): + for key, value in self.items(): + result[key] = value return result @@ -991,8 +1216,11 @@ def __eq__(self, other): if not isinstance(other, Dashboard): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Dashboard): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/dashboard_min.py b/wavefront_api_client/models/dashboard_min.py new file mode 100644 index 00000000..69642888 --- /dev/null +++ b/wavefront_api_client/models/dashboard_min.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 DashboardMin(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 = { + 'description': 'str', + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'description': 'description', + 'id': 'id', + 'name': 'name' + } + + def __init__(self, description=None, id=None, name=None, _configuration=None): # noqa: E501 + """DashboardMin - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._description = None + self._id = None + self._name = None + self.discriminator = None + + if description is not None: + self.description = description + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def description(self): + """Gets the description of this DashboardMin. # noqa: E501 + + Human-readable description of the dashboard # noqa: E501 + + :return: The description of this DashboardMin. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DashboardMin. + + Human-readable description of the dashboard # noqa: E501 + + :param description: The description of this DashboardMin. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def id(self): + """Gets the id of this DashboardMin. # noqa: E501 + + Unique identifier, also URL slug, of the dashboard # noqa: E501 + + :return: The id of this DashboardMin. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DashboardMin. + + Unique identifier, also URL slug, of the dashboard # noqa: E501 + + :param id: The id of this DashboardMin. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this DashboardMin. # noqa: E501 + + Name of the dashboard # noqa: E501 + + :return: The name of this DashboardMin. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DashboardMin. + + Name of the dashboard # noqa: E501 + + :param name: The name of this DashboardMin. # 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(DashboardMin, 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, DashboardMin): + 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, DashboardMin): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/dashboard_parameter_value.py b/wavefront_api_client/models/dashboard_parameter_value.py index e6240703..7c0e3126 100644 --- a/wavefront_api_client/models/dashboard_parameter_value.py +++ b/wavefront_api_client/models/dashboard_parameter_value.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class DashboardParameterValue(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,76 +33,115 @@ class DashboardParameterValue(object): and the value is json key in definition. """ swagger_types = { + 'allow_all': 'bool', 'default_value': 'str', 'description': 'str', + 'dynamic_field_type': 'str', + 'hide_from_view': 'bool', 'label': 'str', + 'multivalue': 'bool', + 'order': 'int', + 'parameter_type': 'str', 'query_value': 'str', 'reverse_dyn_sort': 'bool', - 'hide_from_view': 'bool', - 'dynamic_field_type': 'str', 'tag_key': 'str', - 'allow_all': 'bool', - 'parameter_type': 'str', - 'values_to_readable_strings': 'dict(str, str)', - 'multivalue': 'bool' + 'tags_black_list_regex': 'str', + 'value_ordering': 'list[str]', + 'values_to_readable_strings': 'dict(str, str)' } attribute_map = { + 'allow_all': 'allowAll', 'default_value': 'defaultValue', 'description': 'description', + 'dynamic_field_type': 'dynamicFieldType', + 'hide_from_view': 'hideFromView', 'label': 'label', + 'multivalue': 'multivalue', + 'order': 'order', + 'parameter_type': 'parameterType', 'query_value': 'queryValue', 'reverse_dyn_sort': 'reverseDynSort', - 'hide_from_view': 'hideFromView', - 'dynamic_field_type': 'dynamicFieldType', 'tag_key': 'tagKey', - 'allow_all': 'allowAll', - 'parameter_type': 'parameterType', - 'values_to_readable_strings': 'valuesToReadableStrings', - 'multivalue': 'multivalue' + 'tags_black_list_regex': 'tagsBlackListRegex', + 'value_ordering': 'valueOrdering', + 'values_to_readable_strings': 'valuesToReadableStrings' } - def __init__(self, default_value=None, description=None, label=None, query_value=None, reverse_dyn_sort=None, hide_from_view=None, dynamic_field_type=None, tag_key=None, allow_all=None, parameter_type=None, values_to_readable_strings=None, multivalue=None): # noqa: E501 + def __init__(self, allow_all=None, default_value=None, description=None, dynamic_field_type=None, hide_from_view=None, label=None, multivalue=None, order=None, parameter_type=None, query_value=None, reverse_dyn_sort=None, tag_key=None, tags_black_list_regex=None, value_ordering=None, values_to_readable_strings=None, _configuration=None): # noqa: E501 """DashboardParameterValue - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._allow_all = None self._default_value = None self._description = None + self._dynamic_field_type = None + self._hide_from_view = None self._label = None + self._multivalue = None + self._order = None + self._parameter_type = None self._query_value = None self._reverse_dyn_sort = None - self._hide_from_view = None - self._dynamic_field_type = None self._tag_key = None - self._allow_all = None - self._parameter_type = None + self._tags_black_list_regex = None + self._value_ordering = None self._values_to_readable_strings = None - self._multivalue = None self.discriminator = None + if allow_all is not None: + self.allow_all = allow_all if default_value is not None: self.default_value = default_value if description is not None: self.description = description + if dynamic_field_type is not None: + self.dynamic_field_type = dynamic_field_type + if hide_from_view is not None: + self.hide_from_view = hide_from_view if label is not None: self.label = label + if multivalue is not None: + self.multivalue = multivalue + if order is not None: + self.order = order + if parameter_type is not None: + self.parameter_type = parameter_type if query_value is not None: self.query_value = query_value if reverse_dyn_sort is not None: self.reverse_dyn_sort = reverse_dyn_sort - if hide_from_view is not None: - self.hide_from_view = hide_from_view - if dynamic_field_type is not None: - self.dynamic_field_type = dynamic_field_type if tag_key is not None: self.tag_key = tag_key - if allow_all is not None: - self.allow_all = allow_all - if parameter_type is not None: - self.parameter_type = parameter_type + if tags_black_list_regex is not None: + self.tags_black_list_regex = tags_black_list_regex + if value_ordering is not None: + self.value_ordering = value_ordering if values_to_readable_strings is not None: self.values_to_readable_strings = values_to_readable_strings - if multivalue is not None: - self.multivalue = multivalue + + @property + def allow_all(self): + """Gets the allow_all of this DashboardParameterValue. # noqa: E501 + + + :return: The allow_all of this DashboardParameterValue. # noqa: E501 + :rtype: bool + """ + return self._allow_all + + @allow_all.setter + def allow_all(self, allow_all): + """Sets the allow_all of this DashboardParameterValue. + + + :param allow_all: The allow_all of this DashboardParameterValue. # noqa: E501 + :type: bool + """ + + self._allow_all = allow_all @property def default_value(self): @@ -144,6 +185,55 @@ def description(self, description): self._description = description + @property + def dynamic_field_type(self): + """Gets the dynamic_field_type of this DashboardParameterValue. # noqa: E501 + + + :return: The dynamic_field_type of this DashboardParameterValue. # noqa: E501 + :rtype: str + """ + return self._dynamic_field_type + + @dynamic_field_type.setter + def dynamic_field_type(self, dynamic_field_type): + """Sets the dynamic_field_type of this DashboardParameterValue. + + + :param dynamic_field_type: The dynamic_field_type of this DashboardParameterValue. # noqa: E501 + :type: str + """ + allowed_values = ["SOURCE", "SOURCE_TAG", "METRIC_NAME", "TAG_KEY", "MATCHING_SOURCE_TAG"] # noqa: E501 + if (self._configuration.client_side_validation and + dynamic_field_type not in allowed_values): + raise ValueError( + "Invalid value for `dynamic_field_type` ({0}), must be one of {1}" # noqa: E501 + .format(dynamic_field_type, allowed_values) + ) + + self._dynamic_field_type = dynamic_field_type + + @property + def hide_from_view(self): + """Gets the hide_from_view of this DashboardParameterValue. # noqa: E501 + + + :return: The hide_from_view of this DashboardParameterValue. # noqa: E501 + :rtype: bool + """ + return self._hide_from_view + + @hide_from_view.setter + def hide_from_view(self, hide_from_view): + """Sets the hide_from_view of this DashboardParameterValue. + + + :param hide_from_view: The hide_from_view of this DashboardParameterValue. # noqa: E501 + :type: bool + """ + + self._hide_from_view = hide_from_view + @property def label(self): """Gets the label of this DashboardParameterValue. # noqa: E501 @@ -165,6 +255,76 @@ def label(self, label): self._label = label + @property + def multivalue(self): + """Gets the multivalue of this DashboardParameterValue. # noqa: E501 + + + :return: The multivalue of this DashboardParameterValue. # noqa: E501 + :rtype: bool + """ + return self._multivalue + + @multivalue.setter + def multivalue(self, multivalue): + """Sets the multivalue of this DashboardParameterValue. + + + :param multivalue: The multivalue of this DashboardParameterValue. # noqa: E501 + :type: bool + """ + + self._multivalue = multivalue + + @property + def order(self): + """Gets the order of this DashboardParameterValue. # noqa: E501 + + + :return: The order of this DashboardParameterValue. # noqa: E501 + :rtype: int + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this DashboardParameterValue. + + + :param order: The order of this DashboardParameterValue. # noqa: E501 + :type: int + """ + + self._order = order + + @property + def parameter_type(self): + """Gets the parameter_type of this DashboardParameterValue. # noqa: E501 + + + :return: The parameter_type of this DashboardParameterValue. # noqa: E501 + :rtype: str + """ + return self._parameter_type + + @parameter_type.setter + def parameter_type(self, parameter_type): + """Sets the parameter_type of this DashboardParameterValue. + + + :param parameter_type: The parameter_type of this DashboardParameterValue. # noqa: E501 + :type: str + """ + allowed_values = ["SIMPLE", "LIST", "DYNAMIC"] # noqa: E501 + if (self._configuration.client_side_validation and + parameter_type not in allowed_values): + raise ValueError( + "Invalid value for `parameter_type` ({0}), must be one of {1}" # noqa: E501 + .format(parameter_type, allowed_values) + ) + + self._parameter_type = parameter_type + @property def query_value(self): """Gets the query_value of this DashboardParameterValue. # noqa: E501 @@ -209,54 +369,6 @@ def reverse_dyn_sort(self, reverse_dyn_sort): self._reverse_dyn_sort = reverse_dyn_sort - @property - def hide_from_view(self): - """Gets the hide_from_view of this DashboardParameterValue. # noqa: E501 - - - :return: The hide_from_view of this DashboardParameterValue. # noqa: E501 - :rtype: bool - """ - return self._hide_from_view - - @hide_from_view.setter - def hide_from_view(self, hide_from_view): - """Sets the hide_from_view of this DashboardParameterValue. - - - :param hide_from_view: The hide_from_view of this DashboardParameterValue. # noqa: E501 - :type: bool - """ - - self._hide_from_view = hide_from_view - - @property - def dynamic_field_type(self): - """Gets the dynamic_field_type of this DashboardParameterValue. # noqa: E501 - - - :return: The dynamic_field_type of this DashboardParameterValue. # noqa: E501 - :rtype: str - """ - return self._dynamic_field_type - - @dynamic_field_type.setter - def dynamic_field_type(self, dynamic_field_type): - """Sets the dynamic_field_type of this DashboardParameterValue. - - - :param dynamic_field_type: The dynamic_field_type of this DashboardParameterValue. # noqa: E501 - :type: str - """ - allowed_values = ["SOURCE", "SOURCE_TAG", "METRIC_NAME", "TAG_KEY", "MATCHING_SOURCE_TAG"] # noqa: E501 - if dynamic_field_type not in allowed_values: - raise ValueError( - "Invalid value for `dynamic_field_type` ({0}), must be one of {1}" # noqa: E501 - .format(dynamic_field_type, allowed_values) - ) - - self._dynamic_field_type = dynamic_field_type - @property def tag_key(self): """Gets the tag_key of this DashboardParameterValue. # noqa: E501 @@ -279,52 +391,48 @@ def tag_key(self, tag_key): self._tag_key = tag_key @property - def allow_all(self): - """Gets the allow_all of this DashboardParameterValue. # noqa: E501 + def tags_black_list_regex(self): + """Gets the tags_black_list_regex of this DashboardParameterValue. # noqa: E501 + The regular expression to filter out source tags from the Current Values list. # noqa: E501 - :return: The allow_all of this DashboardParameterValue. # noqa: E501 - :rtype: bool + :return: The tags_black_list_regex of this DashboardParameterValue. # noqa: E501 + :rtype: str """ - return self._allow_all + return self._tags_black_list_regex - @allow_all.setter - def allow_all(self, allow_all): - """Sets the allow_all of this DashboardParameterValue. + @tags_black_list_regex.setter + def tags_black_list_regex(self, tags_black_list_regex): + """Sets the tags_black_list_regex of this DashboardParameterValue. + The regular expression to filter out source tags from the Current Values list. # noqa: E501 - :param allow_all: The allow_all of this DashboardParameterValue. # noqa: E501 - :type: bool + :param tags_black_list_regex: The tags_black_list_regex of this DashboardParameterValue. # noqa: E501 + :type: str """ - self._allow_all = allow_all + self._tags_black_list_regex = tags_black_list_regex @property - def parameter_type(self): - """Gets the parameter_type of this DashboardParameterValue. # noqa: E501 + def value_ordering(self): + """Gets the value_ordering of this DashboardParameterValue. # noqa: E501 - :return: The parameter_type of this DashboardParameterValue. # noqa: E501 - :rtype: str + :return: The value_ordering of this DashboardParameterValue. # noqa: E501 + :rtype: list[str] """ - return self._parameter_type + return self._value_ordering - @parameter_type.setter - def parameter_type(self, parameter_type): - """Sets the parameter_type of this DashboardParameterValue. + @value_ordering.setter + def value_ordering(self, value_ordering): + """Sets the value_ordering of this DashboardParameterValue. - :param parameter_type: The parameter_type of this DashboardParameterValue. # noqa: E501 - :type: str + :param value_ordering: The value_ordering of this DashboardParameterValue. # noqa: E501 + :type: list[str] """ - allowed_values = ["SIMPLE", "LIST", "DYNAMIC"] # noqa: E501 - if parameter_type not in allowed_values: - raise ValueError( - "Invalid value for `parameter_type` ({0}), must be one of {1}" # noqa: E501 - .format(parameter_type, allowed_values) - ) - self._parameter_type = parameter_type + self._value_ordering = value_ordering @property def values_to_readable_strings(self): @@ -347,27 +455,6 @@ def values_to_readable_strings(self, values_to_readable_strings): self._values_to_readable_strings = values_to_readable_strings - @property - def multivalue(self): - """Gets the multivalue of this DashboardParameterValue. # noqa: E501 - - - :return: The multivalue of this DashboardParameterValue. # noqa: E501 - :rtype: bool - """ - return self._multivalue - - @multivalue.setter - def multivalue(self, multivalue): - """Sets the multivalue of this DashboardParameterValue. - - - :param multivalue: The multivalue of this DashboardParameterValue. # noqa: E501 - :type: bool - """ - - self._multivalue = multivalue - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -389,6 +476,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(DashboardParameterValue, dict): + for key, value in self.items(): + result[key] = value return result @@ -405,8 +495,11 @@ def __eq__(self, other): if not isinstance(other, DashboardParameterValue): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DashboardParameterValue): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/dashboard_section.py b/wavefront_api_client/models/dashboard_section.py index e7de9abc..5549a7f4 100644 --- a/wavefront_api_client/models/dashboard_section.py +++ b/wavefront_api_client/models/dashboard_section.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.dashboard_section_row import DashboardSectionRow # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class DashboardSection(object): @@ -33,24 +33,60 @@ class DashboardSection(object): and the value is json key in definition. """ swagger_types = { + 'id': 'str', 'name': 'str', - 'rows': 'list[DashboardSectionRow]' + 'rows': 'list[DashboardSectionRow]', + 'section_filter': 'JsonNode' } attribute_map = { + 'id': 'id', 'name': 'name', - 'rows': 'rows' + 'rows': 'rows', + 'section_filter': 'sectionFilter' } - def __init__(self, name=None, rows=None): # noqa: E501 + def __init__(self, id=None, name=None, rows=None, section_filter=None, _configuration=None): # noqa: E501 """DashboardSection - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._rows = None + self._section_filter = None self.discriminator = None + if id is not None: + self.id = id self.name = name self.rows = rows + if section_filter is not None: + self.section_filter = section_filter + + @property + def id(self): + """Gets the id of this DashboardSection. # noqa: E501 + + Id of this section # noqa: E501 + + :return: The id of this DashboardSection. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DashboardSection. + + Id of this section # noqa: E501 + + :param id: The id of this DashboardSection. # noqa: E501 + :type: str + """ + + self._id = id @property def name(self): @@ -72,7 +108,7 @@ def name(self, name): :param name: The name of this DashboardSection. # noqa: E501 :type: str """ - if name is None: + if self._configuration.client_side_validation and name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -97,11 +133,34 @@ def rows(self, rows): :param rows: The rows of this DashboardSection. # noqa: E501 :type: list[DashboardSectionRow] """ - if rows is None: + if self._configuration.client_side_validation and rows is None: raise ValueError("Invalid value for `rows`, must not be `None`") # noqa: E501 self._rows = rows + @property + def section_filter(self): + """Gets the section_filter of this DashboardSection. # noqa: E501 + + Display filter for conditional dashboard section # noqa: E501 + + :return: The section_filter of this DashboardSection. # noqa: E501 + :rtype: JsonNode + """ + return self._section_filter + + @section_filter.setter + def section_filter(self, section_filter): + """Sets the section_filter of this DashboardSection. + + Display filter for conditional dashboard section # noqa: E501 + + :param section_filter: The section_filter of this DashboardSection. # noqa: E501 + :type: JsonNode + """ + + self._section_filter = section_filter + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -123,6 +182,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(DashboardSection, dict): + for key, value in self.items(): + result[key] = value return result @@ -139,8 +201,11 @@ def __eq__(self, other): if not isinstance(other, DashboardSection): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DashboardSection): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/dashboard_section_row.py b/wavefront_api_client/models/dashboard_section_row.py index f53cae1b..d0e044a0 100644 --- a/wavefront_api_client/models/dashboard_section_row.py +++ b/wavefront_api_client/models/dashboard_section_row.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.chart import Chart # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class DashboardSectionRow(object): @@ -33,48 +33,28 @@ class DashboardSectionRow(object): and the value is json key in definition. """ swagger_types = { - 'height_factor': 'int', - 'charts': 'list[Chart]' + 'charts': 'list[Chart]', + 'height_factor': 'int' } attribute_map = { - 'height_factor': 'heightFactor', - 'charts': 'charts' + 'charts': 'charts', + 'height_factor': 'heightFactor' } - def __init__(self, height_factor=None, charts=None): # noqa: E501 + def __init__(self, charts=None, height_factor=None, _configuration=None): # noqa: E501 """DashboardSectionRow - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._height_factor = None self._charts = None + self._height_factor = None self.discriminator = None + self.charts = charts if height_factor is not None: self.height_factor = height_factor - self.charts = charts - - @property - def height_factor(self): - """Gets the height_factor of this DashboardSectionRow. # noqa: E501 - - Scalar for the height of this row. 100 is normal and default. 50 is half height # noqa: E501 - - :return: The height_factor of this DashboardSectionRow. # noqa: E501 - :rtype: int - """ - return self._height_factor - - @height_factor.setter - def height_factor(self, height_factor): - """Sets the height_factor of this DashboardSectionRow. - - Scalar for the height of this row. 100 is normal and default. 50 is half height # noqa: E501 - - :param height_factor: The height_factor of this DashboardSectionRow. # noqa: E501 - :type: int - """ - - self._height_factor = height_factor @property def charts(self): @@ -96,11 +76,34 @@ def charts(self, charts): :param charts: The charts of this DashboardSectionRow. # noqa: E501 :type: list[Chart] """ - if charts is None: + if self._configuration.client_side_validation and charts is None: raise ValueError("Invalid value for `charts`, must not be `None`") # noqa: E501 self._charts = charts + @property + def height_factor(self): + """Gets the height_factor of this DashboardSectionRow. # noqa: E501 + + Scalar for the height of this row. 100 is normal and default. 50 is half height # noqa: E501 + + :return: The height_factor of this DashboardSectionRow. # noqa: E501 + :rtype: int + """ + return self._height_factor + + @height_factor.setter + def height_factor(self, height_factor): + """Sets the height_factor of this DashboardSectionRow. + + Scalar for the height of this row. 100 is normal and default. 50 is half height # noqa: E501 + + :param height_factor: The height_factor of this DashboardSectionRow. # noqa: E501 + :type: int + """ + + self._height_factor = height_factor + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -122,6 +125,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(DashboardSectionRow, dict): + for key, value in self.items(): + result[key] = value return result @@ -138,8 +144,11 @@ def __eq__(self, other): if not isinstance(other, DashboardSectionRow): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DashboardSectionRow): + return True + + return self.to_dict() != other.to_dict() 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 00000000..2ceeaf72 --- /dev/null +++ b/wavefront_api_client/models/default_saved_app_map_search.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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_customer_search': 'SavedAppMapSearch', + 'default_user_search': 'SavedAppMapSearch' + } + + attribute_map = { + 'default_customer_search': 'defaultCustomerSearch', + 'default_user_search': 'defaultUserSearch' + } + + def __init__(self, default_customer_search=None, default_user_search=None, _configuration=None): # noqa: E501 + """DefaultSavedAppMapSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._default_customer_search = None + self._default_user_search = None + self.discriminator = None + + if default_customer_search is not None: + self.default_customer_search = default_customer_search + if default_user_search is not None: + self.default_user_search = default_user_search + + @property + def default_customer_search(self): + """Gets the default_customer_search of this DefaultSavedAppMapSearch. # noqa: E501 + + + :return: The default_customer_search of this DefaultSavedAppMapSearch. # noqa: E501 + :rtype: SavedAppMapSearch + """ + return self._default_customer_search + + @default_customer_search.setter + def default_customer_search(self, default_customer_search): + """Sets the default_customer_search of this DefaultSavedAppMapSearch. + + + :param default_customer_search: The default_customer_search of this DefaultSavedAppMapSearch. # noqa: E501 + :type: SavedAppMapSearch + """ + + self._default_customer_search = default_customer_search + + @property + def default_user_search(self): + """Gets the default_user_search of this DefaultSavedAppMapSearch. # noqa: E501 + + + :return: The default_user_search of this DefaultSavedAppMapSearch. # noqa: E501 + :rtype: SavedAppMapSearch + """ + return self._default_user_search + + @default_user_search.setter + def default_user_search(self, default_user_search): + """Sets the default_user_search of this DefaultSavedAppMapSearch. + + + :param default_user_search: The default_user_search of this DefaultSavedAppMapSearch. # noqa: E501 + :type: SavedAppMapSearch + """ + + self._default_user_search = default_user_search + + 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 00000000..38873d02 --- /dev/null +++ b/wavefront_api_client/models/default_saved_traces_search.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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_customer_search': 'SavedTracesSearch', + 'default_user_search': 'SavedTracesSearch' + } + + attribute_map = { + 'default_customer_search': 'defaultCustomerSearch', + 'default_user_search': 'defaultUserSearch' + } + + def __init__(self, default_customer_search=None, default_user_search=None, _configuration=None): # noqa: E501 + """DefaultSavedTracesSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._default_customer_search = None + self._default_user_search = None + self.discriminator = None + + if default_customer_search is not None: + self.default_customer_search = default_customer_search + if default_user_search is not None: + self.default_user_search = default_user_search + + @property + def default_customer_search(self): + """Gets the default_customer_search of this DefaultSavedTracesSearch. # noqa: E501 + + + :return: The default_customer_search of this DefaultSavedTracesSearch. # noqa: E501 + :rtype: SavedTracesSearch + """ + return self._default_customer_search + + @default_customer_search.setter + def default_customer_search(self, default_customer_search): + """Sets the default_customer_search of this DefaultSavedTracesSearch. + + + :param default_customer_search: The default_customer_search of this DefaultSavedTracesSearch. # noqa: E501 + :type: SavedTracesSearch + """ + + self._default_customer_search = default_customer_search + + @property + def default_user_search(self): + """Gets the default_user_search of this DefaultSavedTracesSearch. # noqa: E501 + + + :return: The default_user_search of this DefaultSavedTracesSearch. # noqa: E501 + :rtype: SavedTracesSearch + """ + return self._default_user_search + + @default_user_search.setter + def default_user_search(self, default_user_search): + """Sets the default_user_search of this DefaultSavedTracesSearch. + + + :param default_user_search: The default_user_search of this DefaultSavedTracesSearch. # noqa: E501 + :type: SavedTracesSearch + """ + + self._default_user_search = default_user_search + + 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/derived_metric_definition.py b/wavefront_api_client/models/derived_metric_definition.py index f058cd7a..aa74e689 100644 --- a/wavefront_api_client/models/derived_metric_definition.py +++ b/wavefront_api_client/models/derived_metric_definition.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.wf_tags import WFTags # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class DerivedMetricDefinition(object): @@ -33,386 +33,407 @@ class DerivedMetricDefinition(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', + 'additional_information': 'str', + 'create_user_id': 'str', + 'created': 'int', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'deleted': 'bool', + 'hosts_used': 'list[str]', 'id': 'str', - 'query': 'str', - 'tags': 'WFTags', - 'status': 'list[str]', + 'in_trash': 'bool', 'include_obsolete_metrics': 'bool', - 'creator_id': 'str', - 'additional_information': 'str', - 'minutes': 'int', - 'query_failing': 'bool', - 'last_failed_time': 'int', 'last_error_message': 'str', - 'metrics_used': 'list[str]', - 'hosts_used': 'list[str]', + 'last_failed_time': 'int', 'last_processed_millis': 'int', - 'process_rate_minutes': 'int', + 'last_query_time': 'int', + 'metrics_used': 'list[str]', + 'minutes': 'int', + 'name': 'str', 'points_scanned_at_last_query': 'int', + 'process_rate_minutes': 'int', + 'query': 'str', + 'query_failing': 'bool', 'query_qb_enabled': 'bool', 'query_qb_serialization': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'created': 'int', - 'updated': 'int', + 'status': 'list[str]', + 'tagpaths': 'list[str]', + 'tags': 'WFTags', 'update_user_id': 'str', - 'last_query_time': 'int', - 'in_trash': 'bool', - 'create_user_id': 'str', - 'deleted': 'bool' + 'updated': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' } attribute_map = { - 'name': 'name', + 'additional_information': 'additionalInformation', + 'create_user_id': 'createUserId', + 'created': 'created', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'deleted': 'deleted', + 'hosts_used': 'hostsUsed', 'id': 'id', - 'query': 'query', - 'tags': 'tags', - 'status': 'status', + 'in_trash': 'inTrash', 'include_obsolete_metrics': 'includeObsoleteMetrics', - 'creator_id': 'creatorId', - 'additional_information': 'additionalInformation', - 'minutes': 'minutes', - 'query_failing': 'queryFailing', - 'last_failed_time': 'lastFailedTime', 'last_error_message': 'lastErrorMessage', - 'metrics_used': 'metricsUsed', - 'hosts_used': 'hostsUsed', + 'last_failed_time': 'lastFailedTime', 'last_processed_millis': 'lastProcessedMillis', - 'process_rate_minutes': 'processRateMinutes', + 'last_query_time': 'lastQueryTime', + 'metrics_used': 'metricsUsed', + 'minutes': 'minutes', + 'name': 'name', 'points_scanned_at_last_query': 'pointsScannedAtLastQuery', + 'process_rate_minutes': 'processRateMinutes', + 'query': 'query', + 'query_failing': 'queryFailing', 'query_qb_enabled': 'queryQBEnabled', 'query_qb_serialization': 'queryQBSerialization', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'created': 'created', - 'updated': 'updated', + 'status': 'status', + 'tagpaths': 'tagpaths', + 'tags': 'tags', 'update_user_id': 'updateUserId', - 'last_query_time': 'lastQueryTime', - 'in_trash': 'inTrash', - 'create_user_id': 'createUserId', - 'deleted': 'deleted' + 'updated': 'updated', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' } - def __init__(self, name=None, id=None, query=None, tags=None, status=None, include_obsolete_metrics=None, creator_id=None, additional_information=None, minutes=None, query_failing=None, last_failed_time=None, last_error_message=None, metrics_used=None, hosts_used=None, last_processed_millis=None, process_rate_minutes=None, points_scanned_at_last_query=None, query_qb_enabled=None, query_qb_serialization=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, created=None, updated=None, update_user_id=None, last_query_time=None, in_trash=None, create_user_id=None, deleted=None): # noqa: E501 + def __init__(self, additional_information=None, create_user_id=None, created=None, created_epoch_millis=None, creator_id=None, deleted=None, hosts_used=None, id=None, in_trash=None, include_obsolete_metrics=None, last_error_message=None, last_failed_time=None, last_processed_millis=None, last_query_time=None, metrics_used=None, minutes=None, name=None, points_scanned_at_last_query=None, process_rate_minutes=None, query=None, query_failing=None, query_qb_enabled=None, query_qb_serialization=None, status=None, tagpaths=None, tags=None, update_user_id=None, updated=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 """DerivedMetricDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._name = None + self._additional_information = None + self._create_user_id = None + self._created = None + self._created_epoch_millis = None + self._creator_id = None + self._deleted = None + self._hosts_used = None self._id = None - self._query = None - self._tags = None - self._status = None + self._in_trash = None self._include_obsolete_metrics = None - self._creator_id = None - self._additional_information = None - self._minutes = None - self._query_failing = None - self._last_failed_time = None self._last_error_message = None - self._metrics_used = None - self._hosts_used = None + self._last_failed_time = None self._last_processed_millis = None - self._process_rate_minutes = None + self._last_query_time = None + self._metrics_used = None + self._minutes = None + self._name = None self._points_scanned_at_last_query = None + self._process_rate_minutes = None + self._query = None + self._query_failing = None self._query_qb_enabled = None self._query_qb_serialization = None - self._created_epoch_millis = None + self._status = None + self._tagpaths = None + self._tags = None + self._update_user_id = None + self._updated = None self._updated_epoch_millis = None self._updater_id = None - self._created = None - self._updated = None - self._update_user_id = None - self._last_query_time = None - self._in_trash = None - self._create_user_id = None - self._deleted = None self.discriminator = None - self.name = name + if additional_information is not None: + self.additional_information = additional_information + if create_user_id is not None: + self.create_user_id = create_user_id + if created is not None: + self.created = created + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted + if hosts_used is not None: + self.hosts_used = hosts_used if id is not None: self.id = id - self.query = query - if tags is not None: - self.tags = tags - if status is not None: - self.status = status + if in_trash is not None: + self.in_trash = in_trash if include_obsolete_metrics is not None: self.include_obsolete_metrics = include_obsolete_metrics - if creator_id is not None: - self.creator_id = creator_id - if additional_information is not None: - self.additional_information = additional_information - self.minutes = minutes - if query_failing is not None: - self.query_failing = query_failing - if last_failed_time is not None: - self.last_failed_time = last_failed_time if last_error_message is not None: self.last_error_message = last_error_message - if metrics_used is not None: - self.metrics_used = metrics_used - if hosts_used is not None: - self.hosts_used = hosts_used + if last_failed_time is not None: + self.last_failed_time = last_failed_time if last_processed_millis is not None: self.last_processed_millis = last_processed_millis - if process_rate_minutes is not None: - self.process_rate_minutes = process_rate_minutes + if last_query_time is not None: + self.last_query_time = last_query_time + if metrics_used is not None: + self.metrics_used = metrics_used + self.minutes = minutes + self.name = name if points_scanned_at_last_query is not None: self.points_scanned_at_last_query = points_scanned_at_last_query + if process_rate_minutes is not None: + self.process_rate_minutes = process_rate_minutes + self.query = query + if query_failing is not None: + self.query_failing = query_failing if query_qb_enabled is not None: self.query_qb_enabled = query_qb_enabled if query_qb_serialization is not None: self.query_qb_serialization = query_qb_serialization - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis + if status is not None: + self.status = status + if tagpaths is not None: + self.tagpaths = tagpaths + if tags is not None: + self.tags = tags + if update_user_id is not None: + self.update_user_id = update_user_id + if updated is not None: + self.updated = updated if updated_epoch_millis is not None: self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id - if created is not None: - self.created = created - if updated is not None: - self.updated = updated - if update_user_id is not None: - self.update_user_id = update_user_id - if last_query_time is not None: - self.last_query_time = last_query_time - if in_trash is not None: - self.in_trash = in_trash - if create_user_id is not None: - self.create_user_id = create_user_id - if deleted is not None: - self.deleted = deleted @property - def name(self): - """Gets the name of this DerivedMetricDefinition. # noqa: E501 + def additional_information(self): + """Gets the additional_information of this DerivedMetricDefinition. # noqa: E501 + User-supplied additional explanatory information for the derived metric # noqa: E501 - :return: The name of this DerivedMetricDefinition. # noqa: E501 + :return: The additional_information of this DerivedMetricDefinition. # noqa: E501 :rtype: str """ - return self._name + return self._additional_information - @name.setter - def name(self, name): - """Sets the name of this DerivedMetricDefinition. + @additional_information.setter + def additional_information(self, additional_information): + """Sets the additional_information of this DerivedMetricDefinition. + User-supplied additional explanatory information for the derived metric # noqa: E501 - :param name: The name of this DerivedMetricDefinition. # noqa: E501 + :param additional_information: The additional_information of this DerivedMetricDefinition. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._additional_information = additional_information @property - def id(self): - """Gets the id of this DerivedMetricDefinition. # noqa: E501 + def create_user_id(self): + """Gets the create_user_id of this DerivedMetricDefinition. # noqa: E501 - :return: The id of this DerivedMetricDefinition. # noqa: E501 + :return: The create_user_id of this DerivedMetricDefinition. # noqa: E501 :rtype: str """ - return self._id + return self._create_user_id - @id.setter - def id(self, id): - """Sets the id of this DerivedMetricDefinition. + @create_user_id.setter + def create_user_id(self, create_user_id): + """Sets the create_user_id of this DerivedMetricDefinition. - :param id: The id of this DerivedMetricDefinition. # noqa: E501 + :param create_user_id: The create_user_id of this DerivedMetricDefinition. # noqa: E501 :type: str """ - self._id = id + self._create_user_id = create_user_id @property - def query(self): - """Gets the query of this DerivedMetricDefinition. # noqa: E501 + def created(self): + """Gets the created of this DerivedMetricDefinition. # noqa: E501 - A Wavefront query that is evaluated at regular intervals (default 1m). # noqa: E501 + When this derived metric was created, in epoch millis # noqa: E501 - :return: The query of this DerivedMetricDefinition. # noqa: E501 - :rtype: str + :return: The created of this DerivedMetricDefinition. # noqa: E501 + :rtype: int """ - return self._query + return self._created - @query.setter - def query(self, query): - """Sets the query of this DerivedMetricDefinition. + @created.setter + def created(self, created): + """Sets the created of this DerivedMetricDefinition. - A Wavefront query that is evaluated at regular intervals (default 1m). # noqa: E501 + When this derived metric was created, in epoch millis # noqa: E501 - :param query: The query of this DerivedMetricDefinition. # noqa: E501 - :type: str + :param created: The created of this DerivedMetricDefinition. # noqa: E501 + :type: int """ - if query is None: - raise ValueError("Invalid value for `query`, must not be `None`") # noqa: E501 - self._query = query + self._created = created @property - def tags(self): - """Gets the tags of this DerivedMetricDefinition. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this DerivedMetricDefinition. # noqa: E501 - :return: The tags of this DerivedMetricDefinition. # noqa: E501 - :rtype: WFTags + :return: The created_epoch_millis of this DerivedMetricDefinition. # noqa: E501 + :rtype: int """ - return self._tags + return self._created_epoch_millis - @tags.setter - def tags(self, tags): - """Sets the tags of this DerivedMetricDefinition. + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): + """Sets the created_epoch_millis of this DerivedMetricDefinition. + + + :param created_epoch_millis: The created_epoch_millis of this DerivedMetricDefinition. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this DerivedMetricDefinition. # noqa: E501 + + + :return: The creator_id of this DerivedMetricDefinition. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this DerivedMetricDefinition. - :param tags: The tags of this DerivedMetricDefinition. # noqa: E501 - :type: WFTags + :param creator_id: The creator_id of this DerivedMetricDefinition. # noqa: E501 + :type: str """ - self._tags = tags + self._creator_id = creator_id @property - def status(self): - """Gets the status of this DerivedMetricDefinition. # noqa: E501 + def deleted(self): + """Gets the deleted of this DerivedMetricDefinition. # noqa: E501 - Lists the current state of the derived metric. Can be one or more of: INVALID, ACTIVE, TRASH, NO_DATA # noqa: E501 - :return: The status of this DerivedMetricDefinition. # noqa: E501 - :rtype: list[str] + :return: The deleted of this DerivedMetricDefinition. # noqa: E501 + :rtype: bool """ - return self._status + return self._deleted - @status.setter - def status(self, status): - """Sets the status of this DerivedMetricDefinition. + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this DerivedMetricDefinition. - Lists the current state of the derived metric. Can be one or more of: INVALID, ACTIVE, TRASH, NO_DATA # noqa: E501 - :param status: The status of this DerivedMetricDefinition. # noqa: E501 - :type: list[str] + :param deleted: The deleted of this DerivedMetricDefinition. # noqa: E501 + :type: bool """ - self._status = status + self._deleted = deleted @property - def include_obsolete_metrics(self): - """Gets the include_obsolete_metrics of this DerivedMetricDefinition. # noqa: E501 + def hosts_used(self): + """Gets the hosts_used of this DerivedMetricDefinition. # noqa: E501 - Whether to include obsolete metrics in query # noqa: E501 + Number of hosts checked by the query # noqa: E501 - :return: The include_obsolete_metrics of this DerivedMetricDefinition. # noqa: E501 - :rtype: bool + :return: The hosts_used of this DerivedMetricDefinition. # noqa: E501 + :rtype: list[str] """ - return self._include_obsolete_metrics + return self._hosts_used - @include_obsolete_metrics.setter - def include_obsolete_metrics(self, include_obsolete_metrics): - """Sets the include_obsolete_metrics of this DerivedMetricDefinition. + @hosts_used.setter + def hosts_used(self, hosts_used): + """Sets the hosts_used of this DerivedMetricDefinition. - Whether to include obsolete metrics in query # noqa: E501 + Number of hosts checked by the query # noqa: E501 - :param include_obsolete_metrics: The include_obsolete_metrics of this DerivedMetricDefinition. # noqa: E501 - :type: bool + :param hosts_used: The hosts_used of this DerivedMetricDefinition. # noqa: E501 + :type: list[str] """ - self._include_obsolete_metrics = include_obsolete_metrics + self._hosts_used = hosts_used @property - def creator_id(self): - """Gets the creator_id of this DerivedMetricDefinition. # noqa: E501 + def id(self): + """Gets the id of this DerivedMetricDefinition. # noqa: E501 - :return: The creator_id of this DerivedMetricDefinition. # noqa: E501 + :return: The id of this DerivedMetricDefinition. # noqa: E501 :rtype: str """ - return self._creator_id + return self._id - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this DerivedMetricDefinition. + @id.setter + def id(self, id): + """Sets the id of this DerivedMetricDefinition. - :param creator_id: The creator_id of this DerivedMetricDefinition. # noqa: E501 + :param id: The id of this DerivedMetricDefinition. # noqa: E501 :type: str """ - self._creator_id = creator_id + self._id = id @property - def additional_information(self): - """Gets the additional_information of this DerivedMetricDefinition. # noqa: E501 + def in_trash(self): + """Gets the in_trash of this DerivedMetricDefinition. # noqa: E501 - User-supplied additional explanatory information for the derived metric # noqa: E501 - :return: The additional_information of this DerivedMetricDefinition. # noqa: E501 - :rtype: str + :return: The in_trash of this DerivedMetricDefinition. # noqa: E501 + :rtype: bool """ - return self._additional_information + return self._in_trash - @additional_information.setter - def additional_information(self, additional_information): - """Sets the additional_information of this DerivedMetricDefinition. + @in_trash.setter + def in_trash(self, in_trash): + """Sets the in_trash of this DerivedMetricDefinition. - User-supplied additional explanatory information for the derived metric # noqa: E501 - :param additional_information: The additional_information of this DerivedMetricDefinition. # noqa: E501 - :type: str + :param in_trash: The in_trash of this DerivedMetricDefinition. # noqa: E501 + :type: bool """ - self._additional_information = additional_information + self._in_trash = in_trash @property - def minutes(self): - """Gets the minutes of this DerivedMetricDefinition. # noqa: E501 + def include_obsolete_metrics(self): + """Gets the include_obsolete_metrics of this DerivedMetricDefinition. # noqa: E501 - How frequently the query generating the derived metric is run # noqa: E501 + Whether to include obsolete metrics in query # noqa: E501 - :return: The minutes of this DerivedMetricDefinition. # noqa: E501 - :rtype: int + :return: The include_obsolete_metrics of this DerivedMetricDefinition. # noqa: E501 + :rtype: bool """ - return self._minutes + return self._include_obsolete_metrics - @minutes.setter - def minutes(self, minutes): - """Sets the minutes of this DerivedMetricDefinition. + @include_obsolete_metrics.setter + def include_obsolete_metrics(self, include_obsolete_metrics): + """Sets the include_obsolete_metrics of this DerivedMetricDefinition. - How frequently the query generating the derived metric is run # noqa: E501 + Whether to include obsolete metrics in query # noqa: E501 - :param minutes: The minutes of this DerivedMetricDefinition. # noqa: E501 - :type: int + :param include_obsolete_metrics: The include_obsolete_metrics of this DerivedMetricDefinition. # noqa: E501 + :type: bool """ - if minutes is None: - raise ValueError("Invalid value for `minutes`, must not be `None`") # noqa: E501 - self._minutes = minutes + self._include_obsolete_metrics = include_obsolete_metrics @property - def query_failing(self): - """Gets the query_failing of this DerivedMetricDefinition. # noqa: E501 + def last_error_message(self): + """Gets the last_error_message of this DerivedMetricDefinition. # noqa: E501 - Whether there was an exception when the query last ran # noqa: E501 + The last error encountered when running the query # noqa: E501 - :return: The query_failing of this DerivedMetricDefinition. # noqa: E501 - :rtype: bool + :return: The last_error_message of this DerivedMetricDefinition. # noqa: E501 + :rtype: str """ - return self._query_failing + return self._last_error_message - @query_failing.setter - def query_failing(self, query_failing): - """Sets the query_failing of this DerivedMetricDefinition. + @last_error_message.setter + def last_error_message(self, last_error_message): + """Sets the last_error_message of this DerivedMetricDefinition. - Whether there was an exception when the query last ran # noqa: E501 + The last error encountered when running the query # noqa: E501 - :param query_failing: The query_failing of this DerivedMetricDefinition. # noqa: E501 - :type: bool + :param last_error_message: The last_error_message of this DerivedMetricDefinition. # noqa: E501 + :type: str """ - self._query_failing = query_failing + self._last_error_message = last_error_message @property def last_failed_time(self): @@ -438,27 +459,50 @@ def last_failed_time(self, last_failed_time): self._last_failed_time = last_failed_time @property - def last_error_message(self): - """Gets the last_error_message of this DerivedMetricDefinition. # noqa: E501 + def last_processed_millis(self): + """Gets the last_processed_millis of this DerivedMetricDefinition. # noqa: E501 - The last error encountered when running the query # noqa: E501 + The last time when the derived metric query was run, in epoch millis # noqa: E501 - :return: The last_error_message of this DerivedMetricDefinition. # noqa: E501 - :rtype: str + :return: The last_processed_millis of this DerivedMetricDefinition. # noqa: E501 + :rtype: int """ - return self._last_error_message + return self._last_processed_millis - @last_error_message.setter - def last_error_message(self, last_error_message): - """Sets the last_error_message of this DerivedMetricDefinition. + @last_processed_millis.setter + def last_processed_millis(self, last_processed_millis): + """Sets the last_processed_millis of this DerivedMetricDefinition. - The last error encountered when running the query # noqa: E501 + The last time when the derived metric query was run, in epoch millis # noqa: E501 - :param last_error_message: The last_error_message of this DerivedMetricDefinition. # noqa: E501 - :type: str + :param last_processed_millis: The last_processed_millis of this DerivedMetricDefinition. # noqa: E501 + :type: int """ - self._last_error_message = last_error_message + self._last_processed_millis = last_processed_millis + + @property + def last_query_time(self): + """Gets the last_query_time of this DerivedMetricDefinition. # noqa: E501 + + Time for the query execute, averaged on hourly basis # noqa: E501 + + :return: The last_query_time of this DerivedMetricDefinition. # noqa: E501 + :rtype: int + """ + return self._last_query_time + + @last_query_time.setter + def last_query_time(self, last_query_time): + """Sets the last_query_time of this DerivedMetricDefinition. + + Time for the query execute, averaged on hourly basis # noqa: E501 + + :param last_query_time: The last_query_time of this DerivedMetricDefinition. # noqa: E501 + :type: int + """ + + self._last_query_time = last_query_time @property def metrics_used(self): @@ -484,56 +528,81 @@ def metrics_used(self, metrics_used): self._metrics_used = metrics_used @property - def hosts_used(self): - """Gets the hosts_used of this DerivedMetricDefinition. # noqa: E501 + def minutes(self): + """Gets the minutes of this DerivedMetricDefinition. # noqa: E501 - Number of hosts checked by the query # noqa: E501 + Number of minutes to query for the derived metric # noqa: E501 - :return: The hosts_used of this DerivedMetricDefinition. # noqa: E501 - :rtype: list[str] + :return: The minutes of this DerivedMetricDefinition. # noqa: E501 + :rtype: int """ - return self._hosts_used + return self._minutes - @hosts_used.setter - def hosts_used(self, hosts_used): - """Sets the hosts_used of this DerivedMetricDefinition. + @minutes.setter + def minutes(self, minutes): + """Sets the minutes of this DerivedMetricDefinition. - Number of hosts checked by the query # noqa: E501 + Number of minutes to query for the derived metric # noqa: E501 - :param hosts_used: The hosts_used of this DerivedMetricDefinition. # noqa: E501 - :type: list[str] + :param minutes: The minutes of this DerivedMetricDefinition. # noqa: E501 + :type: int """ + if self._configuration.client_side_validation and minutes is None: + raise ValueError("Invalid value for `minutes`, must not be `None`") # noqa: E501 - self._hosts_used = hosts_used + self._minutes = minutes @property - def last_processed_millis(self): - """Gets the last_processed_millis of this DerivedMetricDefinition. # noqa: E501 + def name(self): + """Gets the name of this DerivedMetricDefinition. # noqa: E501 - The last time when the derived metric query was run, in epoch millis # noqa: E501 - :return: The last_processed_millis of this DerivedMetricDefinition. # noqa: E501 + :return: The name of this DerivedMetricDefinition. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DerivedMetricDefinition. + + + :param name: The name of this DerivedMetricDefinition. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def points_scanned_at_last_query(self): + """Gets the points_scanned_at_last_query of this DerivedMetricDefinition. # noqa: E501 + + A derived field recording the number of data points scanned when the system last computed the query # noqa: E501 + + :return: The points_scanned_at_last_query of this DerivedMetricDefinition. # noqa: E501 :rtype: int """ - return self._last_processed_millis + return self._points_scanned_at_last_query - @last_processed_millis.setter - def last_processed_millis(self, last_processed_millis): - """Sets the last_processed_millis of this DerivedMetricDefinition. + @points_scanned_at_last_query.setter + def points_scanned_at_last_query(self, points_scanned_at_last_query): + """Sets the points_scanned_at_last_query of this DerivedMetricDefinition. - The last time when the derived metric query was run, in epoch millis # noqa: E501 + A derived field recording the number of data points scanned when the system last computed the query # noqa: E501 - :param last_processed_millis: The last_processed_millis of this DerivedMetricDefinition. # noqa: E501 + :param points_scanned_at_last_query: The points_scanned_at_last_query of this DerivedMetricDefinition. # noqa: E501 :type: int """ - self._last_processed_millis = last_processed_millis + self._points_scanned_at_last_query = points_scanned_at_last_query @property def process_rate_minutes(self): """Gets the process_rate_minutes of this DerivedMetricDefinition. # noqa: E501 - The interval between executing the query, in minutes. Defaults to 1 minute # noqa: E501 + The interval between executing the query, in minutes. Defaults to 5 minutes # noqa: E501 :return: The process_rate_minutes of this DerivedMetricDefinition. # noqa: E501 :rtype: int @@ -544,7 +613,7 @@ def process_rate_minutes(self): def process_rate_minutes(self, process_rate_minutes): """Sets the process_rate_minutes of this DerivedMetricDefinition. - The interval between executing the query, in minutes. Defaults to 1 minute # noqa: E501 + The interval between executing the query, in minutes. Defaults to 5 minutes # noqa: E501 :param process_rate_minutes: The process_rate_minutes of this DerivedMetricDefinition. # noqa: E501 :type: int @@ -553,27 +622,52 @@ def process_rate_minutes(self, process_rate_minutes): self._process_rate_minutes = process_rate_minutes @property - def points_scanned_at_last_query(self): - """Gets the points_scanned_at_last_query of this DerivedMetricDefinition. # noqa: E501 + def query(self): + """Gets the query of this DerivedMetricDefinition. # noqa: E501 - A derived field recording the number of data points scanned when the system last computed the query # noqa: E501 + A Wavefront query that is evaluated at regular intervals (default 1m). # noqa: E501 - :return: The points_scanned_at_last_query of this DerivedMetricDefinition. # noqa: E501 - :rtype: int + :return: The query of this DerivedMetricDefinition. # noqa: E501 + :rtype: str """ - return self._points_scanned_at_last_query + return self._query - @points_scanned_at_last_query.setter - def points_scanned_at_last_query(self, points_scanned_at_last_query): - """Sets the points_scanned_at_last_query of this DerivedMetricDefinition. + @query.setter + def query(self, query): + """Sets the query of this DerivedMetricDefinition. - A derived field recording the number of data points scanned when the system last computed the query # noqa: E501 + A Wavefront query that is evaluated at regular intervals (default 1m). # noqa: E501 - :param points_scanned_at_last_query: The points_scanned_at_last_query of this DerivedMetricDefinition. # noqa: E501 - :type: int + :param query: The query of this DerivedMetricDefinition. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and query is None: + raise ValueError("Invalid value for `query`, must not be `None`") # noqa: E501 - self._points_scanned_at_last_query = points_scanned_at_last_query + self._query = query + + @property + def query_failing(self): + """Gets the query_failing of this DerivedMetricDefinition. # noqa: E501 + + Whether there was an exception when the query last ran # noqa: E501 + + :return: The query_failing of this DerivedMetricDefinition. # noqa: E501 + :rtype: bool + """ + return self._query_failing + + @query_failing.setter + def query_failing(self, query_failing): + """Sets the query_failing of this DerivedMetricDefinition. + + Whether there was an exception when the query last ran # noqa: E501 + + :param query_failing: The query_failing of this DerivedMetricDefinition. # noqa: E501 + :type: bool + """ + + self._query_failing = query_failing @property def query_qb_enabled(self): @@ -622,113 +716,69 @@ def query_qb_serialization(self, query_qb_serialization): self._query_qb_serialization = query_qb_serialization @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this DerivedMetricDefinition. # noqa: E501 - - - :return: The created_epoch_millis of this DerivedMetricDefinition. # 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 DerivedMetricDefinition. - - - :param created_epoch_millis: The created_epoch_millis of this DerivedMetricDefinition. # noqa: E501 - :type: int - """ - - self._created_epoch_millis = created_epoch_millis - - @property - def updated_epoch_millis(self): - """Gets the updated_epoch_millis of this DerivedMetricDefinition. # noqa: E501 - - - :return: The updated_epoch_millis of this DerivedMetricDefinition. # noqa: E501 - :rtype: int - """ - return self._updated_epoch_millis - - @updated_epoch_millis.setter - def updated_epoch_millis(self, updated_epoch_millis): - """Sets the updated_epoch_millis of this DerivedMetricDefinition. - - - :param updated_epoch_millis: The updated_epoch_millis of this DerivedMetricDefinition. # noqa: E501 - :type: int - """ - - self._updated_epoch_millis = updated_epoch_millis - - @property - def updater_id(self): - """Gets the updater_id of this DerivedMetricDefinition. # noqa: E501 + def status(self): + """Gets the status of this DerivedMetricDefinition. # noqa: E501 + Lists the current state of the derived metric. Can be one or more of: INVALID, ACTIVE, TRASH, NO_DATA # noqa: E501 - :return: The updater_id of this DerivedMetricDefinition. # noqa: E501 - :rtype: str + :return: The status of this DerivedMetricDefinition. # noqa: E501 + :rtype: list[str] """ - return self._updater_id + return self._status - @updater_id.setter - def updater_id(self, updater_id): - """Sets the updater_id of this DerivedMetricDefinition. + @status.setter + def status(self, status): + """Sets the status of this DerivedMetricDefinition. + Lists the current state of the derived metric. Can be one or more of: INVALID, ACTIVE, TRASH, NO_DATA # noqa: E501 - :param updater_id: The updater_id of this DerivedMetricDefinition. # noqa: E501 - :type: str + :param status: The status of this DerivedMetricDefinition. # noqa: E501 + :type: list[str] """ - self._updater_id = updater_id + self._status = status @property - def created(self): - """Gets the created of this DerivedMetricDefinition. # noqa: E501 + def tagpaths(self): + """Gets the tagpaths of this DerivedMetricDefinition. # noqa: E501 - When this derived metric was created, in epoch millis # noqa: E501 - :return: The created of this DerivedMetricDefinition. # noqa: E501 - :rtype: int + :return: The tagpaths of this DerivedMetricDefinition. # noqa: E501 + :rtype: list[str] """ - return self._created + return self._tagpaths - @created.setter - def created(self, created): - """Sets the created of this DerivedMetricDefinition. + @tagpaths.setter + def tagpaths(self, tagpaths): + """Sets the tagpaths of this DerivedMetricDefinition. - When this derived metric was created, in epoch millis # noqa: E501 - :param created: The created of this DerivedMetricDefinition. # noqa: E501 - :type: int + :param tagpaths: The tagpaths of this DerivedMetricDefinition. # noqa: E501 + :type: list[str] """ - self._created = created + self._tagpaths = tagpaths @property - def updated(self): - """Gets the updated of this DerivedMetricDefinition. # noqa: E501 + def tags(self): + """Gets the tags of this DerivedMetricDefinition. # noqa: E501 - When the derived metric definition was last updated, in epoch millis # noqa: E501 - :return: The updated of this DerivedMetricDefinition. # noqa: E501 - :rtype: int + :return: The tags of this DerivedMetricDefinition. # noqa: E501 + :rtype: WFTags """ - return self._updated + return self._tags - @updated.setter - def updated(self, updated): - """Sets the updated of this DerivedMetricDefinition. + @tags.setter + def tags(self, tags): + """Sets the tags of this DerivedMetricDefinition. - When the derived metric definition was last updated, in epoch millis # noqa: E501 - :param updated: The updated of this DerivedMetricDefinition. # noqa: E501 - :type: int + :param tags: The tags of this DerivedMetricDefinition. # noqa: E501 + :type: WFTags """ - self._updated = updated + self._tags = tags @property def update_user_id(self): @@ -754,90 +804,69 @@ def update_user_id(self, update_user_id): self._update_user_id = update_user_id @property - def last_query_time(self): - """Gets the last_query_time of this DerivedMetricDefinition. # noqa: E501 + def updated(self): + """Gets the updated of this DerivedMetricDefinition. # noqa: E501 - Time for the query execute, averaged on hourly basis # noqa: E501 + When the derived metric definition was last updated, in epoch millis # noqa: E501 - :return: The last_query_time of this DerivedMetricDefinition. # noqa: E501 + :return: The updated of this DerivedMetricDefinition. # noqa: E501 :rtype: int """ - return self._last_query_time + return self._updated - @last_query_time.setter - def last_query_time(self, last_query_time): - """Sets the last_query_time of this DerivedMetricDefinition. + @updated.setter + def updated(self, updated): + """Sets the updated of this DerivedMetricDefinition. - Time for the query execute, averaged on hourly basis # noqa: E501 + When the derived metric definition was last updated, in epoch millis # noqa: E501 - :param last_query_time: The last_query_time of this DerivedMetricDefinition. # noqa: E501 + :param updated: The updated of this DerivedMetricDefinition. # noqa: E501 :type: int """ - self._last_query_time = last_query_time + self._updated = updated @property - def in_trash(self): - """Gets the in_trash of this DerivedMetricDefinition. # noqa: E501 + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this DerivedMetricDefinition. # noqa: E501 - :return: The in_trash of this DerivedMetricDefinition. # noqa: E501 - :rtype: bool + :return: The updated_epoch_millis of this DerivedMetricDefinition. # noqa: E501 + :rtype: int """ - return self._in_trash + return self._updated_epoch_millis - @in_trash.setter - def in_trash(self, in_trash): - """Sets the in_trash of this DerivedMetricDefinition. + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this DerivedMetricDefinition. - :param in_trash: The in_trash of this DerivedMetricDefinition. # noqa: E501 - :type: bool + :param updated_epoch_millis: The updated_epoch_millis of this DerivedMetricDefinition. # noqa: E501 + :type: int """ - self._in_trash = in_trash + self._updated_epoch_millis = updated_epoch_millis @property - def create_user_id(self): - """Gets the create_user_id of this DerivedMetricDefinition. # noqa: E501 + def updater_id(self): + """Gets the updater_id of this DerivedMetricDefinition. # noqa: E501 - :return: The create_user_id of this DerivedMetricDefinition. # noqa: E501 + :return: The updater_id of this DerivedMetricDefinition. # noqa: E501 :rtype: str """ - return self._create_user_id + return self._updater_id - @create_user_id.setter - def create_user_id(self, create_user_id): - """Sets the create_user_id of this DerivedMetricDefinition. + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this DerivedMetricDefinition. - :param create_user_id: The create_user_id of this DerivedMetricDefinition. # noqa: E501 + :param updater_id: The updater_id of this DerivedMetricDefinition. # noqa: E501 :type: str """ - self._create_user_id = create_user_id - - @property - def deleted(self): - """Gets the deleted of this DerivedMetricDefinition. # noqa: E501 - - - :return: The deleted of this DerivedMetricDefinition. # noqa: E501 - :rtype: bool - """ - return self._deleted - - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this DerivedMetricDefinition. - - - :param deleted: The deleted of this DerivedMetricDefinition. # noqa: E501 - :type: bool - """ - - self._deleted = deleted + self._updater_id = updater_id def to_dict(self): """Returns the model properties as a dict""" @@ -860,6 +889,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(DerivedMetricDefinition, dict): + for key, value in self.items(): + result[key] = value return result @@ -876,8 +908,11 @@ def __eq__(self, other): if not isinstance(other, DerivedMetricDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DerivedMetricDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/dynatrace_configuration.py b/wavefront_api_client/models/dynatrace_configuration.py new file mode 100644 index 00000000..364709ce --- /dev/null +++ b/wavefront_api_client/models/dynatrace_configuration.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 DynatraceConfiguration(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 = { + 'dynatrace_api_token': 'str', + 'environment_id': 'str', + 'metric_filter_regex': 'str' + } + + attribute_map = { + 'dynatrace_api_token': 'dynatraceAPIToken', + 'environment_id': 'environmentID', + 'metric_filter_regex': 'metricFilterRegex' + } + + def __init__(self, dynatrace_api_token=None, environment_id=None, metric_filter_regex=None, _configuration=None): # noqa: E501 + """DynatraceConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._dynatrace_api_token = None + self._environment_id = None + self._metric_filter_regex = None + self.discriminator = None + + self.dynatrace_api_token = dynatrace_api_token + if environment_id is not None: + self.environment_id = environment_id + if metric_filter_regex is not None: + self.metric_filter_regex = metric_filter_regex + + @property + def dynatrace_api_token(self): + """Gets the dynatrace_api_token of this DynatraceConfiguration. # noqa: E501 + + The Dynatrace API Token # noqa: E501 + + :return: The dynatrace_api_token of this DynatraceConfiguration. # noqa: E501 + :rtype: str + """ + return self._dynatrace_api_token + + @dynatrace_api_token.setter + def dynatrace_api_token(self, dynatrace_api_token): + """Sets the dynatrace_api_token of this DynatraceConfiguration. + + The Dynatrace API Token # noqa: E501 + + :param dynatrace_api_token: The dynatrace_api_token of this DynatraceConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and dynatrace_api_token is None: + raise ValueError("Invalid value for `dynatrace_api_token`, must not be `None`") # noqa: E501 + + self._dynatrace_api_token = dynatrace_api_token + + @property + def environment_id(self): + """Gets the environment_id of this DynatraceConfiguration. # noqa: E501 + + The ID of Dynatrace Environment # noqa: E501 + + :return: The environment_id of this DynatraceConfiguration. # noqa: E501 + :rtype: str + """ + return self._environment_id + + @environment_id.setter + def environment_id(self, environment_id): + """Sets the environment_id of this DynatraceConfiguration. + + The ID of Dynatrace Environment # noqa: E501 + + :param environment_id: The environment_id of this DynatraceConfiguration. # noqa: E501 + :type: str + """ + + self._environment_id = environment_id + + @property + def metric_filter_regex(self): + """Gets the metric_filter_regex of this DynatraceConfiguration. # noqa: E501 + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :return: The metric_filter_regex of this DynatraceConfiguration. # noqa: E501 + :rtype: str + """ + return self._metric_filter_regex + + @metric_filter_regex.setter + def metric_filter_regex(self, metric_filter_regex): + """Sets the metric_filter_regex of this DynatraceConfiguration. + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :param metric_filter_regex: The metric_filter_regex of this DynatraceConfiguration. # noqa: E501 + :type: str + """ + + self._metric_filter_regex = metric_filter_regex + + 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(DynatraceConfiguration, 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, DynatraceConfiguration): + 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, DynatraceConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/ec2_configuration.py b/wavefront_api_client/models/ec2_configuration.py index 78b0e245..28a61e74 100644 --- a/wavefront_api_client/models/ec2_configuration.py +++ b/wavefront_api_client/models/ec2_configuration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.aws_base_credentials import AWSBaseCredentials # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class EC2Configuration(object): @@ -34,25 +34,53 @@ class EC2Configuration(object): """ swagger_types = { 'base_credentials': 'AWSBaseCredentials', - 'host_name_tags': 'list[str]' + 'custom_namespaces': 'list[str]', + 'host_name_tags': 'list[str]', + 'instance_selection_tags_expr': 'str', + 'metric_filter_regex': 'str', + 'point_tag_filter_regex': 'str', + 'volume_selection_tags_expr': 'str' } attribute_map = { 'base_credentials': 'baseCredentials', - 'host_name_tags': 'hostNameTags' + 'custom_namespaces': 'customNamespaces', + 'host_name_tags': 'hostNameTags', + 'instance_selection_tags_expr': 'instanceSelectionTagsExpr', + 'metric_filter_regex': 'metricFilterRegex', + 'point_tag_filter_regex': 'pointTagFilterRegex', + 'volume_selection_tags_expr': 'volumeSelectionTagsExpr' } - def __init__(self, base_credentials=None, host_name_tags=None): # noqa: E501 + def __init__(self, base_credentials=None, custom_namespaces=None, host_name_tags=None, instance_selection_tags_expr=None, metric_filter_regex=None, point_tag_filter_regex=None, volume_selection_tags_expr=None, _configuration=None): # noqa: E501 """EC2Configuration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._base_credentials = None + self._custom_namespaces = None self._host_name_tags = None + self._instance_selection_tags_expr = None + self._metric_filter_regex = None + self._point_tag_filter_regex = None + self._volume_selection_tags_expr = None self.discriminator = None if base_credentials is not None: self.base_credentials = base_credentials + if custom_namespaces is not None: + self.custom_namespaces = custom_namespaces if host_name_tags is not None: self.host_name_tags = host_name_tags + if instance_selection_tags_expr is not None: + self.instance_selection_tags_expr = instance_selection_tags_expr + if metric_filter_regex is not None: + self.metric_filter_regex = metric_filter_regex + if point_tag_filter_regex is not None: + self.point_tag_filter_regex = point_tag_filter_regex + if volume_selection_tags_expr is not None: + self.volume_selection_tags_expr = volume_selection_tags_expr @property def base_credentials(self): @@ -75,6 +103,29 @@ def base_credentials(self, base_credentials): self._base_credentials = base_credentials + @property + def custom_namespaces(self): + """Gets the custom_namespaces of this EC2Configuration. # noqa: E501 + + A list of custom namespace that limit what we query from metric plus # noqa: E501 + + :return: The custom_namespaces of this EC2Configuration. # noqa: E501 + :rtype: list[str] + """ + return self._custom_namespaces + + @custom_namespaces.setter + def custom_namespaces(self, custom_namespaces): + """Sets the custom_namespaces of this EC2Configuration. + + A list of custom namespace that limit what we query from metric plus # noqa: E501 + + :param custom_namespaces: The custom_namespaces of this EC2Configuration. # noqa: E501 + :type: list[str] + """ + + self._custom_namespaces = custom_namespaces + @property def host_name_tags(self): """Gets the host_name_tags of this EC2Configuration. # noqa: E501 @@ -98,6 +149,98 @@ def host_name_tags(self, host_name_tags): self._host_name_tags = host_name_tags + @property + def instance_selection_tags_expr(self): + """Gets the instance_selection_tags_expr of this EC2Configuration. # noqa: E501 + + A string expressing the allow list of AWS instance tag-value pairs. If the instance's AWS tags match this allow list, data about this instance is ingested from EC2 APIs Multiple entries are OR'ed. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". # noqa: E501 + + :return: The instance_selection_tags_expr of this EC2Configuration. # noqa: E501 + :rtype: str + """ + return self._instance_selection_tags_expr + + @instance_selection_tags_expr.setter + def instance_selection_tags_expr(self, instance_selection_tags_expr): + """Sets the instance_selection_tags_expr of this EC2Configuration. + + A string expressing the allow list of AWS instance tag-value pairs. If the instance's AWS tags match this allow list, data about this instance is ingested from EC2 APIs Multiple entries are OR'ed. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". # noqa: E501 + + :param instance_selection_tags_expr: The instance_selection_tags_expr of this EC2Configuration. # noqa: E501 + :type: str + """ + + self._instance_selection_tags_expr = instance_selection_tags_expr + + @property + def metric_filter_regex(self): + """Gets the metric_filter_regex of this EC2Configuration. # noqa: E501 + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :return: The metric_filter_regex of this EC2Configuration. # noqa: E501 + :rtype: str + """ + return self._metric_filter_regex + + @metric_filter_regex.setter + def metric_filter_regex(self, metric_filter_regex): + """Sets the metric_filter_regex of this EC2Configuration. + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :param metric_filter_regex: The metric_filter_regex of this EC2Configuration. # noqa: E501 + :type: str + """ + + self._metric_filter_regex = metric_filter_regex + + @property + def point_tag_filter_regex(self): + """Gets the point_tag_filter_regex of this EC2Configuration. # noqa: E501 + + A regular expression that AWS tag key name must match (case-insensitively) in order to be ingested # noqa: E501 + + :return: The point_tag_filter_regex of this EC2Configuration. # noqa: E501 + :rtype: str + """ + return self._point_tag_filter_regex + + @point_tag_filter_regex.setter + def point_tag_filter_regex(self, point_tag_filter_regex): + """Sets the point_tag_filter_regex of this EC2Configuration. + + A regular expression that AWS tag key name must match (case-insensitively) in order to be ingested # noqa: E501 + + :param point_tag_filter_regex: The point_tag_filter_regex of this EC2Configuration. # noqa: E501 + :type: str + """ + + self._point_tag_filter_regex = point_tag_filter_regex + + @property + def volume_selection_tags_expr(self): + """Gets the volume_selection_tags_expr of this EC2Configuration. # noqa: E501 + + A string expressing the allow list of AWS volume tag-value pairs. If the volume's AWS tags match this allow list, Data about this volume is ingested from EBS APIs. Multiple entries are OR'ed. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". # noqa: E501 + + :return: The volume_selection_tags_expr of this EC2Configuration. # noqa: E501 + :rtype: str + """ + return self._volume_selection_tags_expr + + @volume_selection_tags_expr.setter + def volume_selection_tags_expr(self, volume_selection_tags_expr): + """Sets the volume_selection_tags_expr of this EC2Configuration. + + A string expressing the allow list of AWS volume tag-value pairs. If the volume's AWS tags match this allow list, Data about this volume is ingested from EBS APIs. Multiple entries are OR'ed. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". # noqa: E501 + + :param volume_selection_tags_expr: The volume_selection_tags_expr of this EC2Configuration. # noqa: E501 + :type: str + """ + + self._volume_selection_tags_expr = volume_selection_tags_expr + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -119,6 +262,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EC2Configuration, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +281,11 @@ def __eq__(self, other): if not isinstance(other, EC2Configuration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EC2Configuration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/event.py b/wavefront_api_client/models/event.py index 328c9f06..25caae5e 100644 --- a/wavefront_api_client/models/event.py +++ b/wavefront_api_client/models/event.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class Event(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,142 +33,164 @@ class Event(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', + 'alert_tags': 'list[str]', 'annotations': 'dict(str, str)', - 'id': 'str', - 'table': 'str', - 'tags': 'list[str]', + 'can_close': 'bool', + 'can_delete': 'bool', + 'computed_hlps': 'list[SourceLabelPair]', + 'created_at': 'int', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'creator_type': 'list[str]', + 'dimensions': 'dict(str, list[str])', + 'end_time': 'int', 'hosts': 'list[str]', + 'id': 'str', 'is_ephemeral': 'bool', - 'creator_id': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', 'is_user_event': 'bool', + 'metrics_used': 'list[str]', + 'name': 'str', + 'running_state': 'str', + 'start_time': 'int', 'summarized_events': 'int', - 'updater_id': 'str', + 'table': 'str', + 'tags': 'list[str]', 'updated_at': 'int', - 'created_at': 'int', - 'start_time': 'int', - 'end_time': 'int', - 'running_state': 'str', - 'can_delete': 'bool', - 'can_close': 'bool', - 'creator_type': 'list[str]' + 'updated_epoch_millis': 'int', + 'updater_id': 'str' } attribute_map = { - 'name': 'name', + 'alert_tags': 'alertTags', 'annotations': 'annotations', - 'id': 'id', - 'table': 'table', - 'tags': 'tags', + 'can_close': 'canClose', + 'can_delete': 'canDelete', + 'computed_hlps': 'computedHlps', + 'created_at': 'createdAt', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'creator_type': 'creatorType', + 'dimensions': 'dimensions', + 'end_time': 'endTime', 'hosts': 'hosts', + 'id': 'id', 'is_ephemeral': 'isEphemeral', - 'creator_id': 'creatorId', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', 'is_user_event': 'isUserEvent', + 'metrics_used': 'metricsUsed', + 'name': 'name', + 'running_state': 'runningState', + 'start_time': 'startTime', 'summarized_events': 'summarizedEvents', - 'updater_id': 'updaterId', + 'table': 'table', + 'tags': 'tags', 'updated_at': 'updatedAt', - 'created_at': 'createdAt', - 'start_time': 'startTime', - 'end_time': 'endTime', - 'running_state': 'runningState', - 'can_delete': 'canDelete', - 'can_close': 'canClose', - 'creator_type': 'creatorType' + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' } - def __init__(self, name=None, annotations=None, id=None, table=None, tags=None, hosts=None, is_ephemeral=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, is_user_event=None, summarized_events=None, updater_id=None, updated_at=None, created_at=None, start_time=None, end_time=None, running_state=None, can_delete=None, can_close=None, creator_type=None): # noqa: E501 + def __init__(self, alert_tags=None, annotations=None, can_close=None, can_delete=None, computed_hlps=None, created_at=None, created_epoch_millis=None, creator_id=None, creator_type=None, dimensions=None, end_time=None, hosts=None, id=None, is_ephemeral=None, is_user_event=None, metrics_used=None, name=None, running_state=None, start_time=None, summarized_events=None, table=None, tags=None, updated_at=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 """Event - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._name = None + self._alert_tags = None self._annotations = None - self._id = None - self._table = None - self._tags = None + self._can_close = None + self._can_delete = None + self._computed_hlps = None + self._created_at = None + self._created_epoch_millis = None + self._creator_id = None + self._creator_type = None + self._dimensions = None + self._end_time = None self._hosts = None + self._id = None self._is_ephemeral = None - self._creator_id = None - self._created_epoch_millis = None - self._updated_epoch_millis = None self._is_user_event = None + self._metrics_used = None + self._name = None + self._running_state = None + self._start_time = None self._summarized_events = None - self._updater_id = None + self._table = None + self._tags = None self._updated_at = None - self._created_at = None - self._start_time = None - self._end_time = None - self._running_state = None - self._can_delete = None - self._can_close = None - self._creator_type = None + self._updated_epoch_millis = None + self._updater_id = None self.discriminator = None - self.name = name + if alert_tags is not None: + self.alert_tags = alert_tags self.annotations = annotations - if id is not None: - self.id = id - if table is not None: - self.table = table - if tags is not None: - self.tags = tags + if can_close is not None: + self.can_close = can_close + if can_delete is not None: + self.can_delete = can_delete + if computed_hlps is not None: + self.computed_hlps = computed_hlps + if created_at is not None: + self.created_at = created_at + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if creator_type is not None: + self.creator_type = creator_type + if dimensions is not None: + self.dimensions = dimensions + if end_time is not None: + self.end_time = end_time if hosts is not None: self.hosts = hosts + if id is not None: + self.id = id if is_ephemeral is not None: self.is_ephemeral = is_ephemeral - if creator_id is not None: - self.creator_id = creator_id - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis - if updated_epoch_millis is not None: - self.updated_epoch_millis = updated_epoch_millis if is_user_event is not None: self.is_user_event = is_user_event + if metrics_used is not None: + self.metrics_used = metrics_used + self.name = name + if running_state is not None: + self.running_state = running_state + self.start_time = start_time if summarized_events is not None: self.summarized_events = summarized_events - if updater_id is not None: - self.updater_id = updater_id + if table is not None: + self.table = table + if tags is not None: + self.tags = tags if updated_at is not None: self.updated_at = updated_at - if created_at is not None: - self.created_at = created_at - self.start_time = start_time - self.end_time = end_time - if running_state is not None: - self.running_state = running_state - if can_delete is not None: - self.can_delete = can_delete - if can_close is not None: - self.can_close = can_close - if creator_type is not None: - self.creator_type = creator_type + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id @property - def name(self): - """Gets the name of this Event. # noqa: E501 + def alert_tags(self): + """Gets the alert_tags of this Event. # noqa: E501 - The name of the event. If 'annotations.prettyName' is present, 'name' will be equivalent to that value # noqa: E501 + The list of tags on the alert which created this event. # noqa: E501 - :return: The name of this Event. # noqa: E501 - :rtype: str + :return: The alert_tags of this Event. # noqa: E501 + :rtype: list[str] """ - return self._name + return self._alert_tags - @name.setter - def name(self, name): - """Sets the name of this Event. + @alert_tags.setter + def alert_tags(self, alert_tags): + """Sets the alert_tags of this Event. - The name of the event. If 'annotations.prettyName' is present, 'name' will be equivalent to that value # noqa: E501 + The list of tags on the alert which created this event. # noqa: E501 - :param name: The name of this Event. # noqa: E501 - :type: str + :param alert_tags: The alert_tags of this Event. # noqa: E501 + :type: list[str] """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._alert_tags = alert_tags @property def annotations(self): @@ -188,123 +212,117 @@ def annotations(self, annotations): :param annotations: The annotations of this Event. # noqa: E501 :type: dict(str, str) """ - if annotations is None: + if self._configuration.client_side_validation and annotations is None: raise ValueError("Invalid value for `annotations`, must not be `None`") # noqa: E501 self._annotations = annotations @property - def id(self): - """Gets the id of this Event. # noqa: E501 + def can_close(self): + """Gets the can_close of this Event. # noqa: E501 - :return: The id of this Event. # noqa: E501 - :rtype: str + :return: The can_close of this Event. # noqa: E501 + :rtype: bool """ - return self._id + return self._can_close - @id.setter - def id(self, id): - """Sets the id of this Event. + @can_close.setter + def can_close(self, can_close): + """Sets the can_close of this Event. - :param id: The id of this Event. # noqa: E501 - :type: str + :param can_close: The can_close of this Event. # noqa: E501 + :type: bool """ - self._id = id + self._can_close = can_close @property - def table(self): - """Gets the table of this Event. # noqa: E501 + def can_delete(self): + """Gets the can_delete of this Event. # noqa: E501 - The customer to which the event belongs # noqa: E501 - :return: The table of this Event. # noqa: E501 - :rtype: str + :return: The can_delete of this Event. # noqa: E501 + :rtype: bool """ - return self._table + return self._can_delete - @table.setter - def table(self, table): - """Sets the table of this Event. + @can_delete.setter + def can_delete(self, can_delete): + """Sets the can_delete of this Event. - The customer to which the event belongs # noqa: E501 - :param table: The table of this Event. # noqa: E501 - :type: str + :param can_delete: The can_delete of this Event. # noqa: E501 + :type: bool """ - self._table = table + self._can_delete = can_delete @property - def tags(self): - """Gets the tags of this Event. # noqa: E501 + def computed_hlps(self): + """Gets the computed_hlps of this Event. # noqa: E501 - A list of event tags # noqa: E501 + All the host/label/tags of the event. # noqa: E501 - :return: The tags of this Event. # noqa: E501 - :rtype: list[str] + :return: The computed_hlps of this Event. # noqa: E501 + :rtype: list[SourceLabelPair] """ - return self._tags + return self._computed_hlps - @tags.setter - def tags(self, tags): - """Sets the tags of this Event. + @computed_hlps.setter + def computed_hlps(self, computed_hlps): + """Sets the computed_hlps of this Event. - A list of event tags # noqa: E501 + All the host/label/tags of the event. # noqa: E501 - :param tags: The tags of this Event. # noqa: E501 - :type: list[str] + :param computed_hlps: The computed_hlps of this Event. # noqa: E501 + :type: list[SourceLabelPair] """ - self._tags = tags + self._computed_hlps = computed_hlps @property - def hosts(self): - """Gets the hosts of this Event. # noqa: E501 + def created_at(self): + """Gets the created_at of this Event. # noqa: E501 - A list of sources/hosts affected by the event # noqa: E501 - :return: The hosts of this Event. # noqa: E501 - :rtype: list[str] + :return: The created_at of this Event. # noqa: E501 + :rtype: int """ - return self._hosts + return self._created_at - @hosts.setter - def hosts(self, hosts): - """Sets the hosts of this Event. + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this Event. - A list of sources/hosts affected by the event # noqa: E501 - :param hosts: The hosts of this Event. # noqa: E501 - :type: list[str] + :param created_at: The created_at of this Event. # noqa: E501 + :type: int """ - self._hosts = hosts + self._created_at = created_at @property - def is_ephemeral(self): - """Gets the is_ephemeral of this Event. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this Event. # noqa: E501 - Whether the event is an artificial event generated by a literal expression or alert backtesting, i.e. not stored in the Wavefront backend # noqa: E501 - :return: The is_ephemeral of this Event. # noqa: E501 - :rtype: bool + :return: The created_epoch_millis of this Event. # noqa: E501 + :rtype: int """ - return self._is_ephemeral + return self._created_epoch_millis - @is_ephemeral.setter - def is_ephemeral(self, is_ephemeral): - """Sets the is_ephemeral of this Event. + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): + """Sets the created_epoch_millis of this Event. - Whether the event is an artificial event generated by a literal expression or alert backtesting, i.e. not stored in the Wavefront backend # noqa: E501 - :param is_ephemeral: The is_ephemeral of this Event. # noqa: E501 - :type: bool + :param created_epoch_millis: The created_epoch_millis of this Event. # noqa: E501 + :type: int """ - self._is_ephemeral = is_ephemeral + self._created_epoch_millis = created_epoch_millis @property def creator_id(self): @@ -328,46 +346,146 @@ def creator_id(self, creator_id): self._creator_id = creator_id @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this Event. # noqa: E501 + def creator_type(self): + """Gets the creator_type of this Event. # noqa: E501 - :return: The created_epoch_millis of this Event. # noqa: E501 + :return: The creator_type of this Event. # noqa: E501 + :rtype: list[str] + """ + return self._creator_type + + @creator_type.setter + def creator_type(self, creator_type): + """Sets the creator_type of this Event. + + + :param creator_type: The creator_type of this Event. # noqa: E501 + :type: list[str] + """ + allowed_values = ["USER", "ALERT", "SYSTEM"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(creator_type).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `creator_type` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(creator_type) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._creator_type = creator_type + + @property + def dimensions(self): + """Gets the dimensions of this Event. # noqa: E501 + + A string->The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.event_time_range import EventTimeRange # noqa: F401,E501 -from wavefront_api_client.models.search_query import SearchQuery # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class EventSearchRequest(object): @@ -37,26 +36,35 @@ class EventSearchRequest(object): 'cursor': 'str', 'limit': 'int', 'query': 'list[SearchQuery]', - 'time_range': 'EventTimeRange', - 'sort_time_ascending': 'bool' + 'related_event_time_range': 'RelatedEventTimeRange', + 'sort_score_method': 'str', + 'sort_time_ascending': 'bool', + 'time_range': 'EventTimeRange' } attribute_map = { 'cursor': 'cursor', 'limit': 'limit', 'query': 'query', - 'time_range': 'timeRange', - 'sort_time_ascending': 'sortTimeAscending' + 'related_event_time_range': 'relatedEventTimeRange', + 'sort_score_method': 'sortScoreMethod', + 'sort_time_ascending': 'sortTimeAscending', + 'time_range': 'timeRange' } - def __init__(self, cursor=None, limit=None, query=None, time_range=None, sort_time_ascending=None): # noqa: E501 + def __init__(self, cursor=None, limit=None, query=None, related_event_time_range=None, sort_score_method=None, sort_time_ascending=None, time_range=None, _configuration=None): # noqa: E501 """EventSearchRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._cursor = None self._limit = None self._query = None - self._time_range = None + self._related_event_time_range = None + self._sort_score_method = None self._sort_time_ascending = None + self._time_range = None self.discriminator = None if cursor is not None: @@ -65,10 +73,14 @@ def __init__(self, cursor=None, limit=None, query=None, time_range=None, sort_ti self.limit = limit if query is not None: self.query = query - if time_range is not None: - self.time_range = time_range + if related_event_time_range is not None: + self.related_event_time_range = related_event_time_range + if sort_score_method is not None: + self.sort_score_method = sort_score_method if sort_time_ascending is not None: self.sort_time_ascending = sort_time_ascending + if time_range is not None: + self.time_range = time_range @property def cursor(self): @@ -97,6 +109,7 @@ def cursor(self, cursor): def limit(self): """Gets the limit of this EventSearchRequest. # noqa: E501 + The number of results to return. Default: 100 # noqa: E501 :return: The limit of this EventSearchRequest. # noqa: E501 :rtype: int @@ -107,6 +120,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this EventSearchRequest. + The number of results to return. Default: 100 # noqa: E501 :param limit: The limit of this EventSearchRequest. # noqa: E501 :type: int @@ -138,25 +152,55 @@ def query(self, query): self._query = query @property - def time_range(self): - """Gets the time_range of this EventSearchRequest. # noqa: E501 + def related_event_time_range(self): + """Gets the related_event_time_range of this EventSearchRequest. # noqa: E501 - :return: The time_range of this EventSearchRequest. # noqa: E501 - :rtype: EventTimeRange + :return: The related_event_time_range of this EventSearchRequest. # noqa: E501 + :rtype: RelatedEventTimeRange """ - return self._time_range + return self._related_event_time_range - @time_range.setter - def time_range(self, time_range): - """Sets the time_range of this EventSearchRequest. + @related_event_time_range.setter + def related_event_time_range(self, related_event_time_range): + """Sets the related_event_time_range of this EventSearchRequest. - :param time_range: The time_range of this EventSearchRequest. # noqa: E501 - :type: EventTimeRange + :param related_event_time_range: The related_event_time_range of this EventSearchRequest. # noqa: E501 + :type: RelatedEventTimeRange """ - self._time_range = time_range + self._related_event_time_range = related_event_time_range + + @property + def sort_score_method(self): + """Gets the sort_score_method of this EventSearchRequest. # noqa: E501 + + Whether to sort events on similarity score : {NONE, SCORE_ASC, SCORE_DES}. Default: NONE. If sortScoreMethod is set to SCORE_ASC or SCORE_DES, it will override time sort # noqa: E501 + + :return: The sort_score_method of this EventSearchRequest. # noqa: E501 + :rtype: str + """ + return self._sort_score_method + + @sort_score_method.setter + def sort_score_method(self, sort_score_method): + """Sets the sort_score_method of this EventSearchRequest. + + Whether to sort events on similarity score : {NONE, SCORE_ASC, SCORE_DES}. Default: NONE. If sortScoreMethod is set to SCORE_ASC or SCORE_DES, it will override time sort # noqa: E501 + + :param sort_score_method: The sort_score_method of this EventSearchRequest. # noqa: E501 + :type: str + """ + allowed_values = ["SCORE_ASC", "SCORE_DES", "NONE"] # noqa: E501 + if (self._configuration.client_side_validation and + sort_score_method not in allowed_values): + raise ValueError( + "Invalid value for `sort_score_method` ({0}), must be one of {1}" # noqa: E501 + .format(sort_score_method, allowed_values) + ) + + self._sort_score_method = sort_score_method @property def sort_time_ascending(self): @@ -181,6 +225,27 @@ def sort_time_ascending(self, sort_time_ascending): self._sort_time_ascending = sort_time_ascending + @property + def time_range(self): + """Gets the time_range of this EventSearchRequest. # noqa: E501 + + + :return: The time_range of this EventSearchRequest. # noqa: E501 + :rtype: EventTimeRange + """ + return self._time_range + + @time_range.setter + def time_range(self, time_range): + """Sets the time_range of this EventSearchRequest. + + + :param time_range: The time_range of this EventSearchRequest. # noqa: E501 + :type: EventTimeRange + """ + + self._time_range = time_range + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -202,6 +267,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EventSearchRequest, dict): + for key, value in self.items(): + result[key] = value return result @@ -218,8 +286,11 @@ def __eq__(self, other): if not isinstance(other, EventSearchRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EventSearchRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/event_time_range.py b/wavefront_api_client/models/event_time_range.py index 820e424d..5c2f4512 100644 --- a/wavefront_api_client/models/event_time_range.py +++ b/wavefront_api_client/models/event_time_range.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class EventTimeRange(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,8 +42,11 @@ class EventTimeRange(object): 'latest_start_time_epoch_millis': 'latestStartTimeEpochMillis' } - def __init__(self, earliest_start_time_epoch_millis=None, latest_start_time_epoch_millis=None): # noqa: E501 + def __init__(self, earliest_start_time_epoch_millis=None, latest_start_time_epoch_millis=None, _configuration=None): # noqa: E501 """EventTimeRange - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._earliest_start_time_epoch_millis = None self._latest_start_time_epoch_millis = None @@ -119,6 +124,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EventTimeRange, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, EventTimeRange): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EventTimeRange): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/external_link.py b/wavefront_api_client/models/external_link.py index c0089ecb..797a6fc3 100644 --- a/wavefront_api_client/models/external_link.py +++ b/wavefront_api_client/models/external_link.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class ExternalLink(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,114 +33,118 @@ class ExternalLink(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'id': 'str', - 'description': 'str', - 'creator_id': 'str', 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'template': 'str', + 'creator_id': 'str', + 'description': 'str', + 'id': 'str', + 'is_log_integration': 'bool', 'metric_filter_regex': 'str', - 'source_filter_regex': 'str', + 'name': 'str', 'point_tag_filter_regexes': 'dict(str, str)', + 'source_filter_regex': 'str', + 'template': 'str', + 'updated_epoch_millis': 'int', 'updater_id': 'str' } attribute_map = { - 'name': 'name', - 'id': 'id', - 'description': 'description', - 'creator_id': 'creatorId', 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'template': 'template', + 'creator_id': 'creatorId', + 'description': 'description', + 'id': 'id', + 'is_log_integration': 'isLogIntegration', 'metric_filter_regex': 'metricFilterRegex', - 'source_filter_regex': 'sourceFilterRegex', + 'name': 'name', 'point_tag_filter_regexes': 'pointTagFilterRegexes', + 'source_filter_regex': 'sourceFilterRegex', + 'template': 'template', + 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId' } - def __init__(self, name=None, id=None, description=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, template=None, metric_filter_regex=None, source_filter_regex=None, point_tag_filter_regexes=None, updater_id=None): # noqa: E501 + def __init__(self, created_epoch_millis=None, creator_id=None, description=None, id=None, is_log_integration=None, metric_filter_regex=None, name=None, point_tag_filter_regexes=None, source_filter_regex=None, template=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 """ExternalLink - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._name = None - self._id = None - self._description = None - self._creator_id = None self._created_epoch_millis = None - self._updated_epoch_millis = None - self._template = None + self._creator_id = None + self._description = None + self._id = None + self._is_log_integration = None self._metric_filter_regex = None - self._source_filter_regex = None + self._name = None self._point_tag_filter_regexes = None + self._source_filter_regex = None + self._template = None + self._updated_epoch_millis = None self._updater_id = None self.discriminator = None - self.name = name - if id is not None: - self.id = id - self.description = description - if creator_id is not None: - self.creator_id = creator_id if created_epoch_millis is not None: self.created_epoch_millis = created_epoch_millis - if updated_epoch_millis is not None: - self.updated_epoch_millis = updated_epoch_millis - self.template = template + if creator_id is not None: + self.creator_id = creator_id + self.description = description + if id is not None: + self.id = id + if is_log_integration is not None: + self.is_log_integration = is_log_integration if metric_filter_regex is not None: self.metric_filter_regex = metric_filter_regex - if source_filter_regex is not None: - self.source_filter_regex = source_filter_regex + self.name = name if point_tag_filter_regexes is not None: self.point_tag_filter_regexes = point_tag_filter_regexes + if source_filter_regex is not None: + self.source_filter_regex = source_filter_regex + self.template = template + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id @property - def name(self): - """Gets the name of this ExternalLink. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this ExternalLink. # noqa: E501 - Name of the external link. Will be displayed in context (right-click) menus on charts # noqa: E501 - :return: The name of this ExternalLink. # noqa: E501 - :rtype: str + :return: The created_epoch_millis of this ExternalLink. # noqa: E501 + :rtype: int """ - return self._name + return self._created_epoch_millis - @name.setter - def name(self, name): - """Sets the name of this ExternalLink. + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): + """Sets the created_epoch_millis of this ExternalLink. - Name of the external link. Will be displayed in context (right-click) menus on charts # noqa: E501 - :param name: The name of this ExternalLink. # noqa: E501 - :type: str + :param created_epoch_millis: The created_epoch_millis of this ExternalLink. # noqa: E501 + :type: int """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._created_epoch_millis = created_epoch_millis @property - def id(self): - """Gets the id of this ExternalLink. # noqa: E501 + def creator_id(self): + """Gets the creator_id of this ExternalLink. # noqa: E501 - :return: The id of this ExternalLink. # noqa: E501 + :return: The creator_id of this ExternalLink. # noqa: E501 :rtype: str """ - return self._id + return self._creator_id - @id.setter - def id(self, id): - """Sets the id of this ExternalLink. + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this ExternalLink. - :param id: The id of this ExternalLink. # noqa: E501 + :param creator_id: The creator_id of this ExternalLink. # noqa: E501 :type: str """ - self._id = id + self._creator_id = creator_id @property def description(self): @@ -160,121 +166,125 @@ def description(self, description): :param description: The description of this ExternalLink. # noqa: E501 :type: str """ - if description is None: + if self._configuration.client_side_validation and description is None: raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 self._description = description @property - def creator_id(self): - """Gets the creator_id of this ExternalLink. # noqa: E501 + def id(self): + """Gets the id of this ExternalLink. # noqa: E501 - :return: The creator_id of this ExternalLink. # noqa: E501 + :return: The id of this ExternalLink. # noqa: E501 :rtype: str """ - return self._creator_id + return self._id - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this ExternalLink. + @id.setter + def id(self, id): + """Sets the id of this ExternalLink. - :param creator_id: The creator_id of this ExternalLink. # noqa: E501 + :param id: The id of this ExternalLink. # noqa: E501 :type: str """ - self._creator_id = creator_id + self._id = id @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this ExternalLink. # noqa: E501 + def is_log_integration(self): + """Gets the is_log_integration of this ExternalLink. # noqa: E501 + Whether this is a \"Log Integration\" subType of external link # noqa: E501 - :return: The created_epoch_millis of this ExternalLink. # noqa: E501 - :rtype: int + :return: The is_log_integration of this ExternalLink. # noqa: E501 + :rtype: bool """ - return self._created_epoch_millis + return self._is_log_integration - @created_epoch_millis.setter - def created_epoch_millis(self, created_epoch_millis): - """Sets the created_epoch_millis of this ExternalLink. + @is_log_integration.setter + def is_log_integration(self, is_log_integration): + """Sets the is_log_integration of this ExternalLink. + Whether this is a \"Log Integration\" subType of external link # noqa: E501 - :param created_epoch_millis: The created_epoch_millis of this ExternalLink. # noqa: E501 - :type: int + :param is_log_integration: The is_log_integration of this ExternalLink. # noqa: E501 + :type: bool """ - self._created_epoch_millis = created_epoch_millis + self._is_log_integration = is_log_integration @property - def updated_epoch_millis(self): - """Gets the updated_epoch_millis of this ExternalLink. # noqa: E501 + def metric_filter_regex(self): + """Gets the metric_filter_regex of this ExternalLink. # noqa: E501 + Controls whether a link displayed in the context menu of a highlighted series. If present, the metric name of the highlighted series must match this regular expression in order for the link to be displayed # noqa: E501 - :return: The updated_epoch_millis of this ExternalLink. # noqa: E501 - :rtype: int + :return: The metric_filter_regex of this ExternalLink. # noqa: E501 + :rtype: str """ - return self._updated_epoch_millis + return self._metric_filter_regex - @updated_epoch_millis.setter - def updated_epoch_millis(self, updated_epoch_millis): - """Sets the updated_epoch_millis of this ExternalLink. + @metric_filter_regex.setter + def metric_filter_regex(self, metric_filter_regex): + """Sets the metric_filter_regex of this ExternalLink. + Controls whether a link displayed in the context menu of a highlighted series. If present, the metric name of the highlighted series must match this regular expression in order for the link to be displayed # noqa: E501 - :param updated_epoch_millis: The updated_epoch_millis of this ExternalLink. # noqa: E501 - :type: int + :param metric_filter_regex: The metric_filter_regex of this ExternalLink. # noqa: E501 + :type: str """ - self._updated_epoch_millis = updated_epoch_millis + self._metric_filter_regex = metric_filter_regex @property - def template(self): - """Gets the template of this ExternalLink. # noqa: E501 + def name(self): + """Gets the name of this ExternalLink. # noqa: E501 - The mustache template for this link. This template must expand to a full URL, including scheme, origin, etc # noqa: E501 + Name of the external link. Will be displayed in context (right-click) menus on charts # noqa: E501 - :return: The template of this ExternalLink. # noqa: E501 + :return: The name of this ExternalLink. # noqa: E501 :rtype: str """ - return self._template + return self._name - @template.setter - def template(self, template): - """Sets the template of this ExternalLink. + @name.setter + def name(self, name): + """Sets the name of this ExternalLink. - The mustache template for this link. This template must expand to a full URL, including scheme, origin, etc # noqa: E501 + Name of the external link. Will be displayed in context (right-click) menus on charts # noqa: E501 - :param template: The template of this ExternalLink. # noqa: E501 + :param name: The name of this ExternalLink. # noqa: E501 :type: str """ - if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._template = template + self._name = name @property - def metric_filter_regex(self): - """Gets the metric_filter_regex of this ExternalLink. # noqa: E501 + def point_tag_filter_regexes(self): + """Gets the point_tag_filter_regexes of this ExternalLink. # noqa: E501 - Controls whether a link displayed in the context menu of a highlighted series. If present, the metric name of the highlighted series must match this regular expression in order for the link to be displayed # noqa: E501 + Controls whether a link displayed in the context menu of a highlighted series. This is a map from string to regular expression. The highlighted series must contain point tags whose keys are present in the keys of this map and whose values match the regular expressions associated with those keys in order for the link to be displayed # noqa: E501 - :return: The metric_filter_regex of this ExternalLink. # noqa: E501 - :rtype: str + :return: The point_tag_filter_regexes of this ExternalLink. # noqa: E501 + :rtype: dict(str, str) """ - return self._metric_filter_regex + return self._point_tag_filter_regexes - @metric_filter_regex.setter - def metric_filter_regex(self, metric_filter_regex): - """Sets the metric_filter_regex of this ExternalLink. + @point_tag_filter_regexes.setter + def point_tag_filter_regexes(self, point_tag_filter_regexes): + """Sets the point_tag_filter_regexes of this ExternalLink. - Controls whether a link displayed in the context menu of a highlighted series. If present, the metric name of the highlighted series must match this regular expression in order for the link to be displayed # noqa: E501 + Controls whether a link displayed in the context menu of a highlighted series. This is a map from string to regular expression. The highlighted series must contain point tags whose keys are present in the keys of this map and whose values match the regular expressions associated with those keys in order for the link to be displayed # noqa: E501 - :param metric_filter_regex: The metric_filter_regex of this ExternalLink. # noqa: E501 - :type: str + :param point_tag_filter_regexes: The point_tag_filter_regexes of this ExternalLink. # noqa: E501 + :type: dict(str, str) """ - self._metric_filter_regex = metric_filter_regex + self._point_tag_filter_regexes = point_tag_filter_regexes @property def source_filter_regex(self): @@ -300,27 +310,50 @@ def source_filter_regex(self, source_filter_regex): self._source_filter_regex = source_filter_regex @property - def point_tag_filter_regexes(self): - """Gets the point_tag_filter_regexes of this ExternalLink. # noqa: E501 + def template(self): + """Gets the template of this ExternalLink. # noqa: E501 - Controls whether a link displayed in the context menu of a highlighted series. This is a map from string to regular expression. The highlighted series must contain point tags whose keys are present in the keys of this map and whose values match the regular expressions associated with those keys in order for the link to be displayed # noqa: E501 + The mustache template for this link. This template must expand to a full URL, including scheme, origin, etc # noqa: E501 - :return: The point_tag_filter_regexes of this ExternalLink. # noqa: E501 - :rtype: dict(str, str) + :return: The template of this ExternalLink. # noqa: E501 + :rtype: str """ - return self._point_tag_filter_regexes + return self._template - @point_tag_filter_regexes.setter - def point_tag_filter_regexes(self, point_tag_filter_regexes): - """Sets the point_tag_filter_regexes of this ExternalLink. + @template.setter + def template(self, template): + """Sets the template of this ExternalLink. - Controls whether a link displayed in the context menu of a highlighted series. This is a map from string to regular expression. The highlighted series must contain point tags whose keys are present in the keys of this map and whose values match the regular expressions associated with those keys in order for the link to be displayed # noqa: E501 + The mustache template for this link. This template must expand to a full URL, including scheme, origin, etc # noqa: E501 - :param point_tag_filter_regexes: The point_tag_filter_regexes of this ExternalLink. # noqa: E501 - :type: dict(str, str) + :param template: The template of this ExternalLink. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and template is None: + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 + + self._template = template + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this ExternalLink. # noqa: E501 + + + :return: The updated_epoch_millis of this ExternalLink. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this ExternalLink. - self._point_tag_filter_regexes = point_tag_filter_regexes + + :param updated_epoch_millis: The updated_epoch_millis of this ExternalLink. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis @property def updater_id(self): @@ -364,6 +397,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ExternalLink, dict): + for key, value in self.items(): + result[key] = value return result @@ -380,8 +416,11 @@ def __eq__(self, other): if not isinstance(other, ExternalLink): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExternalLink): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/facet_response.py b/wavefront_api_client/models/facet_response.py index 77f0023f..dffdcb3c 100644 --- a/wavefront_api_client/models/facet_response.py +++ b/wavefront_api_client/models/facet_response.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class FacetResponse(object): @@ -33,51 +33,77 @@ class FacetResponse(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[str]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """FacetResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 FacetResponse. # 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 FacetResponse. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this FacetResponse. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this FacetResponse. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -102,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this FacetResponse. # noqa: E501 - - - :return: The offset of this FacetResponse. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this FacetResponse. - - - :param offset: The offset of this FacetResponse. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this FacetResponse. # noqa: E501 @@ -144,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this FacetResponse. # 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 FacetResponse. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this FacetResponse. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this FacetResponse. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this FacetResponse. # 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 FacetResponse. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this FacetResponse. - - 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 FacetResponse. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this FacetResponse. # noqa: E501 @@ -213,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this FacetResponse. # noqa: E501 + + + :return: The offset of this FacetResponse. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this FacetResponse. + + + :param offset: The offset of this FacetResponse. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this FacetResponse. # noqa: E501 @@ -234,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this FacetResponse. # 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 FacetResponse. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this FacetResponse. + + 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 FacetResponse. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -255,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(FacetResponse, dict): + for key, value in self.items(): + result[key] = value return result @@ -271,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, FacetResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FacetResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/facet_search_request_container.py b/wavefront_api_client/models/facet_search_request_container.py index 2e056567..7b5ef59b 100644 --- a/wavefront_api_client/models/facet_search_request_container.py +++ b/wavefront_api_client/models/facet_search_request_container.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.search_query import SearchQuery # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class FacetSearchRequestContainer(object): @@ -33,47 +33,103 @@ class FacetSearchRequestContainer(object): and the value is json key in definition. """ swagger_types = { + 'facet_query': 'str', + 'facet_query_matching_method': 'str', 'limit': 'int', 'offset': 'int', - 'query': 'list[SearchQuery]', - 'facet_query': 'str', - 'facet_query_matching_method': 'str' + 'query': 'list[SearchQuery]' } attribute_map = { + 'facet_query': 'facetQuery', + 'facet_query_matching_method': 'facetQueryMatchingMethod', 'limit': 'limit', 'offset': 'offset', - 'query': 'query', - 'facet_query': 'facetQuery', - 'facet_query_matching_method': 'facetQueryMatchingMethod' + 'query': 'query' } - def __init__(self, limit=None, offset=None, query=None, facet_query=None, facet_query_matching_method=None): # noqa: E501 + def __init__(self, facet_query=None, facet_query_matching_method=None, limit=None, offset=None, query=None, _configuration=None): # noqa: E501 """FacetSearchRequestContainer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._facet_query = None + self._facet_query_matching_method = None self._limit = None self._offset = None self._query = None - self._facet_query = None - self._facet_query_matching_method = None self.discriminator = None + if facet_query is not None: + self.facet_query = facet_query + if facet_query_matching_method is not None: + self.facet_query_matching_method = facet_query_matching_method if limit is not None: self.limit = limit if offset is not None: self.offset = offset if query is not None: self.query = query - if facet_query is not None: - self.facet_query = facet_query - if facet_query_matching_method is not None: - self.facet_query_matching_method = facet_query_matching_method + + @property + def facet_query(self): + """Gets the facet_query of this FacetSearchRequestContainer. # noqa: E501 + + A string against which facet results are compared. If the facet result CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned. # noqa: E501 + + :return: The facet_query of this FacetSearchRequestContainer. # noqa: E501 + :rtype: str + """ + return self._facet_query + + @facet_query.setter + def facet_query(self, facet_query): + """Sets the facet_query of this FacetSearchRequestContainer. + + A string against which facet results are compared. If the facet result CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned. # noqa: E501 + + :param facet_query: The facet_query of this FacetSearchRequestContainer. # noqa: E501 + :type: str + """ + + self._facet_query = facet_query + + @property + def facet_query_matching_method(self): + """Gets the facet_query_matching_method of this FacetSearchRequestContainer. # noqa: E501 + + The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. # noqa: E501 + + :return: The facet_query_matching_method of this FacetSearchRequestContainer. # noqa: E501 + :rtype: str + """ + return self._facet_query_matching_method + + @facet_query_matching_method.setter + def facet_query_matching_method(self, facet_query_matching_method): + """Sets the facet_query_matching_method of this FacetSearchRequestContainer. + + The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. # noqa: E501 + + :param facet_query_matching_method: The facet_query_matching_method of this FacetSearchRequestContainer. # noqa: E501 + :type: str + """ + allowed_values = ["CONTAINS", "STARTSWITH", "EXACT", "TAGPATH"] # noqa: E501 + if (self._configuration.client_side_validation and + facet_query_matching_method not in allowed_values): + raise ValueError( + "Invalid value for `facet_query_matching_method` ({0}), must be one of {1}" # noqa: E501 + .format(facet_query_matching_method, allowed_values) + ) + + self._facet_query_matching_method = facet_query_matching_method @property def limit(self): """Gets the limit of this FacetSearchRequestContainer. # noqa: E501 - The number of results to return. Default: 100 # noqa: E501 + The number of results to return. Default: 100, Maximum allowed: 1000 # noqa: E501 :return: The limit of this FacetSearchRequestContainer. # noqa: E501 :rtype: int @@ -84,11 +140,17 @@ def limit(self): def limit(self, limit): """Sets the limit of this FacetSearchRequestContainer. - The number of results to return. Default: 100 # noqa: E501 + The number of results to return. Default: 100, Maximum allowed: 1000 # noqa: E501 :param limit: The limit of this FacetSearchRequestContainer. # noqa: E501 :type: int """ + if (self._configuration.client_side_validation and + limit is not None and limit > 1000): # noqa: E501 + raise ValueError("Invalid value for `limit`, must be a value less than or equal to `1000`") # noqa: E501 + if (self._configuration.client_side_validation and + limit is not None and limit < 1): # noqa: E501 + raise ValueError("Invalid value for `limit`, must be a value greater than or equal to `1`") # noqa: E501 self._limit = limit @@ -138,58 +200,6 @@ def query(self, query): self._query = query - @property - def facet_query(self): - """Gets the facet_query of this FacetSearchRequestContainer. # noqa: E501 - - A string against which facet results are compared. If the facet result CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned. # noqa: E501 - - :return: The facet_query of this FacetSearchRequestContainer. # noqa: E501 - :rtype: str - """ - return self._facet_query - - @facet_query.setter - def facet_query(self, facet_query): - """Sets the facet_query of this FacetSearchRequestContainer. - - A string against which facet results are compared. If the facet result CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned. # noqa: E501 - - :param facet_query: The facet_query of this FacetSearchRequestContainer. # noqa: E501 - :type: str - """ - - self._facet_query = facet_query - - @property - def facet_query_matching_method(self): - """Gets the facet_query_matching_method of this FacetSearchRequestContainer. # noqa: E501 - - The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. # noqa: E501 - - :return: The facet_query_matching_method of this FacetSearchRequestContainer. # noqa: E501 - :rtype: str - """ - return self._facet_query_matching_method - - @facet_query_matching_method.setter - def facet_query_matching_method(self, facet_query_matching_method): - """Sets the facet_query_matching_method of this FacetSearchRequestContainer. - - The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. # noqa: E501 - - :param facet_query_matching_method: The facet_query_matching_method of this FacetSearchRequestContainer. # noqa: E501 - :type: str - """ - allowed_values = ["CONTAINS", "STARTSWITH", "EXACT", "TAGPATH"] # noqa: E501 - if facet_query_matching_method not in allowed_values: - raise ValueError( - "Invalid value for `facet_query_matching_method` ({0}), must be one of {1}" # noqa: E501 - .format(facet_query_matching_method, allowed_values) - ) - - self._facet_query_matching_method = facet_query_matching_method - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -211,6 +221,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(FacetSearchRequestContainer, dict): + for key, value in self.items(): + result[key] = value return result @@ -227,8 +240,11 @@ def __eq__(self, other): if not isinstance(other, FacetSearchRequestContainer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FacetSearchRequestContainer): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/facets_response_container.py b/wavefront_api_client/models/facets_response_container.py index 0b77d07d..aa588606 100644 --- a/wavefront_api_client/models/facets_response_container.py +++ b/wavefront_api_client/models/facets_response_container.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class FacetsResponseContainer(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,49 +33,29 @@ class FacetsResponseContainer(object): and the value is json key in definition. """ swagger_types = { - 'limit': 'int', - 'facets': 'dict(str, list[str])' + 'facets': 'dict(str, list[str])', + 'limit': 'int' } attribute_map = { - 'limit': 'limit', - 'facets': 'facets' + 'facets': 'facets', + 'limit': 'limit' } - def __init__(self, limit=None, facets=None): # noqa: E501 + def __init__(self, facets=None, limit=None, _configuration=None): # noqa: E501 """FacetsResponseContainer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._limit = None self._facets = None + self._limit = None self.discriminator = None - if limit is not None: - self.limit = limit if facets is not None: self.facets = facets - - @property - def limit(self): - """Gets the limit of this FacetsResponseContainer. # noqa: E501 - - The requested limit # noqa: E501 - - :return: The limit of this FacetsResponseContainer. # noqa: E501 - :rtype: int - """ - return self._limit - - @limit.setter - def limit(self, limit): - """Sets the limit of this FacetsResponseContainer. - - The requested limit # noqa: E501 - - :param limit: The limit of this FacetsResponseContainer. # noqa: E501 - :type: int - """ - - self._limit = limit + if limit is not None: + self.limit = limit @property def facets(self): @@ -98,6 +80,29 @@ def facets(self, facets): self._facets = facets + @property + def limit(self): + """Gets the limit of this FacetsResponseContainer. # noqa: E501 + + The requested limit # noqa: E501 + + :return: The limit of this FacetsResponseContainer. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this FacetsResponseContainer. + + The requested limit # noqa: E501 + + :param limit: The limit of this FacetsResponseContainer. # noqa: E501 + :type: int + """ + + self._limit = limit + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -119,6 +124,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(FacetsResponseContainer, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, FacetsResponseContainer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FacetsResponseContainer): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/facets_search_request_container.py b/wavefront_api_client/models/facets_search_request_container.py index 563f236b..6f1c03d3 100644 --- a/wavefront_api_client/models/facets_search_request_container.py +++ b/wavefront_api_client/models/facets_search_request_container.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.search_query import SearchQuery # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class FacetsSearchRequestContainer(object): @@ -33,86 +33,96 @@ class FacetsSearchRequestContainer(object): and the value is json key in definition. """ swagger_types = { - 'query': 'list[SearchQuery]', - 'limit': 'int', - 'facets': 'list[str]', 'facet_query': 'str', - 'facet_query_matching_method': 'str' + 'facet_query_matching_method': 'str', + 'facets': 'list[str]', + 'limit': 'int', + 'query': 'list[SearchQuery]' } attribute_map = { - 'query': 'query', - 'limit': 'limit', - 'facets': 'facets', 'facet_query': 'facetQuery', - 'facet_query_matching_method': 'facetQueryMatchingMethod' + 'facet_query_matching_method': 'facetQueryMatchingMethod', + 'facets': 'facets', + 'limit': 'limit', + 'query': 'query' } - def __init__(self, query=None, limit=None, facets=None, facet_query=None, facet_query_matching_method=None): # noqa: E501 + def __init__(self, facet_query=None, facet_query_matching_method=None, facets=None, limit=None, query=None, _configuration=None): # noqa: E501 """FacetsSearchRequestContainer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._query = None - self._limit = None - self._facets = None self._facet_query = None self._facet_query_matching_method = None + self._facets = None + self._limit = None + self._query = None self.discriminator = None - if query is not None: - self.query = query - if limit is not None: - self.limit = limit - self.facets = facets if facet_query is not None: self.facet_query = facet_query if facet_query_matching_method is not None: self.facet_query_matching_method = facet_query_matching_method + self.facets = facets + if limit is not None: + self.limit = limit + if query is not None: + self.query = query @property - def query(self): - """Gets the query of this FacetsSearchRequestContainer. # noqa: E501 + def facet_query(self): + """Gets the facet_query of this FacetsSearchRequestContainer. # noqa: E501 - A list of queries by which to limit the search results. Entities that match ALL queries in this list constitute a set of 'entity search results'. All facets listed in the 'facets' search parameter of all entities within 'entity search results' are scanned to produce the search results (of facet values). # noqa: E501 + A string against which facet results are compared. If the facet result either CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned # noqa: E501 - :return: The query of this FacetsSearchRequestContainer. # noqa: E501 - :rtype: list[SearchQuery] + :return: The facet_query of this FacetsSearchRequestContainer. # noqa: E501 + :rtype: str """ - return self._query + return self._facet_query - @query.setter - def query(self, query): - """Sets the query of this FacetsSearchRequestContainer. + @facet_query.setter + def facet_query(self, facet_query): + """Sets the facet_query of this FacetsSearchRequestContainer. - A list of queries by which to limit the search results. Entities that match ALL queries in this list constitute a set of 'entity search results'. All facets listed in the 'facets' search parameter of all entities within 'entity search results' are scanned to produce the search results (of facet values). # noqa: E501 + A string against which facet results are compared. If the facet result either CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned # noqa: E501 - :param query: The query of this FacetsSearchRequestContainer. # noqa: E501 - :type: list[SearchQuery] + :param facet_query: The facet_query of this FacetsSearchRequestContainer. # noqa: E501 + :type: str """ - self._query = query + self._facet_query = facet_query @property - def limit(self): - """Gets the limit of this FacetsSearchRequestContainer. # noqa: E501 + def facet_query_matching_method(self): + """Gets the facet_query_matching_method of this FacetsSearchRequestContainer. # noqa: E501 - The number of results to return. Default 100 # noqa: E501 + The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. # noqa: E501 - :return: The limit of this FacetsSearchRequestContainer. # noqa: E501 - :rtype: int + :return: The facet_query_matching_method of this FacetsSearchRequestContainer. # noqa: E501 + :rtype: str """ - return self._limit + return self._facet_query_matching_method - @limit.setter - def limit(self, limit): - """Sets the limit of this FacetsSearchRequestContainer. + @facet_query_matching_method.setter + def facet_query_matching_method(self, facet_query_matching_method): + """Sets the facet_query_matching_method of this FacetsSearchRequestContainer. - The number of results to return. Default 100 # noqa: E501 + The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. # noqa: E501 - :param limit: The limit of this FacetsSearchRequestContainer. # noqa: E501 - :type: int + :param facet_query_matching_method: The facet_query_matching_method of this FacetsSearchRequestContainer. # noqa: E501 + :type: str """ + allowed_values = ["CONTAINS", "STARTSWITH", "EXACT", "TAGPATH"] # noqa: E501 + if (self._configuration.client_side_validation and + facet_query_matching_method not in allowed_values): + raise ValueError( + "Invalid value for `facet_query_matching_method` ({0}), must be one of {1}" # noqa: E501 + .format(facet_query_matching_method, allowed_values) + ) - self._limit = limit + self._facet_query_matching_method = facet_query_matching_method @property def facets(self): @@ -134,62 +144,62 @@ def facets(self, facets): :param facets: The facets of this FacetsSearchRequestContainer. # noqa: E501 :type: list[str] """ - if facets is None: + if self._configuration.client_side_validation and facets is None: raise ValueError("Invalid value for `facets`, must not be `None`") # noqa: E501 self._facets = facets @property - def facet_query(self): - """Gets the facet_query of this FacetsSearchRequestContainer. # noqa: E501 + def limit(self): + """Gets the limit of this FacetsSearchRequestContainer. # noqa: E501 - A string against which facet results are compared. If the facet result either CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned # noqa: E501 + The number of results to return. Default 100, Maximum allowed: 1000 # noqa: E501 - :return: The facet_query of this FacetsSearchRequestContainer. # noqa: E501 - :rtype: str + :return: The limit of this FacetsSearchRequestContainer. # noqa: E501 + :rtype: int """ - return self._facet_query + return self._limit - @facet_query.setter - def facet_query(self, facet_query): - """Sets the facet_query of this FacetsSearchRequestContainer. + @limit.setter + def limit(self, limit): + """Sets the limit of this FacetsSearchRequestContainer. - A string against which facet results are compared. If the facet result either CONTAINs, STARTSWITH, or is an EXACT match for this value, as specified by facetQueryMatchingMethod, then it is returned # noqa: E501 + The number of results to return. Default 100, Maximum allowed: 1000 # noqa: E501 - :param facet_query: The facet_query of this FacetsSearchRequestContainer. # noqa: E501 - :type: str + :param limit: The limit of this FacetsSearchRequestContainer. # noqa: E501 + :type: int """ + if (self._configuration.client_side_validation and + limit is not None and limit > 1000): # noqa: E501 + raise ValueError("Invalid value for `limit`, must be a value less than or equal to `1000`") # noqa: E501 + if (self._configuration.client_side_validation and + limit is not None and limit < 1): # noqa: E501 + raise ValueError("Invalid value for `limit`, must be a value greater than or equal to `1`") # noqa: E501 - self._facet_query = facet_query + self._limit = limit @property - def facet_query_matching_method(self): - """Gets the facet_query_matching_method of this FacetsSearchRequestContainer. # noqa: E501 + def query(self): + """Gets the query of this FacetsSearchRequestContainer. # noqa: E501 - The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. # noqa: E501 + A list of queries by which to limit the search results. Entities that match ALL queries in this list constitute a set of 'entity search results'. All facets listed in the 'facets' search parameter of all entities within 'entity search results' are scanned to produce the search results (of facet values). # noqa: E501 - :return: The facet_query_matching_method of this FacetsSearchRequestContainer. # noqa: E501 - :rtype: str + :return: The query of this FacetsSearchRequestContainer. # noqa: E501 + :rtype: list[SearchQuery] """ - return self._facet_query_matching_method + return self._query - @facet_query_matching_method.setter - def facet_query_matching_method(self, facet_query_matching_method): - """Sets the facet_query_matching_method of this FacetsSearchRequestContainer. + @query.setter + def query(self, query): + """Sets the query of this FacetsSearchRequestContainer. - The matching method used to filter when 'facetQuery' is used. Defaults to CONTAINS. # noqa: E501 + A list of queries by which to limit the search results. Entities that match ALL queries in this list constitute a set of 'entity search results'. All facets listed in the 'facets' search parameter of all entities within 'entity search results' are scanned to produce the search results (of facet values). # noqa: E501 - :param facet_query_matching_method: The facet_query_matching_method of this FacetsSearchRequestContainer. # noqa: E501 - :type: str + :param query: The query of this FacetsSearchRequestContainer. # noqa: E501 + :type: list[SearchQuery] """ - allowed_values = ["CONTAINS", "STARTSWITH", "EXACT", "TAGPATH"] # noqa: E501 - if facet_query_matching_method not in allowed_values: - raise ValueError( - "Invalid value for `facet_query_matching_method` ({0}), must be one of {1}" # noqa: E501 - .format(facet_query_matching_method, allowed_values) - ) - self._facet_query_matching_method = facet_query_matching_method + self._query = query def to_dict(self): """Returns the model properties as a dict""" @@ -212,6 +222,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(FacetsSearchRequestContainer, dict): + for key, value in self.items(): + result[key] = value return result @@ -228,8 +241,11 @@ def __eq__(self, other): if not isinstance(other, FacetsSearchRequestContainer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FacetsSearchRequestContainer): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/fast_reader_builder.py b/wavefront_api_client/models/fast_reader_builder.py new file mode 100644 index 00000000..afcd0aca --- /dev/null +++ b/wavefront_api_client/models/fast_reader_builder.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 FastReaderBuilder(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 = { + 'class_prop_enabled': 'bool', + 'key_class_enabled': 'bool' + } + + attribute_map = { + 'class_prop_enabled': 'classPropEnabled', + 'key_class_enabled': 'keyClassEnabled' + } + + def __init__(self, class_prop_enabled=None, key_class_enabled=None, _configuration=None): # noqa: E501 + """FastReaderBuilder - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._class_prop_enabled = None + self._key_class_enabled = None + self.discriminator = None + + if class_prop_enabled is not None: + self.class_prop_enabled = class_prop_enabled + if key_class_enabled is not None: + self.key_class_enabled = key_class_enabled + + @property + def class_prop_enabled(self): + """Gets the class_prop_enabled of this FastReaderBuilder. # noqa: E501 + + + :return: The class_prop_enabled of this FastReaderBuilder. # noqa: E501 + :rtype: bool + """ + return self._class_prop_enabled + + @class_prop_enabled.setter + def class_prop_enabled(self, class_prop_enabled): + """Sets the class_prop_enabled of this FastReaderBuilder. + + + :param class_prop_enabled: The class_prop_enabled of this FastReaderBuilder. # noqa: E501 + :type: bool + """ + + self._class_prop_enabled = class_prop_enabled + + @property + def key_class_enabled(self): + """Gets the key_class_enabled of this FastReaderBuilder. # noqa: E501 + + + :return: The key_class_enabled of this FastReaderBuilder. # noqa: E501 + :rtype: bool + """ + return self._key_class_enabled + + @key_class_enabled.setter + def key_class_enabled(self, key_class_enabled): + """Sets the key_class_enabled of this FastReaderBuilder. + + + :param key_class_enabled: The key_class_enabled of this FastReaderBuilder. # noqa: E501 + :type: bool + """ + + self._key_class_enabled = key_class_enabled + + 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(FastReaderBuilder, 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, FastReaderBuilder): + 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, FastReaderBuilder): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/field.py b/wavefront_api_client/models/field.py new file mode 100644 index 00000000..8c56264d --- /dev/null +++ b/wavefront_api_client/models/field.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Field(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 = { + 'object_props': 'dict(str, object)' + } + + attribute_map = { + 'object_props': 'objectProps' + } + + def __init__(self, object_props=None, _configuration=None): # noqa: E501 + """Field - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._object_props = None + self.discriminator = None + + if object_props is not None: + self.object_props = object_props + + @property + def object_props(self): + """Gets the object_props of this Field. # noqa: E501 + + + :return: The object_props of this Field. # noqa: E501 + :rtype: dict(str, object) + """ + return self._object_props + + @object_props.setter + def object_props(self, object_props): + """Sets the object_props of this Field. + + + :param object_props: The object_props of this Field. # noqa: E501 + :type: dict(str, object) + """ + + self._object_props = object_props + + 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(Field, 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, Field): + 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, Field): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/gcp_billing_configuration.py b/wavefront_api_client/models/gcp_billing_configuration.py new file mode 100644 index 00000000..b36b263d --- /dev/null +++ b/wavefront_api_client/models/gcp_billing_configuration.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 GCPBillingConfiguration(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 = { + 'gcp_api_key': 'str', + 'gcp_json_key': 'str', + 'project_id': 'str' + } + + attribute_map = { + 'gcp_api_key': 'gcpApiKey', + 'gcp_json_key': 'gcpJsonKey', + 'project_id': 'projectId' + } + + def __init__(self, gcp_api_key=None, gcp_json_key=None, project_id=None, _configuration=None): # noqa: E501 + """GCPBillingConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._gcp_api_key = None + self._gcp_json_key = None + self._project_id = None + self.discriminator = None + + self.gcp_api_key = gcp_api_key + self.gcp_json_key = gcp_json_key + self.project_id = project_id + + @property + def gcp_api_key(self): + """Gets the gcp_api_key of this GCPBillingConfiguration. # noqa: E501 + + API key for Google Cloud Platform (GCP). Use 'saved_api_key' to retain existing API key when updating # noqa: E501 + + :return: The gcp_api_key of this GCPBillingConfiguration. # noqa: E501 + :rtype: str + """ + return self._gcp_api_key + + @gcp_api_key.setter + def gcp_api_key(self, gcp_api_key): + """Sets the gcp_api_key of this GCPBillingConfiguration. + + API key for Google Cloud Platform (GCP). Use 'saved_api_key' to retain existing API key when updating # noqa: E501 + + :param gcp_api_key: The gcp_api_key of this GCPBillingConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and gcp_api_key is None: + raise ValueError("Invalid value for `gcp_api_key`, must not be `None`") # noqa: E501 + + self._gcp_api_key = gcp_api_key + + @property + def gcp_json_key(self): + """Gets the gcp_json_key of this GCPBillingConfiguration. # noqa: E501 + + Private key for a Google Cloud Platform (GCP) service account within your project. The account must at least be granted Monitoring Viewer permissions. This key must be in the JSON format generated by GCP. Use '{\"project_id\": \"%s\"}' to retain the existing key when updating. # noqa: E501 + + :return: The gcp_json_key of this GCPBillingConfiguration. # noqa: E501 + :rtype: str + """ + return self._gcp_json_key + + @gcp_json_key.setter + def gcp_json_key(self, gcp_json_key): + """Sets the gcp_json_key of this GCPBillingConfiguration. + + Private key for a Google Cloud Platform (GCP) service account within your project. The account must at least be granted Monitoring Viewer permissions. This key must be in the JSON format generated by GCP. Use '{\"project_id\": \"%s\"}' to retain the existing key when updating. # noqa: E501 + + :param gcp_json_key: The gcp_json_key of this GCPBillingConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and gcp_json_key is None: + raise ValueError("Invalid value for `gcp_json_key`, must not be `None`") # noqa: E501 + + self._gcp_json_key = gcp_json_key + + @property + def project_id(self): + """Gets the project_id of this GCPBillingConfiguration. # noqa: E501 + + The Google Cloud Platform (GCP) project id. # noqa: E501 + + :return: The project_id of this GCPBillingConfiguration. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this GCPBillingConfiguration. + + The Google Cloud Platform (GCP) project id. # noqa: E501 + + :param project_id: The project_id of this GCPBillingConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and project_id is None: + raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501 + + self._project_id = project_id + + 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(GCPBillingConfiguration, 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, GCPBillingConfiguration): + 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, GCPBillingConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/gcp_configuration.py b/wavefront_api_client/models/gcp_configuration.py index 6ba17edd..5a1bd424 100644 --- a/wavefront_api_client/models/gcp_configuration.py +++ b/wavefront_api_client/models/gcp_configuration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class GCPConfiguration(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,40 +33,191 @@ class GCPConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'categories_to_fetch': 'list[str]', + 'custom_metric_prefix': 'list[str]', + 'disable_delta_counts': 'bool', + 'disable_histogram': 'bool', + 'disable_histogram_to_metric_conversion': 'bool', 'gcp_json_key': 'str', - 'project_id': 'str', + 'histogram_grouping_function': 'list[str]', 'metric_filter_regex': 'str', - 'categories_to_fetch': 'list[str]' + 'project_id': 'str' } attribute_map = { + 'categories_to_fetch': 'categoriesToFetch', + 'custom_metric_prefix': 'customMetricPrefix', + 'disable_delta_counts': 'disableDeltaCounts', + 'disable_histogram': 'disableHistogram', + 'disable_histogram_to_metric_conversion': 'disableHistogramToMetricConversion', 'gcp_json_key': 'gcpJsonKey', - 'project_id': 'projectId', + 'histogram_grouping_function': 'histogramGroupingFunction', 'metric_filter_regex': 'metricFilterRegex', - 'categories_to_fetch': 'categoriesToFetch' + 'project_id': 'projectId' } - def __init__(self, gcp_json_key=None, project_id=None, metric_filter_regex=None, categories_to_fetch=None): # noqa: E501 + def __init__(self, categories_to_fetch=None, custom_metric_prefix=None, disable_delta_counts=None, disable_histogram=None, disable_histogram_to_metric_conversion=None, gcp_json_key=None, histogram_grouping_function=None, metric_filter_regex=None, project_id=None, _configuration=None): # noqa: E501 """GCPConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._categories_to_fetch = None + self._custom_metric_prefix = None + self._disable_delta_counts = None + self._disable_histogram = None + self._disable_histogram_to_metric_conversion = None self._gcp_json_key = None - self._project_id = None + self._histogram_grouping_function = None self._metric_filter_regex = None - self._categories_to_fetch = None + self._project_id = None self.discriminator = None + if categories_to_fetch is not None: + self.categories_to_fetch = categories_to_fetch + if custom_metric_prefix is not None: + self.custom_metric_prefix = custom_metric_prefix + if disable_delta_counts is not None: + self.disable_delta_counts = disable_delta_counts + if disable_histogram is not None: + self.disable_histogram = disable_histogram + if disable_histogram_to_metric_conversion is not None: + self.disable_histogram_to_metric_conversion = disable_histogram_to_metric_conversion self.gcp_json_key = gcp_json_key - self.project_id = project_id + if histogram_grouping_function is not None: + self.histogram_grouping_function = histogram_grouping_function if metric_filter_regex is not None: self.metric_filter_regex = metric_filter_regex - if categories_to_fetch is not None: - self.categories_to_fetch = categories_to_fetch + self.project_id = project_id + + @property + def categories_to_fetch(self): + """Gets the categories_to_fetch of this GCPConfiguration. # noqa: E501 + + A list of Google Cloud Platform (GCP) services (such as ComputeEngine, PubSub, etc) from which to pull metrics. Allowable values are APPENGINE, BIGQUERY, BIGTABLE, CLOUDFUNCTIONS, CLOUDIOT, CLOUDSQL, CLOUDTASKS, COMPUTE, CONTAINER, DATAFLOW, DATAPROC, DATASTORE, FIREBASEDATABASE, FIREBASEHOSTING, FIRESTORE, INTERCONNECT, KUBERNETES, LOADBALANCING, LOGGING, ML, MONITORING, PUBSUB, REDIS, ROUTER, SERVICERUNTIME, SPANNER, STORAGE, TPU, VPN # noqa: E501 + + :return: The categories_to_fetch of this GCPConfiguration. # noqa: E501 + :rtype: list[str] + """ + return self._categories_to_fetch + + @categories_to_fetch.setter + def categories_to_fetch(self, categories_to_fetch): + """Sets the categories_to_fetch of this GCPConfiguration. + + A list of Google Cloud Platform (GCP) services (such as ComputeEngine, PubSub, etc) from which to pull metrics. Allowable values are APPENGINE, BIGQUERY, BIGTABLE, CLOUDFUNCTIONS, CLOUDIOT, CLOUDSQL, CLOUDTASKS, COMPUTE, CONTAINER, DATAFLOW, DATAPROC, DATASTORE, FIREBASEDATABASE, FIREBASEHOSTING, FIRESTORE, INTERCONNECT, KUBERNETES, LOADBALANCING, LOGGING, ML, MONITORING, PUBSUB, REDIS, ROUTER, SERVICERUNTIME, SPANNER, STORAGE, TPU, VPN # noqa: E501 + + :param categories_to_fetch: The categories_to_fetch of this GCPConfiguration. # noqa: E501 + :type: list[str] + """ + allowed_values = ["APPENGINE", "BIGQUERY", "BIGTABLE", "CLOUDFUNCTIONS", "CLOUDIOT", "CLOUDSQL", "CLOUDTASKS", "COMPUTE", "CONTAINER", "DATAFLOW", "DATAPROC", "DATASTORE", "FIREBASEDATABASE", "FIREBASEHOSTING", "FIRESTORE", "INTERCONNECT", "KUBERNETES", "LOADBALANCING", "LOGGING", "ML", "MONITORING", "PUBSUB", "REDIS", "ROUTER", "RUN", "SERVICERUNTIME", "SPANNER", "STORAGE", "TPU", "VPN", "APIGEE"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(categories_to_fetch).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `categories_to_fetch` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(categories_to_fetch) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._categories_to_fetch = categories_to_fetch + + @property + def custom_metric_prefix(self): + """Gets the custom_metric_prefix of this GCPConfiguration. # noqa: E501 + + List of custom metric prefix to fetch the data from # noqa: E501 + + :return: The custom_metric_prefix of this GCPConfiguration. # noqa: E501 + :rtype: list[str] + """ + return self._custom_metric_prefix + + @custom_metric_prefix.setter + def custom_metric_prefix(self, custom_metric_prefix): + """Sets the custom_metric_prefix of this GCPConfiguration. + + List of custom metric prefix to fetch the data from # noqa: E501 + + :param custom_metric_prefix: The custom_metric_prefix of this GCPConfiguration. # noqa: E501 + :type: list[str] + """ + + self._custom_metric_prefix = custom_metric_prefix + + @property + def disable_delta_counts(self): + """Gets the disable_delta_counts of this GCPConfiguration. # noqa: E501 + + Whether to disable the ingestion of counts for GCP delta metrics. Ingestion is enabled by default. # noqa: E501 + + :return: The disable_delta_counts of this GCPConfiguration. # noqa: E501 + :rtype: bool + """ + return self._disable_delta_counts + + @disable_delta_counts.setter + def disable_delta_counts(self, disable_delta_counts): + """Sets the disable_delta_counts of this GCPConfiguration. + + Whether to disable the ingestion of counts for GCP delta metrics. Ingestion is enabled by default. # noqa: E501 + + :param disable_delta_counts: The disable_delta_counts of this GCPConfiguration. # noqa: E501 + :type: bool + """ + + self._disable_delta_counts = disable_delta_counts + + @property + def disable_histogram(self): + """Gets the disable_histogram of this GCPConfiguration. # noqa: E501 + + Whether to disable the ingestion of histograms. Ingestion is enabled by default. # noqa: E501 + + :return: The disable_histogram of this GCPConfiguration. # noqa: E501 + :rtype: bool + """ + return self._disable_histogram + + @disable_histogram.setter + def disable_histogram(self, disable_histogram): + """Sets the disable_histogram of this GCPConfiguration. + + Whether to disable the ingestion of histograms. Ingestion is enabled by default. # noqa: E501 + + :param disable_histogram: The disable_histogram of this GCPConfiguration. # noqa: E501 + :type: bool + """ + + self._disable_histogram = disable_histogram + + @property + def disable_histogram_to_metric_conversion(self): + """Gets the disable_histogram_to_metric_conversion of this GCPConfiguration. # noqa: E501 + + Whether to disable the ingestion of bucket data for GCP distributions. Ingestion is enabled by default. # noqa: E501 + + :return: The disable_histogram_to_metric_conversion of this GCPConfiguration. # noqa: E501 + :rtype: bool + """ + return self._disable_histogram_to_metric_conversion + + @disable_histogram_to_metric_conversion.setter + def disable_histogram_to_metric_conversion(self, disable_histogram_to_metric_conversion): + """Sets the disable_histogram_to_metric_conversion of this GCPConfiguration. + + Whether to disable the ingestion of bucket data for GCP distributions. Ingestion is enabled by default. # noqa: E501 + + :param disable_histogram_to_metric_conversion: The disable_histogram_to_metric_conversion of this GCPConfiguration. # noqa: E501 + :type: bool + """ + + self._disable_histogram_to_metric_conversion = disable_histogram_to_metric_conversion @property def gcp_json_key(self): """Gets the gcp_json_key of this GCPConfiguration. # noqa: E501 - Private key for a Google Cloud Platform (GCP) service account within your project. The account must at least be granted Monitoring Viewer permissions. This key must be in the JSON format generated by GCP. # noqa: E501 + Private key for a Google Cloud Platform (GCP) service account within your project. The account must at least be granted Monitoring Viewer permissions. This key must be in the JSON format generated by GCP. Use '{\"project_id\": \"%s\"}' to retain the existing key when updating. # noqa: E501 :return: The gcp_json_key of this GCPConfiguration. # noqa: E501 :rtype: str @@ -75,40 +228,38 @@ def gcp_json_key(self): def gcp_json_key(self, gcp_json_key): """Sets the gcp_json_key of this GCPConfiguration. - Private key for a Google Cloud Platform (GCP) service account within your project. The account must at least be granted Monitoring Viewer permissions. This key must be in the JSON format generated by GCP. # noqa: E501 + Private key for a Google Cloud Platform (GCP) service account within your project. The account must at least be granted Monitoring Viewer permissions. This key must be in the JSON format generated by GCP. Use '{\"project_id\": \"%s\"}' to retain the existing key when updating. # noqa: E501 :param gcp_json_key: The gcp_json_key of this GCPConfiguration. # noqa: E501 :type: str """ - if gcp_json_key is None: + if self._configuration.client_side_validation and gcp_json_key is None: raise ValueError("Invalid value for `gcp_json_key`, must not be `None`") # noqa: E501 self._gcp_json_key = gcp_json_key @property - def project_id(self): - """Gets the project_id of this GCPConfiguration. # noqa: E501 + def histogram_grouping_function(self): + """Gets the histogram_grouping_function of this GCPConfiguration. # noqa: E501 - The Google Cloud Platform (GCP) project id. # noqa: E501 + List of histogram grouping function to fetch data from # noqa: E501 - :return: The project_id of this GCPConfiguration. # noqa: E501 - :rtype: str + :return: The histogram_grouping_function of this GCPConfiguration. # noqa: E501 + :rtype: list[str] """ - return self._project_id + return self._histogram_grouping_function - @project_id.setter - def project_id(self, project_id): - """Sets the project_id of this GCPConfiguration. + @histogram_grouping_function.setter + def histogram_grouping_function(self, histogram_grouping_function): + """Sets the histogram_grouping_function of this GCPConfiguration. - The Google Cloud Platform (GCP) project id. # noqa: E501 + List of histogram grouping function to fetch data from # noqa: E501 - :param project_id: The project_id of this GCPConfiguration. # noqa: E501 - :type: str + :param histogram_grouping_function: The histogram_grouping_function of this GCPConfiguration. # noqa: E501 + :type: list[str] """ - if project_id is None: - raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501 - self._project_id = project_id + self._histogram_grouping_function = histogram_grouping_function @property def metric_filter_regex(self): @@ -134,34 +285,29 @@ def metric_filter_regex(self, metric_filter_regex): self._metric_filter_regex = metric_filter_regex @property - def categories_to_fetch(self): - """Gets the categories_to_fetch of this GCPConfiguration. # noqa: E501 + def project_id(self): + """Gets the project_id of this GCPConfiguration. # noqa: E501 - A list of Google Cloud Platform (GCP) services (such as ComputeEngine, PubSub, etc) from which to pull metrics. Allowable values are APPENGINE, BIGQUERY, BIGTABLE, CLOUDFUNCTIONS, CLOUDIOT, CLOUDSQL, CLOUDTASKS, COMPUTE, CONTAINER, DATAFLOW, DATASTORE, FIREBASEDATABASE, FIREBASEHOSTING, LOGGING, ML, PUBSUB, ROUTER, SPANNER, STORAGE, VPN # noqa: E501 + The Google Cloud Platform (GCP) project id. # noqa: E501 - :return: The categories_to_fetch of this GCPConfiguration. # noqa: E501 - :rtype: list[str] + :return: The project_id of this GCPConfiguration. # noqa: E501 + :rtype: str """ - return self._categories_to_fetch + return self._project_id - @categories_to_fetch.setter - def categories_to_fetch(self, categories_to_fetch): - """Sets the categories_to_fetch of this GCPConfiguration. + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this GCPConfiguration. - A list of Google Cloud Platform (GCP) services (such as ComputeEngine, PubSub, etc) from which to pull metrics. Allowable values are APPENGINE, BIGQUERY, BIGTABLE, CLOUDFUNCTIONS, CLOUDIOT, CLOUDSQL, CLOUDTASKS, COMPUTE, CONTAINER, DATAFLOW, DATASTORE, FIREBASEDATABASE, FIREBASEHOSTING, LOGGING, ML, PUBSUB, ROUTER, SPANNER, STORAGE, VPN # noqa: E501 + The Google Cloud Platform (GCP) project id. # noqa: E501 - :param categories_to_fetch: The categories_to_fetch of this GCPConfiguration. # noqa: E501 - :type: list[str] + :param project_id: The project_id of this GCPConfiguration. # noqa: E501 + :type: str """ - allowed_values = ["APPENGINE", "BIGQUERY", "BIGTABLE", "CLOUDFUNCTIONS", "CLOUDIOT", "CLOUDSQL", "CLOUDTASKS", "COMPUTE", "CONTAINER", "DATAFLOW", "DATASTORE", "FIREBASEDATABASE", "FIREBASEHOSTING", "LOGGING", "ML", "PUBSUB", "ROUTER", "SPANNER", "STORAGE", "VPN"] # noqa: E501 - if not set(categories_to_fetch).issubset(set(allowed_values)): - raise ValueError( - "Invalid values for `categories_to_fetch` [{0}], must be a subset of [{1}]" # noqa: E501 - .format(", ".join(map(str, set(categories_to_fetch) - set(allowed_values))), # noqa: E501 - ", ".join(map(str, allowed_values))) - ) + if self._configuration.client_side_validation and project_id is None: + raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501 - self._categories_to_fetch = categories_to_fetch + self._project_id = project_id def to_dict(self): """Returns the model properties as a dict""" @@ -184,6 +330,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GCPConfiguration, dict): + for key, value in self.items(): + result[key] = value return result @@ -200,8 +349,11 @@ def __eq__(self, other): if not isinstance(other, GCPConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, GCPConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/history_entry.py b/wavefront_api_client/models/history_entry.py index 4462dfbd..1872cc8f 100644 --- a/wavefront_api_client/models/history_entry.py +++ b/wavefront_api_client/models/history_entry.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class HistoryEntry(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,46 +33,70 @@ class HistoryEntry(object): and the value is json key in definition. """ swagger_types = { + 'change_description': 'list[str]', 'id': 'str', 'in_trash': 'bool', - 'version': 'int', - 'update_user': 'str', 'update_time': 'int', - 'change_description': 'list[str]' + 'update_user': 'str', + 'version': 'int' } attribute_map = { + 'change_description': 'changeDescription', 'id': 'id', 'in_trash': 'inTrash', - 'version': 'version', - 'update_user': 'updateUser', 'update_time': 'updateTime', - 'change_description': 'changeDescription' + 'update_user': 'updateUser', + 'version': 'version' } - def __init__(self, id=None, in_trash=None, version=None, update_user=None, update_time=None, change_description=None): # noqa: E501 + def __init__(self, change_description=None, id=None, in_trash=None, update_time=None, update_user=None, version=None, _configuration=None): # noqa: E501 """HistoryEntry - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._change_description = None self._id = None self._in_trash = None - self._version = None - self._update_user = None self._update_time = None - self._change_description = None + self._update_user = None + self._version = None self.discriminator = None + if change_description is not None: + self.change_description = change_description if id is not None: self.id = id if in_trash is not None: self.in_trash = in_trash - if version is not None: - self.version = version - if update_user is not None: - self.update_user = update_user if update_time is not None: self.update_time = update_time - if change_description is not None: - self.change_description = change_description + if update_user is not None: + self.update_user = update_user + if version is not None: + self.version = version + + @property + def change_description(self): + """Gets the change_description of this HistoryEntry. # noqa: E501 + + + :return: The change_description of this HistoryEntry. # noqa: E501 + :rtype: list[str] + """ + return self._change_description + + @change_description.setter + def change_description(self, change_description): + """Sets the change_description of this HistoryEntry. + + + :param change_description: The change_description of this HistoryEntry. # noqa: E501 + :type: list[str] + """ + + self._change_description = change_description @property def id(self): @@ -115,25 +141,25 @@ def in_trash(self, in_trash): self._in_trash = in_trash @property - def version(self): - """Gets the version of this HistoryEntry. # noqa: E501 + def update_time(self): + """Gets the update_time of this HistoryEntry. # noqa: E501 - :return: The version of this HistoryEntry. # noqa: E501 + :return: The update_time of this HistoryEntry. # noqa: E501 :rtype: int """ - return self._version + return self._update_time - @version.setter - def version(self, version): - """Sets the version of this HistoryEntry. + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this HistoryEntry. - :param version: The version of this HistoryEntry. # noqa: E501 + :param update_time: The update_time of this HistoryEntry. # noqa: E501 :type: int """ - self._version = version + self._update_time = update_time @property def update_user(self): @@ -157,46 +183,25 @@ def update_user(self, update_user): self._update_user = update_user @property - def update_time(self): - """Gets the update_time of this HistoryEntry. # noqa: E501 + def version(self): + """Gets the version of this HistoryEntry. # noqa: E501 - :return: The update_time of this HistoryEntry. # noqa: E501 + :return: The version of this HistoryEntry. # noqa: E501 :rtype: int """ - return self._update_time + return self._version - @update_time.setter - def update_time(self, update_time): - """Sets the update_time of this HistoryEntry. + @version.setter + def version(self, version): + """Sets the version of this HistoryEntry. - :param update_time: The update_time of this HistoryEntry. # noqa: E501 + :param version: The version of this HistoryEntry. # noqa: E501 :type: int """ - self._update_time = update_time - - @property - def change_description(self): - """Gets the change_description of this HistoryEntry. # noqa: E501 - - - :return: The change_description of this HistoryEntry. # noqa: E501 - :rtype: list[str] - """ - return self._change_description - - @change_description.setter - def change_description(self, change_description): - """Sets the change_description of this HistoryEntry. - - - :param change_description: The change_description of this HistoryEntry. # noqa: E501 - :type: list[str] - """ - - self._change_description = change_description + self._version = version def to_dict(self): """Returns the model properties as a dict""" @@ -219,6 +224,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(HistoryEntry, dict): + for key, value in self.items(): + result[key] = value return result @@ -235,8 +243,11 @@ def __eq__(self, other): if not isinstance(other, HistoryEntry): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, HistoryEntry): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/history_response.py b/wavefront_api_client/models/history_response.py index 424afbe0..87cf496b 100644 --- a/wavefront_api_client/models/history_response.py +++ b/wavefront_api_client/models/history_response.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.history_entry import HistoryEntry # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class HistoryResponse(object): @@ -34,51 +33,77 @@ class HistoryResponse(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[HistoryEntry]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """HistoryResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 HistoryResponse. # 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 HistoryResponse. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this HistoryResponse. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this HistoryResponse. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this HistoryResponse. # noqa: E501 - - - :return: The offset of this HistoryResponse. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this HistoryResponse. - - - :param offset: The offset of this HistoryResponse. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this HistoryResponse. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this HistoryResponse. # 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 HistoryResponse. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this HistoryResponse. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this HistoryResponse. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this HistoryResponse. # 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 HistoryResponse. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this HistoryResponse. - - 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 HistoryResponse. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this HistoryResponse. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this HistoryResponse. # noqa: E501 + + + :return: The offset of this HistoryResponse. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this HistoryResponse. + + + :param offset: The offset of this HistoryResponse. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this HistoryResponse. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this HistoryResponse. # 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 HistoryResponse. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this HistoryResponse. + + 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 HistoryResponse. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(HistoryResponse, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, HistoryResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, HistoryResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/ingestion_policy_alert.py b/wavefront_api_client/models/ingestion_policy_alert.py new file mode 100644 index 00000000..668abd20 --- /dev/null +++ b/wavefront_api_client/models/ingestion_policy_alert.py @@ -0,0 +1,2471 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 IngestionPolicyAlert(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 = { + 'acl': 'AccessControlListSimple', + 'active_maintenance_windows': 'list[str]', + 'additional_information': 'str', + 'alert_chart_base': 'int', + 'alert_chart_description': 'str', + 'alert_chart_units': 'str', + 'alert_sources': 'list[AlertSource]', + 'alert_triage_dashboards': 'list[AlertDashboard]', + 'alert_type': 'str', + 'alerts_last_day': 'int', + 'alerts_last_month': 'int', + 'alerts_last_week': 'int', + 'application': 'list[str]', + 'chart_attributes': 'JsonNode', + 'chart_settings': 'ChartSettings', + 'condition': 'str', + 'condition_percentages': 'dict(str, int)', + 'condition_qb_enabled': 'bool', + 'condition_qb_serialization': 'str', + 'condition_query_type': 'str', + 'conditions': 'dict(str, str)', + 'conditions_threshold_operator': 'str', + 'create_user_id': 'str', + 'created': 'int', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'deleted': 'bool', + 'display_expression': 'str', + 'display_expression_qb_enabled': 'bool', + 'display_expression_qb_serialization': 'str', + 'display_expression_query_type': 'str', + 'enable_pd_incident_by_series': 'bool', + 'evaluate_realtime_data': 'bool', + 'event': 'Event', + 'failing_host_label_pair_links': 'list[str]', + 'failing_host_label_pairs': 'list[SourceLabelPair]', + 'hidden': 'bool', + 'hosts_used': 'list[str]', + 'id': 'str', + 'in_maintenance_host_label_pairs': 'list[SourceLabelPair]', + 'in_trash': 'bool', + 'include_obsolete_metrics': 'bool', + 'ingestion_policy_id': 'str', + 'last_error_message': 'str', + 'last_event_time': 'int', + 'last_failed_time': 'int', + 'last_notification_millis': 'int', + 'last_processed_millis': 'int', + 'last_query_time': 'int', + 'metrics_used': 'list[str]', + 'minutes': 'int', + 'modify_acl_access': 'bool', + 'name': 'str', + 'no_data_event': 'Event', + 'notificants': 'list[str]', + 'notification_resend_frequency_minutes': 'int', + 'num_points_in_failure_frame': 'int', + 'orphan': 'bool', + 'points_scanned_at_last_query': 'int', + 'prefiring_host_label_pairs': 'list[SourceLabelPair]', + 'process_rate_minutes': 'int', + 'query_failing': 'bool', + 'query_syntax_error': 'bool', + 'resolve_after_minutes': 'int', + 'runbook_links': 'list[str]', + 'secure_metric_details': 'bool', + 'service': 'list[str]', + 'severity': 'str', + 'severity_list': 'list[str]', + 'snoozed': 'int', + 'sort_attr': 'int', + 'status': 'list[str]', + 'system_alert_version': 'int', + 'system_owned': 'bool', + 'tagpaths': 'list[str]', + 'tags': 'WFTags', + 'target': 'str', + 'target_endpoints': 'list[str]', + 'target_info': 'list[TargetInfo]', + 'targets': 'dict(str, str)', + 'triage_dashboards': 'list[TriageDashboard]', + 'update_user_id': 'str', + 'updated': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'acl': 'acl', + 'active_maintenance_windows': 'activeMaintenanceWindows', + 'additional_information': 'additionalInformation', + 'alert_chart_base': 'alertChartBase', + 'alert_chart_description': 'alertChartDescription', + 'alert_chart_units': 'alertChartUnits', + 'alert_sources': 'alertSources', + 'alert_triage_dashboards': 'alertTriageDashboards', + 'alert_type': 'alertType', + 'alerts_last_day': 'alertsLastDay', + 'alerts_last_month': 'alertsLastMonth', + 'alerts_last_week': 'alertsLastWeek', + 'application': 'application', + 'chart_attributes': 'chartAttributes', + 'chart_settings': 'chartSettings', + 'condition': 'condition', + 'condition_percentages': 'conditionPercentages', + 'condition_qb_enabled': 'conditionQBEnabled', + 'condition_qb_serialization': 'conditionQBSerialization', + 'condition_query_type': 'conditionQueryType', + 'conditions': 'conditions', + 'conditions_threshold_operator': 'conditionsThresholdOperator', + 'create_user_id': 'createUserId', + 'created': 'created', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'deleted': 'deleted', + 'display_expression': 'displayExpression', + 'display_expression_qb_enabled': 'displayExpressionQBEnabled', + 'display_expression_qb_serialization': 'displayExpressionQBSerialization', + 'display_expression_query_type': 'displayExpressionQueryType', + 'enable_pd_incident_by_series': 'enablePDIncidentBySeries', + 'evaluate_realtime_data': 'evaluateRealtimeData', + 'event': 'event', + 'failing_host_label_pair_links': 'failingHostLabelPairLinks', + 'failing_host_label_pairs': 'failingHostLabelPairs', + 'hidden': 'hidden', + 'hosts_used': 'hostsUsed', + 'id': 'id', + 'in_maintenance_host_label_pairs': 'inMaintenanceHostLabelPairs', + 'in_trash': 'inTrash', + 'include_obsolete_metrics': 'includeObsoleteMetrics', + 'ingestion_policy_id': 'ingestionPolicyId', + 'last_error_message': 'lastErrorMessage', + 'last_event_time': 'lastEventTime', + 'last_failed_time': 'lastFailedTime', + 'last_notification_millis': 'lastNotificationMillis', + 'last_processed_millis': 'lastProcessedMillis', + 'last_query_time': 'lastQueryTime', + 'metrics_used': 'metricsUsed', + 'minutes': 'minutes', + 'modify_acl_access': 'modifyAclAccess', + 'name': 'name', + 'no_data_event': 'noDataEvent', + 'notificants': 'notificants', + 'notification_resend_frequency_minutes': 'notificationResendFrequencyMinutes', + 'num_points_in_failure_frame': 'numPointsInFailureFrame', + 'orphan': 'orphan', + 'points_scanned_at_last_query': 'pointsScannedAtLastQuery', + 'prefiring_host_label_pairs': 'prefiringHostLabelPairs', + 'process_rate_minutes': 'processRateMinutes', + 'query_failing': 'queryFailing', + 'query_syntax_error': 'querySyntaxError', + 'resolve_after_minutes': 'resolveAfterMinutes', + 'runbook_links': 'runbookLinks', + 'secure_metric_details': 'secureMetricDetails', + 'service': 'service', + 'severity': 'severity', + 'severity_list': 'severityList', + 'snoozed': 'snoozed', + 'sort_attr': 'sortAttr', + 'status': 'status', + 'system_alert_version': 'systemAlertVersion', + 'system_owned': 'systemOwned', + 'tagpaths': 'tagpaths', + 'tags': 'tags', + 'target': 'target', + 'target_endpoints': 'targetEndpoints', + 'target_info': 'targetInfo', + 'targets': 'targets', + 'triage_dashboards': 'triageDashboards', + 'update_user_id': 'updateUserId', + 'updated': 'updated', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, acl=None, active_maintenance_windows=None, additional_information=None, alert_chart_base=None, alert_chart_description=None, alert_chart_units=None, alert_sources=None, alert_triage_dashboards=None, alert_type=None, alerts_last_day=None, alerts_last_month=None, alerts_last_week=None, application=None, chart_attributes=None, chart_settings=None, condition=None, condition_percentages=None, condition_qb_enabled=None, condition_qb_serialization=None, condition_query_type=None, conditions=None, conditions_threshold_operator=None, create_user_id=None, created=None, created_epoch_millis=None, creator_id=None, deleted=None, display_expression=None, display_expression_qb_enabled=None, display_expression_qb_serialization=None, display_expression_query_type=None, enable_pd_incident_by_series=None, evaluate_realtime_data=None, event=None, failing_host_label_pair_links=None, failing_host_label_pairs=None, hidden=None, hosts_used=None, id=None, in_maintenance_host_label_pairs=None, in_trash=None, include_obsolete_metrics=None, ingestion_policy_id=None, last_error_message=None, last_event_time=None, last_failed_time=None, last_notification_millis=None, last_processed_millis=None, last_query_time=None, metrics_used=None, minutes=None, modify_acl_access=None, name=None, no_data_event=None, notificants=None, notification_resend_frequency_minutes=None, num_points_in_failure_frame=None, orphan=None, points_scanned_at_last_query=None, prefiring_host_label_pairs=None, process_rate_minutes=None, query_failing=None, query_syntax_error=None, resolve_after_minutes=None, runbook_links=None, secure_metric_details=None, service=None, severity=None, severity_list=None, snoozed=None, sort_attr=None, status=None, system_alert_version=None, system_owned=None, tagpaths=None, tags=None, target=None, target_endpoints=None, target_info=None, targets=None, triage_dashboards=None, update_user_id=None, updated=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """IngestionPolicyAlert - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._acl = None + self._active_maintenance_windows = None + self._additional_information = None + self._alert_chart_base = None + self._alert_chart_description = None + self._alert_chart_units = None + self._alert_sources = None + self._alert_triage_dashboards = None + self._alert_type = None + self._alerts_last_day = None + self._alerts_last_month = None + self._alerts_last_week = None + self._application = None + self._chart_attributes = None + self._chart_settings = None + self._condition = None + self._condition_percentages = None + self._condition_qb_enabled = None + self._condition_qb_serialization = None + self._condition_query_type = None + self._conditions = None + self._conditions_threshold_operator = None + self._create_user_id = None + self._created = None + self._created_epoch_millis = None + self._creator_id = None + self._deleted = None + self._display_expression = None + self._display_expression_qb_enabled = None + self._display_expression_qb_serialization = None + self._display_expression_query_type = None + self._enable_pd_incident_by_series = None + self._evaluate_realtime_data = None + self._event = None + self._failing_host_label_pair_links = None + self._failing_host_label_pairs = None + self._hidden = None + self._hosts_used = None + self._id = None + self._in_maintenance_host_label_pairs = None + self._in_trash = None + self._include_obsolete_metrics = None + self._ingestion_policy_id = None + self._last_error_message = None + self._last_event_time = None + self._last_failed_time = None + self._last_notification_millis = None + self._last_processed_millis = None + self._last_query_time = None + self._metrics_used = None + self._minutes = None + self._modify_acl_access = None + self._name = None + self._no_data_event = None + self._notificants = None + self._notification_resend_frequency_minutes = None + self._num_points_in_failure_frame = None + self._orphan = None + self._points_scanned_at_last_query = None + self._prefiring_host_label_pairs = None + self._process_rate_minutes = None + self._query_failing = None + self._query_syntax_error = None + self._resolve_after_minutes = None + self._runbook_links = None + self._secure_metric_details = None + self._service = None + self._severity = None + self._severity_list = None + self._snoozed = None + self._sort_attr = None + self._status = None + self._system_alert_version = None + self._system_owned = None + self._tagpaths = None + self._tags = None + self._target = None + self._target_endpoints = None + self._target_info = None + self._targets = None + self._triage_dashboards = None + self._update_user_id = None + self._updated = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if acl is not None: + self.acl = acl + if active_maintenance_windows is not None: + self.active_maintenance_windows = active_maintenance_windows + if additional_information is not None: + self.additional_information = additional_information + if alert_chart_base is not None: + self.alert_chart_base = alert_chart_base + if alert_chart_description is not None: + self.alert_chart_description = alert_chart_description + if alert_chart_units is not None: + self.alert_chart_units = alert_chart_units + if alert_sources is not None: + self.alert_sources = alert_sources + if alert_triage_dashboards is not None: + self.alert_triage_dashboards = alert_triage_dashboards + if alert_type is not None: + self.alert_type = alert_type + if alerts_last_day is not None: + self.alerts_last_day = alerts_last_day + if alerts_last_month is not None: + self.alerts_last_month = alerts_last_month + if alerts_last_week is not None: + self.alerts_last_week = alerts_last_week + if application is not None: + self.application = application + if chart_attributes is not None: + self.chart_attributes = chart_attributes + if chart_settings is not None: + self.chart_settings = chart_settings + self.condition = condition + if condition_percentages is not None: + self.condition_percentages = condition_percentages + if condition_qb_enabled is not None: + self.condition_qb_enabled = condition_qb_enabled + if condition_qb_serialization is not None: + self.condition_qb_serialization = condition_qb_serialization + if condition_query_type is not None: + self.condition_query_type = condition_query_type + if conditions is not None: + self.conditions = conditions + self.conditions_threshold_operator = conditions_threshold_operator + if create_user_id is not None: + self.create_user_id = create_user_id + if created is not None: + self.created = created + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted + if display_expression is not None: + self.display_expression = display_expression + if display_expression_qb_enabled is not None: + self.display_expression_qb_enabled = display_expression_qb_enabled + if display_expression_qb_serialization is not None: + self.display_expression_qb_serialization = display_expression_qb_serialization + if display_expression_query_type is not None: + self.display_expression_query_type = display_expression_query_type + if enable_pd_incident_by_series is not None: + self.enable_pd_incident_by_series = enable_pd_incident_by_series + if evaluate_realtime_data is not None: + self.evaluate_realtime_data = evaluate_realtime_data + if event is not None: + self.event = event + if failing_host_label_pair_links is not None: + self.failing_host_label_pair_links = failing_host_label_pair_links + if failing_host_label_pairs is not None: + self.failing_host_label_pairs = failing_host_label_pairs + if hidden is not None: + self.hidden = hidden + if hosts_used is not None: + self.hosts_used = hosts_used + if id is not None: + self.id = id + if in_maintenance_host_label_pairs is not None: + self.in_maintenance_host_label_pairs = in_maintenance_host_label_pairs + if in_trash is not None: + self.in_trash = in_trash + if include_obsolete_metrics is not None: + self.include_obsolete_metrics = include_obsolete_metrics + if ingestion_policy_id is not None: + self.ingestion_policy_id = ingestion_policy_id + if last_error_message is not None: + self.last_error_message = last_error_message + if last_event_time is not None: + self.last_event_time = last_event_time + if last_failed_time is not None: + self.last_failed_time = last_failed_time + if last_notification_millis is not None: + self.last_notification_millis = last_notification_millis + if last_processed_millis is not None: + self.last_processed_millis = last_processed_millis + if last_query_time is not None: + self.last_query_time = last_query_time + if metrics_used is not None: + self.metrics_used = metrics_used + self.minutes = minutes + if modify_acl_access is not None: + self.modify_acl_access = modify_acl_access + self.name = name + if no_data_event is not None: + self.no_data_event = no_data_event + if notificants is not None: + self.notificants = notificants + if notification_resend_frequency_minutes is not None: + self.notification_resend_frequency_minutes = notification_resend_frequency_minutes + if num_points_in_failure_frame is not None: + self.num_points_in_failure_frame = num_points_in_failure_frame + if orphan is not None: + self.orphan = orphan + if points_scanned_at_last_query is not None: + self.points_scanned_at_last_query = points_scanned_at_last_query + if prefiring_host_label_pairs is not None: + self.prefiring_host_label_pairs = prefiring_host_label_pairs + if process_rate_minutes is not None: + self.process_rate_minutes = process_rate_minutes + if query_failing is not None: + self.query_failing = query_failing + if query_syntax_error is not None: + self.query_syntax_error = query_syntax_error + if resolve_after_minutes is not None: + self.resolve_after_minutes = resolve_after_minutes + if runbook_links is not None: + self.runbook_links = runbook_links + if secure_metric_details is not None: + self.secure_metric_details = secure_metric_details + if service is not None: + self.service = service + if severity is not None: + self.severity = severity + if severity_list is not None: + self.severity_list = severity_list + if snoozed is not None: + self.snoozed = snoozed + if sort_attr is not None: + self.sort_attr = sort_attr + if status is not None: + self.status = status + if system_alert_version is not None: + self.system_alert_version = system_alert_version + if system_owned is not None: + self.system_owned = system_owned + if tagpaths is not None: + self.tagpaths = tagpaths + if tags is not None: + self.tags = tags + if target is not None: + self.target = target + if target_endpoints is not None: + self.target_endpoints = target_endpoints + if target_info is not None: + self.target_info = target_info + if targets is not None: + self.targets = targets + if triage_dashboards is not None: + self.triage_dashboards = triage_dashboards + if update_user_id is not None: + self.update_user_id = update_user_id + if updated is not None: + self.updated = updated + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def acl(self): + """Gets the acl of this IngestionPolicyAlert. # noqa: E501 + + + :return: The acl of this IngestionPolicyAlert. # noqa: E501 + :rtype: AccessControlListSimple + """ + return self._acl + + @acl.setter + def acl(self, acl): + """Sets the acl of this IngestionPolicyAlert. + + + :param acl: The acl of this IngestionPolicyAlert. # noqa: E501 + :type: AccessControlListSimple + """ + + self._acl = acl + + @property + def active_maintenance_windows(self): + """Gets the active_maintenance_windows of this IngestionPolicyAlert. # noqa: E501 + + The names of the active maintenance windows that are affecting this alert # noqa: E501 + + :return: The active_maintenance_windows of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._active_maintenance_windows + + @active_maintenance_windows.setter + def active_maintenance_windows(self, active_maintenance_windows): + """Sets the active_maintenance_windows of this IngestionPolicyAlert. + + The names of the active maintenance windows that are affecting this alert # noqa: E501 + + :param active_maintenance_windows: The active_maintenance_windows of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._active_maintenance_windows = active_maintenance_windows + + @property + def additional_information(self): + """Gets the additional_information of this IngestionPolicyAlert. # noqa: E501 + + User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc # noqa: E501 + + :return: The additional_information of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._additional_information + + @additional_information.setter + def additional_information(self, additional_information): + """Sets the additional_information of this IngestionPolicyAlert. + + User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc # noqa: E501 + + :param additional_information: The additional_information of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._additional_information = additional_information + + @property + def alert_chart_base(self): + """Gets the alert_chart_base of this IngestionPolicyAlert. # noqa: E501 + + The base of alert chart. A linear chart will have base as 1. A logarithmic chart will have the other base value.The value should be an integer and should greater than or equal to 1. # noqa: E501 + + :return: The alert_chart_base of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._alert_chart_base + + @alert_chart_base.setter + def alert_chart_base(self, alert_chart_base): + """Sets the alert_chart_base of this IngestionPolicyAlert. + + The base of alert chart. A linear chart will have base as 1. A logarithmic chart will have the other base value.The value should be an integer and should greater than or equal to 1. # noqa: E501 + + :param alert_chart_base: The alert_chart_base of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._alert_chart_base = alert_chart_base + + @property + def alert_chart_description(self): + """Gets the alert_chart_description of this IngestionPolicyAlert. # noqa: E501 + + The description of alert chart. Different from alert additional info, this is used to describe the characteristics of the chart. # noqa: E501 + + :return: The alert_chart_description of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._alert_chart_description + + @alert_chart_description.setter + def alert_chart_description(self, alert_chart_description): + """Sets the alert_chart_description of this IngestionPolicyAlert. + + The description of alert chart. Different from alert additional info, this is used to describe the characteristics of the chart. # noqa: E501 + + :param alert_chart_description: The alert_chart_description of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._alert_chart_description = alert_chart_description + + @property + def alert_chart_units(self): + """Gets the alert_chart_units of this IngestionPolicyAlert. # noqa: E501 + + The y-axis unit of Alert chart. # noqa: E501 + + :return: The alert_chart_units of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._alert_chart_units + + @alert_chart_units.setter + def alert_chart_units(self, alert_chart_units): + """Sets the alert_chart_units of this IngestionPolicyAlert. + + The y-axis unit of Alert chart. # noqa: E501 + + :param alert_chart_units: The alert_chart_units of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._alert_chart_units = alert_chart_units + + @property + def alert_sources(self): + """Gets the alert_sources of this IngestionPolicyAlert. # noqa: E501 + + A list of queries represent multiple queries in alert. It must contains at least one query with AlertSourceType as CONDITION. # noqa: E501 + + :return: The alert_sources of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[AlertSource] + """ + return self._alert_sources + + @alert_sources.setter + def alert_sources(self, alert_sources): + """Sets the alert_sources of this IngestionPolicyAlert. + + A list of queries represent multiple queries in alert. It must contains at least one query with AlertSourceType as CONDITION. # noqa: E501 + + :param alert_sources: The alert_sources of this IngestionPolicyAlert. # noqa: E501 + :type: list[AlertSource] + """ + + self._alert_sources = alert_sources + + @property + def alert_triage_dashboards(self): + """Gets the alert_triage_dashboards of this IngestionPolicyAlert. # noqa: E501 + + User-supplied dashboard and parameters to create dashboard links. Parameters must be specified as constants or variables. Constant parameters currently only supported # noqa: E501 + + :return: The alert_triage_dashboards of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[AlertDashboard] + """ + return self._alert_triage_dashboards + + @alert_triage_dashboards.setter + def alert_triage_dashboards(self, alert_triage_dashboards): + """Sets the alert_triage_dashboards of this IngestionPolicyAlert. + + User-supplied dashboard and parameters to create dashboard links. Parameters must be specified as constants or variables. Constant parameters currently only supported # noqa: E501 + + :param alert_triage_dashboards: The alert_triage_dashboards of this IngestionPolicyAlert. # noqa: E501 + :type: list[AlertDashboard] + """ + + self._alert_triage_dashboards = alert_triage_dashboards + + @property + def alert_type(self): + """Gets the alert_type of this IngestionPolicyAlert. # noqa: E501 + + Alert type. # noqa: E501 + + :return: The alert_type of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._alert_type + + @alert_type.setter + def alert_type(self, alert_type): + """Sets the alert_type of this IngestionPolicyAlert. + + Alert type. # noqa: E501 + + :param alert_type: The alert_type of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + allowed_values = ["CLASSIC", "THRESHOLD"] # noqa: E501 + if (self._configuration.client_side_validation and + alert_type not in allowed_values): + raise ValueError( + "Invalid value for `alert_type` ({0}), must be one of {1}" # noqa: E501 + .format(alert_type, allowed_values) + ) + + self._alert_type = alert_type + + @property + def alerts_last_day(self): + """Gets the alerts_last_day of this IngestionPolicyAlert. # noqa: E501 + + + :return: The alerts_last_day of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._alerts_last_day + + @alerts_last_day.setter + def alerts_last_day(self, alerts_last_day): + """Sets the alerts_last_day of this IngestionPolicyAlert. + + + :param alerts_last_day: The alerts_last_day of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._alerts_last_day = alerts_last_day + + @property + def alerts_last_month(self): + """Gets the alerts_last_month of this IngestionPolicyAlert. # noqa: E501 + + + :return: The alerts_last_month of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._alerts_last_month + + @alerts_last_month.setter + def alerts_last_month(self, alerts_last_month): + """Sets the alerts_last_month of this IngestionPolicyAlert. + + + :param alerts_last_month: The alerts_last_month of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._alerts_last_month = alerts_last_month + + @property + def alerts_last_week(self): + """Gets the alerts_last_week of this IngestionPolicyAlert. # noqa: E501 + + + :return: The alerts_last_week of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._alerts_last_week + + @alerts_last_week.setter + def alerts_last_week(self, alerts_last_week): + """Sets the alerts_last_week of this IngestionPolicyAlert. + + + :param alerts_last_week: The alerts_last_week of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._alerts_last_week = alerts_last_week + + @property + def application(self): + """Gets the application of this IngestionPolicyAlert. # noqa: E501 + + Lists the applications from the failingHostLabelPair of the alert. # noqa: E501 + + :return: The application of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._application + + @application.setter + def application(self, application): + """Sets the application of this IngestionPolicyAlert. + + Lists the applications from the failingHostLabelPair of the alert. # noqa: E501 + + :param application: The application of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._application = application + + @property + def chart_attributes(self): + """Gets the chart_attributes of this IngestionPolicyAlert. # noqa: E501 + + Additional chart settings for the alert (e.g. pie chart has its chart settings in this section). # noqa: E501 + + :return: The chart_attributes of this IngestionPolicyAlert. # noqa: E501 + :rtype: JsonNode + """ + return self._chart_attributes + + @chart_attributes.setter + def chart_attributes(self, chart_attributes): + """Sets the chart_attributes of this IngestionPolicyAlert. + + Additional chart settings for the alert (e.g. pie chart has its chart settings in this section). # noqa: E501 + + :param chart_attributes: The chart_attributes of this IngestionPolicyAlert. # noqa: E501 + :type: JsonNode + """ + + self._chart_attributes = chart_attributes + + @property + def chart_settings(self): + """Gets the chart_settings of this IngestionPolicyAlert. # noqa: E501 + + The old chart settings for the alert (e.g. chart type, chart range etc.). # noqa: E501 + + :return: The chart_settings of this IngestionPolicyAlert. # noqa: E501 + :rtype: ChartSettings + """ + return self._chart_settings + + @chart_settings.setter + def chart_settings(self, chart_settings): + """Sets the chart_settings of this IngestionPolicyAlert. + + The old chart settings for the alert (e.g. chart type, chart range etc.). # noqa: E501 + + :param chart_settings: The chart_settings of this IngestionPolicyAlert. # noqa: E501 + :type: ChartSettings + """ + + self._chart_settings = chart_settings + + @property + def condition(self): + """Gets the condition of this IngestionPolicyAlert. # noqa: E501 + + A Wavefront query that is evaluated at regular intervals (default 1m). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes # noqa: E501 + + :return: The condition of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._condition + + @condition.setter + def condition(self, condition): + """Sets the condition of this IngestionPolicyAlert. + + A Wavefront query that is evaluated at regular intervals (default 1m). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes # noqa: E501 + + :param condition: The condition of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and condition is None: + raise ValueError("Invalid value for `condition`, must not be `None`") # noqa: E501 + + self._condition = condition + + @property + def condition_percentages(self): + """Gets the condition_percentages of this IngestionPolicyAlert. # noqa: E501 + + Multi - alert conditions. # noqa: E501 + + :return: The condition_percentages of this IngestionPolicyAlert. # noqa: E501 + :rtype: dict(str, int) + """ + return self._condition_percentages + + @condition_percentages.setter + def condition_percentages(self, condition_percentages): + """Sets the condition_percentages of this IngestionPolicyAlert. + + Multi - alert conditions. # noqa: E501 + + :param condition_percentages: The condition_percentages of this IngestionPolicyAlert. # noqa: E501 + :type: dict(str, int) + """ + + self._condition_percentages = condition_percentages + + @property + def condition_qb_enabled(self): + """Gets the condition_qb_enabled of this IngestionPolicyAlert. # noqa: E501 + + Whether the condition query was created using the Query Builder. Default false # noqa: E501 + + :return: The condition_qb_enabled of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._condition_qb_enabled + + @condition_qb_enabled.setter + def condition_qb_enabled(self, condition_qb_enabled): + """Sets the condition_qb_enabled of this IngestionPolicyAlert. + + Whether the condition query was created using the Query Builder. Default false # noqa: E501 + + :param condition_qb_enabled: The condition_qb_enabled of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._condition_qb_enabled = condition_qb_enabled + + @property + def condition_qb_serialization(self): + """Gets the condition_qb_serialization of this IngestionPolicyAlert. # noqa: E501 + + The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true # noqa: E501 + + :return: The condition_qb_serialization of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._condition_qb_serialization + + @condition_qb_serialization.setter + def condition_qb_serialization(self, condition_qb_serialization): + """Sets the condition_qb_serialization of this IngestionPolicyAlert. + + The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true # noqa: E501 + + :param condition_qb_serialization: The condition_qb_serialization of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._condition_qb_serialization = condition_qb_serialization + + @property + def condition_query_type(self): + """Gets the condition_query_type of this IngestionPolicyAlert. # noqa: E501 + + + :return: The condition_query_type of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._condition_query_type + + @condition_query_type.setter + def condition_query_type(self, condition_query_type): + """Sets the condition_query_type of this IngestionPolicyAlert. + + + :param condition_query_type: The condition_query_type of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + allowed_values = ["WQL", "PROMQL", "HYBRID"] # noqa: E501 + if (self._configuration.client_side_validation and + condition_query_type not in allowed_values): + raise ValueError( + "Invalid value for `condition_query_type` ({0}), must be one of {1}" # noqa: E501 + .format(condition_query_type, allowed_values) + ) + + self._condition_query_type = condition_query_type + + @property + def conditions(self): + """Gets the conditions of this IngestionPolicyAlert. # noqa: E501 + + Multi - alert conditions. # noqa: E501 + + :return: The conditions of this IngestionPolicyAlert. # noqa: E501 + :rtype: dict(str, str) + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this IngestionPolicyAlert. + + Multi - alert conditions. # noqa: E501 + + :param conditions: The conditions of this IngestionPolicyAlert. # noqa: E501 + :type: dict(str, str) + """ + + self._conditions = conditions + + @property + def conditions_threshold_operator(self): + """Gets the conditions_threshold_operator of this IngestionPolicyAlert. # noqa: E501 + + + :return: The conditions_threshold_operator of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._conditions_threshold_operator + + @conditions_threshold_operator.setter + def conditions_threshold_operator(self, conditions_threshold_operator): + """Sets the conditions_threshold_operator of this IngestionPolicyAlert. + + + :param conditions_threshold_operator: The conditions_threshold_operator of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and conditions_threshold_operator is None: + raise ValueError("Invalid value for `conditions_threshold_operator`, must not be `None`") # noqa: E501 + + self._conditions_threshold_operator = conditions_threshold_operator + + @property + def create_user_id(self): + """Gets the create_user_id of this IngestionPolicyAlert. # noqa: E501 + + + :return: The create_user_id of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._create_user_id + + @create_user_id.setter + def create_user_id(self, create_user_id): + """Sets the create_user_id of this IngestionPolicyAlert. + + + :param create_user_id: The create_user_id of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._create_user_id = create_user_id + + @property + def created(self): + """Gets the created of this IngestionPolicyAlert. # noqa: E501 + + When this alert was created, in epoch millis # noqa: E501 + + :return: The created of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this IngestionPolicyAlert. + + When this alert was created, in epoch millis # noqa: E501 + + :param created: The created of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._created = created + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this IngestionPolicyAlert. # noqa: E501 + + + :return: The created_epoch_millis of this IngestionPolicyAlert. # 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 IngestionPolicyAlert. + + + :param created_epoch_millis: The created_epoch_millis of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this IngestionPolicyAlert. # noqa: E501 + + + :return: The creator_id of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this IngestionPolicyAlert. + + + :param creator_id: The creator_id of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def deleted(self): + """Gets the deleted of this IngestionPolicyAlert. # noqa: E501 + + + :return: The deleted of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this IngestionPolicyAlert. + + + :param deleted: The deleted of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def display_expression(self): + """Gets the display_expression of this IngestionPolicyAlert. # noqa: E501 + + A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted # noqa: E501 + + :return: The display_expression of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._display_expression + + @display_expression.setter + def display_expression(self, display_expression): + """Sets the display_expression of this IngestionPolicyAlert. + + A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted # noqa: E501 + + :param display_expression: The display_expression of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._display_expression = display_expression + + @property + def display_expression_qb_enabled(self): + """Gets the display_expression_qb_enabled of this IngestionPolicyAlert. # noqa: E501 + + Whether the display expression query was created using the Query Builder. Default false # noqa: E501 + + :return: The display_expression_qb_enabled of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._display_expression_qb_enabled + + @display_expression_qb_enabled.setter + def display_expression_qb_enabled(self, display_expression_qb_enabled): + """Sets the display_expression_qb_enabled of this IngestionPolicyAlert. + + Whether the display expression query was created using the Query Builder. Default false # noqa: E501 + + :param display_expression_qb_enabled: The display_expression_qb_enabled of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._display_expression_qb_enabled = display_expression_qb_enabled + + @property + def display_expression_qb_serialization(self): + """Gets the display_expression_qb_serialization of this IngestionPolicyAlert. # noqa: E501 + + The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true # noqa: E501 + + :return: The display_expression_qb_serialization of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._display_expression_qb_serialization + + @display_expression_qb_serialization.setter + def display_expression_qb_serialization(self, display_expression_qb_serialization): + """Sets the display_expression_qb_serialization of this IngestionPolicyAlert. + + The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true # noqa: E501 + + :param display_expression_qb_serialization: The display_expression_qb_serialization of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._display_expression_qb_serialization = display_expression_qb_serialization + + @property + def display_expression_query_type(self): + """Gets the display_expression_query_type of this IngestionPolicyAlert. # noqa: E501 + + + :return: The display_expression_query_type of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._display_expression_query_type + + @display_expression_query_type.setter + def display_expression_query_type(self, display_expression_query_type): + """Sets the display_expression_query_type of this IngestionPolicyAlert. + + + :param display_expression_query_type: The display_expression_query_type of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + allowed_values = ["WQL", "PROMQL", "HYBRID"] # noqa: E501 + if (self._configuration.client_side_validation and + display_expression_query_type not in allowed_values): + raise ValueError( + "Invalid value for `display_expression_query_type` ({0}), must be one of {1}" # noqa: E501 + .format(display_expression_query_type, allowed_values) + ) + + self._display_expression_query_type = display_expression_query_type + + @property + def enable_pd_incident_by_series(self): + """Gets the enable_pd_incident_by_series of this IngestionPolicyAlert. # noqa: E501 + + + :return: The enable_pd_incident_by_series of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._enable_pd_incident_by_series + + @enable_pd_incident_by_series.setter + def enable_pd_incident_by_series(self, enable_pd_incident_by_series): + """Sets the enable_pd_incident_by_series of this IngestionPolicyAlert. + + + :param enable_pd_incident_by_series: The enable_pd_incident_by_series of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._enable_pd_incident_by_series = enable_pd_incident_by_series + + @property + def evaluate_realtime_data(self): + """Gets the evaluate_realtime_data of this IngestionPolicyAlert. # noqa: E501 + + Whether to alert on the real-time ingestion stream (may be noisy due to late data) # noqa: E501 + + :return: The evaluate_realtime_data of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._evaluate_realtime_data + + @evaluate_realtime_data.setter + def evaluate_realtime_data(self, evaluate_realtime_data): + """Sets the evaluate_realtime_data of this IngestionPolicyAlert. + + Whether to alert on the real-time ingestion stream (may be noisy due to late data) # noqa: E501 + + :param evaluate_realtime_data: The evaluate_realtime_data of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._evaluate_realtime_data = evaluate_realtime_data + + @property + def event(self): + """Gets the event of this IngestionPolicyAlert. # noqa: E501 + + + :return: The event of this IngestionPolicyAlert. # noqa: E501 + :rtype: Event + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this IngestionPolicyAlert. + + + :param event: The event of this IngestionPolicyAlert. # noqa: E501 + :type: Event + """ + + self._event = event + + @property + def failing_host_label_pair_links(self): + """Gets the failing_host_label_pair_links of this IngestionPolicyAlert. # noqa: E501 + + List of links to tracing applications that caused a failing series # noqa: E501 + + :return: The failing_host_label_pair_links of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._failing_host_label_pair_links + + @failing_host_label_pair_links.setter + def failing_host_label_pair_links(self, failing_host_label_pair_links): + """Sets the failing_host_label_pair_links of this IngestionPolicyAlert. + + List of links to tracing applications that caused a failing series # noqa: E501 + + :param failing_host_label_pair_links: The failing_host_label_pair_links of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._failing_host_label_pair_links = failing_host_label_pair_links + + @property + def failing_host_label_pairs(self): + """Gets the failing_host_label_pairs of this IngestionPolicyAlert. # noqa: E501 + + Failing host/metric pairs # noqa: E501 + + :return: The failing_host_label_pairs of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[SourceLabelPair] + """ + return self._failing_host_label_pairs + + @failing_host_label_pairs.setter + def failing_host_label_pairs(self, failing_host_label_pairs): + """Sets the failing_host_label_pairs of this IngestionPolicyAlert. + + Failing host/metric pairs # noqa: E501 + + :param failing_host_label_pairs: The failing_host_label_pairs of this IngestionPolicyAlert. # noqa: E501 + :type: list[SourceLabelPair] + """ + + self._failing_host_label_pairs = failing_host_label_pairs + + @property + def hidden(self): + """Gets the hidden of this IngestionPolicyAlert. # noqa: E501 + + + :return: The hidden of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._hidden + + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this IngestionPolicyAlert. + + + :param hidden: The hidden of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._hidden = hidden + + @property + def hosts_used(self): + """Gets the hosts_used of this IngestionPolicyAlert. # noqa: E501 + + Number of hosts checked by the alert condition # noqa: E501 + + :return: The hosts_used of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._hosts_used + + @hosts_used.setter + def hosts_used(self, hosts_used): + """Sets the hosts_used of this IngestionPolicyAlert. + + Number of hosts checked by the alert condition # noqa: E501 + + :param hosts_used: The hosts_used of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._hosts_used = hosts_used + + @property + def id(self): + """Gets the id of this IngestionPolicyAlert. # noqa: E501 + + + :return: The id of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this IngestionPolicyAlert. + + + :param id: The id of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def in_maintenance_host_label_pairs(self): + """Gets the in_maintenance_host_label_pairs of this IngestionPolicyAlert. # noqa: E501 + + Lists the sources that will not be checked for this alert, due to matching a maintenance window # noqa: E501 + + :return: The in_maintenance_host_label_pairs of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[SourceLabelPair] + """ + return self._in_maintenance_host_label_pairs + + @in_maintenance_host_label_pairs.setter + def in_maintenance_host_label_pairs(self, in_maintenance_host_label_pairs): + """Sets the in_maintenance_host_label_pairs of this IngestionPolicyAlert. + + Lists the sources that will not be checked for this alert, due to matching a maintenance window # noqa: E501 + + :param in_maintenance_host_label_pairs: The in_maintenance_host_label_pairs of this IngestionPolicyAlert. # noqa: E501 + :type: list[SourceLabelPair] + """ + + self._in_maintenance_host_label_pairs = in_maintenance_host_label_pairs + + @property + def in_trash(self): + """Gets the in_trash of this IngestionPolicyAlert. # noqa: E501 + + + :return: The in_trash of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._in_trash + + @in_trash.setter + def in_trash(self, in_trash): + """Sets the in_trash of this IngestionPolicyAlert. + + + :param in_trash: The in_trash of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._in_trash = in_trash + + @property + def include_obsolete_metrics(self): + """Gets the include_obsolete_metrics of this IngestionPolicyAlert. # noqa: E501 + + Whether to include obsolete metrics in alert query # noqa: E501 + + :return: The include_obsolete_metrics of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._include_obsolete_metrics + + @include_obsolete_metrics.setter + def include_obsolete_metrics(self, include_obsolete_metrics): + """Sets the include_obsolete_metrics of this IngestionPolicyAlert. + + Whether to include obsolete metrics in alert query # noqa: E501 + + :param include_obsolete_metrics: The include_obsolete_metrics of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._include_obsolete_metrics = include_obsolete_metrics + + @property + def ingestion_policy_id(self): + """Gets the ingestion_policy_id of this IngestionPolicyAlert. # noqa: E501 + + Get the ingestion policy Id associated with ingestion policy alert. # noqa: E501 + + :return: The ingestion_policy_id of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._ingestion_policy_id + + @ingestion_policy_id.setter + def ingestion_policy_id(self, ingestion_policy_id): + """Sets the ingestion_policy_id of this IngestionPolicyAlert. + + Get the ingestion policy Id associated with ingestion policy alert. # noqa: E501 + + :param ingestion_policy_id: The ingestion_policy_id of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._ingestion_policy_id = ingestion_policy_id + + @property + def last_error_message(self): + """Gets the last_error_message of this IngestionPolicyAlert. # noqa: E501 + + The last error encountered when running this alert's condition query # noqa: E501 + + :return: The last_error_message of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._last_error_message + + @last_error_message.setter + def last_error_message(self, last_error_message): + """Sets the last_error_message of this IngestionPolicyAlert. + + The last error encountered when running this alert's condition query # noqa: E501 + + :param last_error_message: The last_error_message of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._last_error_message = last_error_message + + @property + def last_event_time(self): + """Gets the last_event_time of this IngestionPolicyAlert. # noqa: E501 + + Start time (in epoch millis) of the last event associated with this alert. # noqa: E501 + + :return: The last_event_time of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._last_event_time + + @last_event_time.setter + def last_event_time(self, last_event_time): + """Sets the last_event_time of this IngestionPolicyAlert. + + Start time (in epoch millis) of the last event associated with this alert. # noqa: E501 + + :param last_event_time: The last_event_time of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._last_event_time = last_event_time + + @property + def last_failed_time(self): + """Gets the last_failed_time of this IngestionPolicyAlert. # noqa: E501 + + The time of the last error encountered when running this alert's condition query, in epoch millis # noqa: E501 + + :return: The last_failed_time of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._last_failed_time + + @last_failed_time.setter + def last_failed_time(self, last_failed_time): + """Sets the last_failed_time of this IngestionPolicyAlert. + + The time of the last error encountered when running this alert's condition query, in epoch millis # noqa: E501 + + :param last_failed_time: The last_failed_time of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._last_failed_time = last_failed_time + + @property + def last_notification_millis(self): + """Gets the last_notification_millis of this IngestionPolicyAlert. # noqa: E501 + + When this alert last caused a notification, in epoch millis # noqa: E501 + + :return: The last_notification_millis of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._last_notification_millis + + @last_notification_millis.setter + def last_notification_millis(self, last_notification_millis): + """Sets the last_notification_millis of this IngestionPolicyAlert. + + When this alert last caused a notification, in epoch millis # noqa: E501 + + :param last_notification_millis: The last_notification_millis of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._last_notification_millis = last_notification_millis + + @property + def last_processed_millis(self): + """Gets the last_processed_millis of this IngestionPolicyAlert. # noqa: E501 + + The time when this alert was last checked, in epoch millis # noqa: E501 + + :return: The last_processed_millis of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._last_processed_millis + + @last_processed_millis.setter + def last_processed_millis(self, last_processed_millis): + """Sets the last_processed_millis of this IngestionPolicyAlert. + + The time when this alert was last checked, in epoch millis # noqa: E501 + + :param last_processed_millis: The last_processed_millis of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._last_processed_millis = last_processed_millis + + @property + def last_query_time(self): + """Gets the last_query_time of this IngestionPolicyAlert. # noqa: E501 + + Last query time of the alert, averaged on hourly basis # noqa: E501 + + :return: The last_query_time of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._last_query_time + + @last_query_time.setter + def last_query_time(self, last_query_time): + """Sets the last_query_time of this IngestionPolicyAlert. + + Last query time of the alert, averaged on hourly basis # noqa: E501 + + :param last_query_time: The last_query_time of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._last_query_time = last_query_time + + @property + def metrics_used(self): + """Gets the metrics_used of this IngestionPolicyAlert. # noqa: E501 + + Number of metrics checked by the alert condition # noqa: E501 + + :return: The metrics_used of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._metrics_used + + @metrics_used.setter + def metrics_used(self, metrics_used): + """Sets the metrics_used of this IngestionPolicyAlert. + + Number of metrics checked by the alert condition # noqa: E501 + + :param metrics_used: The metrics_used of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._metrics_used = metrics_used + + @property + def minutes(self): + """Gets the minutes of this IngestionPolicyAlert. # noqa: E501 + + The number of consecutive minutes that a series matching the condition query must evaluate to \"true\" (non-zero value) before the alert fires # noqa: E501 + + :return: The minutes of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._minutes + + @minutes.setter + def minutes(self, minutes): + """Sets the minutes of this IngestionPolicyAlert. + + The number of consecutive minutes that a series matching the condition query must evaluate to \"true\" (non-zero value) before the alert fires # noqa: E501 + + :param minutes: The minutes of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and minutes is None: + raise ValueError("Invalid value for `minutes`, must not be `None`") # noqa: E501 + + self._minutes = minutes + + @property + def modify_acl_access(self): + """Gets the modify_acl_access of this IngestionPolicyAlert. # noqa: E501 + + Whether the user has modify ACL access to the alert. # noqa: E501 + + :return: The modify_acl_access of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._modify_acl_access + + @modify_acl_access.setter + def modify_acl_access(self, modify_acl_access): + """Sets the modify_acl_access of this IngestionPolicyAlert. + + Whether the user has modify ACL access to the alert. # noqa: E501 + + :param modify_acl_access: The modify_acl_access of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._modify_acl_access = modify_acl_access + + @property + def name(self): + """Gets the name of this IngestionPolicyAlert. # noqa: E501 + + + :return: The name of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IngestionPolicyAlert. + + + :param name: The name of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def no_data_event(self): + """Gets the no_data_event of this IngestionPolicyAlert. # noqa: E501 + + No data event related to the alert # noqa: E501 + + :return: The no_data_event of this IngestionPolicyAlert. # noqa: E501 + :rtype: Event + """ + return self._no_data_event + + @no_data_event.setter + def no_data_event(self, no_data_event): + """Sets the no_data_event of this IngestionPolicyAlert. + + No data event related to the alert # noqa: E501 + + :param no_data_event: The no_data_event of this IngestionPolicyAlert. # noqa: E501 + :type: Event + """ + + self._no_data_event = no_data_event + + @property + def notificants(self): + """Gets the notificants of this IngestionPolicyAlert. # noqa: E501 + + A derived field listing the webhook ids used by this alert # noqa: E501 + + :return: The notificants of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._notificants + + @notificants.setter + def notificants(self, notificants): + """Sets the notificants of this IngestionPolicyAlert. + + A derived field listing the webhook ids used by this alert # noqa: E501 + + :param notificants: The notificants of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._notificants = notificants + + @property + def notification_resend_frequency_minutes(self): + """Gets the notification_resend_frequency_minutes of this IngestionPolicyAlert. # noqa: E501 + + How often to re-trigger a continually failing alert. If absent or <= 0, no retriggering occurs # noqa: E501 + + :return: The notification_resend_frequency_minutes of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._notification_resend_frequency_minutes + + @notification_resend_frequency_minutes.setter + def notification_resend_frequency_minutes(self, notification_resend_frequency_minutes): + """Sets the notification_resend_frequency_minutes of this IngestionPolicyAlert. + + How often to re-trigger a continually failing alert. If absent or <= 0, no retriggering occurs # noqa: E501 + + :param notification_resend_frequency_minutes: The notification_resend_frequency_minutes of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._notification_resend_frequency_minutes = notification_resend_frequency_minutes + + @property + def num_points_in_failure_frame(self): + """Gets the num_points_in_failure_frame of this IngestionPolicyAlert. # noqa: E501 + + Number of points scanned in alert query time frame. # noqa: E501 + + :return: The num_points_in_failure_frame of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._num_points_in_failure_frame + + @num_points_in_failure_frame.setter + def num_points_in_failure_frame(self, num_points_in_failure_frame): + """Sets the num_points_in_failure_frame of this IngestionPolicyAlert. + + Number of points scanned in alert query time frame. # noqa: E501 + + :param num_points_in_failure_frame: The num_points_in_failure_frame of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._num_points_in_failure_frame = num_points_in_failure_frame + + @property + def orphan(self): + """Gets the orphan of this IngestionPolicyAlert. # noqa: E501 + + + :return: The orphan of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._orphan + + @orphan.setter + def orphan(self, orphan): + """Sets the orphan of this IngestionPolicyAlert. + + + :param orphan: The orphan of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._orphan = orphan + + @property + def points_scanned_at_last_query(self): + """Gets the points_scanned_at_last_query of this IngestionPolicyAlert. # noqa: E501 + + A derived field recording the number of data points scanned when the system last computed this alert's condition # noqa: E501 + + :return: The points_scanned_at_last_query of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._points_scanned_at_last_query + + @points_scanned_at_last_query.setter + def points_scanned_at_last_query(self, points_scanned_at_last_query): + """Sets the points_scanned_at_last_query of this IngestionPolicyAlert. + + A derived field recording the number of data points scanned when the system last computed this alert's condition # noqa: E501 + + :param points_scanned_at_last_query: The points_scanned_at_last_query of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._points_scanned_at_last_query = points_scanned_at_last_query + + @property + def prefiring_host_label_pairs(self): + """Gets the prefiring_host_label_pairs of this IngestionPolicyAlert. # noqa: E501 + + Lists the series that are starting to fail, defined as failing for greater than 50% of the checks in the window determined by the \"minutes\" parameter # noqa: E501 + + :return: The prefiring_host_label_pairs of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[SourceLabelPair] + """ + return self._prefiring_host_label_pairs + + @prefiring_host_label_pairs.setter + def prefiring_host_label_pairs(self, prefiring_host_label_pairs): + """Sets the prefiring_host_label_pairs of this IngestionPolicyAlert. + + Lists the series that are starting to fail, defined as failing for greater than 50% of the checks in the window determined by the \"minutes\" parameter # noqa: E501 + + :param prefiring_host_label_pairs: The prefiring_host_label_pairs of this IngestionPolicyAlert. # noqa: E501 + :type: list[SourceLabelPair] + """ + + self._prefiring_host_label_pairs = prefiring_host_label_pairs + + @property + def process_rate_minutes(self): + """Gets the process_rate_minutes of this IngestionPolicyAlert. # noqa: E501 + + The interval between checks for this alert, in minutes. Defaults to 5 minutes # noqa: E501 + + :return: The process_rate_minutes of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._process_rate_minutes + + @process_rate_minutes.setter + def process_rate_minutes(self, process_rate_minutes): + """Sets the process_rate_minutes of this IngestionPolicyAlert. + + The interval between checks for this alert, in minutes. Defaults to 5 minutes # noqa: E501 + + :param process_rate_minutes: The process_rate_minutes of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._process_rate_minutes = process_rate_minutes + + @property + def query_failing(self): + """Gets the query_failing of this IngestionPolicyAlert. # noqa: E501 + + Whether there was an exception when the alert condition last ran # noqa: E501 + + :return: The query_failing of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._query_failing + + @query_failing.setter + def query_failing(self, query_failing): + """Sets the query_failing of this IngestionPolicyAlert. + + Whether there was an exception when the alert condition last ran # noqa: E501 + + :param query_failing: The query_failing of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._query_failing = query_failing + + @property + def query_syntax_error(self): + """Gets the query_syntax_error of this IngestionPolicyAlert. # noqa: E501 + + Whether there was an query syntax exception when the alert condition last ran # noqa: E501 + + :return: The query_syntax_error of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._query_syntax_error + + @query_syntax_error.setter + def query_syntax_error(self, query_syntax_error): + """Sets the query_syntax_error of this IngestionPolicyAlert. + + Whether there was an query syntax exception when the alert condition last ran # noqa: E501 + + :param query_syntax_error: The query_syntax_error of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._query_syntax_error = query_syntax_error + + @property + def resolve_after_minutes(self): + """Gets the resolve_after_minutes of this IngestionPolicyAlert. # noqa: E501 + + The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" # noqa: E501 + + :return: The resolve_after_minutes of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._resolve_after_minutes + + @resolve_after_minutes.setter + def resolve_after_minutes(self, resolve_after_minutes): + """Sets the resolve_after_minutes of this IngestionPolicyAlert. + + The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" # noqa: E501 + + :param resolve_after_minutes: The resolve_after_minutes of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._resolve_after_minutes = resolve_after_minutes + + @property + def runbook_links(self): + """Gets the runbook_links of this IngestionPolicyAlert. # noqa: E501 + + User-supplied runbook links for this alert. Useful for linking wiki page or documentation, etc to refer to when alert is triggered # noqa: E501 + + :return: The runbook_links of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._runbook_links + + @runbook_links.setter + def runbook_links(self, runbook_links): + """Sets the runbook_links of this IngestionPolicyAlert. + + User-supplied runbook links for this alert. Useful for linking wiki page or documentation, etc to refer to when alert is triggered # noqa: E501 + + :param runbook_links: The runbook_links of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._runbook_links = runbook_links + + @property + def secure_metric_details(self): + """Gets the secure_metric_details of this IngestionPolicyAlert. # noqa: E501 + + Whether to secure sensitive metric details and alert images in alert notifications, to not break Metrics Security. # noqa: E501 + + :return: The secure_metric_details of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._secure_metric_details + + @secure_metric_details.setter + def secure_metric_details(self, secure_metric_details): + """Sets the secure_metric_details of this IngestionPolicyAlert. + + Whether to secure sensitive metric details and alert images in alert notifications, to not break Metrics Security. # noqa: E501 + + :param secure_metric_details: The secure_metric_details of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._secure_metric_details = secure_metric_details + + @property + def service(self): + """Gets the service of this IngestionPolicyAlert. # noqa: E501 + + Lists the services from the failingHostLabelPair of the alert. # noqa: E501 + + :return: The service of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._service + + @service.setter + def service(self, service): + """Sets the service of this IngestionPolicyAlert. + + Lists the services from the failingHostLabelPair of the alert. # noqa: E501 + + :param service: The service of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._service = service + + @property + def severity(self): + """Gets the severity of this IngestionPolicyAlert. # noqa: E501 + + Severity of the alert # noqa: E501 + + :return: The severity of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this IngestionPolicyAlert. + + Severity of the alert # noqa: E501 + + :param severity: The severity of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + allowed_values = ["INFO", "SMOKE", "WARN", "SEVERE"] # noqa: E501 + if (self._configuration.client_side_validation and + severity not in allowed_values): + raise ValueError( + "Invalid value for `severity` ({0}), must be one of {1}" # noqa: E501 + .format(severity, allowed_values) + ) + + self._severity = severity + + @property + def severity_list(self): + """Gets the severity_list of this IngestionPolicyAlert. # noqa: E501 + + Alert severity list for multi-threshold type. # noqa: E501 + + :return: The severity_list of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._severity_list + + @severity_list.setter + def severity_list(self, severity_list): + """Sets the severity_list of this IngestionPolicyAlert. + + Alert severity list for multi-threshold type. # noqa: E501 + + :param severity_list: The severity_list of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + allowed_values = ["INFO", "SMOKE", "WARN", "SEVERE"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(severity_list).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `severity_list` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(severity_list) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._severity_list = severity_list + + @property + def snoozed(self): + """Gets the snoozed of this IngestionPolicyAlert. # noqa: E501 + + The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely # noqa: E501 + + :return: The snoozed of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._snoozed + + @snoozed.setter + def snoozed(self, snoozed): + """Sets the snoozed of this IngestionPolicyAlert. + + The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely # noqa: E501 + + :param snoozed: The snoozed of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._snoozed = snoozed + + @property + def sort_attr(self): + """Gets the sort_attr of this IngestionPolicyAlert. # noqa: E501 + + Attribute used for default alert sort that is derived from state and severity # noqa: E501 + + :return: The sort_attr of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._sort_attr + + @sort_attr.setter + def sort_attr(self, sort_attr): + """Sets the sort_attr of this IngestionPolicyAlert. + + Attribute used for default alert sort that is derived from state and severity # noqa: E501 + + :param sort_attr: The sort_attr of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._sort_attr = sort_attr + + @property + def status(self): + """Gets the status of this IngestionPolicyAlert. # noqa: E501 + + Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA # noqa: E501 + + :return: The status of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this IngestionPolicyAlert. + + Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA # noqa: E501 + + :param status: The status of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._status = status + + @property + def system_alert_version(self): + """Gets the system_alert_version of this IngestionPolicyAlert. # noqa: E501 + + If this is a system alert, the version of it # noqa: E501 + + :return: The system_alert_version of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._system_alert_version + + @system_alert_version.setter + def system_alert_version(self, system_alert_version): + """Sets the system_alert_version of this IngestionPolicyAlert. + + If this is a system alert, the version of it # noqa: E501 + + :param system_alert_version: The system_alert_version of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._system_alert_version = system_alert_version + + @property + def system_owned(self): + """Gets the system_owned of this IngestionPolicyAlert. # noqa: E501 + + Whether this alert is system-owned and not writeable # noqa: E501 + + :return: The system_owned of this IngestionPolicyAlert. # noqa: E501 + :rtype: bool + """ + return self._system_owned + + @system_owned.setter + def system_owned(self, system_owned): + """Sets the system_owned of this IngestionPolicyAlert. + + Whether this alert is system-owned and not writeable # noqa: E501 + + :param system_owned: The system_owned of this IngestionPolicyAlert. # noqa: E501 + :type: bool + """ + + self._system_owned = system_owned + + @property + def tagpaths(self): + """Gets the tagpaths of this IngestionPolicyAlert. # noqa: E501 + + + :return: The tagpaths of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._tagpaths + + @tagpaths.setter + def tagpaths(self, tagpaths): + """Sets the tagpaths of this IngestionPolicyAlert. + + + :param tagpaths: The tagpaths of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._tagpaths = tagpaths + + @property + def tags(self): + """Gets the tags of this IngestionPolicyAlert. # noqa: E501 + + + :return: The tags of this IngestionPolicyAlert. # noqa: E501 + :rtype: WFTags + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this IngestionPolicyAlert. + + + :param tags: The tags of this IngestionPolicyAlert. # noqa: E501 + :type: WFTags + """ + + self._tags = tags + + @property + def target(self): + """Gets the target of this IngestionPolicyAlert. # noqa: E501 + + The email address or integration endpoint (such as PagerDuty or web hook) to notify when the alert status changes. Comma-separated list of targets. Multiple target types can be in the list. Alert target format: ({email}|pd:{pd_key}|target:{alert target ID}). You cannot update this value. # noqa: E501 + + :return: The target of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this IngestionPolicyAlert. + + The email address or integration endpoint (such as PagerDuty or web hook) to notify when the alert status changes. Comma-separated list of targets. Multiple target types can be in the list. Alert target format: ({email}|pd:{pd_key}|target:{alert target ID}). You cannot update this value. # noqa: E501 + + :param target: The target of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._target = target + + @property + def target_endpoints(self): + """Gets the target_endpoints of this IngestionPolicyAlert. # noqa: E501 + + + :return: The target_endpoints of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[str] + """ + return self._target_endpoints + + @target_endpoints.setter + def target_endpoints(self, target_endpoints): + """Sets the target_endpoints of this IngestionPolicyAlert. + + + :param target_endpoints: The target_endpoints of this IngestionPolicyAlert. # noqa: E501 + :type: list[str] + """ + + self._target_endpoints = target_endpoints + + @property + def target_info(self): + """Gets the target_info of this IngestionPolicyAlert. # noqa: E501 + + List of alert targets display information that includes name, id and type. # noqa: E501 + + :return: The target_info of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[TargetInfo] + """ + return self._target_info + + @target_info.setter + def target_info(self, target_info): + """Sets the target_info of this IngestionPolicyAlert. + + List of alert targets display information that includes name, id and type. # noqa: E501 + + :param target_info: The target_info of this IngestionPolicyAlert. # noqa: E501 + :type: list[TargetInfo] + """ + + self._target_info = target_info + + @property + def targets(self): + """Gets the targets of this IngestionPolicyAlert. # noqa: E501 + + Targets for severity. # noqa: E501 + + :return: The targets of this IngestionPolicyAlert. # noqa: E501 + :rtype: dict(str, str) + """ + return self._targets + + @targets.setter + def targets(self, targets): + """Sets the targets of this IngestionPolicyAlert. + + Targets for severity. # noqa: E501 + + :param targets: The targets of this IngestionPolicyAlert. # noqa: E501 + :type: dict(str, str) + """ + + self._targets = targets + + @property + def triage_dashboards(self): + """Gets the triage_dashboards of this IngestionPolicyAlert. # noqa: E501 + + Deprecated for alertTriageDashboards # noqa: E501 + + :return: The triage_dashboards of this IngestionPolicyAlert. # noqa: E501 + :rtype: list[TriageDashboard] + """ + return self._triage_dashboards + + @triage_dashboards.setter + def triage_dashboards(self, triage_dashboards): + """Sets the triage_dashboards of this IngestionPolicyAlert. + + Deprecated for alertTriageDashboards # noqa: E501 + + :param triage_dashboards: The triage_dashboards of this IngestionPolicyAlert. # noqa: E501 + :type: list[TriageDashboard] + """ + + self._triage_dashboards = triage_dashboards + + @property + def update_user_id(self): + """Gets the update_user_id of this IngestionPolicyAlert. # noqa: E501 + + The user that last updated this alert # noqa: E501 + + :return: The update_user_id of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._update_user_id + + @update_user_id.setter + def update_user_id(self, update_user_id): + """Sets the update_user_id of this IngestionPolicyAlert. + + The user that last updated this alert # noqa: E501 + + :param update_user_id: The update_user_id of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._update_user_id = update_user_id + + @property + def updated(self): + """Gets the updated of this IngestionPolicyAlert. # noqa: E501 + + When the alert was last updated, in epoch millis # noqa: E501 + + :return: The updated of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._updated + + @updated.setter + def updated(self, updated): + """Sets the updated of this IngestionPolicyAlert. + + When the alert was last updated, in epoch millis # noqa: E501 + + :param updated: The updated of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._updated = updated + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this IngestionPolicyAlert. # noqa: E501 + + + :return: The updated_epoch_millis of this IngestionPolicyAlert. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this IngestionPolicyAlert. + + + :param updated_epoch_millis: The updated_epoch_millis of this IngestionPolicyAlert. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this IngestionPolicyAlert. # noqa: E501 + + + :return: The updater_id of this IngestionPolicyAlert. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this IngestionPolicyAlert. + + + :param updater_id: The updater_id of this IngestionPolicyAlert. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(IngestionPolicyAlert, 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, IngestionPolicyAlert): + 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, IngestionPolicyAlert): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/ingestion_policy_metadata.py b/wavefront_api_client/models/ingestion_policy_metadata.py new file mode 100644 index 00000000..e798ed9c --- /dev/null +++ b/wavefront_api_client/models/ingestion_policy_metadata.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 IngestionPolicyMetadata(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 = { + 'customer': 'str', + 'ingestion_policy_id': 'str', + 'usage_in_billing_period': 'int' + } + + attribute_map = { + 'customer': 'customer', + 'ingestion_policy_id': 'ingestionPolicyId', + 'usage_in_billing_period': 'usageInBillingPeriod' + } + + def __init__(self, customer=None, ingestion_policy_id=None, usage_in_billing_period=None, _configuration=None): # noqa: E501 + """IngestionPolicyMetadata - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._customer = None + self._ingestion_policy_id = None + self._usage_in_billing_period = None + self.discriminator = None + + if customer is not None: + self.customer = customer + if ingestion_policy_id is not None: + self.ingestion_policy_id = ingestion_policy_id + if usage_in_billing_period is not None: + self.usage_in_billing_period = usage_in_billing_period + + @property + def customer(self): + """Gets the customer of this IngestionPolicyMetadata. # noqa: E501 + + ID of the customer to which the ingestion policy metadata belongs # noqa: E501 + + :return: The customer of this IngestionPolicyMetadata. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this IngestionPolicyMetadata. + + ID of the customer to which the ingestion policy metadata belongs # noqa: E501 + + :param customer: The customer of this IngestionPolicyMetadata. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def ingestion_policy_id(self): + """Gets the ingestion_policy_id of this IngestionPolicyMetadata. # noqa: E501 + + The unique ID for the ingestion policy to which the metadata belongs # noqa: E501 + + :return: The ingestion_policy_id of this IngestionPolicyMetadata. # noqa: E501 + :rtype: str + """ + return self._ingestion_policy_id + + @ingestion_policy_id.setter + def ingestion_policy_id(self, ingestion_policy_id): + """Sets the ingestion_policy_id of this IngestionPolicyMetadata. + + The unique ID for the ingestion policy to which the metadata belongs # noqa: E501 + + :param ingestion_policy_id: The ingestion_policy_id of this IngestionPolicyMetadata. # noqa: E501 + :type: str + """ + + self._ingestion_policy_id = ingestion_policy_id + + @property + def usage_in_billing_period(self): + """Gets the usage_in_billing_period of this IngestionPolicyMetadata. # noqa: E501 + + ingestion policy usage in billing period # noqa: E501 + + :return: The usage_in_billing_period of this IngestionPolicyMetadata. # noqa: E501 + :rtype: int + """ + return self._usage_in_billing_period + + @usage_in_billing_period.setter + def usage_in_billing_period(self, usage_in_billing_period): + """Sets the usage_in_billing_period of this IngestionPolicyMetadata. + + ingestion policy usage in billing period # noqa: E501 + + :param usage_in_billing_period: The usage_in_billing_period of this IngestionPolicyMetadata. # noqa: E501 + :type: int + """ + + self._usage_in_billing_period = usage_in_billing_period + + 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(IngestionPolicyMetadata, 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, IngestionPolicyMetadata): + 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, IngestionPolicyMetadata): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/ingestion_policy_read_model.py b/wavefront_api_client/models/ingestion_policy_read_model.py new file mode 100644 index 00000000..477a9379 --- /dev/null +++ b/wavefront_api_client/models/ingestion_policy_read_model.py @@ -0,0 +1,580 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 IngestionPolicyReadModel(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 = { + 'accounts': 'list[AccessControlElement]', + 'alert': 'Alert', + 'customer': 'str', + 'description': 'str', + 'groups': 'list[AccessControlElement]', + 'id': 'str', + 'is_limited': 'bool', + 'last_updated_account_id': 'str', + 'last_updated_ms': 'int', + 'limit_pps': 'int', + 'metadata': 'IngestionPolicyMetadata', + 'name': 'str', + 'namespaces': 'list[str]', + 'point_tags': 'list[Annotation]', + 'scope': 'str', + 'sources': 'list[str]', + 'tags_anded': 'bool' + } + + attribute_map = { + 'accounts': 'accounts', + 'alert': 'alert', + 'customer': 'customer', + 'description': 'description', + 'groups': 'groups', + 'id': 'id', + 'is_limited': 'isLimited', + 'last_updated_account_id': 'lastUpdatedAccountId', + 'last_updated_ms': 'lastUpdatedMs', + 'limit_pps': 'limitPPS', + 'metadata': 'metadata', + 'name': 'name', + 'namespaces': 'namespaces', + 'point_tags': 'pointTags', + 'scope': 'scope', + 'sources': 'sources', + 'tags_anded': 'tagsAnded' + } + + def __init__(self, accounts=None, alert=None, customer=None, description=None, groups=None, id=None, is_limited=None, last_updated_account_id=None, last_updated_ms=None, limit_pps=None, metadata=None, name=None, namespaces=None, point_tags=None, scope=None, sources=None, tags_anded=None, _configuration=None): # noqa: E501 + """IngestionPolicyReadModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._accounts = None + self._alert = None + self._customer = None + self._description = None + self._groups = None + self._id = None + self._is_limited = None + self._last_updated_account_id = None + self._last_updated_ms = None + self._limit_pps = None + self._metadata = None + self._name = None + self._namespaces = None + self._point_tags = None + self._scope = None + self._sources = None + self._tags_anded = None + self.discriminator = None + + if accounts is not None: + self.accounts = accounts + if alert is not None: + self.alert = alert + if customer is not None: + self.customer = customer + if description is not None: + self.description = description + if groups is not None: + self.groups = groups + if id is not None: + self.id = id + if is_limited is not None: + self.is_limited = is_limited + if last_updated_account_id is not None: + self.last_updated_account_id = last_updated_account_id + if last_updated_ms is not None: + self.last_updated_ms = last_updated_ms + if limit_pps is not None: + self.limit_pps = limit_pps + if metadata is not None: + self.metadata = metadata + if name is not None: + self.name = name + if namespaces is not None: + self.namespaces = namespaces + if point_tags is not None: + self.point_tags = point_tags + if scope is not None: + self.scope = scope + if sources is not None: + self.sources = sources + if tags_anded is not None: + self.tags_anded = tags_anded + + @property + def accounts(self): + """Gets the accounts of this IngestionPolicyReadModel. # noqa: E501 + + The accounts associated with the ingestion policy # noqa: E501 + + :return: The accounts of this IngestionPolicyReadModel. # noqa: E501 + :rtype: list[AccessControlElement] + """ + return self._accounts + + @accounts.setter + def accounts(self, accounts): + """Sets the accounts of this IngestionPolicyReadModel. + + The accounts associated with the ingestion policy # noqa: E501 + + :param accounts: The accounts of this IngestionPolicyReadModel. # noqa: E501 + :type: list[AccessControlElement] + """ + + self._accounts = accounts + + @property + def alert(self): + """Gets the alert of this IngestionPolicyReadModel. # noqa: E501 + + The alert object connected with the ingestion policy. # noqa: E501 + + :return: The alert of this IngestionPolicyReadModel. # noqa: E501 + :rtype: Alert + """ + return self._alert + + @alert.setter + def alert(self, alert): + """Sets the alert of this IngestionPolicyReadModel. + + The alert object connected with the ingestion policy. # noqa: E501 + + :param alert: The alert of this IngestionPolicyReadModel. # noqa: E501 + :type: Alert + """ + + self._alert = alert + + @property + def customer(self): + """Gets the customer of this IngestionPolicyReadModel. # noqa: E501 + + ID of the customer to which the ingestion policy belongs # noqa: E501 + + :return: The customer of this IngestionPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this IngestionPolicyReadModel. + + ID of the customer to which the ingestion policy belongs # noqa: E501 + + :param customer: The customer of this IngestionPolicyReadModel. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def description(self): + """Gets the description of this IngestionPolicyReadModel. # noqa: E501 + + The description of the ingestion policy # noqa: E501 + + :return: The description of this IngestionPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this IngestionPolicyReadModel. + + The description of the ingestion policy # noqa: E501 + + :param description: The description of this IngestionPolicyReadModel. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def groups(self): + """Gets the groups of this IngestionPolicyReadModel. # noqa: E501 + + The groups associated with the ingestion policy # noqa: E501 + + :return: The groups of this IngestionPolicyReadModel. # noqa: E501 + :rtype: list[AccessControlElement] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """Sets the groups of this IngestionPolicyReadModel. + + The groups associated with the ingestion policy # noqa: E501 + + :param groups: The groups of this IngestionPolicyReadModel. # noqa: E501 + :type: list[AccessControlElement] + """ + + self._groups = groups + + @property + def id(self): + """Gets the id of this IngestionPolicyReadModel. # noqa: E501 + + The unique ID for the ingestion policy # noqa: E501 + + :return: The id of this IngestionPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this IngestionPolicyReadModel. + + The unique ID for the ingestion policy # noqa: E501 + + :param id: The id of this IngestionPolicyReadModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def is_limited(self): + """Gets the is_limited of this IngestionPolicyReadModel. # noqa: E501 + + Whether the ingestion policy is limited # noqa: E501 + + :return: The is_limited of this IngestionPolicyReadModel. # noqa: E501 + :rtype: bool + """ + return self._is_limited + + @is_limited.setter + def is_limited(self, is_limited): + """Sets the is_limited of this IngestionPolicyReadModel. + + Whether the ingestion policy is limited # noqa: E501 + + :param is_limited: The is_limited of this IngestionPolicyReadModel. # noqa: E501 + :type: bool + """ + + self._is_limited = is_limited + + @property + def last_updated_account_id(self): + """Gets the last_updated_account_id of this IngestionPolicyReadModel. # noqa: E501 + + The account that updated this ingestion policy last time # noqa: E501 + + :return: The last_updated_account_id of this IngestionPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._last_updated_account_id + + @last_updated_account_id.setter + def last_updated_account_id(self, last_updated_account_id): + """Sets the last_updated_account_id of this IngestionPolicyReadModel. + + The account that updated this ingestion policy last time # noqa: E501 + + :param last_updated_account_id: The last_updated_account_id of this IngestionPolicyReadModel. # noqa: E501 + :type: str + """ + + self._last_updated_account_id = last_updated_account_id + + @property + def last_updated_ms(self): + """Gets the last_updated_ms of this IngestionPolicyReadModel. # noqa: E501 + + The last time when the ingestion policy is updated, in epoch milliseconds # noqa: E501 + + :return: The last_updated_ms of this IngestionPolicyReadModel. # noqa: E501 + :rtype: int + """ + return self._last_updated_ms + + @last_updated_ms.setter + def last_updated_ms(self, last_updated_ms): + """Sets the last_updated_ms of this IngestionPolicyReadModel. + + The last time when the ingestion policy is updated, in epoch milliseconds # noqa: E501 + + :param last_updated_ms: The last_updated_ms of this IngestionPolicyReadModel. # noqa: E501 + :type: int + """ + + self._last_updated_ms = last_updated_ms + + @property + def limit_pps(self): + """Gets the limit_pps of this IngestionPolicyReadModel. # noqa: E501 + + The PPS limit of the ingestion policy # noqa: E501 + + :return: The limit_pps of this IngestionPolicyReadModel. # noqa: E501 + :rtype: int + """ + return self._limit_pps + + @limit_pps.setter + def limit_pps(self, limit_pps): + """Sets the limit_pps of this IngestionPolicyReadModel. + + The PPS limit of the ingestion policy # noqa: E501 + + :param limit_pps: The limit_pps of this IngestionPolicyReadModel. # noqa: E501 + :type: int + """ + + self._limit_pps = limit_pps + + @property + def metadata(self): + """Gets the metadata of this IngestionPolicyReadModel. # noqa: E501 + + metadata associated with the ingestion policy # noqa: E501 + + :return: The metadata of this IngestionPolicyReadModel. # noqa: E501 + :rtype: IngestionPolicyMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this IngestionPolicyReadModel. + + metadata associated with the ingestion policy # noqa: E501 + + :param metadata: The metadata of this IngestionPolicyReadModel. # noqa: E501 + :type: IngestionPolicyMetadata + """ + + self._metadata = metadata + + @property + def name(self): + """Gets the name of this IngestionPolicyReadModel. # noqa: E501 + + The name of the ingestion policy # noqa: E501 + + :return: The name of this IngestionPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IngestionPolicyReadModel. + + The name of the ingestion policy # noqa: E501 + + :param name: The name of this IngestionPolicyReadModel. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespaces(self): + """Gets the namespaces of this IngestionPolicyReadModel. # noqa: E501 + + The namespaces associated with the ingestion policy # noqa: E501 + + :return: The namespaces of this IngestionPolicyReadModel. # noqa: E501 + :rtype: list[str] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """Sets the namespaces of this IngestionPolicyReadModel. + + The namespaces associated with the ingestion policy # noqa: E501 + + :param namespaces: The namespaces of this IngestionPolicyReadModel. # noqa: E501 + :type: list[str] + """ + + self._namespaces = namespaces + + @property + def point_tags(self): + """Gets the point_tags of this IngestionPolicyReadModel. # noqa: E501 + + The point tags associated with the ingestion policy # noqa: E501 + + :return: The point_tags of this IngestionPolicyReadModel. # noqa: E501 + :rtype: list[Annotation] + """ + return self._point_tags + + @point_tags.setter + def point_tags(self, point_tags): + """Sets the point_tags of this IngestionPolicyReadModel. + + The point tags associated with the ingestion policy # noqa: E501 + + :param point_tags: The point_tags of this IngestionPolicyReadModel. # noqa: E501 + :type: list[Annotation] + """ + + self._point_tags = point_tags + + @property + def scope(self): + """Gets the scope of this IngestionPolicyReadModel. # noqa: E501 + + The scope of the ingestion policy # noqa: E501 + + :return: The scope of this IngestionPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this IngestionPolicyReadModel. + + The scope of the ingestion policy # noqa: E501 + + :param scope: The scope of this IngestionPolicyReadModel. # noqa: E501 + :type: str + """ + allowed_values = ["ACCOUNT", "GROUP", "NAMESPACE", "SOURCE", "TAGS"] # noqa: E501 + if (self._configuration.client_side_validation and + scope not in allowed_values): + raise ValueError( + "Invalid value for `scope` ({0}), must be one of {1}" # noqa: E501 + .format(scope, allowed_values) + ) + + self._scope = scope + + @property + def sources(self): + """Gets the sources of this IngestionPolicyReadModel. # noqa: E501 + + The sources associated with the ingestion policy # noqa: E501 + + :return: The sources of this IngestionPolicyReadModel. # noqa: E501 + :rtype: list[str] + """ + return self._sources + + @sources.setter + def sources(self, sources): + """Sets the sources of this IngestionPolicyReadModel. + + The sources associated with the ingestion policy # noqa: E501 + + :param sources: The sources of this IngestionPolicyReadModel. # noqa: E501 + :type: list[str] + """ + + self._sources = sources + + @property + def tags_anded(self): + """Gets the tags_anded of this IngestionPolicyReadModel. # noqa: E501 + + Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the ingestion policy to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false # noqa: E501 + + :return: The tags_anded of this IngestionPolicyReadModel. # noqa: E501 + :rtype: bool + """ + return self._tags_anded + + @tags_anded.setter + def tags_anded(self, tags_anded): + """Sets the tags_anded of this IngestionPolicyReadModel. + + Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the ingestion policy to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false # noqa: E501 + + :param tags_anded: The tags_anded of this IngestionPolicyReadModel. # noqa: E501 + :type: bool + """ + + self._tags_anded = tags_anded + + 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(IngestionPolicyReadModel, 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, IngestionPolicyReadModel): + 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, IngestionPolicyReadModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/ingestion_policy_write_model.py b/wavefront_api_client/models/ingestion_policy_write_model.py new file mode 100644 index 00000000..2163c8c7 --- /dev/null +++ b/wavefront_api_client/models/ingestion_policy_write_model.py @@ -0,0 +1,552 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 IngestionPolicyWriteModel(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 = { + 'accounts': 'list[str]', + 'alert': 'IngestionPolicyAlert', + 'customer': 'str', + 'description': 'str', + 'groups': 'list[str]', + 'id': 'str', + 'is_limited': 'bool', + 'last_updated_account_id': 'str', + 'last_updated_ms': 'int', + 'limit_pps': 'int', + 'name': 'str', + 'namespaces': 'list[str]', + 'point_tags': 'list[Annotation]', + 'scope': 'str', + 'sources': 'list[str]', + 'tags_anded': 'bool' + } + + attribute_map = { + 'accounts': 'accounts', + 'alert': 'alert', + 'customer': 'customer', + 'description': 'description', + 'groups': 'groups', + 'id': 'id', + 'is_limited': 'isLimited', + 'last_updated_account_id': 'lastUpdatedAccountId', + 'last_updated_ms': 'lastUpdatedMs', + 'limit_pps': 'limitPPS', + 'name': 'name', + 'namespaces': 'namespaces', + 'point_tags': 'pointTags', + 'scope': 'scope', + 'sources': 'sources', + 'tags_anded': 'tagsAnded' + } + + def __init__(self, accounts=None, alert=None, customer=None, description=None, groups=None, id=None, is_limited=None, last_updated_account_id=None, last_updated_ms=None, limit_pps=None, name=None, namespaces=None, point_tags=None, scope=None, sources=None, tags_anded=None, _configuration=None): # noqa: E501 + """IngestionPolicyWriteModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._accounts = None + self._alert = None + self._customer = None + self._description = None + self._groups = None + self._id = None + self._is_limited = None + self._last_updated_account_id = None + self._last_updated_ms = None + self._limit_pps = None + self._name = None + self._namespaces = None + self._point_tags = None + self._scope = None + self._sources = None + self._tags_anded = None + self.discriminator = None + + if accounts is not None: + self.accounts = accounts + if alert is not None: + self.alert = alert + if customer is not None: + self.customer = customer + if description is not None: + self.description = description + if groups is not None: + self.groups = groups + if id is not None: + self.id = id + if is_limited is not None: + self.is_limited = is_limited + if last_updated_account_id is not None: + self.last_updated_account_id = last_updated_account_id + if last_updated_ms is not None: + self.last_updated_ms = last_updated_ms + if limit_pps is not None: + self.limit_pps = limit_pps + if name is not None: + self.name = name + if namespaces is not None: + self.namespaces = namespaces + if point_tags is not None: + self.point_tags = point_tags + if scope is not None: + self.scope = scope + if sources is not None: + self.sources = sources + if tags_anded is not None: + self.tags_anded = tags_anded + + @property + def accounts(self): + """Gets the accounts of this IngestionPolicyWriteModel. # noqa: E501 + + The accounts associated with the ingestion policy # noqa: E501 + + :return: The accounts of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: list[str] + """ + return self._accounts + + @accounts.setter + def accounts(self, accounts): + """Sets the accounts of this IngestionPolicyWriteModel. + + The accounts associated with the ingestion policy # noqa: E501 + + :param accounts: The accounts of this IngestionPolicyWriteModel. # noqa: E501 + :type: list[str] + """ + + self._accounts = accounts + + @property + def alert(self): + """Gets the alert of this IngestionPolicyWriteModel. # noqa: E501 + + The alert DTO object associated with the ingestion policy. # noqa: E501 + + :return: The alert of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: IngestionPolicyAlert + """ + return self._alert + + @alert.setter + def alert(self, alert): + """Sets the alert of this IngestionPolicyWriteModel. + + The alert DTO object associated with the ingestion policy. # noqa: E501 + + :param alert: The alert of this IngestionPolicyWriteModel. # noqa: E501 + :type: IngestionPolicyAlert + """ + + self._alert = alert + + @property + def customer(self): + """Gets the customer of this IngestionPolicyWriteModel. # noqa: E501 + + ID of the customer to which the ingestion policy belongs # noqa: E501 + + :return: The customer of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this IngestionPolicyWriteModel. + + ID of the customer to which the ingestion policy belongs # noqa: E501 + + :param customer: The customer of this IngestionPolicyWriteModel. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def description(self): + """Gets the description of this IngestionPolicyWriteModel. # noqa: E501 + + The description of the ingestion policy # noqa: E501 + + :return: The description of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this IngestionPolicyWriteModel. + + The description of the ingestion policy # noqa: E501 + + :param description: The description of this IngestionPolicyWriteModel. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def groups(self): + """Gets the groups of this IngestionPolicyWriteModel. # noqa: E501 + + The groups associated with the ingestion policy # noqa: E501 + + :return: The groups of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """Sets the groups of this IngestionPolicyWriteModel. + + The groups associated with the ingestion policy # noqa: E501 + + :param groups: The groups of this IngestionPolicyWriteModel. # noqa: E501 + :type: list[str] + """ + + self._groups = groups + + @property + def id(self): + """Gets the id of this IngestionPolicyWriteModel. # noqa: E501 + + The unique ID for the ingestion policy # noqa: E501 + + :return: The id of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this IngestionPolicyWriteModel. + + The unique ID for the ingestion policy # noqa: E501 + + :param id: The id of this IngestionPolicyWriteModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def is_limited(self): + """Gets the is_limited of this IngestionPolicyWriteModel. # noqa: E501 + + Whether the ingestion policy is limited # noqa: E501 + + :return: The is_limited of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: bool + """ + return self._is_limited + + @is_limited.setter + def is_limited(self, is_limited): + """Sets the is_limited of this IngestionPolicyWriteModel. + + Whether the ingestion policy is limited # noqa: E501 + + :param is_limited: The is_limited of this IngestionPolicyWriteModel. # noqa: E501 + :type: bool + """ + + self._is_limited = is_limited + + @property + def last_updated_account_id(self): + """Gets the last_updated_account_id of this IngestionPolicyWriteModel. # noqa: E501 + + The account that updated this ingestion policy last time # noqa: E501 + + :return: The last_updated_account_id of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: str + """ + return self._last_updated_account_id + + @last_updated_account_id.setter + def last_updated_account_id(self, last_updated_account_id): + """Sets the last_updated_account_id of this IngestionPolicyWriteModel. + + The account that updated this ingestion policy last time # noqa: E501 + + :param last_updated_account_id: The last_updated_account_id of this IngestionPolicyWriteModel. # noqa: E501 + :type: str + """ + + self._last_updated_account_id = last_updated_account_id + + @property + def last_updated_ms(self): + """Gets the last_updated_ms of this IngestionPolicyWriteModel. # noqa: E501 + + The last time when the ingestion policy is updated, in epoch milliseconds # noqa: E501 + + :return: The last_updated_ms of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: int + """ + return self._last_updated_ms + + @last_updated_ms.setter + def last_updated_ms(self, last_updated_ms): + """Sets the last_updated_ms of this IngestionPolicyWriteModel. + + The last time when the ingestion policy is updated, in epoch milliseconds # noqa: E501 + + :param last_updated_ms: The last_updated_ms of this IngestionPolicyWriteModel. # noqa: E501 + :type: int + """ + + self._last_updated_ms = last_updated_ms + + @property + def limit_pps(self): + """Gets the limit_pps of this IngestionPolicyWriteModel. # noqa: E501 + + The PPS limit of the ingestion policy # noqa: E501 + + :return: The limit_pps of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: int + """ + return self._limit_pps + + @limit_pps.setter + def limit_pps(self, limit_pps): + """Sets the limit_pps of this IngestionPolicyWriteModel. + + The PPS limit of the ingestion policy # noqa: E501 + + :param limit_pps: The limit_pps of this IngestionPolicyWriteModel. # noqa: E501 + :type: int + """ + + self._limit_pps = limit_pps + + @property + def name(self): + """Gets the name of this IngestionPolicyWriteModel. # noqa: E501 + + The name of the ingestion policy # noqa: E501 + + :return: The name of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IngestionPolicyWriteModel. + + The name of the ingestion policy # noqa: E501 + + :param name: The name of this IngestionPolicyWriteModel. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespaces(self): + """Gets the namespaces of this IngestionPolicyWriteModel. # noqa: E501 + + The namespaces associated with the ingestion policy # noqa: E501 + + :return: The namespaces of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: list[str] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """Sets the namespaces of this IngestionPolicyWriteModel. + + The namespaces associated with the ingestion policy # noqa: E501 + + :param namespaces: The namespaces of this IngestionPolicyWriteModel. # noqa: E501 + :type: list[str] + """ + + self._namespaces = namespaces + + @property + def point_tags(self): + """Gets the point_tags of this IngestionPolicyWriteModel. # noqa: E501 + + The point tags associated with the ingestion policy # noqa: E501 + + :return: The point_tags of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: list[Annotation] + """ + return self._point_tags + + @point_tags.setter + def point_tags(self, point_tags): + """Sets the point_tags of this IngestionPolicyWriteModel. + + The point tags associated with the ingestion policy # noqa: E501 + + :param point_tags: The point_tags of this IngestionPolicyWriteModel. # noqa: E501 + :type: list[Annotation] + """ + + self._point_tags = point_tags + + @property + def scope(self): + """Gets the scope of this IngestionPolicyWriteModel. # noqa: E501 + + The scope of the ingestion policy # noqa: E501 + + :return: The scope of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this IngestionPolicyWriteModel. + + The scope of the ingestion policy # noqa: E501 + + :param scope: The scope of this IngestionPolicyWriteModel. # noqa: E501 + :type: str + """ + allowed_values = ["ACCOUNT", "GROUP", "NAMESPACE", "SOURCE", "TAGS"] # noqa: E501 + if (self._configuration.client_side_validation and + scope not in allowed_values): + raise ValueError( + "Invalid value for `scope` ({0}), must be one of {1}" # noqa: E501 + .format(scope, allowed_values) + ) + + self._scope = scope + + @property + def sources(self): + """Gets the sources of this IngestionPolicyWriteModel. # noqa: E501 + + The sources associated with the ingestion policy # noqa: E501 + + :return: The sources of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: list[str] + """ + return self._sources + + @sources.setter + def sources(self, sources): + """Sets the sources of this IngestionPolicyWriteModel. + + The sources associated with the ingestion policy # noqa: E501 + + :param sources: The sources of this IngestionPolicyWriteModel. # noqa: E501 + :type: list[str] + """ + + self._sources = sources + + @property + def tags_anded(self): + """Gets the tags_anded of this IngestionPolicyWriteModel. # noqa: E501 + + Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the ingestion policy to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false # noqa: E501 + + :return: The tags_anded of this IngestionPolicyWriteModel. # noqa: E501 + :rtype: bool + """ + return self._tags_anded + + @tags_anded.setter + def tags_anded(self, tags_anded): + """Sets the tags_anded of this IngestionPolicyWriteModel. + + Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the ingestion policy to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false # noqa: E501 + + :param tags_anded: The tags_anded of this IngestionPolicyWriteModel. # noqa: E501 + :type: bool + """ + + self._tags_anded = tags_anded + + 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(IngestionPolicyWriteModel, 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, IngestionPolicyWriteModel): + 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, IngestionPolicyWriteModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/install_alerts.py b/wavefront_api_client/models/install_alerts.py new file mode 100644 index 00000000..e9dd6c4e --- /dev/null +++ b/wavefront_api_client/models/install_alerts.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 InstallAlerts(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 = { + 'target': 'str' + } + + attribute_map = { + 'target': 'target' + } + + def __init__(self, target=None, _configuration=None): # noqa: E501 + """InstallAlerts - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._target = None + self.discriminator = None + + if target is not None: + self.target = target + + @property + def target(self): + """Gets the target of this InstallAlerts. # noqa: E501 + + + :return: The target of this InstallAlerts. # noqa: E501 + :rtype: str + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this InstallAlerts. + + + :param target: The target of this InstallAlerts. # noqa: E501 + :type: str + """ + + self._target = target + + 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(InstallAlerts, 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, InstallAlerts): + 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, InstallAlerts): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/integration.py b/wavefront_api_client/models/integration.py index 07776750..f30d3306 100644 --- a/wavefront_api_client/models/integration.py +++ b/wavefront_api_client/models/integration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,10 +16,7 @@ import six -from wavefront_api_client.models.integration_alias import IntegrationAlias # noqa: F401,E501 -from wavefront_api_client.models.integration_dashboard import IntegrationDashboard # noqa: F401,E501 -from wavefront_api_client.models.integration_metrics import IntegrationMetrics # noqa: F401,E501 -from wavefront_api_client.models.integration_status import IntegrationStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class Integration(object): @@ -36,194 +33,241 @@ class Integration(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'id': 'str', - 'description': 'str', - 'status': 'IntegrationStatus', - 'creator_id': 'str', - 'version': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'metrics': 'IntegrationMetrics', + 'alerts': 'list[IntegrationAlert]', + 'alias_integrations': 'list[IntegrationAlias]', + 'alias_of': 'str', 'base_url': 'str', - 'updater_id': 'str', + 'created_epoch_millis': 'int', + 'creator_id': 'str', 'dashboards': 'list[IntegrationDashboard]', - 'alias_of': 'str', - 'icon': 'str', - 'alias_integrations': 'list[IntegrationAlias]', 'deleted': 'bool', + 'description': 'str', + 'have_metric_dropdown': 'bool', + 'hidden': 'bool', + 'icon': 'str', + 'id': 'str', + 'metrics': 'IntegrationMetrics', + 'metrics_docs': 'str', + 'name': 'str', 'overview': 'str', - 'setup': 'str' + 'setup': 'str', + 'setups': 'list[Setup]', + 'status': 'IntegrationStatus', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'version': 'str' } attribute_map = { - 'name': 'name', - 'id': 'id', - 'description': 'description', - 'status': 'status', - 'creator_id': 'creatorId', - 'version': 'version', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'metrics': 'metrics', + 'alerts': 'alerts', + 'alias_integrations': 'aliasIntegrations', + 'alias_of': 'aliasOf', 'base_url': 'baseUrl', - 'updater_id': 'updaterId', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', 'dashboards': 'dashboards', - 'alias_of': 'aliasOf', - 'icon': 'icon', - 'alias_integrations': 'aliasIntegrations', 'deleted': 'deleted', + 'description': 'description', + 'have_metric_dropdown': 'haveMetricDropdown', + 'hidden': 'hidden', + 'icon': 'icon', + 'id': 'id', + 'metrics': 'metrics', + 'metrics_docs': 'metricsDocs', + 'name': 'name', 'overview': 'overview', - 'setup': 'setup' + 'setup': 'setup', + 'setups': 'setups', + 'status': 'status', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'version': 'version' } - def __init__(self, name=None, id=None, description=None, status=None, creator_id=None, version=None, created_epoch_millis=None, updated_epoch_millis=None, metrics=None, base_url=None, updater_id=None, dashboards=None, alias_of=None, icon=None, alias_integrations=None, deleted=None, overview=None, setup=None): # noqa: E501 + def __init__(self, alerts=None, alias_integrations=None, alias_of=None, base_url=None, created_epoch_millis=None, creator_id=None, dashboards=None, deleted=None, description=None, have_metric_dropdown=None, hidden=None, icon=None, id=None, metrics=None, metrics_docs=None, name=None, overview=None, setup=None, setups=None, status=None, updated_epoch_millis=None, updater_id=None, version=None, _configuration=None): # noqa: E501 """Integration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._name = None - self._id = None - self._description = None - self._status = None - self._creator_id = None - self._version = None - self._created_epoch_millis = None - self._updated_epoch_millis = None - self._metrics = None + self._alerts = None + self._alias_integrations = None + self._alias_of = None self._base_url = None - self._updater_id = None + self._created_epoch_millis = None + self._creator_id = None self._dashboards = None - self._alias_of = None - self._icon = None - self._alias_integrations = None self._deleted = None + self._description = None + self._have_metric_dropdown = None + self._hidden = None + self._icon = None + self._id = None + self._metrics = None + self._metrics_docs = None + self._name = None self._overview = None self._setup = None + self._setups = None + self._status = None + self._updated_epoch_millis = None + self._updater_id = None + self._version = None self.discriminator = None - self.name = name - if id is not None: - self.id = id - self.description = description - if status is not None: - self.status = status - if creator_id is not None: - self.creator_id = creator_id - self.version = version - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis - if updated_epoch_millis is not None: - self.updated_epoch_millis = updated_epoch_millis - if metrics is not None: - self.metrics = metrics + if alerts is not None: + self.alerts = alerts + if alias_integrations is not None: + self.alias_integrations = alias_integrations + if alias_of is not None: + self.alias_of = alias_of if base_url is not None: self.base_url = base_url - if updater_id is not None: - self.updater_id = updater_id + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id if dashboards is not None: self.dashboards = dashboards - if alias_of is not None: - self.alias_of = alias_of - self.icon = icon - if alias_integrations is not None: - self.alias_integrations = alias_integrations if deleted is not None: self.deleted = deleted + self.description = description + self.have_metric_dropdown = have_metric_dropdown + self.hidden = hidden + self.icon = icon + if id is not None: + self.id = id + if metrics is not None: + self.metrics = metrics + if metrics_docs is not None: + self.metrics_docs = metrics_docs + self.name = name if overview is not None: self.overview = overview if setup is not None: self.setup = setup + if setups is not None: + self.setups = setups + if status is not None: + self.status = status + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + self.version = version @property - def name(self): - """Gets the name of this Integration. # noqa: E501 + def alerts(self): + """Gets the alerts of this Integration. # noqa: E501 - Integration name # noqa: E501 + A list of alerts belonging to this integration # noqa: E501 - :return: The name of this Integration. # noqa: E501 - :rtype: str + :return: The alerts of this Integration. # noqa: E501 + :rtype: list[IntegrationAlert] """ - return self._name + return self._alerts - @name.setter - def name(self, name): - """Sets the name of this Integration. + @alerts.setter + def alerts(self, alerts): + """Sets the alerts of this Integration. - Integration name # noqa: E501 + A list of alerts belonging to this integration # noqa: E501 - :param name: The name of this Integration. # noqa: E501 - :type: str + :param alerts: The alerts of this Integration. # noqa: E501 + :type: list[IntegrationAlert] """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._alerts = alerts @property - def id(self): - """Gets the id of this Integration. # noqa: E501 + def alias_integrations(self): + """Gets the alias_integrations of this Integration. # noqa: E501 + If set, a list of objects describing integrations that alias this one. # noqa: E501 - :return: The id of this Integration. # noqa: E501 + :return: The alias_integrations of this Integration. # noqa: E501 + :rtype: list[IntegrationAlias] + """ + return self._alias_integrations + + @alias_integrations.setter + def alias_integrations(self, alias_integrations): + """Sets the alias_integrations of this Integration. + + If set, a list of objects describing integrations that alias this one. # noqa: E501 + + :param alias_integrations: The alias_integrations of this Integration. # noqa: E501 + :type: list[IntegrationAlias] + """ + + self._alias_integrations = alias_integrations + + @property + def alias_of(self): + """Gets the alias_of of this Integration. # noqa: E501 + + If set, designates this integration as an alias integration, of the integration whose id is specified. # noqa: E501 + + :return: The alias_of of this Integration. # noqa: E501 :rtype: str """ - return self._id + return self._alias_of - @id.setter - def id(self, id): - """Sets the id of this Integration. + @alias_of.setter + def alias_of(self, alias_of): + """Sets the alias_of of this Integration. + If set, designates this integration as an alias integration, of the integration whose id is specified. # noqa: E501 - :param id: The id of this Integration. # noqa: E501 + :param alias_of: The alias_of of this Integration. # noqa: E501 :type: str """ - self._id = id + self._alias_of = alias_of @property - def description(self): - """Gets the description of this Integration. # noqa: E501 + def base_url(self): + """Gets the base_url of this Integration. # noqa: E501 - Integration description # noqa: E501 + Base URL for this integration's assets # noqa: E501 - :return: The description of this Integration. # noqa: E501 + :return: The base_url of this Integration. # noqa: E501 :rtype: str """ - return self._description + return self._base_url - @description.setter - def description(self, description): - """Sets the description of this Integration. + @base_url.setter + def base_url(self, base_url): + """Sets the base_url of this Integration. - Integration description # noqa: E501 + Base URL for this integration's assets # noqa: E501 - :param description: The description of this Integration. # noqa: E501 + :param base_url: The base_url of this Integration. # noqa: E501 :type: str """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - self._description = description + self._base_url = base_url @property - def status(self): - """Gets the status of this Integration. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this Integration. # noqa: E501 - :return: The status of this Integration. # noqa: E501 - :rtype: IntegrationStatus + :return: The created_epoch_millis of this Integration. # noqa: E501 + :rtype: int """ - return self._status + return self._created_epoch_millis - @status.setter - def status(self, status): - """Sets the status of this Integration. + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): + """Sets the created_epoch_millis of this Integration. - :param status: The status of this Integration. # noqa: E501 - :type: IntegrationStatus + :param created_epoch_millis: The created_epoch_millis of this Integration. # noqa: E501 + :type: int """ - self._status = status + self._created_epoch_millis = created_epoch_millis @property def creator_id(self): @@ -233,85 +277,183 @@ def creator_id(self): :return: The creator_id of this Integration. # noqa: E501 :rtype: str """ - return self._creator_id + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this Integration. + + + :param creator_id: The creator_id of this Integration. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def dashboards(self): + """Gets the dashboards of this Integration. # noqa: E501 + + A list of dashboards belonging to this integration # noqa: E501 + + :return: The dashboards of this Integration. # noqa: E501 + :rtype: list[IntegrationDashboard] + """ + return self._dashboards + + @dashboards.setter + def dashboards(self, dashboards): + """Sets the dashboards of this Integration. + + A list of dashboards belonging to this integration # noqa: E501 + + :param dashboards: The dashboards of this Integration. # noqa: E501 + :type: list[IntegrationDashboard] + """ + + self._dashboards = dashboards + + @property + def deleted(self): + """Gets the deleted of this Integration. # noqa: E501 + + + :return: The deleted of this Integration. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this Integration. + + + :param deleted: The deleted of this Integration. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def description(self): + """Gets the description of this Integration. # noqa: E501 + + Integration description # noqa: E501 + + :return: The description of this Integration. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Integration. + + Integration description # noqa: E501 + + :param description: The description of this Integration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and description is None: + raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 + + self._description = description + + @property + def have_metric_dropdown(self): + """Gets the have_metric_dropdown of this Integration. # noqa: E501 + + Integration have metric dropdown or not # noqa: E501 + + :return: The have_metric_dropdown of this Integration. # noqa: E501 + :rtype: bool + """ + return self._have_metric_dropdown - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this Integration. + @have_metric_dropdown.setter + def have_metric_dropdown(self, have_metric_dropdown): + """Sets the have_metric_dropdown of this Integration. + Integration have metric dropdown or not # noqa: E501 - :param creator_id: The creator_id of this Integration. # noqa: E501 - :type: str + :param have_metric_dropdown: The have_metric_dropdown of this Integration. # noqa: E501 + :type: bool """ + if self._configuration.client_side_validation and have_metric_dropdown is None: + raise ValueError("Invalid value for `have_metric_dropdown`, must not be `None`") # noqa: E501 - self._creator_id = creator_id + self._have_metric_dropdown = have_metric_dropdown @property - def version(self): - """Gets the version of this Integration. # noqa: E501 + def hidden(self): + """Gets the hidden of this Integration. # noqa: E501 - Integration version string # noqa: E501 + Integration is hidden or not # noqa: E501 - :return: The version of this Integration. # noqa: E501 - :rtype: str + :return: The hidden of this Integration. # noqa: E501 + :rtype: bool """ - return self._version + return self._hidden - @version.setter - def version(self, version): - """Sets the version of this Integration. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this Integration. - Integration version string # noqa: E501 + Integration is hidden or not # noqa: E501 - :param version: The version of this Integration. # noqa: E501 - :type: str + :param hidden: The hidden of this Integration. # noqa: E501 + :type: bool """ - if version is None: - raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 + if self._configuration.client_side_validation and hidden is None: + raise ValueError("Invalid value for `hidden`, must not be `None`") # noqa: E501 - self._version = version + self._hidden = hidden @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this Integration. # noqa: E501 + def icon(self): + """Gets the icon of this Integration. # noqa: E501 + URI path to the integration icon # noqa: E501 - :return: The created_epoch_millis of this Integration. # noqa: E501 - :rtype: int + :return: The icon of this Integration. # noqa: E501 + :rtype: str """ - return self._created_epoch_millis + return self._icon - @created_epoch_millis.setter - def created_epoch_millis(self, created_epoch_millis): - """Sets the created_epoch_millis of this Integration. + @icon.setter + def icon(self, icon): + """Sets the icon of this Integration. + URI path to the integration icon # noqa: E501 - :param created_epoch_millis: The created_epoch_millis of this Integration. # noqa: E501 - :type: int + :param icon: The icon of this Integration. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and icon is None: + raise ValueError("Invalid value for `icon`, must not be `None`") # noqa: E501 - self._created_epoch_millis = created_epoch_millis + self._icon = icon @property - def updated_epoch_millis(self): - """Gets the updated_epoch_millis of this Integration. # noqa: E501 + def id(self): + """Gets the id of this Integration. # noqa: E501 - :return: The updated_epoch_millis of this Integration. # noqa: E501 - :rtype: int + :return: The id of this Integration. # noqa: E501 + :rtype: str """ - return self._updated_epoch_millis + return self._id - @updated_epoch_millis.setter - def updated_epoch_millis(self, updated_epoch_millis): - """Sets the updated_epoch_millis of this Integration. + @id.setter + def id(self, id): + """Sets the id of this Integration. - :param updated_epoch_millis: The updated_epoch_millis of this Integration. # noqa: E501 - :type: int + :param id: The id of this Integration. # noqa: E501 + :type: str """ - self._updated_epoch_millis = updated_epoch_millis + self._id = id @property def metrics(self): @@ -335,209 +477,209 @@ def metrics(self, metrics): self._metrics = metrics @property - def base_url(self): - """Gets the base_url of this Integration. # noqa: E501 + def metrics_docs(self): + """Gets the metrics_docs of this Integration. # noqa: E501 - Base URL for this integration's assets # noqa: E501 + Metric Preview File Name # noqa: E501 - :return: The base_url of this Integration. # noqa: E501 + :return: The metrics_docs of this Integration. # noqa: E501 :rtype: str """ - return self._base_url + return self._metrics_docs - @base_url.setter - def base_url(self, base_url): - """Sets the base_url of this Integration. + @metrics_docs.setter + def metrics_docs(self, metrics_docs): + """Sets the metrics_docs of this Integration. - Base URL for this integration's assets # noqa: E501 + Metric Preview File Name # noqa: E501 - :param base_url: The base_url of this Integration. # noqa: E501 + :param metrics_docs: The metrics_docs of this Integration. # noqa: E501 :type: str """ - self._base_url = base_url + self._metrics_docs = metrics_docs @property - def updater_id(self): - """Gets the updater_id of this Integration. # noqa: E501 + def name(self): + """Gets the name of this Integration. # noqa: E501 + Integration name # noqa: E501 - :return: The updater_id of this Integration. # noqa: E501 + :return: The name of this Integration. # noqa: E501 :rtype: str """ - return self._updater_id + return self._name - @updater_id.setter - def updater_id(self, updater_id): - """Sets the updater_id of this Integration. + @name.setter + def name(self, name): + """Sets the name of this Integration. + Integration name # noqa: E501 - :param updater_id: The updater_id of this Integration. # noqa: E501 + :param name: The name of this Integration. # noqa: E501 :type: str """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._updater_id = updater_id + self._name = name @property - def dashboards(self): - """Gets the dashboards of this Integration. # noqa: E501 + def overview(self): + """Gets the overview of this Integration. # noqa: E501 - A list of dashboards belonging to this integration # noqa: E501 + Descriptive text giving an overview of integration functionality # noqa: E501 - :return: The dashboards of this Integration. # noqa: E501 - :rtype: list[IntegrationDashboard] + :return: The overview of this Integration. # noqa: E501 + :rtype: str """ - return self._dashboards + return self._overview - @dashboards.setter - def dashboards(self, dashboards): - """Sets the dashboards of this Integration. + @overview.setter + def overview(self, overview): + """Sets the overview of this Integration. - A list of dashboards belonging to this integration # noqa: E501 + Descriptive text giving an overview of integration functionality # noqa: E501 - :param dashboards: The dashboards of this Integration. # noqa: E501 - :type: list[IntegrationDashboard] + :param overview: The overview of this Integration. # noqa: E501 + :type: str """ - self._dashboards = dashboards + self._overview = overview @property - def alias_of(self): - """Gets the alias_of of this Integration. # noqa: E501 + def setup(self): + """Gets the setup of this Integration. # noqa: E501 - If set, designates this integration as an alias integration, of the integration whose id is specified. # noqa: E501 + How the integration will be set-up # noqa: E501 - :return: The alias_of of this Integration. # noqa: E501 + :return: The setup of this Integration. # noqa: E501 :rtype: str """ - return self._alias_of + return self._setup - @alias_of.setter - def alias_of(self, alias_of): - """Sets the alias_of of this Integration. + @setup.setter + def setup(self, setup): + """Sets the setup of this Integration. - If set, designates this integration as an alias integration, of the integration whose id is specified. # noqa: E501 + How the integration will be set-up # noqa: E501 - :param alias_of: The alias_of of this Integration. # noqa: E501 + :param setup: The setup of this Integration. # noqa: E501 :type: str """ - self._alias_of = alias_of + self._setup = setup @property - def icon(self): - """Gets the icon of this Integration. # noqa: E501 + def setups(self): + """Gets the setups of this Integration. # noqa: E501 - URI path to the integration icon # noqa: E501 + A list of setup belonging to this integration # noqa: E501 - :return: The icon of this Integration. # noqa: E501 - :rtype: str + :return: The setups of this Integration. # noqa: E501 + :rtype: list[Setup] """ - return self._icon + return self._setups - @icon.setter - def icon(self, icon): - """Sets the icon of this Integration. + @setups.setter + def setups(self, setups): + """Sets the setups of this Integration. - URI path to the integration icon # noqa: E501 + A list of setup belonging to this integration # noqa: E501 - :param icon: The icon of this Integration. # noqa: E501 - :type: str + :param setups: The setups of this Integration. # noqa: E501 + :type: list[Setup] """ - if icon is None: - raise ValueError("Invalid value for `icon`, must not be `None`") # noqa: E501 - self._icon = icon + self._setups = setups @property - def alias_integrations(self): - """Gets the alias_integrations of this Integration. # noqa: E501 + def status(self): + """Gets the status of this Integration. # noqa: E501 - If set, a list of objects describing integrations that alias this one. # noqa: E501 - :return: The alias_integrations of this Integration. # noqa: E501 - :rtype: list[IntegrationAlias] + :return: The status of this Integration. # noqa: E501 + :rtype: IntegrationStatus """ - return self._alias_integrations + return self._status - @alias_integrations.setter - def alias_integrations(self, alias_integrations): - """Sets the alias_integrations of this Integration. + @status.setter + def status(self, status): + """Sets the status of this Integration. - If set, a list of objects describing integrations that alias this one. # noqa: E501 - :param alias_integrations: The alias_integrations of this Integration. # noqa: E501 - :type: list[IntegrationAlias] + :param status: The status of this Integration. # noqa: E501 + :type: IntegrationStatus """ - self._alias_integrations = alias_integrations + self._status = status @property - def deleted(self): - """Gets the deleted of this Integration. # noqa: E501 + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this Integration. # noqa: E501 - :return: The deleted of this Integration. # noqa: E501 - :rtype: bool + :return: The updated_epoch_millis of this Integration. # noqa: E501 + :rtype: int """ - return self._deleted + return self._updated_epoch_millis - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this Integration. + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this Integration. - :param deleted: The deleted of this Integration. # noqa: E501 - :type: bool + :param updated_epoch_millis: The updated_epoch_millis of this Integration. # noqa: E501 + :type: int """ - self._deleted = deleted + self._updated_epoch_millis = updated_epoch_millis @property - def overview(self): - """Gets the overview of this Integration. # noqa: E501 + def updater_id(self): + """Gets the updater_id of this Integration. # noqa: E501 - Descriptive text giving an overview of integration functionality # noqa: E501 - :return: The overview of this Integration. # noqa: E501 + :return: The updater_id of this Integration. # noqa: E501 :rtype: str """ - return self._overview + return self._updater_id - @overview.setter - def overview(self, overview): - """Sets the overview of this Integration. + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this Integration. - Descriptive text giving an overview of integration functionality # noqa: E501 - :param overview: The overview of this Integration. # noqa: E501 + :param updater_id: The updater_id of this Integration. # noqa: E501 :type: str """ - self._overview = overview + self._updater_id = updater_id @property - def setup(self): - """Gets the setup of this Integration. # noqa: E501 + def version(self): + """Gets the version of this Integration. # noqa: E501 - How the integration will be set-up # noqa: E501 + Integration version string # noqa: E501 - :return: The setup of this Integration. # noqa: E501 + :return: The version of this Integration. # noqa: E501 :rtype: str """ - return self._setup + return self._version - @setup.setter - def setup(self, setup): - """Sets the setup of this Integration. + @version.setter + def version(self, version): + """Sets the version of this Integration. - How the integration will be set-up # noqa: E501 + Integration version string # noqa: E501 - :param setup: The setup of this Integration. # noqa: E501 + :param version: The version of this Integration. # noqa: E501 :type: str """ + if self._configuration.client_side_validation and version is None: + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 - self._setup = setup + self._version = version def to_dict(self): """Returns the model properties as a dict""" @@ -560,6 +702,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Integration, dict): + for key, value in self.items(): + result[key] = value return result @@ -576,8 +721,11 @@ def __eq__(self, other): if not isinstance(other, Integration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Integration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/integration_alert.py b/wavefront_api_client/models/integration_alert.py new file mode 100644 index 00000000..fb75f2dc --- /dev/null +++ b/wavefront_api_client/models/integration_alert.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 IntegrationAlert(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 = { + 'alert_min_obj': 'AlertMin', + 'alert_obj': 'Alert', + 'description': 'str', + 'name': 'str', + 'url': 'str' + } + + attribute_map = { + 'alert_min_obj': 'alertMinObj', + 'alert_obj': 'alertObj', + 'description': 'description', + 'name': 'name', + 'url': 'url' + } + + def __init__(self, alert_min_obj=None, alert_obj=None, description=None, name=None, url=None, _configuration=None): # noqa: E501 + """IntegrationAlert - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._alert_min_obj = None + self._alert_obj = None + self._description = None + self._name = None + self._url = None + self.discriminator = None + + if alert_min_obj is not None: + self.alert_min_obj = alert_min_obj + if alert_obj is not None: + self.alert_obj = alert_obj + self.description = description + self.name = name + self.url = url + + @property + def alert_min_obj(self): + """Gets the alert_min_obj of this IntegrationAlert. # noqa: E501 + + + :return: The alert_min_obj of this IntegrationAlert. # noqa: E501 + :rtype: AlertMin + """ + return self._alert_min_obj + + @alert_min_obj.setter + def alert_min_obj(self, alert_min_obj): + """Sets the alert_min_obj of this IntegrationAlert. + + + :param alert_min_obj: The alert_min_obj of this IntegrationAlert. # noqa: E501 + :type: AlertMin + """ + + self._alert_min_obj = alert_min_obj + + @property + def alert_obj(self): + """Gets the alert_obj of this IntegrationAlert. # noqa: E501 + + + :return: The alert_obj of this IntegrationAlert. # noqa: E501 + :rtype: Alert + """ + return self._alert_obj + + @alert_obj.setter + def alert_obj(self, alert_obj): + """Sets the alert_obj of this IntegrationAlert. + + + :param alert_obj: The alert_obj of this IntegrationAlert. # noqa: E501 + :type: Alert + """ + + self._alert_obj = alert_obj + + @property + def description(self): + """Gets the description of this IntegrationAlert. # noqa: E501 + + Alert description # noqa: E501 + + :return: The description of this IntegrationAlert. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this IntegrationAlert. + + Alert description # noqa: E501 + + :param description: The description of this IntegrationAlert. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and description is None: + raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 + + self._description = description + + @property + def name(self): + """Gets the name of this IntegrationAlert. # noqa: E501 + + Alert name # noqa: E501 + + :return: The name of this IntegrationAlert. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IntegrationAlert. + + Alert name # noqa: E501 + + :param name: The name of this IntegrationAlert. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def url(self): + """Gets the url of this IntegrationAlert. # noqa: E501 + + URL path to the JSON definition of this alert # noqa: E501 + + :return: The url of this IntegrationAlert. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this IntegrationAlert. + + URL path to the JSON definition of this alert # noqa: E501 + + :param url: The url of this IntegrationAlert. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and url is None: + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 + + self._url = url + + 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(IntegrationAlert, 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, IntegrationAlert): + 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, IntegrationAlert): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/integration_alias.py b/wavefront_api_client/models/integration_alias.py index 0e14ce19..dd7e23cd 100644 --- a/wavefront_api_client/models/integration_alias.py +++ b/wavefront_api_client/models/integration_alias.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class IntegrationAlias(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,156 +33,159 @@ class IntegrationAlias(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'id': 'str', - 'description': 'str', 'base_url': 'str', - 'icon': 'str' + 'description': 'str', + 'icon': 'str', + 'id': 'str', + 'name': 'str' } attribute_map = { - 'name': 'name', - 'id': 'id', - 'description': 'description', 'base_url': 'baseUrl', - 'icon': 'icon' + 'description': 'description', + 'icon': 'icon', + 'id': 'id', + 'name': 'name' } - def __init__(self, name=None, id=None, description=None, base_url=None, icon=None): # noqa: E501 + def __init__(self, base_url=None, description=None, icon=None, id=None, name=None, _configuration=None): # noqa: E501 """IntegrationAlias - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._name = None - self._id = None - self._description = None self._base_url = None + self._description = None self._icon = None + self._id = None + self._name = None self.discriminator = None - if name is not None: - self.name = name - if id is not None: - self.id = id - if description is not None: - self.description = description if base_url is not None: self.base_url = base_url + if description is not None: + self.description = description if icon is not None: self.icon = icon + if id is not None: + self.id = id + if name is not None: + self.name = name @property - def name(self): - """Gets the name of this IntegrationAlias. # noqa: E501 + def base_url(self): + """Gets the base_url of this IntegrationAlias. # noqa: E501 - Name of the alias Integration # noqa: E501 + Base URL of this alias Integration # noqa: E501 - :return: The name of this IntegrationAlias. # noqa: E501 + :return: The base_url of this IntegrationAlias. # noqa: E501 :rtype: str """ - return self._name + return self._base_url - @name.setter - def name(self, name): - """Sets the name of this IntegrationAlias. + @base_url.setter + def base_url(self, base_url): + """Sets the base_url of this IntegrationAlias. - Name of the alias Integration # noqa: E501 + Base URL of this alias Integration # noqa: E501 - :param name: The name of this IntegrationAlias. # noqa: E501 + :param base_url: The base_url of this IntegrationAlias. # noqa: E501 :type: str """ - self._name = name + self._base_url = base_url @property - def id(self): - """Gets the id of this IntegrationAlias. # noqa: E501 + def description(self): + """Gets the description of this IntegrationAlias. # noqa: E501 - ID of the alias Integration # noqa: E501 + Description of the alias Integration # noqa: E501 - :return: The id of this IntegrationAlias. # noqa: E501 + :return: The description of this IntegrationAlias. # noqa: E501 :rtype: str """ - return self._id + return self._description - @id.setter - def id(self, id): - """Sets the id of this IntegrationAlias. + @description.setter + def description(self, description): + """Sets the description of this IntegrationAlias. - ID of the alias Integration # noqa: E501 + Description of the alias Integration # noqa: E501 - :param id: The id of this IntegrationAlias. # noqa: E501 + :param description: The description of this IntegrationAlias. # noqa: E501 :type: str """ - self._id = id + self._description = description @property - def description(self): - """Gets the description of this IntegrationAlias. # noqa: E501 + def icon(self): + """Gets the icon of this IntegrationAlias. # noqa: E501 - Description of the alias Integration # noqa: E501 + Icon path of the alias Integration # noqa: E501 - :return: The description of this IntegrationAlias. # noqa: E501 + :return: The icon of this IntegrationAlias. # noqa: E501 :rtype: str """ - return self._description + return self._icon - @description.setter - def description(self, description): - """Sets the description of this IntegrationAlias. + @icon.setter + def icon(self, icon): + """Sets the icon of this IntegrationAlias. - Description of the alias Integration # noqa: E501 + Icon path of the alias Integration # noqa: E501 - :param description: The description of this IntegrationAlias. # noqa: E501 + :param icon: The icon of this IntegrationAlias. # noqa: E501 :type: str """ - self._description = description + self._icon = icon @property - def base_url(self): - """Gets the base_url of this IntegrationAlias. # noqa: E501 + def id(self): + """Gets the id of this IntegrationAlias. # noqa: E501 - Base URL of this alias Integration # noqa: E501 + ID of the alias Integration # noqa: E501 - :return: The base_url of this IntegrationAlias. # noqa: E501 + :return: The id of this IntegrationAlias. # noqa: E501 :rtype: str """ - return self._base_url + return self._id - @base_url.setter - def base_url(self, base_url): - """Sets the base_url of this IntegrationAlias. + @id.setter + def id(self, id): + """Sets the id of this IntegrationAlias. - Base URL of this alias Integration # noqa: E501 + ID of the alias Integration # noqa: E501 - :param base_url: The base_url of this IntegrationAlias. # noqa: E501 + :param id: The id of this IntegrationAlias. # noqa: E501 :type: str """ - self._base_url = base_url + self._id = id @property - def icon(self): - """Gets the icon of this IntegrationAlias. # noqa: E501 + def name(self): + """Gets the name of this IntegrationAlias. # noqa: E501 - Icon path of the alias Integration # noqa: E501 + Name of the alias Integration # noqa: E501 - :return: The icon of this IntegrationAlias. # noqa: E501 + :return: The name of this IntegrationAlias. # noqa: E501 :rtype: str """ - return self._icon + return self._name - @icon.setter - def icon(self, icon): - """Sets the icon of this IntegrationAlias. + @name.setter + def name(self, name): + """Sets the name of this IntegrationAlias. - Icon path of the alias Integration # noqa: E501 + Name of the alias Integration # noqa: E501 - :param icon: The icon of this IntegrationAlias. # noqa: E501 + :param name: The name of this IntegrationAlias. # noqa: E501 :type: str """ - self._icon = icon + self._name = name def to_dict(self): """Returns the model properties as a dict""" @@ -203,6 +208,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(IntegrationAlias, dict): + for key, value in self.items(): + result[key] = value return result @@ -219,8 +227,11 @@ def __eq__(self, other): if not isinstance(other, IntegrationAlias): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, IntegrationAlias): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/integration_dashboard.py b/wavefront_api_client/models/integration_dashboard.py index 4ebd75cc..756f864f 100644 --- a/wavefront_api_client/models/integration_dashboard.py +++ b/wavefront_api_client/models/integration_dashboard.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.dashboard import Dashboard # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class IntegrationDashboard(object): @@ -33,58 +33,83 @@ class IntegrationDashboard(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', + 'dashboard_min_obj': 'DashboardMin', + 'dashboard_obj': 'Dashboard', 'description': 'str', - 'url': 'str', - 'dashboard_obj': 'Dashboard' + 'name': 'str', + 'url': 'str' } attribute_map = { - 'name': 'name', + 'dashboard_min_obj': 'dashboardMinObj', + 'dashboard_obj': 'dashboardObj', 'description': 'description', - 'url': 'url', - 'dashboard_obj': 'dashboardObj' + 'name': 'name', + 'url': 'url' } - def __init__(self, name=None, description=None, url=None, dashboard_obj=None): # noqa: E501 + def __init__(self, dashboard_min_obj=None, dashboard_obj=None, description=None, name=None, url=None, _configuration=None): # noqa: E501 """IntegrationDashboard - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._name = None + self._dashboard_min_obj = None + self._dashboard_obj = None self._description = None + self._name = None self._url = None - self._dashboard_obj = None self.discriminator = None - self.name = name - self.description = description - self.url = url + if dashboard_min_obj is not None: + self.dashboard_min_obj = dashboard_min_obj if dashboard_obj is not None: self.dashboard_obj = dashboard_obj + self.description = description + self.name = name + self.url = url @property - def name(self): - """Gets the name of this IntegrationDashboard. # noqa: E501 + def dashboard_min_obj(self): + """Gets the dashboard_min_obj of this IntegrationDashboard. # noqa: E501 - Dashboard name # noqa: E501 - :return: The name of this IntegrationDashboard. # noqa: E501 - :rtype: str + :return: The dashboard_min_obj of this IntegrationDashboard. # noqa: E501 + :rtype: DashboardMin """ - return self._name + return self._dashboard_min_obj - @name.setter - def name(self, name): - """Sets the name of this IntegrationDashboard. + @dashboard_min_obj.setter + def dashboard_min_obj(self, dashboard_min_obj): + """Sets the dashboard_min_obj of this IntegrationDashboard. - Dashboard name # noqa: E501 - :param name: The name of this IntegrationDashboard. # noqa: E501 - :type: str + :param dashboard_min_obj: The dashboard_min_obj of this IntegrationDashboard. # noqa: E501 + :type: DashboardMin """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._dashboard_min_obj = dashboard_min_obj + + @property + def dashboard_obj(self): + """Gets the dashboard_obj of this IntegrationDashboard. # noqa: E501 + + + :return: The dashboard_obj of this IntegrationDashboard. # noqa: E501 + :rtype: Dashboard + """ + return self._dashboard_obj + + @dashboard_obj.setter + def dashboard_obj(self, dashboard_obj): + """Sets the dashboard_obj of this IntegrationDashboard. + + + :param dashboard_obj: The dashboard_obj of this IntegrationDashboard. # noqa: E501 + :type: Dashboard + """ + + self._dashboard_obj = dashboard_obj @property def description(self): @@ -106,11 +131,36 @@ def description(self, description): :param description: The description of this IntegrationDashboard. # noqa: E501 :type: str """ - if description is None: + if self._configuration.client_side_validation and description is None: raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 self._description = description + @property + def name(self): + """Gets the name of this IntegrationDashboard. # noqa: E501 + + Dashboard name # noqa: E501 + + :return: The name of this IntegrationDashboard. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IntegrationDashboard. + + Dashboard name # noqa: E501 + + :param name: The name of this IntegrationDashboard. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + @property def url(self): """Gets the url of this IntegrationDashboard. # noqa: E501 @@ -131,32 +181,11 @@ def url(self, url): :param url: The url of this IntegrationDashboard. # noqa: E501 :type: str """ - if url is None: + if self._configuration.client_side_validation and url is None: raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 self._url = url - @property - def dashboard_obj(self): - """Gets the dashboard_obj of this IntegrationDashboard. # noqa: E501 - - - :return: The dashboard_obj of this IntegrationDashboard. # noqa: E501 - :rtype: Dashboard - """ - return self._dashboard_obj - - @dashboard_obj.setter - def dashboard_obj(self, dashboard_obj): - """Sets the dashboard_obj of this IntegrationDashboard. - - - :param dashboard_obj: The dashboard_obj of this IntegrationDashboard. # noqa: E501 - :type: Dashboard - """ - - self._dashboard_obj = dashboard_obj - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -178,6 +207,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(IntegrationDashboard, dict): + for key, value in self.items(): + result[key] = value return result @@ -194,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, IntegrationDashboard): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, IntegrationDashboard): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/integration_manifest_group.py b/wavefront_api_client/models/integration_manifest_group.py index a6d20e70..385cbd13 100644 --- a/wavefront_api_client/models/integration_manifest_group.py +++ b/wavefront_api_client/models/integration_manifest_group.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.integration import Integration # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class IntegrationManifestGroup(object): @@ -33,58 +33,59 @@ class IntegrationManifestGroup(object): and the value is json key in definition. """ swagger_types = { - 'subtitle': 'str', - 'integrations': 'list[str]', 'integration_objs': 'list[Integration]', + 'integrations': 'list[str]', + 'subtitle': 'str', 'title': 'str' } attribute_map = { - 'subtitle': 'subtitle', - 'integrations': 'integrations', 'integration_objs': 'integrationObjs', + 'integrations': 'integrations', + 'subtitle': 'subtitle', 'title': 'title' } - def __init__(self, subtitle=None, integrations=None, integration_objs=None, title=None): # noqa: E501 + def __init__(self, integration_objs=None, integrations=None, subtitle=None, title=None, _configuration=None): # noqa: E501 """IntegrationManifestGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._subtitle = None - self._integrations = None self._integration_objs = None + self._integrations = None + self._subtitle = None self._title = None self.discriminator = None - self.subtitle = subtitle - self.integrations = integrations if integration_objs is not None: self.integration_objs = integration_objs + self.integrations = integrations + self.subtitle = subtitle self.title = title @property - def subtitle(self): - """Gets the subtitle of this IntegrationManifestGroup. # noqa: E501 + def integration_objs(self): + """Gets the integration_objs of this IntegrationManifestGroup. # noqa: E501 - Subtitle of this integration group # noqa: E501 + Materialized JSONs for integrations belonging to this group, as referenced by `integrations` # noqa: E501 - :return: The subtitle of this IntegrationManifestGroup. # noqa: E501 - :rtype: str + :return: The integration_objs of this IntegrationManifestGroup. # noqa: E501 + :rtype: list[Integration] """ - return self._subtitle + return self._integration_objs - @subtitle.setter - def subtitle(self, subtitle): - """Sets the subtitle of this IntegrationManifestGroup. + @integration_objs.setter + def integration_objs(self, integration_objs): + """Sets the integration_objs of this IntegrationManifestGroup. - Subtitle of this integration group # noqa: E501 + Materialized JSONs for integrations belonging to this group, as referenced by `integrations` # noqa: E501 - :param subtitle: The subtitle of this IntegrationManifestGroup. # noqa: E501 - :type: str + :param integration_objs: The integration_objs of this IntegrationManifestGroup. # noqa: E501 + :type: list[Integration] """ - if subtitle is None: - raise ValueError("Invalid value for `subtitle`, must not be `None`") # noqa: E501 - self._subtitle = subtitle + self._integration_objs = integration_objs @property def integrations(self): @@ -106,33 +107,35 @@ def integrations(self, integrations): :param integrations: The integrations of this IntegrationManifestGroup. # noqa: E501 :type: list[str] """ - if integrations is None: + if self._configuration.client_side_validation and integrations is None: raise ValueError("Invalid value for `integrations`, must not be `None`") # noqa: E501 self._integrations = integrations @property - def integration_objs(self): - """Gets the integration_objs of this IntegrationManifestGroup. # noqa: E501 + def subtitle(self): + """Gets the subtitle of this IntegrationManifestGroup. # noqa: E501 - Materialized JSONs for integrations belonging to this group, as referenced by `integrations` # noqa: E501 + Subtitle of this integration group # noqa: E501 - :return: The integration_objs of this IntegrationManifestGroup. # noqa: E501 - :rtype: list[Integration] + :return: The subtitle of this IntegrationManifestGroup. # noqa: E501 + :rtype: str """ - return self._integration_objs + return self._subtitle - @integration_objs.setter - def integration_objs(self, integration_objs): - """Sets the integration_objs of this IntegrationManifestGroup. + @subtitle.setter + def subtitle(self, subtitle): + """Sets the subtitle of this IntegrationManifestGroup. - Materialized JSONs for integrations belonging to this group, as referenced by `integrations` # noqa: E501 + Subtitle of this integration group # noqa: E501 - :param integration_objs: The integration_objs of this IntegrationManifestGroup. # noqa: E501 - :type: list[Integration] + :param subtitle: The subtitle of this IntegrationManifestGroup. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and subtitle is None: + raise ValueError("Invalid value for `subtitle`, must not be `None`") # noqa: E501 - self._integration_objs = integration_objs + self._subtitle = subtitle @property def title(self): @@ -154,7 +157,7 @@ def title(self, title): :param title: The title of this IntegrationManifestGroup. # noqa: E501 :type: str """ - if title is None: + if self._configuration.client_side_validation and title is None: raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 self._title = title @@ -180,6 +183,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(IntegrationManifestGroup, dict): + for key, value in self.items(): + result[key] = value return result @@ -196,8 +202,11 @@ def __eq__(self, other): if not isinstance(other, IntegrationManifestGroup): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, IntegrationManifestGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/integration_metrics.py b/wavefront_api_client/models/integration_metrics.py index bfe895f4..25a8cca8 100644 --- a/wavefront_api_client/models/integration_metrics.py +++ b/wavefront_api_client/models/integration_metrics.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.chart import Chart # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class IntegrationMetrics(object): @@ -33,67 +33,45 @@ class IntegrationMetrics(object): and the value is json key in definition. """ swagger_types = { - 'display': 'list[str]', 'chart_objs': 'list[Chart]', 'charts': 'list[str]', - 'required': 'list[str]', + 'display': 'list[str]', + 'pps_dimensions': 'list[str]', 'prefixes': 'list[str]', - 'pps_dimensions': 'list[str]' + 'required': 'list[str]' } attribute_map = { - 'display': 'display', 'chart_objs': 'chartObjs', 'charts': 'charts', - 'required': 'required', + 'display': 'display', + 'pps_dimensions': 'ppsDimensions', 'prefixes': 'prefixes', - 'pps_dimensions': 'ppsDimensions' + 'required': 'required' } - def __init__(self, display=None, chart_objs=None, charts=None, required=None, prefixes=None, pps_dimensions=None): # noqa: E501 + def __init__(self, chart_objs=None, charts=None, display=None, pps_dimensions=None, prefixes=None, required=None, _configuration=None): # noqa: E501 """IntegrationMetrics - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._display = None self._chart_objs = None self._charts = None - self._required = None - self._prefixes = None + self._display = None self._pps_dimensions = None + self._prefixes = None + self._required = None self.discriminator = None - self.display = display if chart_objs is not None: self.chart_objs = chart_objs self.charts = charts - self.required = required - self.prefixes = prefixes + self.display = display if pps_dimensions is not None: self.pps_dimensions = pps_dimensions - - @property - def display(self): - """Gets the display of this IntegrationMetrics. # noqa: E501 - - Set of metrics that are displayed in the metric panel during integration setup # noqa: E501 - - :return: The display of this IntegrationMetrics. # noqa: E501 - :rtype: list[str] - """ - return self._display - - @display.setter - def display(self, display): - """Sets the display of this IntegrationMetrics. - - Set of metrics that are displayed in the metric panel during integration setup # noqa: E501 - - :param display: The display of this IntegrationMetrics. # noqa: E501 - :type: list[str] - """ - if display is None: - raise ValueError("Invalid value for `display`, must not be `None`") # noqa: E501 - - self._display = display + self.prefixes = prefixes + self.required = required @property def chart_objs(self): @@ -138,35 +116,58 @@ def charts(self, charts): :param charts: The charts of this IntegrationMetrics. # noqa: E501 :type: list[str] """ - if charts is None: + if self._configuration.client_side_validation and charts is None: raise ValueError("Invalid value for `charts`, must not be `None`") # noqa: E501 self._charts = charts @property - def required(self): - """Gets the required of this IntegrationMetrics. # noqa: E501 + def display(self): + """Gets the display of this IntegrationMetrics. # noqa: E501 - Set of \"canary\" metrics that define the \"liveness\" of this integration's metric ingestion # noqa: E501 + Set of metrics that are displayed in the metric panel during integration setup # noqa: E501 - :return: The required of this IntegrationMetrics. # noqa: E501 + :return: The display of this IntegrationMetrics. # noqa: E501 :rtype: list[str] """ - return self._required + return self._display - @required.setter - def required(self, required): - """Sets the required of this IntegrationMetrics. + @display.setter + def display(self, display): + """Sets the display of this IntegrationMetrics. - Set of \"canary\" metrics that define the \"liveness\" of this integration's metric ingestion # noqa: E501 + Set of metrics that are displayed in the metric panel during integration setup # noqa: E501 - :param required: The required of this IntegrationMetrics. # noqa: E501 + :param display: The display of this IntegrationMetrics. # noqa: E501 :type: list[str] """ - if required is None: - raise ValueError("Invalid value for `required`, must not be `None`") # noqa: E501 + if self._configuration.client_side_validation and display is None: + raise ValueError("Invalid value for `display`, must not be `None`") # noqa: E501 - self._required = required + self._display = display + + @property + def pps_dimensions(self): + """Gets the pps_dimensions of this IntegrationMetrics. # noqa: E501 + + For reported points belonging to this integration, these point tags are escalated to the internal point-rate counters so that reporting can be broken out by these dimensions # noqa: E501 + + :return: The pps_dimensions of this IntegrationMetrics. # noqa: E501 + :rtype: list[str] + """ + return self._pps_dimensions + + @pps_dimensions.setter + def pps_dimensions(self, pps_dimensions): + """Sets the pps_dimensions of this IntegrationMetrics. + + For reported points belonging to this integration, these point tags are escalated to the internal point-rate counters so that reporting can be broken out by these dimensions # noqa: E501 + + :param pps_dimensions: The pps_dimensions of this IntegrationMetrics. # noqa: E501 + :type: list[str] + """ + + self._pps_dimensions = pps_dimensions @property def prefixes(self): @@ -188,33 +189,35 @@ def prefixes(self, prefixes): :param prefixes: The prefixes of this IntegrationMetrics. # noqa: E501 :type: list[str] """ - if prefixes is None: + if self._configuration.client_side_validation and prefixes is None: raise ValueError("Invalid value for `prefixes`, must not be `None`") # noqa: E501 self._prefixes = prefixes @property - def pps_dimensions(self): - """Gets the pps_dimensions of this IntegrationMetrics. # noqa: E501 + def required(self): + """Gets the required of this IntegrationMetrics. # noqa: E501 - For reported points belonging to this integration, these point tags are escalated to the internal point-rate counters so that reporting can be broken out by these dimensions # noqa: E501 + Set of \"canary\" metrics that define the \"liveness\" of this integration's metric ingestion # noqa: E501 - :return: The pps_dimensions of this IntegrationMetrics. # noqa: E501 + :return: The required of this IntegrationMetrics. # noqa: E501 :rtype: list[str] """ - return self._pps_dimensions + return self._required - @pps_dimensions.setter - def pps_dimensions(self, pps_dimensions): - """Sets the pps_dimensions of this IntegrationMetrics. + @required.setter + def required(self, required): + """Sets the required of this IntegrationMetrics. - For reported points belonging to this integration, these point tags are escalated to the internal point-rate counters so that reporting can be broken out by these dimensions # noqa: E501 + Set of \"canary\" metrics that define the \"liveness\" of this integration's metric ingestion # noqa: E501 - :param pps_dimensions: The pps_dimensions of this IntegrationMetrics. # noqa: E501 + :param required: The required of this IntegrationMetrics. # noqa: E501 :type: list[str] """ + if self._configuration.client_side_validation and required is None: + raise ValueError("Invalid value for `required`, must not be `None`") # noqa: E501 - self._pps_dimensions = pps_dimensions + self._required = required def to_dict(self): """Returns the model properties as a dict""" @@ -237,6 +240,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(IntegrationMetrics, dict): + for key, value in self.items(): + result[key] = value return result @@ -253,8 +259,11 @@ def __eq__(self, other): if not isinstance(other, IntegrationMetrics): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, IntegrationMetrics): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/integration_status.py b/wavefront_api_client/models/integration_status.py index 873e31d1..b8a8cfe3 100644 --- a/wavefront_api_client/models/integration_status.py +++ b/wavefront_api_client/models/integration_status.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.metric_status import MetricStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class IntegrationStatus(object): @@ -33,28 +33,70 @@ class IntegrationStatus(object): and the value is json key in definition. """ swagger_types = { + 'alert_statuses': 'dict(str, str)', 'content_status': 'str', 'install_status': 'str', 'metric_statuses': 'dict(str, MetricStatus)' } attribute_map = { + 'alert_statuses': 'alertStatuses', 'content_status': 'contentStatus', 'install_status': 'installStatus', 'metric_statuses': 'metricStatuses' } - def __init__(self, content_status=None, install_status=None, metric_statuses=None): # noqa: E501 + def __init__(self, alert_statuses=None, content_status=None, install_status=None, metric_statuses=None, _configuration=None): # noqa: E501 """IntegrationStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._alert_statuses = None self._content_status = None self._install_status = None self._metric_statuses = None self.discriminator = None - self.content_status = content_status - self.install_status = install_status - self.metric_statuses = metric_statuses + if alert_statuses is not None: + self.alert_statuses = alert_statuses + if content_status is not None: + self.content_status = content_status + if install_status is not None: + self.install_status = install_status + if metric_statuses is not None: + self.metric_statuses = metric_statuses + + @property + def alert_statuses(self): + """Gets the alert_statuses of this IntegrationStatus. # noqa: E501 + + A Map from the ids of the alerts contained in this integration to their install status. The install status can take on one of three values, `VISIBLE`, `HIDDEN`, and `NOT_LOADED` # noqa: E501 + + :return: The alert_statuses of this IntegrationStatus. # noqa: E501 + :rtype: dict(str, str) + """ + return self._alert_statuses + + @alert_statuses.setter + def alert_statuses(self, alert_statuses): + """Sets the alert_statuses of this IntegrationStatus. + + A Map from the ids of the alerts contained in this integration to their install status. The install status can take on one of three values, `VISIBLE`, `HIDDEN`, and `NOT_LOADED` # noqa: E501 + + :param alert_statuses: The alert_statuses of this IntegrationStatus. # noqa: E501 + :type: dict(str, str) + """ + allowed_values = ["VISIBLE", "HIDDEN", "NOT_LOADED"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(alert_statuses.keys()).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid keys in `alert_statuses` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(alert_statuses.keys()) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._alert_statuses = alert_statuses @property def content_status(self): @@ -76,10 +118,9 @@ def content_status(self, content_status): :param content_status: The content_status of this IntegrationStatus. # noqa: E501 :type: str """ - if content_status is None: - raise ValueError("Invalid value for `content_status`, must not be `None`") # noqa: E501 allowed_values = ["INVALID", "NOT_LOADED", "HIDDEN", "VISIBLE"] # noqa: E501 - if content_status not in allowed_values: + if (self._configuration.client_side_validation and + content_status not in allowed_values): raise ValueError( "Invalid value for `content_status` ({0}), must be one of {1}" # noqa: E501 .format(content_status, allowed_values) @@ -91,7 +132,7 @@ def content_status(self, content_status): def install_status(self): """Gets the install_status of this IntegrationStatus. # noqa: E501 - Whether the customer or an automated process has chosen to install this integration # noqa: E501 + Whether the customer or an automated process has installed the dashboards for this integration # noqa: E501 :return: The install_status of this IntegrationStatus. # noqa: E501 :rtype: str @@ -102,15 +143,14 @@ def install_status(self): def install_status(self, install_status): """Sets the install_status of this IntegrationStatus. - Whether the customer or an automated process has chosen to install this integration # noqa: E501 + Whether the customer or an automated process has installed the dashboards for this integration # noqa: E501 :param install_status: The install_status of this IntegrationStatus. # noqa: E501 :type: str """ - if install_status is None: - raise ValueError("Invalid value for `install_status`, must not be `None`") # noqa: E501 allowed_values = ["UNDECIDED", "UNINSTALLED", "INSTALLED"] # noqa: E501 - if install_status not in allowed_values: + if (self._configuration.client_side_validation and + install_status not in allowed_values): raise ValueError( "Invalid value for `install_status` ({0}), must be one of {1}" # noqa: E501 .format(install_status, allowed_values) @@ -138,8 +178,6 @@ def metric_statuses(self, metric_statuses): :param metric_statuses: The metric_statuses of this IntegrationStatus. # noqa: E501 :type: dict(str, MetricStatus) """ - if metric_statuses is None: - raise ValueError("Invalid value for `metric_statuses`, must not be `None`") # noqa: E501 self._metric_statuses = metric_statuses @@ -164,6 +202,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(IntegrationStatus, dict): + for key, value in self.items(): + result[key] = value return result @@ -180,8 +221,11 @@ def __eq__(self, other): if not isinstance(other, IntegrationStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, IntegrationStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/json_node.py b/wavefront_api_client/models/json_node.py index a11b0c5c..f3ea8284 100644 --- a/wavefront_api_client/models/json_node.py +++ b/wavefront_api_client/models/json_node.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class JsonNode(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -36,8 +38,11 @@ class JsonNode(object): attribute_map = { } - def __init__(self): # noqa: E501 + def __init__(self, _configuration=None): # noqa: E501 """JsonNode - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -61,6 +66,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(JsonNode, dict): + for key, value in self.items(): + result[key] = value return result @@ -77,8 +85,11 @@ def __eq__(self, other): if not isinstance(other, JsonNode): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, JsonNode): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/kubernetes_component.py b/wavefront_api_client/models/kubernetes_component.py new file mode 100644 index 00000000..e48cddcc --- /dev/null +++ b/wavefront_api_client/models/kubernetes_component.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 KubernetesComponent(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 = { + 'last_updated': 'int', + 'name': 'str', + 'status': 'dict(str, KubernetesComponentStatus)' + } + + attribute_map = { + 'last_updated': 'lastUpdated', + 'name': 'name', + 'status': 'status' + } + + def __init__(self, last_updated=None, name=None, status=None, _configuration=None): # noqa: E501 + """KubernetesComponent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._last_updated = None + self._name = None + self._status = None + self.discriminator = None + + if last_updated is not None: + self.last_updated = last_updated + self.name = name + if status is not None: + self.status = status + + @property + def last_updated(self): + """Gets the last_updated of this KubernetesComponent. # noqa: E501 + + Last updated time of the monitored cluster component # noqa: E501 + + :return: The last_updated of this KubernetesComponent. # noqa: E501 + :rtype: int + """ + return self._last_updated + + @last_updated.setter + def last_updated(self, last_updated): + """Sets the last_updated of this KubernetesComponent. + + Last updated time of the monitored cluster component # noqa: E501 + + :param last_updated: The last_updated of this KubernetesComponent. # noqa: E501 + :type: int + """ + + self._last_updated = last_updated + + @property + def name(self): + """Gets the name of this KubernetesComponent. # noqa: E501 + + Name of the monitored cluster component # noqa: E501 + + :return: The name of this KubernetesComponent. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this KubernetesComponent. + + Name of the monitored cluster component # noqa: E501 + + :param name: The name of this KubernetesComponent. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def status(self): + """Gets the status of this KubernetesComponent. # noqa: E501 + + Status of the monitored cluster component # noqa: E501 + + :return: The status of this KubernetesComponent. # noqa: E501 + :rtype: dict(str, KubernetesComponentStatus) + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this KubernetesComponent. + + Status of the monitored cluster component # noqa: E501 + + :param status: The status of this KubernetesComponent. # noqa: E501 + :type: dict(str, KubernetesComponentStatus) + """ + + 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(KubernetesComponent, 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, KubernetesComponent): + 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, KubernetesComponent): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/kubernetes_component_status.py b/wavefront_api_client/models/kubernetes_component_status.py new file mode 100644 index 00000000..4c06a5ff --- /dev/null +++ b/wavefront_api_client/models/kubernetes_component_status.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 KubernetesComponentStatus(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 = { + 'description': 'str', + 'name': 'str', + 'status': 'bool' + } + + attribute_map = { + 'description': 'description', + 'name': 'name', + 'status': 'status' + } + + def __init__(self, description=None, name=None, status=None, _configuration=None): # noqa: E501 + """KubernetesComponentStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._description = None + self._name = None + self._status = None + self.discriminator = None + + if description is not None: + self.description = description + self.name = name + if status is not None: + self.status = status + + @property + def description(self): + """Gets the description of this KubernetesComponentStatus. # noqa: E501 + + Description of component status # noqa: E501 + + :return: The description of this KubernetesComponentStatus. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this KubernetesComponentStatus. + + Description of component status # noqa: E501 + + :param description: The description of this KubernetesComponentStatus. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this KubernetesComponentStatus. # noqa: E501 + + Name of the component status # noqa: E501 + + :return: The name of this KubernetesComponentStatus. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this KubernetesComponentStatus. + + Name of the component status # noqa: E501 + + :param name: The name of this KubernetesComponentStatus. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def status(self): + """Gets the status of this KubernetesComponentStatus. # noqa: E501 + + Status value # noqa: E501 + + :return: The status of this KubernetesComponentStatus. # noqa: E501 + :rtype: bool + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this KubernetesComponentStatus. + + Status value # noqa: E501 + + :param status: The status of this KubernetesComponentStatus. # noqa: E501 + :type: bool + """ + + 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(KubernetesComponentStatus, 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, KubernetesComponentStatus): + 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, KubernetesComponentStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/logical_type.py b/wavefront_api_client/models/logical_type.py new file mode 100644 index 00000000..b05c54e2 --- /dev/null +++ b/wavefront_api_client/models/logical_type.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 LogicalType(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 = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None, _configuration=None): # noqa: E501 + """LogicalType - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._name = None + self.discriminator = None + + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this LogicalType. # noqa: E501 + + + :return: The name of this LogicalType. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this LogicalType. + + + :param name: The name of this LogicalType. # 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(LogicalType, 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, LogicalType): + 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, LogicalType): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/logs_sort.py b/wavefront_api_client/models/logs_sort.py new file mode 100644 index 00000000..48a321e6 --- /dev/null +++ b/wavefront_api_client/models/logs_sort.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 LogsSort(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 = { + 'order': 'str', + 'sort': 'str' + } + + attribute_map = { + 'order': 'order', + 'sort': 'sort' + } + + def __init__(self, order=None, sort=None, _configuration=None): # noqa: E501 + """LogsSort - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._order = None + self._sort = None + self.discriminator = None + + if order is not None: + self.order = order + if sort is not None: + self.sort = sort + + @property + def order(self): + """Gets the order of this LogsSort. # noqa: E501 + + + :return: The order of this LogsSort. # noqa: E501 + :rtype: str + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this LogsSort. + + + :param order: The order of this LogsSort. # noqa: E501 + :type: str + """ + + self._order = order + + @property + def sort(self): + """Gets the sort of this LogsSort. # noqa: E501 + + + :return: The sort of this LogsSort. # noqa: E501 + :rtype: str + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this LogsSort. + + + :param sort: The sort of this LogsSort. # noqa: E501 + :type: str + """ + + self._sort = sort + + 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(LogsSort, 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, LogsSort): + 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, LogsSort): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/logs_table.py b/wavefront_api_client/models/logs_table.py new file mode 100644 index 00000000..26ba97a6 --- /dev/null +++ b/wavefront_api_client/models/logs_table.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 LogsTable(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 = { + 'auto_load': 'bool', + 'columns': 'list[str]', + 'lines_to_show': 'str', + 'sort': 'LogsSort' + } + + attribute_map = { + 'auto_load': 'autoLoad', + 'columns': 'columns', + 'lines_to_show': 'linesToShow', + 'sort': 'sort' + } + + def __init__(self, auto_load=None, columns=None, lines_to_show=None, sort=None, _configuration=None): # noqa: E501 + """LogsTable - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auto_load = None + self._columns = None + self._lines_to_show = None + self._sort = None + self.discriminator = None + + if auto_load is not None: + self.auto_load = auto_load + if columns is not None: + self.columns = columns + if lines_to_show is not None: + self.lines_to_show = lines_to_show + if sort is not None: + self.sort = sort + + @property + def auto_load(self): + """Gets the auto_load of this LogsTable. # noqa: E501 + + + :return: The auto_load of this LogsTable. # noqa: E501 + :rtype: bool + """ + return self._auto_load + + @auto_load.setter + def auto_load(self, auto_load): + """Sets the auto_load of this LogsTable. + + + :param auto_load: The auto_load of this LogsTable. # noqa: E501 + :type: bool + """ + + self._auto_load = auto_load + + @property + def columns(self): + """Gets the columns of this LogsTable. # noqa: E501 + + + :return: The columns of this LogsTable. # noqa: E501 + :rtype: list[str] + """ + return self._columns + + @columns.setter + def columns(self, columns): + """Sets the columns of this LogsTable. + + + :param columns: The columns of this LogsTable. # noqa: E501 + :type: list[str] + """ + + self._columns = columns + + @property + def lines_to_show(self): + """Gets the lines_to_show of this LogsTable. # noqa: E501 + + + :return: The lines_to_show of this LogsTable. # noqa: E501 + :rtype: str + """ + return self._lines_to_show + + @lines_to_show.setter + def lines_to_show(self, lines_to_show): + """Sets the lines_to_show of this LogsTable. + + + :param lines_to_show: The lines_to_show of this LogsTable. # noqa: E501 + :type: str + """ + + self._lines_to_show = lines_to_show + + @property + def sort(self): + """Gets the sort of this LogsTable. # noqa: E501 + + + :return: The sort of this LogsTable. # noqa: E501 + :rtype: LogsSort + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this LogsTable. + + + :param sort: The sort of this LogsTable. # noqa: E501 + :type: LogsSort + """ + + self._sort = sort + + 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(LogsTable, 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, LogsTable): + 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, LogsTable): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/maintenance_window.py b/wavefront_api_client/models/maintenance_window.py index 1dab67cf..96d26dcd 100644 --- a/wavefront_api_client/models/maintenance_window.py +++ b/wavefront_api_client/models/maintenance_window.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class MaintenanceWindow(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,147 +33,166 @@ class MaintenanceWindow(object): and the value is json key in definition. """ swagger_types = { - 'id': 'str', - 'reason': 'str', + 'created_epoch_millis': 'int', + 'creator_id': 'str', 'customer_id': 'str', + 'end_time_in_seconds': 'int', 'event_name': 'str', - 'creator_id': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', + 'host_tag_group_host_names_group_anded': 'bool', + 'id': 'str', + 'point_tag_filter': 'str', + 'point_tag_filter_anded': 'bool', + 'reason': 'str', + 'relevant_customer_tags': 'list[str]', + 'relevant_customer_tags_anded': 'bool', 'relevant_host_names': 'list[str]', 'relevant_host_tags': 'list[str]', 'relevant_host_tags_anded': 'bool', - 'host_tag_group_host_names_group_anded': 'bool', - 'updater_id': 'str', - 'relevant_customer_tags': 'list[str]', - 'title': 'str', - 'start_time_in_seconds': 'int', - 'end_time_in_seconds': 'int', 'running_state': 'str', - 'sort_attr': 'int' + 'sort_attr': 'int', + 'start_time_in_seconds': 'int', + 'targets': 'list[str]', + 'title': 'str', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' } attribute_map = { - 'id': 'id', - 'reason': 'reason', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', 'customer_id': 'customerId', + 'end_time_in_seconds': 'endTimeInSeconds', 'event_name': 'eventName', - 'creator_id': 'creatorId', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', + 'host_tag_group_host_names_group_anded': 'hostTagGroupHostNamesGroupAnded', + 'id': 'id', + 'point_tag_filter': 'pointTagFilter', + 'point_tag_filter_anded': 'pointTagFilterAnded', + 'reason': 'reason', + 'relevant_customer_tags': 'relevantCustomerTags', + 'relevant_customer_tags_anded': 'relevantCustomerTagsAnded', 'relevant_host_names': 'relevantHostNames', 'relevant_host_tags': 'relevantHostTags', 'relevant_host_tags_anded': 'relevantHostTagsAnded', - 'host_tag_group_host_names_group_anded': 'hostTagGroupHostNamesGroupAnded', - 'updater_id': 'updaterId', - 'relevant_customer_tags': 'relevantCustomerTags', - 'title': 'title', - 'start_time_in_seconds': 'startTimeInSeconds', - 'end_time_in_seconds': 'endTimeInSeconds', 'running_state': 'runningState', - 'sort_attr': 'sortAttr' + 'sort_attr': 'sortAttr', + 'start_time_in_seconds': 'startTimeInSeconds', + 'targets': 'targets', + 'title': 'title', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' } - def __init__(self, id=None, reason=None, customer_id=None, event_name=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, relevant_host_names=None, relevant_host_tags=None, relevant_host_tags_anded=None, host_tag_group_host_names_group_anded=None, updater_id=None, relevant_customer_tags=None, title=None, start_time_in_seconds=None, end_time_in_seconds=None, running_state=None, sort_attr=None): # noqa: E501 + def __init__(self, created_epoch_millis=None, creator_id=None, customer_id=None, end_time_in_seconds=None, event_name=None, host_tag_group_host_names_group_anded=None, id=None, point_tag_filter=None, point_tag_filter_anded=None, reason=None, relevant_customer_tags=None, relevant_customer_tags_anded=None, relevant_host_names=None, relevant_host_tags=None, relevant_host_tags_anded=None, running_state=None, sort_attr=None, start_time_in_seconds=None, targets=None, title=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 """MaintenanceWindow - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._id = None - self._reason = None + self._created_epoch_millis = None + self._creator_id = None self._customer_id = None + self._end_time_in_seconds = None self._event_name = None - self._creator_id = None - self._created_epoch_millis = None - self._updated_epoch_millis = None + self._host_tag_group_host_names_group_anded = None + self._id = None + self._point_tag_filter = None + self._point_tag_filter_anded = None + self._reason = None + self._relevant_customer_tags = None + self._relevant_customer_tags_anded = None self._relevant_host_names = None self._relevant_host_tags = None self._relevant_host_tags_anded = None - self._host_tag_group_host_names_group_anded = None - self._updater_id = None - self._relevant_customer_tags = None - self._title = None - self._start_time_in_seconds = None - self._end_time_in_seconds = None self._running_state = None self._sort_attr = None + self._start_time_in_seconds = None + self._targets = None + self._title = None + self._updated_epoch_millis = None + self._updater_id = None self.discriminator = None - if id is not None: - self.id = id - self.reason = reason + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id if customer_id is not None: self.customer_id = customer_id + self.end_time_in_seconds = end_time_in_seconds if event_name is not None: self.event_name = event_name - if creator_id is not None: - self.creator_id = creator_id - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis - if updated_epoch_millis is not None: - self.updated_epoch_millis = updated_epoch_millis + if host_tag_group_host_names_group_anded is not None: + self.host_tag_group_host_names_group_anded = host_tag_group_host_names_group_anded + if id is not None: + self.id = id + if point_tag_filter is not None: + self.point_tag_filter = point_tag_filter + if point_tag_filter_anded is not None: + self.point_tag_filter_anded = point_tag_filter_anded + self.reason = reason + self.relevant_customer_tags = relevant_customer_tags + if relevant_customer_tags_anded is not None: + self.relevant_customer_tags_anded = relevant_customer_tags_anded if relevant_host_names is not None: self.relevant_host_names = relevant_host_names if relevant_host_tags is not None: self.relevant_host_tags = relevant_host_tags if relevant_host_tags_anded is not None: self.relevant_host_tags_anded = relevant_host_tags_anded - if host_tag_group_host_names_group_anded is not None: - self.host_tag_group_host_names_group_anded = host_tag_group_host_names_group_anded - if updater_id is not None: - self.updater_id = updater_id - self.relevant_customer_tags = relevant_customer_tags - self.title = title - self.start_time_in_seconds = start_time_in_seconds - self.end_time_in_seconds = end_time_in_seconds if running_state is not None: self.running_state = running_state if sort_attr is not None: self.sort_attr = sort_attr + self.start_time_in_seconds = start_time_in_seconds + if targets is not None: + self.targets = targets + self.title = title + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id @property - def id(self): - """Gets the id of this MaintenanceWindow. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this MaintenanceWindow. # noqa: E501 - :return: The id of this MaintenanceWindow. # noqa: E501 - :rtype: str + :return: The created_epoch_millis of this MaintenanceWindow. # noqa: E501 + :rtype: int """ - return self._id + return self._created_epoch_millis - @id.setter - def id(self, id): - """Sets the id of this MaintenanceWindow. + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): + """Sets the created_epoch_millis of this MaintenanceWindow. - :param id: The id of this MaintenanceWindow. # noqa: E501 - :type: str + :param created_epoch_millis: The created_epoch_millis of this MaintenanceWindow. # noqa: E501 + :type: int """ - self._id = id + self._created_epoch_millis = created_epoch_millis @property - def reason(self): - """Gets the reason of this MaintenanceWindow. # noqa: E501 + def creator_id(self): + """Gets the creator_id of this MaintenanceWindow. # noqa: E501 - The purpose of this maintenance window # noqa: E501 - :return: The reason of this MaintenanceWindow. # noqa: E501 + :return: The creator_id of this MaintenanceWindow. # noqa: E501 :rtype: str """ - return self._reason + return self._creator_id - @reason.setter - def reason(self, reason): - """Sets the reason of this MaintenanceWindow. + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this MaintenanceWindow. - The purpose of this maintenance window # noqa: E501 - :param reason: The reason of this MaintenanceWindow. # noqa: E501 + :param creator_id: The creator_id of this MaintenanceWindow. # noqa: E501 :type: str """ - if reason is None: - raise ValueError("Invalid value for `reason`, must not be `None`") # noqa: E501 - self._reason = reason + self._creator_id = creator_id @property def customer_id(self): @@ -194,6 +215,31 @@ def customer_id(self, customer_id): self._customer_id = customer_id + @property + def end_time_in_seconds(self): + """Gets the end_time_in_seconds of this MaintenanceWindow. # noqa: E501 + + The time in epoch seconds when this maintenance window will end # noqa: E501 + + :return: The end_time_in_seconds of this MaintenanceWindow. # noqa: E501 + :rtype: int + """ + return self._end_time_in_seconds + + @end_time_in_seconds.setter + def end_time_in_seconds(self, end_time_in_seconds): + """Sets the end_time_in_seconds of this MaintenanceWindow. + + The time in epoch seconds when this maintenance window will end # noqa: E501 + + :param end_time_in_seconds: The end_time_in_seconds of this MaintenanceWindow. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and end_time_in_seconds is None: + raise ValueError("Invalid value for `end_time_in_seconds`, must not be `None`") # noqa: E501 + + self._end_time_in_seconds = end_time_in_seconds + @property def event_name(self): """Gets the event_name of this MaintenanceWindow. # noqa: E501 @@ -218,67 +264,167 @@ def event_name(self, event_name): self._event_name = event_name @property - def creator_id(self): - """Gets the creator_id of this MaintenanceWindow. # noqa: E501 + def host_tag_group_host_names_group_anded(self): + """Gets the host_tag_group_host_names_group_anded of this MaintenanceWindow. # noqa: E501 + If true, a source/host must be in 'relevantHostNames' and have tags matching the specification formed by 'relevantHostTags' and 'relevantHostTagsAnded' in order for this maintenance window to apply. If false, a source/host must either be in 'relevantHostNames' or match 'relevantHostTags' and 'relevantHostTagsAnded'. Default: false # noqa: E501 - :return: The creator_id of this MaintenanceWindow. # noqa: E501 + :return: The host_tag_group_host_names_group_anded of this MaintenanceWindow. # noqa: E501 + :rtype: bool + """ + return self._host_tag_group_host_names_group_anded + + @host_tag_group_host_names_group_anded.setter + def host_tag_group_host_names_group_anded(self, host_tag_group_host_names_group_anded): + """Sets the host_tag_group_host_names_group_anded of this MaintenanceWindow. + + If true, a source/host must be in 'relevantHostNames' and have tags matching the specification formed by 'relevantHostTags' and 'relevantHostTagsAnded' in order for this maintenance window to apply. If false, a source/host must either be in 'relevantHostNames' or match 'relevantHostTags' and 'relevantHostTagsAnded'. Default: false # noqa: E501 + + :param host_tag_group_host_names_group_anded: The host_tag_group_host_names_group_anded of this MaintenanceWindow. # noqa: E501 + :type: bool + """ + + self._host_tag_group_host_names_group_anded = host_tag_group_host_names_group_anded + + @property + def id(self): + """Gets the id of this MaintenanceWindow. # noqa: E501 + + + :return: The id of this MaintenanceWindow. # noqa: E501 :rtype: str """ - return self._creator_id + return self._id - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this MaintenanceWindow. + @id.setter + def id(self, id): + """Sets the id of this MaintenanceWindow. - :param creator_id: The creator_id of this MaintenanceWindow. # noqa: E501 + :param id: The id of this MaintenanceWindow. # noqa: E501 :type: str """ - self._creator_id = creator_id + self._id = id @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this MaintenanceWindow. # noqa: E501 + def point_tag_filter(self): + """Gets the point_tag_filter of this MaintenanceWindow. # noqa: E501 + Query that filters on point tags of timeseries scanned by alert. # noqa: E501 - :return: The created_epoch_millis of this MaintenanceWindow. # noqa: E501 - :rtype: int + :return: The point_tag_filter of this MaintenanceWindow. # noqa: E501 + :rtype: str """ - return self._created_epoch_millis + return self._point_tag_filter - @created_epoch_millis.setter - def created_epoch_millis(self, created_epoch_millis): - """Sets the created_epoch_millis of this MaintenanceWindow. + @point_tag_filter.setter + def point_tag_filter(self, point_tag_filter): + """Sets the point_tag_filter of this MaintenanceWindow. + Query that filters on point tags of timeseries scanned by alert. # noqa: E501 - :param created_epoch_millis: The created_epoch_millis of this MaintenanceWindow. # noqa: E501 - :type: int + :param point_tag_filter: The point_tag_filter of this MaintenanceWindow. # noqa: E501 + :type: str """ - self._created_epoch_millis = created_epoch_millis + self._point_tag_filter = point_tag_filter @property - def updated_epoch_millis(self): - """Gets the updated_epoch_millis of this MaintenanceWindow. # noqa: E501 + def point_tag_filter_anded(self): + """Gets the point_tag_filter_anded of this MaintenanceWindow. # noqa: E501 + Whether to AND point tags filter listed in pointTagFilter. If true, a timeseries must contain the point tags along with other filters in order for the maintenance window to apply.If false, the tags are OR'ed, the customer must contain one of the tags. Default: false # noqa: E501 - :return: The updated_epoch_millis of this MaintenanceWindow. # noqa: E501 - :rtype: int + :return: The point_tag_filter_anded of this MaintenanceWindow. # noqa: E501 + :rtype: bool """ - return self._updated_epoch_millis + return self._point_tag_filter_anded - @updated_epoch_millis.setter - def updated_epoch_millis(self, updated_epoch_millis): - """Sets the updated_epoch_millis of this MaintenanceWindow. + @point_tag_filter_anded.setter + def point_tag_filter_anded(self, point_tag_filter_anded): + """Sets the point_tag_filter_anded of this MaintenanceWindow. + Whether to AND point tags filter listed in pointTagFilter. If true, a timeseries must contain the point tags along with other filters in order for the maintenance window to apply.If false, the tags are OR'ed, the customer must contain one of the tags. Default: false # noqa: E501 - :param updated_epoch_millis: The updated_epoch_millis of this MaintenanceWindow. # noqa: E501 - :type: int + :param point_tag_filter_anded: The point_tag_filter_anded of this MaintenanceWindow. # noqa: E501 + :type: bool """ - self._updated_epoch_millis = updated_epoch_millis + self._point_tag_filter_anded = point_tag_filter_anded + + @property + def reason(self): + """Gets the reason of this MaintenanceWindow. # noqa: E501 + + The purpose of this maintenance window # noqa: E501 + + :return: The reason of this MaintenanceWindow. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this MaintenanceWindow. + + The purpose of this maintenance window # noqa: E501 + + :param reason: The reason of this MaintenanceWindow. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and reason is None: + raise ValueError("Invalid value for `reason`, must not be `None`") # noqa: E501 + + self._reason = reason + + @property + def relevant_customer_tags(self): + """Gets the relevant_customer_tags of this MaintenanceWindow. # noqa: E501 + + List of alert tags whose matching alerts will be put into maintenance because of this maintenance window # noqa: E501 + + :return: The relevant_customer_tags of this MaintenanceWindow. # noqa: E501 + :rtype: list[str] + """ + return self._relevant_customer_tags + + @relevant_customer_tags.setter + def relevant_customer_tags(self, relevant_customer_tags): + """Sets the relevant_customer_tags of this MaintenanceWindow. + + List of alert tags whose matching alerts will be put into maintenance because of this maintenance window # noqa: E501 + + :param relevant_customer_tags: The relevant_customer_tags of this MaintenanceWindow. # noqa: E501 + :type: list[str] + """ + if self._configuration.client_side_validation and relevant_customer_tags is None: + raise ValueError("Invalid value for `relevant_customer_tags`, must not be `None`") # noqa: E501 + + self._relevant_customer_tags = relevant_customer_tags + + @property + def relevant_customer_tags_anded(self): + """Gets the relevant_customer_tags_anded of this MaintenanceWindow. # noqa: E501 + + Whether to AND customer tags listed in relevantCustomerTags. If true, a customer must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a customer must contain one of the tags. Default: false # noqa: E501 + + :return: The relevant_customer_tags_anded of this MaintenanceWindow. # noqa: E501 + :rtype: bool + """ + return self._relevant_customer_tags_anded + + @relevant_customer_tags_anded.setter + def relevant_customer_tags_anded(self, relevant_customer_tags_anded): + """Sets the relevant_customer_tags_anded of this MaintenanceWindow. + + Whether to AND customer tags listed in relevantCustomerTags. If true, a customer must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a customer must contain one of the tags. Default: false # noqa: E501 + + :param relevant_customer_tags_anded: The relevant_customer_tags_anded of this MaintenanceWindow. # noqa: E501 + :type: bool + """ + + self._relevant_customer_tags_anded = relevant_customer_tags_anded @property def relevant_host_names(self): @@ -350,98 +496,55 @@ def relevant_host_tags_anded(self, relevant_host_tags_anded): self._relevant_host_tags_anded = relevant_host_tags_anded @property - def host_tag_group_host_names_group_anded(self): - """Gets the host_tag_group_host_names_group_anded of this MaintenanceWindow. # noqa: E501 - - If true, a source/host must be in 'relevantHostNames' and have tags matching the specification formed by 'relevantHostTags' and 'relevantHostTagsAnded' in order for this maintenance window to apply. If false, a source/host must either be in 'relevantHostNames' or match 'relevantHostTags' and 'relevantHostTagsAnded'. Default: false # noqa: E501 - - :return: The host_tag_group_host_names_group_anded of this MaintenanceWindow. # noqa: E501 - :rtype: bool - """ - return self._host_tag_group_host_names_group_anded - - @host_tag_group_host_names_group_anded.setter - def host_tag_group_host_names_group_anded(self, host_tag_group_host_names_group_anded): - """Sets the host_tag_group_host_names_group_anded of this MaintenanceWindow. - - If true, a source/host must be in 'relevantHostNames' and have tags matching the specification formed by 'relevantHostTags' and 'relevantHostTagsAnded' in order for this maintenance window to apply. If false, a source/host must either be in 'relevantHostNames' or match 'relevantHostTags' and 'relevantHostTagsAnded'. Default: false # noqa: E501 - - :param host_tag_group_host_names_group_anded: The host_tag_group_host_names_group_anded of this MaintenanceWindow. # noqa: E501 - :type: bool - """ - - self._host_tag_group_host_names_group_anded = host_tag_group_host_names_group_anded - - @property - def updater_id(self): - """Gets the updater_id of this MaintenanceWindow. # noqa: E501 + def running_state(self): + """Gets the running_state of this MaintenanceWindow. # noqa: E501 - :return: The updater_id of this MaintenanceWindow. # noqa: E501 + :return: The running_state of this MaintenanceWindow. # noqa: E501 :rtype: str """ - return self._updater_id + return self._running_state - @updater_id.setter - def updater_id(self, updater_id): - """Sets the updater_id of this MaintenanceWindow. + @running_state.setter + def running_state(self, running_state): + """Sets the running_state of this MaintenanceWindow. - :param updater_id: The updater_id of this MaintenanceWindow. # noqa: E501 + :param running_state: The running_state of this MaintenanceWindow. # noqa: E501 :type: str """ + allowed_values = ["ONGOING", "PENDING", "ENDED"] # noqa: E501 + if (self._configuration.client_side_validation and + running_state not in allowed_values): + raise ValueError( + "Invalid value for `running_state` ({0}), must be one of {1}" # noqa: E501 + .format(running_state, allowed_values) + ) - self._updater_id = updater_id - - @property - def relevant_customer_tags(self): - """Gets the relevant_customer_tags of this MaintenanceWindow. # noqa: E501 - - List of alert tags whose matching alerts will be put into maintenance because of this maintenance window # noqa: E501 - - :return: The relevant_customer_tags of this MaintenanceWindow. # noqa: E501 - :rtype: list[str] - """ - return self._relevant_customer_tags - - @relevant_customer_tags.setter - def relevant_customer_tags(self, relevant_customer_tags): - """Sets the relevant_customer_tags of this MaintenanceWindow. - - List of alert tags whose matching alerts will be put into maintenance because of this maintenance window # noqa: E501 - - :param relevant_customer_tags: The relevant_customer_tags of this MaintenanceWindow. # noqa: E501 - :type: list[str] - """ - if relevant_customer_tags is None: - raise ValueError("Invalid value for `relevant_customer_tags`, must not be `None`") # noqa: E501 - - self._relevant_customer_tags = relevant_customer_tags + self._running_state = running_state @property - def title(self): - """Gets the title of this MaintenanceWindow. # noqa: E501 + def sort_attr(self): + """Gets the sort_attr of this MaintenanceWindow. # noqa: E501 - Title of this maintenance window # noqa: E501 + Numeric value used in default sorting # noqa: E501 - :return: The title of this MaintenanceWindow. # noqa: E501 - :rtype: str + :return: The sort_attr of this MaintenanceWindow. # noqa: E501 + :rtype: int """ - return self._title + return self._sort_attr - @title.setter - def title(self, title): - """Sets the title of this MaintenanceWindow. + @sort_attr.setter + def sort_attr(self, sort_attr): + """Sets the sort_attr of this MaintenanceWindow. - Title of this maintenance window # noqa: E501 + Numeric value used in default sorting # noqa: E501 - :param title: The title of this MaintenanceWindow. # noqa: E501 - :type: str + :param sort_attr: The sort_attr of this MaintenanceWindow. # noqa: E501 + :type: int """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 - self._title = title + self._sort_attr = sort_attr @property def start_time_in_seconds(self): @@ -463,85 +566,100 @@ def start_time_in_seconds(self, start_time_in_seconds): :param start_time_in_seconds: The start_time_in_seconds of this MaintenanceWindow. # noqa: E501 :type: int """ - if start_time_in_seconds is None: + if self._configuration.client_side_validation and start_time_in_seconds is None: raise ValueError("Invalid value for `start_time_in_seconds`, must not be `None`") # noqa: E501 self._start_time_in_seconds = start_time_in_seconds @property - def end_time_in_seconds(self): - """Gets the end_time_in_seconds of this MaintenanceWindow. # noqa: E501 + def targets(self): + """Gets the targets of this MaintenanceWindow. # noqa: E501 - The time in epoch seconds when this maintenance window will end # noqa: E501 + List of targets to notify, overriding the alert's targets. # noqa: E501 - :return: The end_time_in_seconds of this MaintenanceWindow. # noqa: E501 - :rtype: int + :return: The targets of this MaintenanceWindow. # noqa: E501 + :rtype: list[str] """ - return self._end_time_in_seconds + return self._targets - @end_time_in_seconds.setter - def end_time_in_seconds(self, end_time_in_seconds): - """Sets the end_time_in_seconds of this MaintenanceWindow. + @targets.setter + def targets(self, targets): + """Sets the targets of this MaintenanceWindow. - The time in epoch seconds when this maintenance window will end # noqa: E501 + List of targets to notify, overriding the alert's targets. # noqa: E501 - :param end_time_in_seconds: The end_time_in_seconds of this MaintenanceWindow. # noqa: E501 - :type: int + :param targets: The targets of this MaintenanceWindow. # noqa: E501 + :type: list[str] """ - if end_time_in_seconds is None: - raise ValueError("Invalid value for `end_time_in_seconds`, must not be `None`") # noqa: E501 - self._end_time_in_seconds = end_time_in_seconds + self._targets = targets @property - def running_state(self): - """Gets the running_state of this MaintenanceWindow. # noqa: E501 + def title(self): + """Gets the title of this MaintenanceWindow. # noqa: E501 + Title of this maintenance window # noqa: E501 - :return: The running_state of this MaintenanceWindow. # noqa: E501 + :return: The title of this MaintenanceWindow. # noqa: E501 :rtype: str """ - return self._running_state + return self._title - @running_state.setter - def running_state(self, running_state): - """Sets the running_state of this MaintenanceWindow. + @title.setter + def title(self, title): + """Sets the title of this MaintenanceWindow. + Title of this maintenance window # noqa: E501 - :param running_state: The running_state of this MaintenanceWindow. # noqa: E501 + :param title: The title of this MaintenanceWindow. # noqa: E501 :type: str """ - allowed_values = ["ONGOING", "PENDING", "ENDED"] # noqa: E501 - if running_state not in allowed_values: - raise ValueError( - "Invalid value for `running_state` ({0}), must be one of {1}" # noqa: E501 - .format(running_state, allowed_values) - ) + if self._configuration.client_side_validation and title is None: + raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 - self._running_state = running_state + self._title = title @property - def sort_attr(self): - """Gets the sort_attr of this MaintenanceWindow. # noqa: E501 + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this MaintenanceWindow. # noqa: E501 - Numeric value used in default sorting # noqa: E501 - :return: The sort_attr of this MaintenanceWindow. # noqa: E501 + :return: The updated_epoch_millis of this MaintenanceWindow. # noqa: E501 :rtype: int """ - return self._sort_attr + return self._updated_epoch_millis - @sort_attr.setter - def sort_attr(self, sort_attr): - """Sets the sort_attr of this MaintenanceWindow. + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this MaintenanceWindow. - Numeric value used in default sorting # noqa: E501 - :param sort_attr: The sort_attr of this MaintenanceWindow. # noqa: E501 + :param updated_epoch_millis: The updated_epoch_millis of this MaintenanceWindow. # noqa: E501 :type: int """ - self._sort_attr = sort_attr + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this MaintenanceWindow. # noqa: E501 + + + :return: The updater_id of this MaintenanceWindow. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this MaintenanceWindow. + + + :param updater_id: The updater_id of this MaintenanceWindow. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id def to_dict(self): """Returns the model properties as a dict""" @@ -564,6 +682,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(MaintenanceWindow, dict): + for key, value in self.items(): + result[key] = value return result @@ -580,8 +701,11 @@ def __eq__(self, other): if not isinstance(other, MaintenanceWindow): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MaintenanceWindow): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/message.py b/wavefront_api_client/models/message.py index 3a126ab1..280a4a44 100644 --- a/wavefront_api_client/models/message.py +++ b/wavefront_api_client/models/message.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class Message(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,112 +33,71 @@ class Message(object): and the value is json key in definition. """ swagger_types = { - 'id': 'str', - 'target': 'str', 'attributes': 'dict(str, str)', 'content': 'str', + 'display': 'str', + 'end_epoch_millis': 'int', + 'id': 'str', + 'read': 'bool', 'scope': 'str', 'severity': 'str', 'source': 'str', 'start_epoch_millis': 'int', - 'end_epoch_millis': 'int', - 'display': 'str', - 'title': 'str', - 'read': 'bool' + 'target': 'str', + 'title': 'str' } attribute_map = { - 'id': 'id', - 'target': 'target', 'attributes': 'attributes', 'content': 'content', + 'display': 'display', + 'end_epoch_millis': 'endEpochMillis', + 'id': 'id', + 'read': 'read', 'scope': 'scope', 'severity': 'severity', 'source': 'source', 'start_epoch_millis': 'startEpochMillis', - 'end_epoch_millis': 'endEpochMillis', - 'display': 'display', - 'title': 'title', - 'read': 'read' + 'target': 'target', + 'title': 'title' } - def __init__(self, id=None, target=None, attributes=None, content=None, scope=None, severity=None, source=None, start_epoch_millis=None, end_epoch_millis=None, display=None, title=None, read=None): # noqa: E501 + def __init__(self, attributes=None, content=None, display=None, end_epoch_millis=None, id=None, read=None, scope=None, severity=None, source=None, start_epoch_millis=None, target=None, title=None, _configuration=None): # noqa: E501 """Message - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._id = None - self._target = None self._attributes = None self._content = None + self._display = None + self._end_epoch_millis = None + self._id = None + self._read = None self._scope = None self._severity = None self._source = None self._start_epoch_millis = None - self._end_epoch_millis = None - self._display = None + self._target = None self._title = None - self._read = None self.discriminator = None - if id is not None: - self.id = id - if target is not None: - self.target = target if attributes is not None: self.attributes = attributes self.content = content + self.display = display + self.end_epoch_millis = end_epoch_millis + if id is not None: + self.id = id + if read is not None: + self.read = read self.scope = scope self.severity = severity self.source = source self.start_epoch_millis = start_epoch_millis - self.end_epoch_millis = end_epoch_millis - self.display = display + if target is not None: + self.target = target self.title = title - if read is not None: - self.read = read - - @property - def id(self): - """Gets the id of this Message. # noqa: E501 - - - :return: The id of this Message. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this Message. - - - :param id: The id of this Message. # noqa: E501 - :type: str - """ - - self._id = id - - @property - def target(self): - """Gets the target of this Message. # noqa: E501 - - For scope=CUSTOMER or scope=USER, the individual customer or user id # noqa: E501 - - :return: The target of this Message. # noqa: E501 - :rtype: str - """ - return self._target - - @target.setter - def target(self, target): - """Sets the target of this Message. - - For scope=CUSTOMER or scope=USER, the individual customer or user id # noqa: E501 - - :param target: The target of this Message. # noqa: E501 - :type: str - """ - - self._target = target @property def attributes(self): @@ -181,11 +142,112 @@ def content(self, content): :param content: The content of this Message. # noqa: E501 :type: str """ - if content is None: + if self._configuration.client_side_validation and content is None: raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 self._content = content + @property + def display(self): + """Gets the display of this Message. # noqa: E501 + + The form of display for this message # noqa: E501 + + :return: The display of this Message. # noqa: E501 + :rtype: str + """ + return self._display + + @display.setter + def display(self, display): + """Sets the display of this Message. + + The form of display for this message # noqa: E501 + + :param display: The display of this Message. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and display is None: + raise ValueError("Invalid value for `display`, must not be `None`") # noqa: E501 + allowed_values = ["BANNER", "TOASTER", "MODAL"] # noqa: E501 + if (self._configuration.client_side_validation and + display not in allowed_values): + raise ValueError( + "Invalid value for `display` ({0}), must be one of {1}" # noqa: E501 + .format(display, allowed_values) + ) + + self._display = display + + @property + def end_epoch_millis(self): + """Gets the end_epoch_millis of this Message. # noqa: E501 + + When this message will stop being displayed, in epoch millis # noqa: E501 + + :return: The end_epoch_millis of this Message. # noqa: E501 + :rtype: int + """ + return self._end_epoch_millis + + @end_epoch_millis.setter + def end_epoch_millis(self, end_epoch_millis): + """Sets the end_epoch_millis of this Message. + + When this message will stop being displayed, in epoch millis # noqa: E501 + + :param end_epoch_millis: The end_epoch_millis of this Message. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and end_epoch_millis is None: + raise ValueError("Invalid value for `end_epoch_millis`, must not be `None`") # noqa: E501 + + self._end_epoch_millis = end_epoch_millis + + @property + def id(self): + """Gets the id of this Message. # noqa: E501 + + + :return: The id of this Message. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Message. + + + :param id: The id of this Message. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def read(self): + """Gets the read of this Message. # noqa: E501 + + A derived field for whether the current user has read this message # noqa: E501 + + :return: The read of this Message. # noqa: E501 + :rtype: bool + """ + return self._read + + @read.setter + def read(self, read): + """Sets the read of this Message. + + A derived field for whether the current user has read this message # noqa: E501 + + :param read: The read of this Message. # noqa: E501 + :type: bool + """ + + self._read = read + @property def scope(self): """Gets the scope of this Message. # noqa: E501 @@ -206,10 +268,11 @@ def scope(self, scope): :param scope: The scope of this Message. # noqa: E501 :type: str """ - if scope is None: + if self._configuration.client_side_validation and scope is None: raise ValueError("Invalid value for `scope`, must not be `None`") # noqa: E501 allowed_values = ["CLUSTER", "CUSTOMER", "USER"] # noqa: E501 - if scope not in allowed_values: + if (self._configuration.client_side_validation and + scope not in allowed_values): raise ValueError( "Invalid value for `scope` ({0}), must be one of {1}" # noqa: E501 .format(scope, allowed_values) @@ -237,10 +300,11 @@ def severity(self, severity): :param severity: The severity of this Message. # noqa: E501 :type: str """ - if severity is None: + if self._configuration.client_side_validation and severity is None: raise ValueError("Invalid value for `severity`, must not be `None`") # noqa: E501 allowed_values = ["MARKETING", "INFO", "WARN", "SEVERE"] # noqa: E501 - if severity not in allowed_values: + if (self._configuration.client_side_validation and + severity not in allowed_values): raise ValueError( "Invalid value for `severity` ({0}), must be one of {1}" # noqa: E501 .format(severity, allowed_values) @@ -268,7 +332,7 @@ def source(self, source): :param source: The source of this Message. # noqa: E501 :type: str """ - if source is None: + if self._configuration.client_side_validation and source is None: raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 self._source = source @@ -293,66 +357,33 @@ def start_epoch_millis(self, start_epoch_millis): :param start_epoch_millis: The start_epoch_millis of this Message. # noqa: E501 :type: int """ - if start_epoch_millis is None: + if self._configuration.client_side_validation and start_epoch_millis is None: raise ValueError("Invalid value for `start_epoch_millis`, must not be `None`") # noqa: E501 self._start_epoch_millis = start_epoch_millis @property - def end_epoch_millis(self): - """Gets the end_epoch_millis of this Message. # noqa: E501 - - When this message will stop being displayed, in epoch millis # noqa: E501 - - :return: The end_epoch_millis of this Message. # noqa: E501 - :rtype: int - """ - return self._end_epoch_millis - - @end_epoch_millis.setter - def end_epoch_millis(self, end_epoch_millis): - """Sets the end_epoch_millis of this Message. - - When this message will stop being displayed, in epoch millis # noqa: E501 - - :param end_epoch_millis: The end_epoch_millis of this Message. # noqa: E501 - :type: int - """ - if end_epoch_millis is None: - raise ValueError("Invalid value for `end_epoch_millis`, must not be `None`") # noqa: E501 - - self._end_epoch_millis = end_epoch_millis - - @property - def display(self): - """Gets the display of this Message. # noqa: E501 + def target(self): + """Gets the target of this Message. # noqa: E501 - The form of display for this message # noqa: E501 + For scope=CUSTOMER or scope=USER, the individual customer or user id # noqa: E501 - :return: The display of this Message. # noqa: E501 + :return: The target of this Message. # noqa: E501 :rtype: str """ - return self._display + return self._target - @display.setter - def display(self, display): - """Sets the display of this Message. + @target.setter + def target(self, target): + """Sets the target of this Message. - The form of display for this message # noqa: E501 + For scope=CUSTOMER or scope=USER, the individual customer or user id # noqa: E501 - :param display: The display of this Message. # noqa: E501 + :param target: The target of this Message. # noqa: E501 :type: str """ - if display is None: - raise ValueError("Invalid value for `display`, must not be `None`") # noqa: E501 - allowed_values = ["BANNER", "TOASTER"] # noqa: E501 - if display not in allowed_values: - raise ValueError( - "Invalid value for `display` ({0}), must be one of {1}" # noqa: E501 - .format(display, allowed_values) - ) - self._display = display + self._target = target @property def title(self): @@ -374,34 +405,11 @@ def title(self, title): :param title: The title of this Message. # noqa: E501 :type: str """ - if title is None: + if self._configuration.client_side_validation and title is None: raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 self._title = title - @property - def read(self): - """Gets the read of this Message. # noqa: E501 - - A derived field for whether the current user has read this message # noqa: E501 - - :return: The read of this Message. # noqa: E501 - :rtype: bool - """ - return self._read - - @read.setter - def read(self, read): - """Sets the read of this Message. - - A derived field for whether the current user has read this message # noqa: E501 - - :param read: The read of this Message. # noqa: E501 - :type: bool - """ - - self._read = read - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -423,6 +431,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Message, dict): + for key, value in self.items(): + result[key] = value return result @@ -439,8 +450,11 @@ def __eq__(self, other): if not isinstance(other, Message): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Message): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/metric_details.py b/wavefront_api_client/models/metric_details.py index 07b880fe..ff833a96 100644 --- a/wavefront_api_client/models/metric_details.py +++ b/wavefront_api_client/models/metric_details.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class MetricDetails(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,8 +44,11 @@ class MetricDetails(object): 'tags': 'tags' } - def __init__(self, host=None, last_update=None, tags=None): # noqa: E501 + def __init__(self, host=None, last_update=None, tags=None, _configuration=None): # noqa: E501 """MetricDetails - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._host = None self._last_update = None @@ -147,6 +152,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(MetricDetails, dict): + for key, value in self.items(): + result[key] = value return result @@ -163,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, MetricDetails): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MetricDetails): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/metric_details_response.py b/wavefront_api_client/models/metric_details_response.py index 870c67c1..b35f697d 100644 --- a/wavefront_api_client/models/metric_details_response.py +++ b/wavefront_api_client/models/metric_details_response.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.metric_details import MetricDetails # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class MetricDetailsResponse(object): @@ -33,22 +33,53 @@ class MetricDetailsResponse(object): and the value is json key in definition. """ swagger_types = { + 'continuation_token': 'str', 'hosts': 'list[MetricDetails]' } attribute_map = { + 'continuation_token': 'continuationToken', 'hosts': 'hosts' } - def __init__(self, hosts=None): # noqa: E501 + def __init__(self, continuation_token=None, hosts=None, _configuration=None): # noqa: E501 """MetricDetailsResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._continuation_token = None self._hosts = None self.discriminator = None + if continuation_token is not None: + self.continuation_token = continuation_token if hosts is not None: self.hosts = hosts + @property + def continuation_token(self): + """Gets the continuation_token of this MetricDetailsResponse. # noqa: E501 + + Token used for pagination of results # noqa: E501 + + :return: The continuation_token of this MetricDetailsResponse. # noqa: E501 + :rtype: str + """ + return self._continuation_token + + @continuation_token.setter + def continuation_token(self, continuation_token): + """Sets the continuation_token of this MetricDetailsResponse. + + Token used for pagination of results # noqa: E501 + + :param continuation_token: The continuation_token of this MetricDetailsResponse. # noqa: E501 + :type: str + """ + + self._continuation_token = continuation_token + @property def hosts(self): """Gets the hosts of this MetricDetailsResponse. # noqa: E501 @@ -93,6 +124,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(MetricDetailsResponse, dict): + for key, value in self.items(): + result[key] = value return result @@ -109,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, MetricDetailsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MetricDetailsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/metric_status.py b/wavefront_api_client/models/metric_status.py index 82e0c4a2..6903ace8 100644 --- a/wavefront_api_client/models/metric_status.py +++ b/wavefront_api_client/models/metric_status.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class MetricStatus(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,84 +33,81 @@ class MetricStatus(object): and the value is json key in definition. """ swagger_types = { - 'status': 'str', 'ever': 'bool', + 'now': 'bool', 'recent_except_now': 'bool', - 'now': 'bool' + 'status': 'str' } attribute_map = { - 'status': 'status', 'ever': 'ever', + 'now': 'now', 'recent_except_now': 'recentExceptNow', - 'now': 'now' + 'status': 'status' } - def __init__(self, status=None, ever=None, recent_except_now=None, now=None): # noqa: E501 + def __init__(self, ever=None, now=None, recent_except_now=None, status=None, _configuration=None): # noqa: E501 """MetricStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None self._ever = None - self._recent_except_now = None self._now = None + self._recent_except_now = None + self._status = None self.discriminator = None - if status is not None: - self.status = status if ever is not None: self.ever = ever - if recent_except_now is not None: - self.recent_except_now = recent_except_now if now is not None: self.now = now + if recent_except_now is not None: + self.recent_except_now = recent_except_now + if status is not None: + self.status = status @property - def status(self): - """Gets the status of this MetricStatus. # noqa: E501 + def ever(self): + """Gets the ever of this MetricStatus. # noqa: E501 - :return: The status of this MetricStatus. # noqa: E501 - :rtype: str + :return: The ever of this MetricStatus. # noqa: E501 + :rtype: bool """ - return self._status + return self._ever - @status.setter - def status(self, status): - """Sets the status of this MetricStatus. + @ever.setter + def ever(self, ever): + """Sets the ever of this MetricStatus. - :param status: The status of this MetricStatus. # noqa: E501 - :type: str + :param ever: The ever of this MetricStatus. # noqa: E501 + :type: bool """ - allowed_values = ["OK", "PENDING"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - self._status = status + self._ever = ever @property - def ever(self): - """Gets the ever of this MetricStatus. # noqa: E501 + def now(self): + """Gets the now of this MetricStatus. # noqa: E501 - :return: The ever of this MetricStatus. # noqa: E501 + :return: The now of this MetricStatus. # noqa: E501 :rtype: bool """ - return self._ever + return self._now - @ever.setter - def ever(self, ever): - """Sets the ever of this MetricStatus. + @now.setter + def now(self, now): + """Sets the now of this MetricStatus. - :param ever: The ever of this MetricStatus. # noqa: E501 + :param now: The now of this MetricStatus. # noqa: E501 :type: bool """ - self._ever = ever + self._now = now @property def recent_except_now(self): @@ -132,25 +131,32 @@ def recent_except_now(self, recent_except_now): self._recent_except_now = recent_except_now @property - def now(self): - """Gets the now of this MetricStatus. # noqa: E501 + def status(self): + """Gets the status of this MetricStatus. # noqa: E501 - :return: The now of this MetricStatus. # noqa: E501 - :rtype: bool + :return: The status of this MetricStatus. # noqa: E501 + :rtype: str """ - return self._now + return self._status - @now.setter - def now(self, now): - """Sets the now of this MetricStatus. + @status.setter + def status(self, status): + """Sets the status of this MetricStatus. - :param now: The now of this MetricStatus. # noqa: E501 - :type: bool + :param status: The status of this MetricStatus. # noqa: E501 + :type: str """ + allowed_values = ["OK", "PENDING"] # noqa: E501 + if (self._configuration.client_side_validation and + status not in allowed_values): + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 + .format(status, allowed_values) + ) - self._now = now + self._status = status def to_dict(self): """Returns the model properties as a dict""" @@ -173,6 +179,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(MetricStatus, dict): + for key, value in self.items(): + result[key] = value return result @@ -189,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, MetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/metrics_policy_read_model.py b/wavefront_api_client/models/metrics_policy_read_model.py new file mode 100644 index 00000000..f9a0909b --- /dev/null +++ b/wavefront_api_client/models/metrics_policy_read_model.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 MetricsPolicyReadModel(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 = { + 'customer': 'str', + 'policy_rules': 'list[PolicyRuleReadModel]', + 'type': 'str', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'customer': 'customer', + 'policy_rules': 'policyRules', + 'type': 'type', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, customer=None, policy_rules=None, type=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """MetricsPolicyReadModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._customer = None + self._policy_rules = None + self._type = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if customer is not None: + self.customer = customer + if policy_rules is not None: + self.policy_rules = policy_rules + if type is not None: + self.type = type + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def customer(self): + """Gets the customer of this MetricsPolicyReadModel. # noqa: E501 + + The customer identifier of the security policy # noqa: E501 + + :return: The customer of this MetricsPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this MetricsPolicyReadModel. + + The customer identifier of the security policy # noqa: E501 + + :param customer: The customer of this MetricsPolicyReadModel. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def policy_rules(self): + """Gets the policy_rules of this MetricsPolicyReadModel. # noqa: E501 + + The list of policy rules of the metrics policy # noqa: E501 + + :return: The policy_rules of this MetricsPolicyReadModel. # noqa: E501 + :rtype: list[PolicyRuleReadModel] + """ + return self._policy_rules + + @policy_rules.setter + def policy_rules(self, policy_rules): + """Sets the policy_rules of this MetricsPolicyReadModel. + + The list of policy rules of the metrics policy # noqa: E501 + + :param policy_rules: The policy_rules of this MetricsPolicyReadModel. # noqa: E501 + :type: list[PolicyRuleReadModel] + """ + + self._policy_rules = policy_rules + + @property + def type(self): + """Gets the type of this MetricsPolicyReadModel. # noqa: E501 + + The type of the security policy # noqa: E501 + + :return: The type of this MetricsPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this MetricsPolicyReadModel. + + The type of the security policy # noqa: E501 + + :param type: The type of this MetricsPolicyReadModel. # noqa: E501 + :type: str + """ + allowed_values = ["metric", "tracing"] # noqa: E501 + if (self._configuration.client_side_validation and + type not in allowed_values): + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 + .format(type, allowed_values) + ) + + self._type = type + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this MetricsPolicyReadModel. # noqa: E501 + + The date time of the metrics policy update # noqa: E501 + + :return: The updated_epoch_millis of this MetricsPolicyReadModel. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this MetricsPolicyReadModel. + + The date time of the metrics policy update # noqa: E501 + + :param updated_epoch_millis: The updated_epoch_millis of this MetricsPolicyReadModel. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this MetricsPolicyReadModel. # noqa: E501 + + The id of the metrics policy updater # noqa: E501 + + :return: The updater_id of this MetricsPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this MetricsPolicyReadModel. + + The id of the metrics policy updater # noqa: E501 + + :param updater_id: The updater_id of this MetricsPolicyReadModel. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(MetricsPolicyReadModel, 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, MetricsPolicyReadModel): + 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, MetricsPolicyReadModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/metrics_policy_write_model.py b/wavefront_api_client/models/metrics_policy_write_model.py new file mode 100644 index 00000000..07ecbcf5 --- /dev/null +++ b/wavefront_api_client/models/metrics_policy_write_model.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 MetricsPolicyWriteModel(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 = { + 'customer': 'str', + 'policy_rules': 'list[PolicyRuleWriteModel]', + 'type': 'str', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'customer': 'customer', + 'policy_rules': 'policyRules', + 'type': 'type', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, customer=None, policy_rules=None, type=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """MetricsPolicyWriteModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._customer = None + self._policy_rules = None + self._type = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if customer is not None: + self.customer = customer + if policy_rules is not None: + self.policy_rules = policy_rules + if type is not None: + self.type = type + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def customer(self): + """Gets the customer of this MetricsPolicyWriteModel. # noqa: E501 + + The customer identifier of the security policy # noqa: E501 + + :return: The customer of this MetricsPolicyWriteModel. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this MetricsPolicyWriteModel. + + The customer identifier of the security policy # noqa: E501 + + :param customer: The customer of this MetricsPolicyWriteModel. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def policy_rules(self): + """Gets the policy_rules of this MetricsPolicyWriteModel. # noqa: E501 + + The policy rules of the metrics policy # noqa: E501 + + :return: The policy_rules of this MetricsPolicyWriteModel. # noqa: E501 + :rtype: list[PolicyRuleWriteModel] + """ + return self._policy_rules + + @policy_rules.setter + def policy_rules(self, policy_rules): + """Sets the policy_rules of this MetricsPolicyWriteModel. + + The policy rules of the metrics policy # noqa: E501 + + :param policy_rules: The policy_rules of this MetricsPolicyWriteModel. # noqa: E501 + :type: list[PolicyRuleWriteModel] + """ + + self._policy_rules = policy_rules + + @property + def type(self): + """Gets the type of this MetricsPolicyWriteModel. # noqa: E501 + + The type of the security policy # noqa: E501 + + :return: The type of this MetricsPolicyWriteModel. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this MetricsPolicyWriteModel. + + The type of the security policy # noqa: E501 + + :param type: The type of this MetricsPolicyWriteModel. # noqa: E501 + :type: str + """ + allowed_values = ["metric", "tracing"] # noqa: E501 + if (self._configuration.client_side_validation and + type not in allowed_values): + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 + .format(type, allowed_values) + ) + + self._type = type + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this MetricsPolicyWriteModel. # noqa: E501 + + The date time of the metrics policy update # noqa: E501 + + :return: The updated_epoch_millis of this MetricsPolicyWriteModel. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this MetricsPolicyWriteModel. + + The date time of the metrics policy update # noqa: E501 + + :param updated_epoch_millis: The updated_epoch_millis of this MetricsPolicyWriteModel. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this MetricsPolicyWriteModel. # noqa: E501 + + The id of the metrics policy updater # noqa: E501 + + :return: The updater_id of this MetricsPolicyWriteModel. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this MetricsPolicyWriteModel. + + The id of the metrics policy updater # noqa: E501 + + :param updater_id: The updater_id of this MetricsPolicyWriteModel. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(MetricsPolicyWriteModel, 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, MetricsPolicyWriteModel): + 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, MetricsPolicyWriteModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/module.py b/wavefront_api_client/models/module.py new file mode 100644 index 00000000..838f8db1 --- /dev/null +++ b/wavefront_api_client/models/module.py @@ -0,0 +1,331 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Module(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 = { + 'annotations': 'list[Annotation]', + 'class_loader': 'ClassLoader', + 'declared_annotations': 'list[Annotation]', + 'descriptor': 'ModuleDescriptor', + 'layer': 'ModuleLayer', + 'name': 'str', + 'named': 'bool', + 'native_access_enabled': 'bool', + 'packages': 'list[str]' + } + + attribute_map = { + 'annotations': 'annotations', + 'class_loader': 'classLoader', + 'declared_annotations': 'declaredAnnotations', + 'descriptor': 'descriptor', + 'layer': 'layer', + 'name': 'name', + 'named': 'named', + 'native_access_enabled': 'nativeAccessEnabled', + 'packages': 'packages' + } + + def __init__(self, annotations=None, class_loader=None, declared_annotations=None, descriptor=None, layer=None, name=None, named=None, native_access_enabled=None, packages=None, _configuration=None): # noqa: E501 + """Module - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._annotations = None + self._class_loader = None + self._declared_annotations = None + self._descriptor = None + self._layer = None + self._name = None + self._named = None + self._native_access_enabled = None + self._packages = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if class_loader is not None: + self.class_loader = class_loader + if declared_annotations is not None: + self.declared_annotations = declared_annotations + if descriptor is not None: + self.descriptor = descriptor + if layer is not None: + self.layer = layer + if name is not None: + self.name = name + if named is not None: + self.named = named + if native_access_enabled is not None: + self.native_access_enabled = native_access_enabled + if packages is not None: + self.packages = packages + + @property + def annotations(self): + """Gets the annotations of this Module. # noqa: E501 + + + :return: The annotations of this Module. # noqa: E501 + :rtype: list[Annotation] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this Module. + + + :param annotations: The annotations of this Module. # noqa: E501 + :type: list[Annotation] + """ + + self._annotations = annotations + + @property + def class_loader(self): + """Gets the class_loader of this Module. # noqa: E501 + + + :return: The class_loader of this Module. # noqa: E501 + :rtype: ClassLoader + """ + return self._class_loader + + @class_loader.setter + def class_loader(self, class_loader): + """Sets the class_loader of this Module. + + + :param class_loader: The class_loader of this Module. # noqa: E501 + :type: ClassLoader + """ + + self._class_loader = class_loader + + @property + def declared_annotations(self): + """Gets the declared_annotations of this Module. # noqa: E501 + + + :return: The declared_annotations of this Module. # noqa: E501 + :rtype: list[Annotation] + """ + return self._declared_annotations + + @declared_annotations.setter + def declared_annotations(self, declared_annotations): + """Sets the declared_annotations of this Module. + + + :param declared_annotations: The declared_annotations of this Module. # noqa: E501 + :type: list[Annotation] + """ + + self._declared_annotations = declared_annotations + + @property + def descriptor(self): + """Gets the descriptor of this Module. # noqa: E501 + + + :return: The descriptor of this Module. # noqa: E501 + :rtype: ModuleDescriptor + """ + return self._descriptor + + @descriptor.setter + def descriptor(self, descriptor): + """Sets the descriptor of this Module. + + + :param descriptor: The descriptor of this Module. # noqa: E501 + :type: ModuleDescriptor + """ + + self._descriptor = descriptor + + @property + def layer(self): + """Gets the layer of this Module. # noqa: E501 + + + :return: The layer of this Module. # noqa: E501 + :rtype: ModuleLayer + """ + return self._layer + + @layer.setter + def layer(self, layer): + """Sets the layer of this Module. + + + :param layer: The layer of this Module. # noqa: E501 + :type: ModuleLayer + """ + + self._layer = layer + + @property + def name(self): + """Gets the name of this Module. # noqa: E501 + + + :return: The name of this Module. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Module. + + + :param name: The name of this Module. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def named(self): + """Gets the named of this Module. # noqa: E501 + + + :return: The named of this Module. # noqa: E501 + :rtype: bool + """ + return self._named + + @named.setter + def named(self, named): + """Sets the named of this Module. + + + :param named: The named of this Module. # noqa: E501 + :type: bool + """ + + self._named = named + + @property + def native_access_enabled(self): + """Gets the native_access_enabled of this Module. # noqa: E501 + + + :return: The native_access_enabled of this Module. # noqa: E501 + :rtype: bool + """ + return self._native_access_enabled + + @native_access_enabled.setter + def native_access_enabled(self, native_access_enabled): + """Sets the native_access_enabled of this Module. + + + :param native_access_enabled: The native_access_enabled of this Module. # noqa: E501 + :type: bool + """ + + self._native_access_enabled = native_access_enabled + + @property + def packages(self): + """Gets the packages of this Module. # noqa: E501 + + + :return: The packages of this Module. # noqa: E501 + :rtype: list[str] + """ + return self._packages + + @packages.setter + def packages(self, packages): + """Sets the packages of this Module. + + + :param packages: The packages of this Module. # noqa: E501 + :type: list[str] + """ + + self._packages = packages + + 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(Module, 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, Module): + 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, Module): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/module_descriptor.py b/wavefront_api_client/models/module_descriptor.py new file mode 100644 index 00000000..e8d6562d --- /dev/null +++ b/wavefront_api_client/models/module_descriptor.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ModuleDescriptor(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 = { + 'automatic': 'bool', + 'open': 'bool' + } + + attribute_map = { + 'automatic': 'automatic', + 'open': 'open' + } + + def __init__(self, automatic=None, open=None, _configuration=None): # noqa: E501 + """ModuleDescriptor - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._automatic = None + self._open = None + self.discriminator = None + + if automatic is not None: + self.automatic = automatic + if open is not None: + self.open = open + + @property + def automatic(self): + """Gets the automatic of this ModuleDescriptor. # noqa: E501 + + + :return: The automatic of this ModuleDescriptor. # noqa: E501 + :rtype: bool + """ + return self._automatic + + @automatic.setter + def automatic(self, automatic): + """Sets the automatic of this ModuleDescriptor. + + + :param automatic: The automatic of this ModuleDescriptor. # noqa: E501 + :type: bool + """ + + self._automatic = automatic + + @property + def open(self): + """Gets the open of this ModuleDescriptor. # noqa: E501 + + + :return: The open of this ModuleDescriptor. # noqa: E501 + :rtype: bool + """ + return self._open + + @open.setter + def open(self, open): + """Sets the open of this ModuleDescriptor. + + + :param open: The open of this ModuleDescriptor. # noqa: E501 + :type: bool + """ + + self._open = open + + 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(ModuleDescriptor, 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, ModuleDescriptor): + 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, ModuleDescriptor): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/tesla_configuration.py b/wavefront_api_client/models/module_layer.py similarity index 53% rename from wavefront_api_client/models/tesla_configuration.py rename to wavefront_api_client/models/module_layer.py index 0a7562bf..63569d75 100644 --- a/wavefront_api_client/models/tesla_configuration.py +++ b/wavefront_api_client/models/module_layer.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,10 @@ import six +from wavefront_api_client.configuration import Configuration -class TeslaConfiguration(object): + +class ModuleLayer(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,46 +33,18 @@ class TeslaConfiguration(object): and the value is json key in definition. """ swagger_types = { - 'email': 'str' } attribute_map = { - 'email': 'email' } - def __init__(self, email=None): # noqa: E501 - """TeslaConfiguration - a model defined in Swagger""" # noqa: E501 - - self._email = None + def __init__(self, _configuration=None): # noqa: E501 + """ModuleLayer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self.discriminator = None - self.email = email - - @property - def email(self): - """Gets the email of this TeslaConfiguration. # noqa: E501 - - Email address for Tesla account login # noqa: E501 - - :return: The email of this TeslaConfiguration. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this TeslaConfiguration. - - Email address for Tesla account login # noqa: E501 - - :param email: The email of this TeslaConfiguration. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -92,6 +66,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ModuleLayer, dict): + for key, value in self.items(): + result[key] = value return result @@ -105,11 +82,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, TeslaConfiguration): + if not isinstance(other, ModuleLayer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ModuleLayer): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/monitored_application_dto.py b/wavefront_api_client/models/monitored_application_dto.py new file mode 100644 index 00000000..efc70375 --- /dev/null +++ b/wavefront_api_client/models/monitored_application_dto.py @@ -0,0 +1,357 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 MonitoredApplicationDTO(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 = { + 'application': 'str', + 'created': 'int', + 'hidden': 'bool', + 'last_reported': 'int', + 'last_updated': 'int', + 'satisfied_latency_millis': 'int', + 'service_count': 'int', + 'status': 'str', + 'update_user_id': 'str' + } + + attribute_map = { + 'application': 'application', + 'created': 'created', + 'hidden': 'hidden', + 'last_reported': 'lastReported', + 'last_updated': 'lastUpdated', + 'satisfied_latency_millis': 'satisfiedLatencyMillis', + 'service_count': 'serviceCount', + 'status': 'status', + 'update_user_id': 'updateUserId' + } + + def __init__(self, application=None, created=None, hidden=None, last_reported=None, last_updated=None, satisfied_latency_millis=None, service_count=None, status=None, update_user_id=None, _configuration=None): # noqa: E501 + """MonitoredApplicationDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._application = None + self._created = None + self._hidden = None + self._last_reported = None + self._last_updated = None + self._satisfied_latency_millis = None + self._service_count = None + self._status = None + self._update_user_id = None + self.discriminator = None + + self.application = application + if created is not None: + self.created = created + if hidden is not None: + self.hidden = hidden + if last_reported is not None: + self.last_reported = last_reported + if last_updated is not None: + self.last_updated = last_updated + if satisfied_latency_millis is not None: + self.satisfied_latency_millis = satisfied_latency_millis + if service_count is not None: + self.service_count = service_count + if status is not None: + self.status = status + if update_user_id is not None: + self.update_user_id = update_user_id + + @property + def application(self): + """Gets the application of this MonitoredApplicationDTO. # noqa: E501 + + Application Name of the monitored application # noqa: E501 + + :return: The application of this MonitoredApplicationDTO. # noqa: E501 + :rtype: str + """ + return self._application + + @application.setter + def application(self, application): + """Sets the application of this MonitoredApplicationDTO. + + Application Name of the monitored application # noqa: E501 + + :param application: The application of this MonitoredApplicationDTO. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and application is None: + raise ValueError("Invalid value for `application`, must not be `None`") # noqa: E501 + + self._application = application + + @property + def created(self): + """Gets the created of this MonitoredApplicationDTO. # noqa: E501 + + Created epoch of monitored application # noqa: E501 + + :return: The created of this MonitoredApplicationDTO. # noqa: E501 + :rtype: int + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this MonitoredApplicationDTO. + + Created epoch of monitored application # noqa: E501 + + :param created: The created of this MonitoredApplicationDTO. # noqa: E501 + :type: int + """ + + self._created = created + + @property + def hidden(self): + """Gets the hidden of this MonitoredApplicationDTO. # noqa: E501 + + Monitored application is hidden or not # noqa: E501 + + :return: The hidden of this MonitoredApplicationDTO. # noqa: E501 + :rtype: bool + """ + return self._hidden + + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this MonitoredApplicationDTO. + + Monitored application is hidden or not # noqa: E501 + + :param hidden: The hidden of this MonitoredApplicationDTO. # noqa: E501 + :type: bool + """ + + self._hidden = hidden + + @property + def last_reported(self): + """Gets the last_reported of this MonitoredApplicationDTO. # noqa: E501 + + Last reported epoch of monitored application # noqa: E501 + + :return: The last_reported of this MonitoredApplicationDTO. # noqa: E501 + :rtype: int + """ + return self._last_reported + + @last_reported.setter + def last_reported(self, last_reported): + """Sets the last_reported of this MonitoredApplicationDTO. + + Last reported epoch of monitored application # noqa: E501 + + :param last_reported: The last_reported of this MonitoredApplicationDTO. # noqa: E501 + :type: int + """ + + self._last_reported = last_reported + + @property + def last_updated(self): + """Gets the last_updated of this MonitoredApplicationDTO. # noqa: E501 + + Last update epoch of monitored application # noqa: E501 + + :return: The last_updated of this MonitoredApplicationDTO. # noqa: E501 + :rtype: int + """ + return self._last_updated + + @last_updated.setter + def last_updated(self, last_updated): + """Sets the last_updated of this MonitoredApplicationDTO. + + Last update epoch of monitored application # noqa: E501 + + :param last_updated: The last_updated of this MonitoredApplicationDTO. # noqa: E501 + :type: int + """ + + self._last_updated = last_updated + + @property + def satisfied_latency_millis(self): + """Gets the satisfied_latency_millis of this MonitoredApplicationDTO. # noqa: E501 + + Satisfied latency of monitored application # noqa: E501 + + :return: The satisfied_latency_millis of this MonitoredApplicationDTO. # noqa: E501 + :rtype: int + """ + return self._satisfied_latency_millis + + @satisfied_latency_millis.setter + def satisfied_latency_millis(self, satisfied_latency_millis): + """Sets the satisfied_latency_millis of this MonitoredApplicationDTO. + + Satisfied latency of monitored application # noqa: E501 + + :param satisfied_latency_millis: The satisfied_latency_millis of this MonitoredApplicationDTO. # noqa: E501 + :type: int + """ + + self._satisfied_latency_millis = satisfied_latency_millis + + @property + def service_count(self): + """Gets the service_count of this MonitoredApplicationDTO. # noqa: E501 + + Number of monitored service of monitored application # noqa: E501 + + :return: The service_count of this MonitoredApplicationDTO. # noqa: E501 + :rtype: int + """ + return self._service_count + + @service_count.setter + def service_count(self, service_count): + """Sets the service_count of this MonitoredApplicationDTO. + + Number of monitored service of monitored application # noqa: E501 + + :param service_count: The service_count of this MonitoredApplicationDTO. # noqa: E501 + :type: int + """ + + self._service_count = service_count + + @property + def status(self): + """Gets the status of this MonitoredApplicationDTO. # noqa: E501 + + Status of monitored application # noqa: E501 + + :return: The status of this MonitoredApplicationDTO. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this MonitoredApplicationDTO. + + Status of monitored application # noqa: E501 + + :param status: The status of this MonitoredApplicationDTO. # noqa: E501 + :type: str + """ + allowed_values = ["ACTIVE", "INACTIVE"] # noqa: E501 + if (self._configuration.client_side_validation and + status not in allowed_values): + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 + .format(status, allowed_values) + ) + + self._status = status + + @property + def update_user_id(self): + """Gets the update_user_id of this MonitoredApplicationDTO. # noqa: E501 + + Last update user id of monitored application # noqa: E501 + + :return: The update_user_id of this MonitoredApplicationDTO. # noqa: E501 + :rtype: str + """ + return self._update_user_id + + @update_user_id.setter + def update_user_id(self, update_user_id): + """Sets the update_user_id of this MonitoredApplicationDTO. + + Last update user id of monitored application # noqa: E501 + + :param update_user_id: The update_user_id of this MonitoredApplicationDTO. # noqa: E501 + :type: str + """ + + self._update_user_id = update_user_id + + 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(MonitoredApplicationDTO, 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, MonitoredApplicationDTO): + 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, MonitoredApplicationDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/monitored_cluster.py b/wavefront_api_client/models/monitored_cluster.py new file mode 100644 index 00000000..cd6bf9b3 --- /dev/null +++ b/wavefront_api_client/models/monitored_cluster.py @@ -0,0 +1,395 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 MonitoredCluster(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 = { + 'additional_tags': 'dict(str, str)', + 'alias': 'str', + 'components': 'list[KubernetesComponent]', + 'deleted': 'bool', + 'id': 'str', + 'last_updated': 'int', + 'monitored': 'bool', + 'name': 'str', + 'platform': 'str', + 'tags': 'list[str]', + 'version': 'str' + } + + attribute_map = { + 'additional_tags': 'additionalTags', + 'alias': 'alias', + 'components': 'components', + 'deleted': 'deleted', + 'id': 'id', + 'last_updated': 'lastUpdated', + 'monitored': 'monitored', + 'name': 'name', + 'platform': 'platform', + 'tags': 'tags', + 'version': 'version' + } + + def __init__(self, additional_tags=None, alias=None, components=None, deleted=None, id=None, last_updated=None, monitored=None, name=None, platform=None, tags=None, version=None, _configuration=None): # noqa: E501 + """MonitoredCluster - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._additional_tags = None + self._alias = None + self._components = None + self._deleted = None + self._id = None + self._last_updated = None + self._monitored = None + self._name = None + self._platform = None + self._tags = None + self._version = None + self.discriminator = None + + if additional_tags is not None: + self.additional_tags = additional_tags + if alias is not None: + self.alias = alias + if components is not None: + self.components = components + if deleted is not None: + self.deleted = deleted + self.id = id + if last_updated is not None: + self.last_updated = last_updated + if monitored is not None: + self.monitored = monitored + self.name = name + if platform is not None: + self.platform = platform + if tags is not None: + self.tags = tags + if version is not None: + self.version = version + + @property + def additional_tags(self): + """Gets the additional_tags of this MonitoredCluster. # noqa: E501 + + + :return: The additional_tags of this MonitoredCluster. # noqa: E501 + :rtype: dict(str, str) + """ + return self._additional_tags + + @additional_tags.setter + def additional_tags(self, additional_tags): + """Sets the additional_tags of this MonitoredCluster. + + + :param additional_tags: The additional_tags of this MonitoredCluster. # noqa: E501 + :type: dict(str, str) + """ + + self._additional_tags = additional_tags + + @property + def alias(self): + """Gets the alias of this MonitoredCluster. # noqa: E501 + + ID of a monitored cluster that was merged into this one. # noqa: E501 + + :return: The alias of this MonitoredCluster. # noqa: E501 + :rtype: str + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this MonitoredCluster. + + ID of a monitored cluster that was merged into this one. # noqa: E501 + + :param alias: The alias of this MonitoredCluster. # noqa: E501 + :type: str + """ + + self._alias = alias + + @property + def components(self): + """Gets the components of this MonitoredCluster. # noqa: E501 + + + :return: The components of this MonitoredCluster. # noqa: E501 + :rtype: list[KubernetesComponent] + """ + return self._components + + @components.setter + def components(self, components): + """Sets the components of this MonitoredCluster. + + + :param components: The components of this MonitoredCluster. # noqa: E501 + :type: list[KubernetesComponent] + """ + + self._components = components + + @property + def deleted(self): + """Gets the deleted of this MonitoredCluster. # noqa: E501 + + + :return: The deleted of this MonitoredCluster. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this MonitoredCluster. + + + :param deleted: The deleted of this MonitoredCluster. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def id(self): + """Gets the id of this MonitoredCluster. # noqa: E501 + + Id of monitored cluster which is same as actual cluster id # noqa: E501 + + :return: The id of this MonitoredCluster. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this MonitoredCluster. + + Id of monitored cluster which is same as actual cluster id # noqa: E501 + + :param id: The id of this MonitoredCluster. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def last_updated(self): + """Gets the last_updated of this MonitoredCluster. # noqa: E501 + + + :return: The last_updated of this MonitoredCluster. # noqa: E501 + :rtype: int + """ + return self._last_updated + + @last_updated.setter + def last_updated(self, last_updated): + """Sets the last_updated of this MonitoredCluster. + + + :param last_updated: The last_updated of this MonitoredCluster. # noqa: E501 + :type: int + """ + + self._last_updated = last_updated + + @property + def monitored(self): + """Gets the monitored of this MonitoredCluster. # noqa: E501 + + + :return: The monitored of this MonitoredCluster. # noqa: E501 + :rtype: bool + """ + return self._monitored + + @monitored.setter + def monitored(self, monitored): + """Sets the monitored of this MonitoredCluster. + + + :param monitored: The monitored of this MonitoredCluster. # noqa: E501 + :type: bool + """ + + self._monitored = monitored + + @property + def name(self): + """Gets the name of this MonitoredCluster. # noqa: E501 + + Name of the monitored cluster # noqa: E501 + + :return: The name of this MonitoredCluster. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this MonitoredCluster. + + Name of the monitored cluster # noqa: E501 + + :param name: The name of this MonitoredCluster. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def platform(self): + """Gets the platform of this MonitoredCluster. # noqa: E501 + + Monitored cluster type # noqa: E501 + + :return: The platform of this MonitoredCluster. # noqa: E501 + :rtype: str + """ + return self._platform + + @platform.setter + def platform(self, platform): + """Sets the platform of this MonitoredCluster. + + Monitored cluster type # noqa: E501 + + :param platform: The platform of this MonitoredCluster. # noqa: E501 + :type: str + """ + + self._platform = platform + + @property + def tags(self): + """Gets the tags of this MonitoredCluster. # noqa: E501 + + + :return: The tags of this MonitoredCluster. # noqa: E501 + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this MonitoredCluster. + + + :param tags: The tags of this MonitoredCluster. # noqa: E501 + :type: list[str] + """ + + self._tags = tags + + @property + def version(self): + """Gets the version of this MonitoredCluster. # noqa: E501 + + Version of monitored cluster # noqa: E501 + + :return: The version of this MonitoredCluster. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this MonitoredCluster. + + Version of monitored cluster # noqa: E501 + + :param version: The version of this MonitoredCluster. # noqa: E501 + :type: str + """ + + self._version = version + + 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(MonitoredCluster, 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, MonitoredCluster): + 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, MonitoredCluster): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/monitored_service_dto.py b/wavefront_api_client/models/monitored_service_dto.py new file mode 100644 index 00000000..074cd465 --- /dev/null +++ b/wavefront_api_client/models/monitored_service_dto.py @@ -0,0 +1,585 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 MonitoredServiceDTO(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 = { + 'application': 'str', + 'cluster': 'str', + 'component': 'str', + 'created': 'int', + 'custom_dashboard_link': 'str', + 'favorite': 'bool', + 'hidden': 'bool', + 'id': 'str', + 'last_reported': 'int', + 'last_updated': 'int', + 'origin': 'str', + 'satisfied_latency_millis': 'int', + 'service': 'str', + 'service_instance_count': 'int', + 'source': 'str', + 'status': 'str', + 'update_user_id': 'str' + } + + attribute_map = { + 'application': 'application', + 'cluster': 'cluster', + 'component': 'component', + 'created': 'created', + 'custom_dashboard_link': 'customDashboardLink', + 'favorite': 'favorite', + 'hidden': 'hidden', + 'id': 'id', + 'last_reported': 'lastReported', + 'last_updated': 'lastUpdated', + 'origin': 'origin', + 'satisfied_latency_millis': 'satisfiedLatencyMillis', + 'service': 'service', + 'service_instance_count': 'serviceInstanceCount', + 'source': 'source', + 'status': 'status', + 'update_user_id': 'updateUserId' + } + + def __init__(self, application=None, cluster=None, component=None, created=None, custom_dashboard_link=None, favorite=None, hidden=None, id=None, last_reported=None, last_updated=None, origin=None, satisfied_latency_millis=None, service=None, service_instance_count=None, source=None, status=None, update_user_id=None, _configuration=None): # noqa: E501 + """MonitoredServiceDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._application = None + self._cluster = None + self._component = None + self._created = None + self._custom_dashboard_link = None + self._favorite = None + self._hidden = None + self._id = None + self._last_reported = None + self._last_updated = None + self._origin = None + self._satisfied_latency_millis = None + self._service = None + self._service_instance_count = None + self._source = None + self._status = None + self._update_user_id = None + self.discriminator = None + + self.application = application + if cluster is not None: + self.cluster = cluster + self.component = component + if created is not None: + self.created = created + if custom_dashboard_link is not None: + self.custom_dashboard_link = custom_dashboard_link + if favorite is not None: + self.favorite = favorite + if hidden is not None: + self.hidden = hidden + if id is not None: + self.id = id + if last_reported is not None: + self.last_reported = last_reported + if last_updated is not None: + self.last_updated = last_updated + if origin is not None: + self.origin = origin + if satisfied_latency_millis is not None: + self.satisfied_latency_millis = satisfied_latency_millis + self.service = service + self.service_instance_count = service_instance_count + self.source = source + if status is not None: + self.status = status + if update_user_id is not None: + self.update_user_id = update_user_id + + @property + def application(self): + """Gets the application of this MonitoredServiceDTO. # noqa: E501 + + Application Name of the monitored service # noqa: E501 + + :return: The application of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._application + + @application.setter + def application(self, application): + """Sets the application of this MonitoredServiceDTO. + + Application Name of the monitored service # noqa: E501 + + :param application: The application of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and application is None: + raise ValueError("Invalid value for `application`, must not be `None`") # noqa: E501 + + self._application = application + + @property + def cluster(self): + """Gets the cluster of this MonitoredServiceDTO. # noqa: E501 + + Cluster of monitored service # noqa: E501 + + :return: The cluster of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._cluster + + @cluster.setter + def cluster(self, cluster): + """Sets the cluster of this MonitoredServiceDTO. + + Cluster of monitored service # noqa: E501 + + :param cluster: The cluster of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + + self._cluster = cluster + + @property + def component(self): + """Gets the component of this MonitoredServiceDTO. # noqa: E501 + + Component Name of the monitored service # noqa: E501 + + :return: The component of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._component + + @component.setter + def component(self, component): + """Sets the component of this MonitoredServiceDTO. + + Component Name of the monitored service # noqa: E501 + + :param component: The component of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and component is None: + raise ValueError("Invalid value for `component`, must not be `None`") # noqa: E501 + + self._component = component + + @property + def created(self): + """Gets the created of this MonitoredServiceDTO. # noqa: E501 + + Created epoch of monitored service # noqa: E501 + + :return: The created of this MonitoredServiceDTO. # noqa: E501 + :rtype: int + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this MonitoredServiceDTO. + + Created epoch of monitored service # noqa: E501 + + :param created: The created of this MonitoredServiceDTO. # noqa: E501 + :type: int + """ + + self._created = created + + @property + def custom_dashboard_link(self): + """Gets the custom_dashboard_link of this MonitoredServiceDTO. # noqa: E501 + + Customer dashboard link # noqa: E501 + + :return: The custom_dashboard_link of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._custom_dashboard_link + + @custom_dashboard_link.setter + def custom_dashboard_link(self, custom_dashboard_link): + """Sets the custom_dashboard_link of this MonitoredServiceDTO. + + Customer dashboard link # noqa: E501 + + :param custom_dashboard_link: The custom_dashboard_link of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + + self._custom_dashboard_link = custom_dashboard_link + + @property + def favorite(self): + """Gets the favorite of this MonitoredServiceDTO. # noqa: E501 + + favorite status of monitored service # noqa: E501 + + :return: The favorite of this MonitoredServiceDTO. # noqa: E501 + :rtype: bool + """ + return self._favorite + + @favorite.setter + def favorite(self, favorite): + """Sets the favorite of this MonitoredServiceDTO. + + favorite status of monitored service # noqa: E501 + + :param favorite: The favorite of this MonitoredServiceDTO. # noqa: E501 + :type: bool + """ + + self._favorite = favorite + + @property + def hidden(self): + """Gets the hidden of this MonitoredServiceDTO. # noqa: E501 + + Monitored service is hidden or not # noqa: E501 + + :return: The hidden of this MonitoredServiceDTO. # noqa: E501 + :rtype: bool + """ + return self._hidden + + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this MonitoredServiceDTO. + + Monitored service is hidden or not # noqa: E501 + + :param hidden: The hidden of this MonitoredServiceDTO. # noqa: E501 + :type: bool + """ + + self._hidden = hidden + + @property + def id(self): + """Gets the id of this MonitoredServiceDTO. # noqa: E501 + + unique ID of monitored service # noqa: E501 + + :return: The id of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this MonitoredServiceDTO. + + unique ID of monitored service # noqa: E501 + + :param id: The id of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def last_reported(self): + """Gets the last_reported of this MonitoredServiceDTO. # noqa: E501 + + Last reported epoch of monitored service # noqa: E501 + + :return: The last_reported of this MonitoredServiceDTO. # noqa: E501 + :rtype: int + """ + return self._last_reported + + @last_reported.setter + def last_reported(self, last_reported): + """Sets the last_reported of this MonitoredServiceDTO. + + Last reported epoch of monitored service # noqa: E501 + + :param last_reported: The last_reported of this MonitoredServiceDTO. # noqa: E501 + :type: int + """ + + self._last_reported = last_reported + + @property + def last_updated(self): + """Gets the last_updated of this MonitoredServiceDTO. # noqa: E501 + + Last update epoch of monitored service # noqa: E501 + + :return: The last_updated of this MonitoredServiceDTO. # noqa: E501 + :rtype: int + """ + return self._last_updated + + @last_updated.setter + def last_updated(self, last_updated): + """Sets the last_updated of this MonitoredServiceDTO. + + Last update epoch of monitored service # noqa: E501 + + :param last_updated: The last_updated of this MonitoredServiceDTO. # noqa: E501 + :type: int + """ + + self._last_updated = last_updated + + @property + def origin(self): + """Gets the origin of this MonitoredServiceDTO. # noqa: E501 + + origin of monitored service # noqa: E501 + + :return: The origin of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._origin + + @origin.setter + def origin(self, origin): + """Sets the origin of this MonitoredServiceDTO. + + origin of monitored service # noqa: E501 + + :param origin: The origin of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + + self._origin = origin + + @property + def satisfied_latency_millis(self): + """Gets the satisfied_latency_millis of this MonitoredServiceDTO. # noqa: E501 + + Satisfied latency of monitored service # noqa: E501 + + :return: The satisfied_latency_millis of this MonitoredServiceDTO. # noqa: E501 + :rtype: int + """ + return self._satisfied_latency_millis + + @satisfied_latency_millis.setter + def satisfied_latency_millis(self, satisfied_latency_millis): + """Sets the satisfied_latency_millis of this MonitoredServiceDTO. + + Satisfied latency of monitored service # noqa: E501 + + :param satisfied_latency_millis: The satisfied_latency_millis of this MonitoredServiceDTO. # noqa: E501 + :type: int + """ + + self._satisfied_latency_millis = satisfied_latency_millis + + @property + def service(self): + """Gets the service of this MonitoredServiceDTO. # noqa: E501 + + Service Name of the monitored service # noqa: E501 + + :return: The service of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._service + + @service.setter + def service(self, service): + """Sets the service of this MonitoredServiceDTO. + + Service Name of the monitored service # noqa: E501 + + :param service: The service of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and service is None: + raise ValueError("Invalid value for `service`, must not be `None`") # noqa: E501 + + self._service = service + + @property + def service_instance_count(self): + """Gets the service_instance_count of this MonitoredServiceDTO. # noqa: E501 + + Service Instance count of the monitored service # noqa: E501 + + :return: The service_instance_count of this MonitoredServiceDTO. # noqa: E501 + :rtype: int + """ + return self._service_instance_count + + @service_instance_count.setter + def service_instance_count(self, service_instance_count): + """Sets the service_instance_count of this MonitoredServiceDTO. + + Service Instance count of the monitored service # noqa: E501 + + :param service_instance_count: The service_instance_count of this MonitoredServiceDTO. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and service_instance_count is None: + raise ValueError("Invalid value for `service_instance_count`, must not be `None`") # noqa: E501 + + self._service_instance_count = service_instance_count + + @property + def source(self): + """Gets the source of this MonitoredServiceDTO. # noqa: E501 + + Source of the monitored service # noqa: E501 + + :return: The source of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this MonitoredServiceDTO. + + Source of the monitored service # noqa: E501 + + :param source: The source of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and source is None: + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 + + self._source = source + + @property + def status(self): + """Gets the status of this MonitoredServiceDTO. # noqa: E501 + + Status of monitored service # noqa: E501 + + :return: The status of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this MonitoredServiceDTO. + + Status of monitored service # noqa: E501 + + :param status: The status of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + allowed_values = ["ACTIVE", "INACTIVE"] # noqa: E501 + if (self._configuration.client_side_validation and + status not in allowed_values): + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 + .format(status, allowed_values) + ) + + self._status = status + + @property + def update_user_id(self): + """Gets the update_user_id of this MonitoredServiceDTO. # noqa: E501 + + Last update user id of monitored service # noqa: E501 + + :return: The update_user_id of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._update_user_id + + @update_user_id.setter + def update_user_id(self, update_user_id): + """Sets the update_user_id of this MonitoredServiceDTO. + + Last update user id of monitored service # noqa: E501 + + :param update_user_id: The update_user_id of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + + self._update_user_id = update_user_id + + 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(MonitoredServiceDTO, 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, MonitoredServiceDTO): + 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, MonitoredServiceDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/new_relic_configuration.py b/wavefront_api_client/models/new_relic_configuration.py new file mode 100644 index 00000000..b90e6a24 --- /dev/null +++ b/wavefront_api_client/models/new_relic_configuration.py @@ -0,0 +1,210 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 NewRelicConfiguration(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 = { + 'api_key': 'str', + 'app_filter_regex': 'str', + 'host_filter_regex': 'str', + 'new_relic_metric_filters': 'list[NewRelicMetricFilters]' + } + + attribute_map = { + 'api_key': 'apiKey', + 'app_filter_regex': 'appFilterRegex', + 'host_filter_regex': 'hostFilterRegex', + 'new_relic_metric_filters': 'newRelicMetricFilters' + } + + def __init__(self, api_key=None, app_filter_regex=None, host_filter_regex=None, new_relic_metric_filters=None, _configuration=None): # noqa: E501 + """NewRelicConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._api_key = None + self._app_filter_regex = None + self._host_filter_regex = None + self._new_relic_metric_filters = None + self.discriminator = None + + self.api_key = api_key + if app_filter_regex is not None: + self.app_filter_regex = app_filter_regex + if host_filter_regex is not None: + self.host_filter_regex = host_filter_regex + if new_relic_metric_filters is not None: + self.new_relic_metric_filters = new_relic_metric_filters + + @property + def api_key(self): + """Gets the api_key of this NewRelicConfiguration. # noqa: E501 + + New Relic REST API Key. # noqa: E501 + + :return: The api_key of this NewRelicConfiguration. # noqa: E501 + :rtype: str + """ + return self._api_key + + @api_key.setter + def api_key(self, api_key): + """Sets the api_key of this NewRelicConfiguration. + + New Relic REST API Key. # noqa: E501 + + :param api_key: The api_key of this NewRelicConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and api_key is None: + raise ValueError("Invalid value for `api_key`, must not be `None`") # noqa: E501 + + self._api_key = api_key + + @property + def app_filter_regex(self): + """Gets the app_filter_regex of this NewRelicConfiguration. # noqa: E501 + + A regular expression that a application name must match (case-insensitively) in order to collect metrics. # noqa: E501 + + :return: The app_filter_regex of this NewRelicConfiguration. # noqa: E501 + :rtype: str + """ + return self._app_filter_regex + + @app_filter_regex.setter + def app_filter_regex(self, app_filter_regex): + """Sets the app_filter_regex of this NewRelicConfiguration. + + A regular expression that a application name must match (case-insensitively) in order to collect metrics. # noqa: E501 + + :param app_filter_regex: The app_filter_regex of this NewRelicConfiguration. # noqa: E501 + :type: str + """ + + self._app_filter_regex = app_filter_regex + + @property + def host_filter_regex(self): + """Gets the host_filter_regex of this NewRelicConfiguration. # noqa: E501 + + A regular expression that a host name must match (case-insensitively) in order to collect metrics. # noqa: E501 + + :return: The host_filter_regex of this NewRelicConfiguration. # noqa: E501 + :rtype: str + """ + return self._host_filter_regex + + @host_filter_regex.setter + def host_filter_regex(self, host_filter_regex): + """Sets the host_filter_regex of this NewRelicConfiguration. + + A regular expression that a host name must match (case-insensitively) in order to collect metrics. # noqa: E501 + + :param host_filter_regex: The host_filter_regex of this NewRelicConfiguration. # noqa: E501 + :type: str + """ + + self._host_filter_regex = host_filter_regex + + @property + def new_relic_metric_filters(self): + """Gets the new_relic_metric_filters of this NewRelicConfiguration. # noqa: E501 + + Application specific metric filter # noqa: E501 + + :return: The new_relic_metric_filters of this NewRelicConfiguration. # noqa: E501 + :rtype: list[NewRelicMetricFilters] + """ + return self._new_relic_metric_filters + + @new_relic_metric_filters.setter + def new_relic_metric_filters(self, new_relic_metric_filters): + """Sets the new_relic_metric_filters of this NewRelicConfiguration. + + Application specific metric filter # noqa: E501 + + :param new_relic_metric_filters: The new_relic_metric_filters of this NewRelicConfiguration. # noqa: E501 + :type: list[NewRelicMetricFilters] + """ + + self._new_relic_metric_filters = new_relic_metric_filters + + 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(NewRelicConfiguration, 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, NewRelicConfiguration): + 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, NewRelicConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/new_relic_metric_filters.py b/wavefront_api_client/models/new_relic_metric_filters.py new file mode 100644 index 00000000..d40036b5 --- /dev/null +++ b/wavefront_api_client/models/new_relic_metric_filters.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 NewRelicMetricFilters(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 = { + 'app_name': 'str', + 'metric_filter_regex': 'str' + } + + attribute_map = { + 'app_name': 'appName', + 'metric_filter_regex': 'metricFilterRegex' + } + + def __init__(self, app_name=None, metric_filter_regex=None, _configuration=None): # noqa: E501 + """NewRelicMetricFilters - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._app_name = None + self._metric_filter_regex = None + self.discriminator = None + + if app_name is not None: + self.app_name = app_name + if metric_filter_regex is not None: + self.metric_filter_regex = metric_filter_regex + + @property + def app_name(self): + """Gets the app_name of this NewRelicMetricFilters. # noqa: E501 + + + :return: The app_name of this NewRelicMetricFilters. # noqa: E501 + :rtype: str + """ + return self._app_name + + @app_name.setter + def app_name(self, app_name): + """Sets the app_name of this NewRelicMetricFilters. + + + :param app_name: The app_name of this NewRelicMetricFilters. # noqa: E501 + :type: str + """ + + self._app_name = app_name + + @property + def metric_filter_regex(self): + """Gets the metric_filter_regex of this NewRelicMetricFilters. # noqa: E501 + + + :return: The metric_filter_regex of this NewRelicMetricFilters. # noqa: E501 + :rtype: str + """ + return self._metric_filter_regex + + @metric_filter_regex.setter + def metric_filter_regex(self, metric_filter_regex): + """Sets the metric_filter_regex of this NewRelicMetricFilters. + + + :param metric_filter_regex: The metric_filter_regex of this NewRelicMetricFilters. # noqa: E501 + :type: str + """ + + self._metric_filter_regex = metric_filter_regex + + 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(NewRelicMetricFilters, 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, NewRelicMetricFilters): + 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, NewRelicMetricFilters): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/notificant.py b/wavefront_api_client/models/notificant.py index 7feaf0b0..09d1fad1 100644 --- a/wavefront_api_client/models/notificant.py +++ b/wavefront_api_client/models/notificant.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class Notificant(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,137 +33,193 @@ class Notificant(object): and the value is json key in definition. """ swagger_types = { - 'method': 'str', - 'id': 'str', + 'content_type': 'str', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'custom_http_headers': 'dict(str, str)', 'customer_id': 'str', 'description': 'str', - 'creator_id': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', + 'email_subject': 'str', + 'id': 'str', + 'is_html_content': 'bool', + 'method': 'str', + 'recipient': 'str', + 'routes': 'list[AlertRoute]', 'template': 'str', - 'updater_id': 'str', 'title': 'str', 'triggers': 'list[str]', - 'recipient': 'str', - 'custom_http_headers': 'dict(str, str)', - 'email_subject': 'str', - 'content_type': 'str' + 'updated_epoch_millis': 'int', + 'updater_id': 'str' } attribute_map = { - 'method': 'method', - 'id': 'id', + 'content_type': 'contentType', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'custom_http_headers': 'customHttpHeaders', 'customer_id': 'customerId', 'description': 'description', - 'creator_id': 'creatorId', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', + 'email_subject': 'emailSubject', + 'id': 'id', + 'is_html_content': 'isHtmlContent', + 'method': 'method', + 'recipient': 'recipient', + 'routes': 'routes', 'template': 'template', - 'updater_id': 'updaterId', 'title': 'title', 'triggers': 'triggers', - 'recipient': 'recipient', - 'custom_http_headers': 'customHttpHeaders', - 'email_subject': 'emailSubject', - 'content_type': 'contentType' + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' } - def __init__(self, method=None, id=None, customer_id=None, description=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, template=None, updater_id=None, title=None, triggers=None, recipient=None, custom_http_headers=None, email_subject=None, content_type=None): # noqa: E501 + def __init__(self, content_type=None, created_epoch_millis=None, creator_id=None, custom_http_headers=None, customer_id=None, description=None, email_subject=None, id=None, is_html_content=None, method=None, recipient=None, routes=None, template=None, title=None, triggers=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 """Notificant - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._method = None - self._id = None + self._content_type = None + self._created_epoch_millis = None + self._creator_id = None + self._custom_http_headers = None self._customer_id = None self._description = None - self._creator_id = None - self._created_epoch_millis = None - self._updated_epoch_millis = None + self._email_subject = None + self._id = None + self._is_html_content = None + self._method = None + self._recipient = None + self._routes = None self._template = None - self._updater_id = None self._title = None self._triggers = None - self._recipient = None - self._custom_http_headers = None - self._email_subject = None - self._content_type = None + self._updated_epoch_millis = None + self._updater_id = None self.discriminator = None - self.method = method - if id is not None: - self.id = id + if content_type is not None: + self.content_type = content_type + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if custom_http_headers is not None: + self.custom_http_headers = custom_http_headers if customer_id is not None: self.customer_id = customer_id self.description = description - if creator_id is not None: - self.creator_id = creator_id - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis + if email_subject is not None: + self.email_subject = email_subject + if id is not None: + self.id = id + if is_html_content is not None: + self.is_html_content = is_html_content + self.method = method + self.recipient = recipient + if routes is not None: + self.routes = routes + self.template = template + self.title = title + self.triggers = triggers if updated_epoch_millis is not None: self.updated_epoch_millis = updated_epoch_millis - self.template = template if updater_id is not None: self.updater_id = updater_id - self.title = title - self.triggers = triggers - self.recipient = recipient - if custom_http_headers is not None: - self.custom_http_headers = custom_http_headers - if email_subject is not None: - self.email_subject = email_subject - if content_type is not None: - self.content_type = content_type @property - def method(self): - """Gets the method of this Notificant. # noqa: E501 + def content_type(self): + """Gets the content_type of this Notificant. # noqa: E501 - The notification method used for notification target. # noqa: E501 + The value of the Content-Type header of the webhook POST request. # noqa: E501 - :return: The method of this Notificant. # noqa: E501 + :return: The content_type of this Notificant. # noqa: E501 :rtype: str """ - return self._method + return self._content_type - @method.setter - def method(self, method): - """Sets the method of this Notificant. + @content_type.setter + def content_type(self, content_type): + """Sets the content_type of this Notificant. - The notification method used for notification target. # noqa: E501 + The value of the Content-Type header of the webhook POST request. # noqa: E501 - :param method: The method of this Notificant. # noqa: E501 + :param content_type: The content_type of this Notificant. # noqa: E501 :type: str """ - if method is None: - raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 - allowed_values = ["WEBHOOK", "EMAIL", "PAGERDUTY"] # noqa: E501 - if method not in allowed_values: + allowed_values = ["application/json", "text/html", "text/plain", "application/x-www-form-urlencoded", ""] # noqa: E501 + if (self._configuration.client_side_validation and + content_type not in allowed_values): raise ValueError( - "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 - .format(method, allowed_values) + "Invalid value for `content_type` ({0}), must be one of {1}" # noqa: E501 + .format(content_type, allowed_values) ) - self._method = method + self._content_type = content_type @property - def id(self): - """Gets the id of this Notificant. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this Notificant. # noqa: E501 - :return: The id of this Notificant. # noqa: E501 + :return: The created_epoch_millis of this Notificant. # 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 Notificant. + + + :param created_epoch_millis: The created_epoch_millis of this Notificant. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this Notificant. # noqa: E501 + + + :return: The creator_id of this Notificant. # noqa: E501 :rtype: str """ - return self._id + return self._creator_id - @id.setter - def id(self, id): - """Sets the id of this Notificant. + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this Notificant. - :param id: The id of this Notificant. # noqa: E501 + :param creator_id: The creator_id of this Notificant. # noqa: E501 :type: str """ - self._id = id + self._creator_id = creator_id + + @property + def custom_http_headers(self): + """Gets the custom_http_headers of this Notificant. # noqa: E501 + + A string->string map specifying the custom HTTP header key / value pairs that will be sent in the requests of this web hook # noqa: E501 + + :return: The custom_http_headers of this Notificant. # noqa: E501 + :rtype: dict(str, str) + """ + return self._custom_http_headers + + @custom_http_headers.setter + def custom_http_headers(self, custom_http_headers): + """Sets the custom_http_headers of this Notificant. + + A string->string map specifying the custom HTTP header key / value pairs that will be sent in the requests of this web hook # noqa: E501 + + :param custom_http_headers: The custom_http_headers of this Notificant. # noqa: E501 + :type: dict(str, str) + """ + + self._custom_http_headers = custom_http_headers @property def customer_id(self): @@ -204,119 +262,182 @@ def description(self, description): :param description: The description of this Notificant. # noqa: E501 :type: str """ - if description is None: + if self._configuration.client_side_validation and description is None: raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 self._description = description @property - def creator_id(self): - """Gets the creator_id of this Notificant. # noqa: E501 + def email_subject(self): + """Gets the email_subject of this Notificant. # noqa: E501 + The subject title of an email notification target # noqa: E501 - :return: The creator_id of this Notificant. # noqa: E501 + :return: The email_subject of this Notificant. # noqa: E501 :rtype: str """ - return self._creator_id + return self._email_subject - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this Notificant. + @email_subject.setter + def email_subject(self, email_subject): + """Sets the email_subject of this Notificant. + The subject title of an email notification target # noqa: E501 - :param creator_id: The creator_id of this Notificant. # noqa: E501 + :param email_subject: The email_subject of this Notificant. # noqa: E501 :type: str """ - self._creator_id = creator_id + self._email_subject = email_subject @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this Notificant. # noqa: E501 + def id(self): + """Gets the id of this Notificant. # noqa: E501 - :return: The created_epoch_millis of this Notificant. # noqa: E501 - :rtype: int + :return: The id of this Notificant. # noqa: E501 + :rtype: str """ - return self._created_epoch_millis + return self._id - @created_epoch_millis.setter - def created_epoch_millis(self, created_epoch_millis): - """Sets the created_epoch_millis of this Notificant. + @id.setter + def id(self, id): + """Sets the id of this Notificant. - :param created_epoch_millis: The created_epoch_millis of this Notificant. # noqa: E501 - :type: int + :param id: The id of this Notificant. # noqa: E501 + :type: str """ - self._created_epoch_millis = created_epoch_millis + self._id = id @property - def updated_epoch_millis(self): - """Gets the updated_epoch_millis of this Notificant. # noqa: E501 + def is_html_content(self): + """Gets the is_html_content of this Notificant. # noqa: E501 + Determine whether the email alert target content is sent as html or text. # noqa: E501 - :return: The updated_epoch_millis of this Notificant. # noqa: E501 - :rtype: int + :return: The is_html_content of this Notificant. # noqa: E501 + :rtype: bool """ - return self._updated_epoch_millis + return self._is_html_content - @updated_epoch_millis.setter - def updated_epoch_millis(self, updated_epoch_millis): - """Sets the updated_epoch_millis of this Notificant. + @is_html_content.setter + def is_html_content(self, is_html_content): + """Sets the is_html_content of this Notificant. + Determine whether the email alert target content is sent as html or text. # noqa: E501 - :param updated_epoch_millis: The updated_epoch_millis of this Notificant. # noqa: E501 - :type: int + :param is_html_content: The is_html_content of this Notificant. # noqa: E501 + :type: bool """ - self._updated_epoch_millis = updated_epoch_millis + self._is_html_content = is_html_content @property - def template(self): - """Gets the template of this Notificant. # noqa: E501 + def method(self): + """Gets the method of this Notificant. # noqa: E501 - A mustache template that will form the body of the POST request, email and summary of the PagerDuty. # noqa: E501 + The notification method used for notification target. # noqa: E501 - :return: The template of this Notificant. # noqa: E501 + :return: The method of this Notificant. # noqa: E501 :rtype: str """ - return self._template + return self._method - @template.setter - def template(self, template): - """Sets the template of this Notificant. + @method.setter + def method(self, method): + """Sets the method of this Notificant. - A mustache template that will form the body of the POST request, email and summary of the PagerDuty. # noqa: E501 + The notification method used for notification target. # noqa: E501 - :param template: The template of this Notificant. # noqa: E501 + :param method: The method of this Notificant. # noqa: E501 :type: str """ - if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 + if self._configuration.client_side_validation and method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["WEBHOOK", "EMAIL", "PAGERDUTY"] # noqa: E501 + if (self._configuration.client_side_validation and + method not in allowed_values): + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) - self._template = template + self._method = method @property - def updater_id(self): - """Gets the updater_id of this Notificant. # noqa: E501 + def recipient(self): + """Gets the recipient of this Notificant. # noqa: E501 + The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point # noqa: E501 - :return: The updater_id of this Notificant. # noqa: E501 + :return: The recipient of this Notificant. # noqa: E501 :rtype: str """ - return self._updater_id + return self._recipient - @updater_id.setter - def updater_id(self, updater_id): - """Sets the updater_id of this Notificant. + @recipient.setter + def recipient(self, recipient): + """Sets the recipient of this Notificant. + The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point # noqa: E501 - :param updater_id: The updater_id of this Notificant. # noqa: E501 + :param recipient: The recipient of this Notificant. # noqa: E501 :type: str """ + if self._configuration.client_side_validation and recipient is None: + raise ValueError("Invalid value for `recipient`, must not be `None`") # noqa: E501 - self._updater_id = updater_id + self._recipient = recipient + + @property + def routes(self): + """Gets the routes of this Notificant. # noqa: E501 + + List of routing targets that this notificant will notify. # noqa: E501 + + :return: The routes of this Notificant. # noqa: E501 + :rtype: list[AlertRoute] + """ + return self._routes + + @routes.setter + def routes(self, routes): + """Sets the routes of this Notificant. + + List of routing targets that this notificant will notify. # noqa: E501 + + :param routes: The routes of this Notificant. # noqa: E501 + :type: list[AlertRoute] + """ + + self._routes = routes + + @property + def template(self): + """Gets the template of this Notificant. # noqa: E501 + + A mustache template that will form the body of the POST request, email and summary of the PagerDuty. # noqa: E501 + + :return: The template of this Notificant. # noqa: E501 + :rtype: str + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this Notificant. + + A mustache template that will form the body of the POST request, email and summary of the PagerDuty. # noqa: E501 + + :param template: The template of this Notificant. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and template is None: + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 + + self._template = template @property def title(self): @@ -338,7 +459,7 @@ def title(self, title): :param title: The title of this Notificant. # noqa: E501 :type: str """ - if title is None: + if self._configuration.client_side_validation and title is None: raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 self._title = title @@ -363,10 +484,11 @@ def triggers(self, triggers): :param triggers: The triggers of this Notificant. # noqa: E501 :type: list[str] """ - if triggers is None: + if self._configuration.client_side_validation and triggers is None: raise ValueError("Invalid value for `triggers`, must not be `None`") # noqa: E501 - allowed_values = ["ALERT_OPENED", "ALERT_UPDATED", "ALERT_RESOLVED", "ALERT_MAINTENANCE", "ALERT_SNOOZED", "ALERT_INVALID", "ALERT_NO_LONGER_INVALID", "ALERT_TESTING", "ALERT_RETRIGGERED", "ALERT_NO_DATA", "ALERT_NO_DATA_RESOLVED", "ALERT_NO_DATA_MAINTENANCE"] # noqa: E501 - if not set(triggers).issubset(set(allowed_values)): + allowed_values = ["ALERT_OPENED", "ALERT_UPDATED", "ALERT_RESOLVED", "ALERT_MAINTENANCE", "ALERT_SNOOZED", "ALERT_INVALID", "ALERT_NO_LONGER_INVALID", "ALERT_TESTING", "ALERT_RETRIGGERED", "ALERT_NO_DATA", "ALERT_NO_DATA_RESOLVED", "ALERT_NO_DATA_MAINTENANCE", "ALERT_SEVERITY_UPDATE", "ALERT_NOTIFICATION_PREVIEW"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(triggers).issubset(set(allowed_values))): # noqa: E501 raise ValueError( "Invalid values for `triggers` [{0}], must be a subset of [{1}]" # noqa: E501 .format(", ".join(map(str, set(triggers) - set(allowed_values))), # noqa: E501 @@ -376,104 +498,46 @@ def triggers(self, triggers): self._triggers = triggers @property - def recipient(self): - """Gets the recipient of this Notificant. # noqa: E501 - - The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point # noqa: E501 - - :return: The recipient of this Notificant. # noqa: E501 - :rtype: str - """ - return self._recipient - - @recipient.setter - def recipient(self, recipient): - """Sets the recipient of this Notificant. - - The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point # noqa: E501 - - :param recipient: The recipient of this Notificant. # noqa: E501 - :type: str - """ - if recipient is None: - raise ValueError("Invalid value for `recipient`, must not be `None`") # noqa: E501 - - self._recipient = recipient - - @property - def custom_http_headers(self): - """Gets the custom_http_headers of this Notificant. # noqa: E501 - - A string->string map specifying the custom HTTP header key / value pairs that will be sent in the requests of this web hook # noqa: E501 - - :return: The custom_http_headers of this Notificant. # noqa: E501 - :rtype: dict(str, str) - """ - return self._custom_http_headers - - @custom_http_headers.setter - def custom_http_headers(self, custom_http_headers): - """Sets the custom_http_headers of this Notificant. - - A string->string map specifying the custom HTTP header key / value pairs that will be sent in the requests of this web hook # noqa: E501 - - :param custom_http_headers: The custom_http_headers of this Notificant. # noqa: E501 - :type: dict(str, str) - """ - - self._custom_http_headers = custom_http_headers - - @property - def email_subject(self): - """Gets the email_subject of this Notificant. # noqa: E501 + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this Notificant. # noqa: E501 - The subject title of an email notification target # noqa: E501 - :return: The email_subject of this Notificant. # noqa: E501 - :rtype: str + :return: The updated_epoch_millis of this Notificant. # noqa: E501 + :rtype: int """ - return self._email_subject + return self._updated_epoch_millis - @email_subject.setter - def email_subject(self, email_subject): - """Sets the email_subject of this Notificant. + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this Notificant. - The subject title of an email notification target # noqa: E501 - :param email_subject: The email_subject of this Notificant. # noqa: E501 - :type: str + :param updated_epoch_millis: The updated_epoch_millis of this Notificant. # noqa: E501 + :type: int """ - self._email_subject = email_subject + self._updated_epoch_millis = updated_epoch_millis @property - def content_type(self): - """Gets the content_type of this Notificant. # noqa: E501 + def updater_id(self): + """Gets the updater_id of this Notificant. # noqa: E501 - The value of the Content-Type header of the webhook POST request. # noqa: E501 - :return: The content_type of this Notificant. # noqa: E501 + :return: The updater_id of this Notificant. # noqa: E501 :rtype: str """ - return self._content_type + return self._updater_id - @content_type.setter - def content_type(self, content_type): - """Sets the content_type of this Notificant. + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this Notificant. - The value of the Content-Type header of the webhook POST request. # noqa: E501 - :param content_type: The content_type of this Notificant. # noqa: E501 + :param updater_id: The updater_id of this Notificant. # noqa: E501 :type: str """ - allowed_values = ["application/json", "text/html", "text/plain", "application/x-www-form-urlencoded", ""] # noqa: E501 - if content_type not in allowed_values: - raise ValueError( - "Invalid value for `content_type` ({0}), must be one of {1}" # noqa: E501 - .format(content_type, allowed_values) - ) - self._content_type = content_type + self._updater_id = updater_id def to_dict(self): """Returns the model properties as a dict""" @@ -496,6 +560,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Notificant, dict): + for key, value in self.items(): + result[key] = value return result @@ -512,8 +579,11 @@ def __eq__(self, other): if not isinstance(other, Notificant): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Notificant): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/notification_messages.py b/wavefront_api_client/models/notification_messages.py new file mode 100644 index 00000000..b62d781c --- /dev/null +++ b/wavefront_api_client/models/notification_messages.py @@ -0,0 +1,394 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 NotificationMessages(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 = { + 'additional_info': 'dict(str, str)', + 'content': 'str', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'deleted': 'bool', + 'id': 'str', + 'method': 'str', + 'name': 'str', + 'subject': 'str', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'additional_info': 'additionalInfo', + 'content': 'content', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'deleted': 'deleted', + 'id': 'id', + 'method': 'method', + 'name': 'name', + 'subject': 'subject', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, additional_info=None, content=None, created_epoch_millis=None, creator_id=None, deleted=None, id=None, method=None, name=None, subject=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """NotificationMessages - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._additional_info = None + self._content = None + self._created_epoch_millis = None + self._creator_id = None + self._deleted = None + self._id = None + self._method = None + self._name = None + self._subject = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if additional_info is not None: + self.additional_info = additional_info + if content is not None: + self.content = content + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted + if id is not None: + self.id = id + if method is not None: + self.method = method + if name is not None: + self.name = name + if subject is not None: + self.subject = subject + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def additional_info(self): + """Gets the additional_info of this NotificationMessages. # noqa: E501 + + + :return: The additional_info of this NotificationMessages. # noqa: E501 + :rtype: dict(str, str) + """ + return self._additional_info + + @additional_info.setter + def additional_info(self, additional_info): + """Sets the additional_info of this NotificationMessages. + + + :param additional_info: The additional_info of this NotificationMessages. # noqa: E501 + :type: dict(str, str) + """ + + self._additional_info = additional_info + + @property + def content(self): + """Gets the content of this NotificationMessages. # noqa: E501 + + + :return: The content of this NotificationMessages. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this NotificationMessages. + + + :param content: The content of this NotificationMessages. # noqa: E501 + :type: str + """ + + self._content = content + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this NotificationMessages. # noqa: E501 + + + :return: The created_epoch_millis of this NotificationMessages. # 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 NotificationMessages. + + + :param created_epoch_millis: The created_epoch_millis of this NotificationMessages. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this NotificationMessages. # noqa: E501 + + + :return: The creator_id of this NotificationMessages. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this NotificationMessages. + + + :param creator_id: The creator_id of this NotificationMessages. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def deleted(self): + """Gets the deleted of this NotificationMessages. # noqa: E501 + + + :return: The deleted of this NotificationMessages. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this NotificationMessages. + + + :param deleted: The deleted of this NotificationMessages. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def id(self): + """Gets the id of this NotificationMessages. # noqa: E501 + + + :return: The id of this NotificationMessages. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NotificationMessages. + + + :param id: The id of this NotificationMessages. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def method(self): + """Gets the method of this NotificationMessages. # noqa: E501 + + The notification method, can either be WEBHOOK, EMAIL or PAGERDUTY # noqa: E501 + + :return: The method of this NotificationMessages. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this NotificationMessages. + + The notification method, can either be WEBHOOK, EMAIL or PAGERDUTY # noqa: E501 + + :param method: The method of this NotificationMessages. # noqa: E501 + :type: str + """ + allowed_values = ["WEBHOOK", "PAGERDUTY", "EMAIL"] # noqa: E501 + if (self._configuration.client_side_validation and + method not in allowed_values): + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def name(self): + """Gets the name of this NotificationMessages. # noqa: E501 + + The alert target name, easier to read than ID # noqa: E501 + + :return: The name of this NotificationMessages. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NotificationMessages. + + The alert target name, easier to read than ID # noqa: E501 + + :param name: The name of this NotificationMessages. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def subject(self): + """Gets the subject of this NotificationMessages. # noqa: E501 + + + :return: The subject of this NotificationMessages. # noqa: E501 + :rtype: str + """ + return self._subject + + @subject.setter + def subject(self, subject): + """Sets the subject of this NotificationMessages. + + + :param subject: The subject of this NotificationMessages. # noqa: E501 + :type: str + """ + + self._subject = subject + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this NotificationMessages. # noqa: E501 + + + :return: The updated_epoch_millis of this NotificationMessages. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this NotificationMessages. + + + :param updated_epoch_millis: The updated_epoch_millis of this NotificationMessages. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this NotificationMessages. # noqa: E501 + + + :return: The updater_id of this NotificationMessages. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this NotificationMessages. + + + :param updater_id: The updater_id of this NotificationMessages. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(NotificationMessages, 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, NotificationMessages): + 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, NotificationMessages): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/package.py b/wavefront_api_client/models/package.py new file mode 100644 index 00000000..c1813270 --- /dev/null +++ b/wavefront_api_client/models/package.py @@ -0,0 +1,357 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Package(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 = { + 'annotations': 'list[Annotation]', + 'declared_annotations': 'list[Annotation]', + 'implementation_title': 'str', + 'implementation_vendor': 'str', + 'implementation_version': 'str', + 'name': 'str', + 'sealed': 'bool', + 'specification_title': 'str', + 'specification_vendor': 'str', + 'specification_version': 'str' + } + + attribute_map = { + 'annotations': 'annotations', + 'declared_annotations': 'declaredAnnotations', + 'implementation_title': 'implementationTitle', + 'implementation_vendor': 'implementationVendor', + 'implementation_version': 'implementationVersion', + 'name': 'name', + 'sealed': 'sealed', + 'specification_title': 'specificationTitle', + 'specification_vendor': 'specificationVendor', + 'specification_version': 'specificationVersion' + } + + def __init__(self, annotations=None, declared_annotations=None, implementation_title=None, implementation_vendor=None, implementation_version=None, name=None, sealed=None, specification_title=None, specification_vendor=None, specification_version=None, _configuration=None): # noqa: E501 + """Package - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._annotations = None + self._declared_annotations = None + self._implementation_title = None + self._implementation_vendor = None + self._implementation_version = None + self._name = None + self._sealed = None + self._specification_title = None + self._specification_vendor = None + self._specification_version = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if declared_annotations is not None: + self.declared_annotations = declared_annotations + if implementation_title is not None: + self.implementation_title = implementation_title + if implementation_vendor is not None: + self.implementation_vendor = implementation_vendor + if implementation_version is not None: + self.implementation_version = implementation_version + if name is not None: + self.name = name + if sealed is not None: + self.sealed = sealed + if specification_title is not None: + self.specification_title = specification_title + if specification_vendor is not None: + self.specification_vendor = specification_vendor + if specification_version is not None: + self.specification_version = specification_version + + @property + def annotations(self): + """Gets the annotations of this Package. # noqa: E501 + + + :return: The annotations of this Package. # noqa: E501 + :rtype: list[Annotation] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this Package. + + + :param annotations: The annotations of this Package. # noqa: E501 + :type: list[Annotation] + """ + + self._annotations = annotations + + @property + def declared_annotations(self): + """Gets the declared_annotations of this Package. # noqa: E501 + + + :return: The declared_annotations of this Package. # noqa: E501 + :rtype: list[Annotation] + """ + return self._declared_annotations + + @declared_annotations.setter + def declared_annotations(self, declared_annotations): + """Sets the declared_annotations of this Package. + + + :param declared_annotations: The declared_annotations of this Package. # noqa: E501 + :type: list[Annotation] + """ + + self._declared_annotations = declared_annotations + + @property + def implementation_title(self): + """Gets the implementation_title of this Package. # noqa: E501 + + + :return: The implementation_title of this Package. # noqa: E501 + :rtype: str + """ + return self._implementation_title + + @implementation_title.setter + def implementation_title(self, implementation_title): + """Sets the implementation_title of this Package. + + + :param implementation_title: The implementation_title of this Package. # noqa: E501 + :type: str + """ + + self._implementation_title = implementation_title + + @property + def implementation_vendor(self): + """Gets the implementation_vendor of this Package. # noqa: E501 + + + :return: The implementation_vendor of this Package. # noqa: E501 + :rtype: str + """ + return self._implementation_vendor + + @implementation_vendor.setter + def implementation_vendor(self, implementation_vendor): + """Sets the implementation_vendor of this Package. + + + :param implementation_vendor: The implementation_vendor of this Package. # noqa: E501 + :type: str + """ + + self._implementation_vendor = implementation_vendor + + @property + def implementation_version(self): + """Gets the implementation_version of this Package. # noqa: E501 + + + :return: The implementation_version of this Package. # noqa: E501 + :rtype: str + """ + return self._implementation_version + + @implementation_version.setter + def implementation_version(self, implementation_version): + """Sets the implementation_version of this Package. + + + :param implementation_version: The implementation_version of this Package. # noqa: E501 + :type: str + """ + + self._implementation_version = implementation_version + + @property + def name(self): + """Gets the name of this Package. # noqa: E501 + + + :return: The name of this Package. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Package. + + + :param name: The name of this Package. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def sealed(self): + """Gets the sealed of this Package. # noqa: E501 + + + :return: The sealed of this Package. # noqa: E501 + :rtype: bool + """ + return self._sealed + + @sealed.setter + def sealed(self, sealed): + """Sets the sealed of this Package. + + + :param sealed: The sealed of this Package. # noqa: E501 + :type: bool + """ + + self._sealed = sealed + + @property + def specification_title(self): + """Gets the specification_title of this Package. # noqa: E501 + + + :return: The specification_title of this Package. # noqa: E501 + :rtype: str + """ + return self._specification_title + + @specification_title.setter + def specification_title(self, specification_title): + """Sets the specification_title of this Package. + + + :param specification_title: The specification_title of this Package. # noqa: E501 + :type: str + """ + + self._specification_title = specification_title + + @property + def specification_vendor(self): + """Gets the specification_vendor of this Package. # noqa: E501 + + + :return: The specification_vendor of this Package. # noqa: E501 + :rtype: str + """ + return self._specification_vendor + + @specification_vendor.setter + def specification_vendor(self, specification_vendor): + """Sets the specification_vendor of this Package. + + + :param specification_vendor: The specification_vendor of this Package. # noqa: E501 + :type: str + """ + + self._specification_vendor = specification_vendor + + @property + def specification_version(self): + """Gets the specification_version of this Package. # noqa: E501 + + + :return: The specification_version of this Package. # noqa: E501 + :rtype: str + """ + return self._specification_version + + @specification_version.setter + def specification_version(self, specification_version): + """Sets the specification_version of this Package. + + + :param specification_version: The specification_version of this Package. # noqa: E501 + :type: str + """ + + self._specification_version = specification_version + + 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(Package, 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, Package): + 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, Package): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged.py b/wavefront_api_client/models/paged.py new file mode 100644 index 00000000..7b2afc4e --- /dev/null +++ b/wavefront_api_client/models/paged.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Paged(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[object]', + '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 + """Paged - 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 Paged. # 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 Paged. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this Paged. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this Paged. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this Paged. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this Paged. # noqa: E501 + :rtype: list[object] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this Paged. + + List of requested items # noqa: E501 + + :param items: The items of this Paged. # noqa: E501 + :type: list[object] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this Paged. # noqa: E501 + + + :return: The limit of this Paged. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this Paged. + + + :param limit: The limit of this Paged. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this Paged. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this Paged. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this Paged. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this Paged. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this Paged. # noqa: E501 + + + :return: The offset of this Paged. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this Paged. + + + :param offset: The offset of this Paged. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this Paged. # noqa: E501 + + + :return: The sort of this Paged. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this Paged. + + + :param sort: The sort of this Paged. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this Paged. # 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 Paged. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this Paged. + + 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 Paged. # 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(Paged, 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, Paged): + 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, Paged): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_account.py b/wavefront_api_client/models/paged_account.py new file mode 100644 index 00000000..350c105a --- /dev/null +++ b/wavefront_api_client/models/paged_account.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedAccount(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[Account]', + '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 + """PagedAccount - 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 PagedAccount. # 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 PagedAccount. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedAccount. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedAccount. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedAccount. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedAccount. # noqa: E501 + :rtype: list[Account] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedAccount. + + List of requested items # noqa: E501 + + :param items: The items of this PagedAccount. # noqa: E501 + :type: list[Account] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedAccount. # noqa: E501 + + + :return: The limit of this PagedAccount. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedAccount. + + + :param limit: The limit of this PagedAccount. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedAccount. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedAccount. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedAccount. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedAccount. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedAccount. # noqa: E501 + + + :return: The offset of this PagedAccount. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedAccount. + + + :param offset: The offset of this PagedAccount. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedAccount. # noqa: E501 + + + :return: The sort of this PagedAccount. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedAccount. + + + :param sort: The sort of this PagedAccount. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedAccount. # 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 PagedAccount. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedAccount. + + 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 PagedAccount. # 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(PagedAccount, 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, PagedAccount): + 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, PagedAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_alert.py b/wavefront_api_client/models/paged_alert.py index 5307780c..fbe86b1f 100644 --- a/wavefront_api_client/models/paged_alert.py +++ b/wavefront_api_client/models/paged_alert.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.alert import Alert # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedAlert(object): @@ -34,51 +33,77 @@ class PagedAlert(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[Alert]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedAlert - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedAlert. # 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 PagedAlert. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedAlert. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedAlert. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedAlert. # noqa: E501 - - - :return: The offset of this PagedAlert. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedAlert. - - - :param offset: The offset of this PagedAlert. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedAlert. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedAlert. # 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 PagedAlert. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedAlert. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedAlert. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedAlert. # 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 PagedAlert. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedAlert. - - 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 PagedAlert. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedAlert. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedAlert. # noqa: E501 + + + :return: The offset of this PagedAlert. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedAlert. + + + :param offset: The offset of this PagedAlert. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedAlert. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedAlert. # 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 PagedAlert. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedAlert. + + 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 PagedAlert. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedAlert, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedAlert): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedAlert): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_alert_analytics_summary_detail.py b/wavefront_api_client/models/paged_alert_analytics_summary_detail.py new file mode 100644 index 00000000..d675a41f --- /dev/null +++ b/wavefront_api_client/models/paged_alert_analytics_summary_detail.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedAlertAnalyticsSummaryDetail(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[AlertAnalyticsSummaryDetail]', + '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 + """PagedAlertAnalyticsSummaryDetail - 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 PagedAlertAnalyticsSummaryDetail. # 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 PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedAlertAnalyticsSummaryDetail. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: list[AlertAnalyticsSummaryDetail] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedAlertAnalyticsSummaryDetail. + + List of requested items # noqa: E501 + + :param items: The items of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :type: list[AlertAnalyticsSummaryDetail] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The limit of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedAlertAnalyticsSummaryDetail. + + + :param limit: The limit of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedAlertAnalyticsSummaryDetail. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The offset of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedAlertAnalyticsSummaryDetail. + + + :param offset: The offset of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The sort of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedAlertAnalyticsSummaryDetail. + + + :param sort: The sort of this PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedAlertAnalyticsSummaryDetail. # 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 PagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedAlertAnalyticsSummaryDetail. + + 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 PagedAlertAnalyticsSummaryDetail. # 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(PagedAlertAnalyticsSummaryDetail, 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, PagedAlertAnalyticsSummaryDetail): + 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, PagedAlertAnalyticsSummaryDetail): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_alert_with_stats.py b/wavefront_api_client/models/paged_alert_with_stats.py index 6d44dcf4..a8767743 100644 --- a/wavefront_api_client/models/paged_alert_with_stats.py +++ b/wavefront_api_client/models/paged_alert_with_stats.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.alert import Alert # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedAlertWithStats(object): @@ -34,121 +33,82 @@ class PagedAlertWithStats(object): and the value is json key in definition. """ swagger_types = { + 'alert_counts': 'dict(str, int)', + 'cursor': 'str', 'items': 'list[Alert]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', + 'offset': 'int', 'sort': 'Sorting', - 'alert_counts': 'dict(str, int)' + 'total_items': 'int' } attribute_map = { + 'alert_counts': 'alertCounts', + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', + 'offset': 'offset', 'sort': 'sort', - 'alert_counts': 'alertCounts' + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None, alert_counts=None): # noqa: E501 + def __init__(self, alert_counts=None, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedAlertWithStats - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._alert_counts = None + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = None self._more_items = None + self._offset = None self._sort = None - self._alert_counts = None + self._total_items = None self.discriminator = None + if alert_counts is not None: + self.alert_counts = alert_counts + if cursor is not None: + self.cursor = cursor if items is not None: self.items = items - if offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 alert_counts is not None: - self.alert_counts = alert_counts - - @property - def items(self): - """Gets the items of this PagedAlertWithStats. # noqa: E501 - - List of requested items # noqa: E501 - - :return: The items of this PagedAlertWithStats. # noqa: E501 - :rtype: list[Alert] - """ - return self._items - - @items.setter - def items(self, items): - """Sets the items of this PagedAlertWithStats. - - List of requested items # noqa: E501 - - :param items: The items of this PagedAlertWithStats. # noqa: E501 - :type: list[Alert] - """ - - self._items = items - - @property - def offset(self): - """Gets the offset of this PagedAlertWithStats. # noqa: E501 - - - :return: The offset of this PagedAlertWithStats. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedAlertWithStats. - - - :param offset: The offset of this PagedAlertWithStats. # noqa: E501 - :type: int - """ - - self._offset = offset + if total_items is not None: + self.total_items = total_items @property - def limit(self): - """Gets the limit of this PagedAlertWithStats. # noqa: E501 + def alert_counts(self): + """Gets the alert_counts of this PagedAlertWithStats. # noqa: E501 + A map from alert state to the number of alerts in that state within the search results # noqa: E501 - :return: The limit of this PagedAlertWithStats. # noqa: E501 - :rtype: int + :return: The alert_counts of this PagedAlertWithStats. # noqa: E501 + :rtype: dict(str, int) """ - return self._limit + return self._alert_counts - @limit.setter - def limit(self, limit): - """Sets the limit of this PagedAlertWithStats. + @alert_counts.setter + def alert_counts(self, alert_counts): + """Sets the alert_counts of this PagedAlertWithStats. + A map from alert state to the number of alerts in that state within the search results # noqa: E501 - :param limit: The limit of this PagedAlertWithStats. # noqa: E501 - :type: int + :param alert_counts: The alert_counts of this PagedAlertWithStats. # noqa: E501 + :type: dict(str, int) """ - self._limit = limit + self._alert_counts = alert_counts @property def cursor(self): @@ -174,27 +134,48 @@ def cursor(self, cursor): self._cursor = cursor @property - def total_items(self): - """Gets the total_items of this PagedAlertWithStats. # noqa: E501 + def items(self): + """Gets the items of this PagedAlertWithStats. # 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 + List of requested items # noqa: E501 - :return: The total_items of this PagedAlertWithStats. # noqa: E501 + :return: The items of this PagedAlertWithStats. # noqa: E501 + :rtype: list[Alert] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedAlertWithStats. + + List of requested items # noqa: E501 + + :param items: The items of this PagedAlertWithStats. # noqa: E501 + :type: list[Alert] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedAlertWithStats. # noqa: E501 + + + :return: The limit of this PagedAlertWithStats. # noqa: E501 :rtype: int """ - return self._total_items + return self._limit - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedAlertWithStats. + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedAlertWithStats. - 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 PagedAlertWithStats. # noqa: E501 + :param limit: The limit of this PagedAlertWithStats. # noqa: E501 :type: int """ - self._total_items = total_items + self._limit = limit @property def more_items(self): @@ -219,6 +200,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedAlertWithStats. # noqa: E501 + + + :return: The offset of this PagedAlertWithStats. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedAlertWithStats. + + + :param offset: The offset of this PagedAlertWithStats. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedAlertWithStats. # noqa: E501 @@ -241,27 +243,27 @@ def sort(self, sort): self._sort = sort @property - def alert_counts(self): - """Gets the alert_counts of this PagedAlertWithStats. # noqa: E501 + def total_items(self): + """Gets the total_items of this PagedAlertWithStats. # noqa: E501 - A map from alert state to the number of alerts in that state within the search results # 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 alert_counts of this PagedAlertWithStats. # noqa: E501 - :rtype: dict(str, int) + :return: The total_items of this PagedAlertWithStats. # noqa: E501 + :rtype: int """ - return self._alert_counts + return self._total_items - @alert_counts.setter - def alert_counts(self, alert_counts): - """Sets the alert_counts of this PagedAlertWithStats. + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedAlertWithStats. - A map from alert state to the number of alerts in that state within the search results # 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 - :param alert_counts: The alert_counts of this PagedAlertWithStats. # noqa: E501 - :type: dict(str, int) + :param total_items: The total_items of this PagedAlertWithStats. # noqa: E501 + :type: int """ - self._alert_counts = alert_counts + self._total_items = total_items def to_dict(self): """Returns the model properties as a dict""" @@ -284,6 +286,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedAlertWithStats, dict): + for key, value in self.items(): + result[key] = value return result @@ -300,8 +305,11 @@ def __eq__(self, other): if not isinstance(other, PagedAlertWithStats): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedAlertWithStats): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_anomaly.py b/wavefront_api_client/models/paged_anomaly.py new file mode 100644 index 00000000..dd85e04b --- /dev/null +++ b/wavefront_api_client/models/paged_anomaly.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedAnomaly(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[Anomaly]', + '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 + """PagedAnomaly - 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 PagedAnomaly. # 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 PagedAnomaly. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedAnomaly. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedAnomaly. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedAnomaly. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedAnomaly. # noqa: E501 + :rtype: list[Anomaly] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedAnomaly. + + List of requested items # noqa: E501 + + :param items: The items of this PagedAnomaly. # noqa: E501 + :type: list[Anomaly] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedAnomaly. # noqa: E501 + + + :return: The limit of this PagedAnomaly. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedAnomaly. + + + :param limit: The limit of this PagedAnomaly. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedAnomaly. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedAnomaly. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedAnomaly. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedAnomaly. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedAnomaly. # noqa: E501 + + + :return: The offset of this PagedAnomaly. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedAnomaly. + + + :param offset: The offset of this PagedAnomaly. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedAnomaly. # noqa: E501 + + + :return: The sort of this PagedAnomaly. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedAnomaly. + + + :param sort: The sort of this PagedAnomaly. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedAnomaly. # 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 PagedAnomaly. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedAnomaly. + + 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 PagedAnomaly. # 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(PagedAnomaly, 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, PagedAnomaly): + 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, PagedAnomaly): + 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 00000000..8499bd6e --- /dev/null +++ b/wavefront_api_client/models/paged_api_token_model.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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/paged_cloud_integration.py b/wavefront_api_client/models/paged_cloud_integration.py index 16ce51e3..94848298 100644 --- a/wavefront_api_client/models/paged_cloud_integration.py +++ b/wavefront_api_client/models/paged_cloud_integration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.cloud_integration import CloudIntegration # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedCloudIntegration(object): @@ -34,51 +33,77 @@ class PagedCloudIntegration(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[CloudIntegration]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedCloudIntegration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedCloudIntegration. # 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 PagedCloudIntegration. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedCloudIntegration. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedCloudIntegration. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedCloudIntegration. # noqa: E501 - - - :return: The offset of this PagedCloudIntegration. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedCloudIntegration. - - - :param offset: The offset of this PagedCloudIntegration. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedCloudIntegration. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedCloudIntegration. # 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 PagedCloudIntegration. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedCloudIntegration. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedCloudIntegration. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedCloudIntegration. # 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 PagedCloudIntegration. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedCloudIntegration. - - 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 PagedCloudIntegration. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedCloudIntegration. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedCloudIntegration. # noqa: E501 + + + :return: The offset of this PagedCloudIntegration. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedCloudIntegration. + + + :param offset: The offset of this PagedCloudIntegration. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedCloudIntegration. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedCloudIntegration. # 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 PagedCloudIntegration. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedCloudIntegration. + + 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 PagedCloudIntegration. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedCloudIntegration, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedCloudIntegration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedCloudIntegration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_customer_facing_user_object.py b/wavefront_api_client/models/paged_customer_facing_user_object.py index dc4a8565..957865c0 100644 --- a/wavefront_api_client/models/paged_customer_facing_user_object.py +++ b/wavefront_api_client/models/paged_customer_facing_user_object.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.customer_facing_user_object import CustomerFacingUserObject # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedCustomerFacingUserObject(object): @@ -34,51 +33,77 @@ class PagedCustomerFacingUserObject(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[CustomerFacingUserObject]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedCustomerFacingUserObject - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedCustomerFacingUserObject. # 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 PagedCustomerFacingUserObject. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedCustomerFacingUserObject. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedCustomerFacingUserObject. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedCustomerFacingUserObject. # noqa: E501 - - - :return: The offset of this PagedCustomerFacingUserObject. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedCustomerFacingUserObject. - - - :param offset: The offset of this PagedCustomerFacingUserObject. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedCustomerFacingUserObject. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedCustomerFacingUserObject. # 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 PagedCustomerFacingUserObject. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedCustomerFacingUserObject. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedCustomerFacingUserObject. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedCustomerFacingUserObject. # 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 PagedCustomerFacingUserObject. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedCustomerFacingUserObject. - - 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 PagedCustomerFacingUserObject. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedCustomerFacingUserObject. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedCustomerFacingUserObject. # noqa: E501 + + + :return: The offset of this PagedCustomerFacingUserObject. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedCustomerFacingUserObject. + + + :param offset: The offset of this PagedCustomerFacingUserObject. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedCustomerFacingUserObject. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedCustomerFacingUserObject. # 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 PagedCustomerFacingUserObject. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedCustomerFacingUserObject. + + 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 PagedCustomerFacingUserObject. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedCustomerFacingUserObject, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedCustomerFacingUserObject): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedCustomerFacingUserObject): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_dashboard.py b/wavefront_api_client/models/paged_dashboard.py index f95c9463..f89c6586 100644 --- a/wavefront_api_client/models/paged_dashboard.py +++ b/wavefront_api_client/models/paged_dashboard.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.dashboard import Dashboard # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedDashboard(object): @@ -34,51 +33,77 @@ class PagedDashboard(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[Dashboard]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedDashboard - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedDashboard. # 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 PagedDashboard. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedDashboard. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedDashboard. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedDashboard. # noqa: E501 - - - :return: The offset of this PagedDashboard. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedDashboard. - - - :param offset: The offset of this PagedDashboard. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedDashboard. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedDashboard. # 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 PagedDashboard. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedDashboard. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedDashboard. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedDashboard. # 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 PagedDashboard. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedDashboard. - - 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 PagedDashboard. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedDashboard. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedDashboard. # noqa: E501 + + + :return: The offset of this PagedDashboard. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedDashboard. + + + :param offset: The offset of this PagedDashboard. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedDashboard. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedDashboard. # 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 PagedDashboard. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedDashboard. + + 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 PagedDashboard. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedDashboard, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedDashboard): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedDashboard): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_derived_metric_definition.py b/wavefront_api_client/models/paged_derived_metric_definition.py index 1435115f..18e6e089 100644 --- a/wavefront_api_client/models/paged_derived_metric_definition.py +++ b/wavefront_api_client/models/paged_derived_metric_definition.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.derived_metric_definition import DerivedMetricDefinition # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedDerivedMetricDefinition(object): @@ -34,51 +33,77 @@ class PagedDerivedMetricDefinition(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[DerivedMetricDefinition]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedDerivedMetricDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedDerivedMetricDefinition. # 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 PagedDerivedMetricDefinition. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedDerivedMetricDefinition. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedDerivedMetricDefinition. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedDerivedMetricDefinition. # noqa: E501 - - - :return: The offset of this PagedDerivedMetricDefinition. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedDerivedMetricDefinition. - - - :param offset: The offset of this PagedDerivedMetricDefinition. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedDerivedMetricDefinition. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedDerivedMetricDefinition. # 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 PagedDerivedMetricDefinition. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedDerivedMetricDefinition. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedDerivedMetricDefinition. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedDerivedMetricDefinition. # 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 PagedDerivedMetricDefinition. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedDerivedMetricDefinition. - - 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 PagedDerivedMetricDefinition. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedDerivedMetricDefinition. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedDerivedMetricDefinition. # noqa: E501 + + + :return: The offset of this PagedDerivedMetricDefinition. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedDerivedMetricDefinition. + + + :param offset: The offset of this PagedDerivedMetricDefinition. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedDerivedMetricDefinition. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedDerivedMetricDefinition. # 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 PagedDerivedMetricDefinition. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedDerivedMetricDefinition. + + 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 PagedDerivedMetricDefinition. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedDerivedMetricDefinition, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedDerivedMetricDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedDerivedMetricDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_derived_metric_definition_with_stats.py b/wavefront_api_client/models/paged_derived_metric_definition_with_stats.py index ae735e68..feabf78f 100644 --- a/wavefront_api_client/models/paged_derived_metric_definition_with_stats.py +++ b/wavefront_api_client/models/paged_derived_metric_definition_with_stats.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.derived_metric_definition import DerivedMetricDefinition # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedDerivedMetricDefinitionWithStats(object): @@ -34,121 +33,82 @@ class PagedDerivedMetricDefinitionWithStats(object): and the value is json key in definition. """ swagger_types = { + 'counts': 'dict(str, int)', + 'cursor': 'str', 'items': 'list[DerivedMetricDefinition]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', + 'offset': 'int', 'sort': 'Sorting', - 'counts': 'dict(str, int)' + 'total_items': 'int' } attribute_map = { + 'counts': 'counts', + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', + 'offset': 'offset', 'sort': 'sort', - 'counts': 'counts' + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None, counts=None): # noqa: E501 + def __init__(self, counts=None, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedDerivedMetricDefinitionWithStats - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._counts = None + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = None self._more_items = None + self._offset = None self._sort = None - self._counts = None + self._total_items = None self.discriminator = None + if counts is not None: + self.counts = counts + if cursor is not None: + self.cursor = cursor if items is not None: self.items = items - if offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 counts is not None: - self.counts = counts - - @property - def items(self): - """Gets the items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - - List of requested items # noqa: E501 - - :return: The items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - :rtype: list[DerivedMetricDefinition] - """ - return self._items - - @items.setter - def items(self, items): - """Sets the items of this PagedDerivedMetricDefinitionWithStats. - - List of requested items # noqa: E501 - - :param items: The items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - :type: list[DerivedMetricDefinition] - """ - - self._items = items - - @property - def offset(self): - """Gets the offset of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - - - :return: The offset of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedDerivedMetricDefinitionWithStats. - - - :param offset: The offset of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - :type: int - """ - - self._offset = offset + if total_items is not None: + self.total_items = total_items @property - def limit(self): - """Gets the limit of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + def counts(self): + """Gets the counts of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + A map from the state of the derived metric definition to the number of entities in that state within the search results # noqa: E501 - :return: The limit of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - :rtype: int + :return: The counts of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :rtype: dict(str, int) """ - return self._limit + return self._counts - @limit.setter - def limit(self, limit): - """Sets the limit of this PagedDerivedMetricDefinitionWithStats. + @counts.setter + def counts(self, counts): + """Sets the counts of this PagedDerivedMetricDefinitionWithStats. + A map from the state of the derived metric definition to the number of entities in that state within the search results # noqa: E501 - :param limit: The limit of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - :type: int + :param counts: The counts of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :type: dict(str, int) """ - self._limit = limit + self._counts = counts @property def cursor(self): @@ -174,27 +134,48 @@ def cursor(self, cursor): self._cursor = cursor @property - def total_items(self): - """Gets the total_items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + def items(self): + """Gets the items of this PagedDerivedMetricDefinitionWithStats. # 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 + List of requested items # noqa: E501 - :return: The total_items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :return: The items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :rtype: list[DerivedMetricDefinition] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedDerivedMetricDefinitionWithStats. + + List of requested items # noqa: E501 + + :param items: The items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :type: list[DerivedMetricDefinition] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + + + :return: The limit of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 :rtype: int """ - return self._total_items + return self._limit - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedDerivedMetricDefinitionWithStats. + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedDerivedMetricDefinitionWithStats. - 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 PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :param limit: The limit of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 :type: int """ - self._total_items = total_items + self._limit = limit @property def more_items(self): @@ -219,6 +200,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + + + :return: The offset of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedDerivedMetricDefinitionWithStats. + + + :param offset: The offset of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 @@ -241,27 +243,27 @@ def sort(self, sort): self._sort = sort @property - def counts(self): - """Gets the counts of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + def total_items(self): + """Gets the total_items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - A map from the state of the derived metric definition to the number of entities in that state within the search results # 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 counts of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - :rtype: dict(str, int) + :return: The total_items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :rtype: int """ - return self._counts + return self._total_items - @counts.setter - def counts(self, counts): - """Sets the counts of this PagedDerivedMetricDefinitionWithStats. + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedDerivedMetricDefinitionWithStats. - A map from the state of the derived metric definition to the number of entities in that state within the search results # 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 - :param counts: The counts of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 - :type: dict(str, int) + :param total_items: The total_items of this PagedDerivedMetricDefinitionWithStats. # noqa: E501 + :type: int """ - self._counts = counts + self._total_items = total_items def to_dict(self): """Returns the model properties as a dict""" @@ -284,6 +286,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedDerivedMetricDefinitionWithStats, dict): + for key, value in self.items(): + result[key] = value return result @@ -300,8 +305,11 @@ def __eq__(self, other): if not isinstance(other, PagedDerivedMetricDefinitionWithStats): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedDerivedMetricDefinitionWithStats): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_event.py b/wavefront_api_client/models/paged_event.py index f0976269..76125b9c 100644 --- a/wavefront_api_client/models/paged_event.py +++ b/wavefront_api_client/models/paged_event.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.event import Event # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedEvent(object): @@ -34,51 +33,77 @@ class PagedEvent(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[Event]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedEvent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedEvent. # 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 PagedEvent. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedEvent. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedEvent. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedEvent. # noqa: E501 - - - :return: The offset of this PagedEvent. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedEvent. - - - :param offset: The offset of this PagedEvent. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedEvent. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedEvent. # 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 PagedEvent. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedEvent. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedEvent. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedEvent. # 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 PagedEvent. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedEvent. - - 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 PagedEvent. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedEvent. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedEvent. # noqa: E501 + + + :return: The offset of this PagedEvent. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedEvent. + + + :param offset: The offset of this PagedEvent. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedEvent. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedEvent. # 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 PagedEvent. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedEvent. + + 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 PagedEvent. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedEvent, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedEvent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_external_link.py b/wavefront_api_client/models/paged_external_link.py index 6273ba12..fe256508 100644 --- a/wavefront_api_client/models/paged_external_link.py +++ b/wavefront_api_client/models/paged_external_link.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.external_link import ExternalLink # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedExternalLink(object): @@ -34,51 +33,77 @@ class PagedExternalLink(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[ExternalLink]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedExternalLink - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedExternalLink. # 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 PagedExternalLink. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedExternalLink. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedExternalLink. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedExternalLink. # noqa: E501 - - - :return: The offset of this PagedExternalLink. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedExternalLink. - - - :param offset: The offset of this PagedExternalLink. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedExternalLink. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedExternalLink. # 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 PagedExternalLink. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedExternalLink. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedExternalLink. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedExternalLink. # 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 PagedExternalLink. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedExternalLink. - - 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 PagedExternalLink. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedExternalLink. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedExternalLink. # noqa: E501 + + + :return: The offset of this PagedExternalLink. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedExternalLink. + + + :param offset: The offset of this PagedExternalLink. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedExternalLink. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedExternalLink. # 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 PagedExternalLink. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedExternalLink. + + 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 PagedExternalLink. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedExternalLink, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedExternalLink): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedExternalLink): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_ingestion_policy_read_model.py b/wavefront_api_client/models/paged_ingestion_policy_read_model.py new file mode 100644 index 00000000..c1a1025f --- /dev/null +++ b/wavefront_api_client/models/paged_ingestion_policy_read_model.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedIngestionPolicyReadModel(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[IngestionPolicyReadModel]', + '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 + """PagedIngestionPolicyReadModel - 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 PagedIngestionPolicyReadModel. # 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 PagedIngestionPolicyReadModel. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedIngestionPolicyReadModel. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedIngestionPolicyReadModel. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedIngestionPolicyReadModel. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedIngestionPolicyReadModel. # noqa: E501 + :rtype: list[IngestionPolicyReadModel] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedIngestionPolicyReadModel. + + List of requested items # noqa: E501 + + :param items: The items of this PagedIngestionPolicyReadModel. # noqa: E501 + :type: list[IngestionPolicyReadModel] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedIngestionPolicyReadModel. # noqa: E501 + + + :return: The limit of this PagedIngestionPolicyReadModel. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedIngestionPolicyReadModel. + + + :param limit: The limit of this PagedIngestionPolicyReadModel. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedIngestionPolicyReadModel. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedIngestionPolicyReadModel. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedIngestionPolicyReadModel. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedIngestionPolicyReadModel. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedIngestionPolicyReadModel. # noqa: E501 + + + :return: The offset of this PagedIngestionPolicyReadModel. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedIngestionPolicyReadModel. + + + :param offset: The offset of this PagedIngestionPolicyReadModel. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedIngestionPolicyReadModel. # noqa: E501 + + + :return: The sort of this PagedIngestionPolicyReadModel. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedIngestionPolicyReadModel. + + + :param sort: The sort of this PagedIngestionPolicyReadModel. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedIngestionPolicyReadModel. # 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 PagedIngestionPolicyReadModel. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedIngestionPolicyReadModel. + + 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 PagedIngestionPolicyReadModel. # 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(PagedIngestionPolicyReadModel, 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, PagedIngestionPolicyReadModel): + 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, PagedIngestionPolicyReadModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_integration.py b/wavefront_api_client/models/paged_integration.py index 0ce3ab1d..bc2dc9b7 100644 --- a/wavefront_api_client/models/paged_integration.py +++ b/wavefront_api_client/models/paged_integration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.integration import Integration # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedIntegration(object): @@ -34,51 +33,77 @@ class PagedIntegration(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[Integration]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedIntegration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedIntegration. # 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 PagedIntegration. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedIntegration. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedIntegration. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedIntegration. # noqa: E501 - - - :return: The offset of this PagedIntegration. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedIntegration. - - - :param offset: The offset of this PagedIntegration. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedIntegration. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedIntegration. # 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 PagedIntegration. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedIntegration. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedIntegration. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedIntegration. # 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 PagedIntegration. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedIntegration. - - 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 PagedIntegration. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedIntegration. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedIntegration. # noqa: E501 + + + :return: The offset of this PagedIntegration. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedIntegration. + + + :param offset: The offset of this PagedIntegration. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedIntegration. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedIntegration. # 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 PagedIntegration. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedIntegration. + + 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 PagedIntegration. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedIntegration, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedIntegration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedIntegration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_maintenance_window.py b/wavefront_api_client/models/paged_maintenance_window.py index 28f2d665..0d2a2c82 100644 --- a/wavefront_api_client/models/paged_maintenance_window.py +++ b/wavefront_api_client/models/paged_maintenance_window.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.maintenance_window import MaintenanceWindow # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedMaintenanceWindow(object): @@ -34,51 +33,77 @@ class PagedMaintenanceWindow(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[MaintenanceWindow]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedMaintenanceWindow - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedMaintenanceWindow. # 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 PagedMaintenanceWindow. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedMaintenanceWindow. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedMaintenanceWindow. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedMaintenanceWindow. # noqa: E501 - - - :return: The offset of this PagedMaintenanceWindow. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedMaintenanceWindow. - - - :param offset: The offset of this PagedMaintenanceWindow. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedMaintenanceWindow. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedMaintenanceWindow. # 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 PagedMaintenanceWindow. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedMaintenanceWindow. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedMaintenanceWindow. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedMaintenanceWindow. # 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 PagedMaintenanceWindow. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedMaintenanceWindow. - - 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 PagedMaintenanceWindow. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedMaintenanceWindow. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedMaintenanceWindow. # noqa: E501 + + + :return: The offset of this PagedMaintenanceWindow. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedMaintenanceWindow. + + + :param offset: The offset of this PagedMaintenanceWindow. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedMaintenanceWindow. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedMaintenanceWindow. # 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 PagedMaintenanceWindow. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedMaintenanceWindow. + + 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 PagedMaintenanceWindow. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedMaintenanceWindow, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedMaintenanceWindow): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedMaintenanceWindow): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_message.py b/wavefront_api_client/models/paged_message.py index 02794bd4..7baf07c9 100644 --- a/wavefront_api_client/models/paged_message.py +++ b/wavefront_api_client/models/paged_message.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.message import Message # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedMessage(object): @@ -34,51 +33,77 @@ class PagedMessage(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[Message]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedMessage - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedMessage. # 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 PagedMessage. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedMessage. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedMessage. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedMessage. # noqa: E501 - - - :return: The offset of this PagedMessage. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedMessage. - - - :param offset: The offset of this PagedMessage. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedMessage. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedMessage. # 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 PagedMessage. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedMessage. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedMessage. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedMessage. # 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 PagedMessage. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedMessage. - - 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 PagedMessage. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedMessage. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedMessage. # noqa: E501 + + + :return: The offset of this PagedMessage. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedMessage. + + + :param offset: The offset of this PagedMessage. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedMessage. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedMessage. # 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 PagedMessage. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedMessage. + + 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 PagedMessage. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedMessage, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedMessage): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedMessage): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_monitored_application_dto.py b/wavefront_api_client/models/paged_monitored_application_dto.py new file mode 100644 index 00000000..d5f93b45 --- /dev/null +++ b/wavefront_api_client/models/paged_monitored_application_dto.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedMonitoredApplicationDTO(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[MonitoredApplicationDTO]', + '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 + """PagedMonitoredApplicationDTO - 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 PagedMonitoredApplicationDTO. # 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 PagedMonitoredApplicationDTO. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedMonitoredApplicationDTO. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedMonitoredApplicationDTO. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedMonitoredApplicationDTO. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedMonitoredApplicationDTO. # noqa: E501 + :rtype: list[MonitoredApplicationDTO] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedMonitoredApplicationDTO. + + List of requested items # noqa: E501 + + :param items: The items of this PagedMonitoredApplicationDTO. # noqa: E501 + :type: list[MonitoredApplicationDTO] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedMonitoredApplicationDTO. # noqa: E501 + + + :return: The limit of this PagedMonitoredApplicationDTO. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedMonitoredApplicationDTO. + + + :param limit: The limit of this PagedMonitoredApplicationDTO. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedMonitoredApplicationDTO. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedMonitoredApplicationDTO. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedMonitoredApplicationDTO. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedMonitoredApplicationDTO. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedMonitoredApplicationDTO. # noqa: E501 + + + :return: The offset of this PagedMonitoredApplicationDTO. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedMonitoredApplicationDTO. + + + :param offset: The offset of this PagedMonitoredApplicationDTO. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedMonitoredApplicationDTO. # noqa: E501 + + + :return: The sort of this PagedMonitoredApplicationDTO. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedMonitoredApplicationDTO. + + + :param sort: The sort of this PagedMonitoredApplicationDTO. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedMonitoredApplicationDTO. # 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 PagedMonitoredApplicationDTO. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedMonitoredApplicationDTO. + + 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 PagedMonitoredApplicationDTO. # 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(PagedMonitoredApplicationDTO, 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, PagedMonitoredApplicationDTO): + 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, PagedMonitoredApplicationDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_monitored_cluster.py b/wavefront_api_client/models/paged_monitored_cluster.py new file mode 100644 index 00000000..d4340a95 --- /dev/null +++ b/wavefront_api_client/models/paged_monitored_cluster.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedMonitoredCluster(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[MonitoredCluster]', + '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 + """PagedMonitoredCluster - 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 PagedMonitoredCluster. # 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 PagedMonitoredCluster. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedMonitoredCluster. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedMonitoredCluster. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedMonitoredCluster. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedMonitoredCluster. # noqa: E501 + :rtype: list[MonitoredCluster] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedMonitoredCluster. + + List of requested items # noqa: E501 + + :param items: The items of this PagedMonitoredCluster. # noqa: E501 + :type: list[MonitoredCluster] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedMonitoredCluster. # noqa: E501 + + + :return: The limit of this PagedMonitoredCluster. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedMonitoredCluster. + + + :param limit: The limit of this PagedMonitoredCluster. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedMonitoredCluster. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedMonitoredCluster. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedMonitoredCluster. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedMonitoredCluster. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedMonitoredCluster. # noqa: E501 + + + :return: The offset of this PagedMonitoredCluster. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedMonitoredCluster. + + + :param offset: The offset of this PagedMonitoredCluster. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedMonitoredCluster. # noqa: E501 + + + :return: The sort of this PagedMonitoredCluster. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedMonitoredCluster. + + + :param sort: The sort of this PagedMonitoredCluster. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedMonitoredCluster. # 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 PagedMonitoredCluster. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedMonitoredCluster. + + 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 PagedMonitoredCluster. # 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(PagedMonitoredCluster, 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, PagedMonitoredCluster): + 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, PagedMonitoredCluster): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_monitored_service_dto.py b/wavefront_api_client/models/paged_monitored_service_dto.py new file mode 100644 index 00000000..63d627db --- /dev/null +++ b/wavefront_api_client/models/paged_monitored_service_dto.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedMonitoredServiceDTO(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[MonitoredServiceDTO]', + '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 + """PagedMonitoredServiceDTO - 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 PagedMonitoredServiceDTO. # 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 PagedMonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedMonitoredServiceDTO. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedMonitoredServiceDTO. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedMonitoredServiceDTO. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedMonitoredServiceDTO. # noqa: E501 + :rtype: list[MonitoredServiceDTO] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedMonitoredServiceDTO. + + List of requested items # noqa: E501 + + :param items: The items of this PagedMonitoredServiceDTO. # noqa: E501 + :type: list[MonitoredServiceDTO] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedMonitoredServiceDTO. # noqa: E501 + + + :return: The limit of this PagedMonitoredServiceDTO. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedMonitoredServiceDTO. + + + :param limit: The limit of this PagedMonitoredServiceDTO. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedMonitoredServiceDTO. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedMonitoredServiceDTO. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedMonitoredServiceDTO. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedMonitoredServiceDTO. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedMonitoredServiceDTO. # noqa: E501 + + + :return: The offset of this PagedMonitoredServiceDTO. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedMonitoredServiceDTO. + + + :param offset: The offset of this PagedMonitoredServiceDTO. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedMonitoredServiceDTO. # noqa: E501 + + + :return: The sort of this PagedMonitoredServiceDTO. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedMonitoredServiceDTO. + + + :param sort: The sort of this PagedMonitoredServiceDTO. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedMonitoredServiceDTO. # 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 PagedMonitoredServiceDTO. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedMonitoredServiceDTO. + + 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 PagedMonitoredServiceDTO. # 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(PagedMonitoredServiceDTO, 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, PagedMonitoredServiceDTO): + 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, PagedMonitoredServiceDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_notificant.py b/wavefront_api_client/models/paged_notificant.py index 7a2b2952..658944f9 100644 --- a/wavefront_api_client/models/paged_notificant.py +++ b/wavefront_api_client/models/paged_notificant.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.notificant import Notificant # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedNotificant(object): @@ -34,51 +33,77 @@ class PagedNotificant(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[Notificant]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedNotificant - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedNotificant. # 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 PagedNotificant. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedNotificant. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedNotificant. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedNotificant. # noqa: E501 - - - :return: The offset of this PagedNotificant. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedNotificant. - - - :param offset: The offset of this PagedNotificant. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedNotificant. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedNotificant. # 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 PagedNotificant. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedNotificant. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedNotificant. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedNotificant. # 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 PagedNotificant. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedNotificant. - - 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 PagedNotificant. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedNotificant. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedNotificant. # noqa: E501 + + + :return: The offset of this PagedNotificant. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedNotificant. + + + :param offset: The offset of this PagedNotificant. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedNotificant. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedNotificant. # 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 PagedNotificant. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedNotificant. + + 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 PagedNotificant. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedNotificant, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedNotificant): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedNotificant): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_proxy.py b/wavefront_api_client/models/paged_proxy.py index a9cecf63..35b77863 100644 --- a/wavefront_api_client/models/paged_proxy.py +++ b/wavefront_api_client/models/paged_proxy.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.proxy import Proxy # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedProxy(object): @@ -34,51 +33,77 @@ class PagedProxy(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[Proxy]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedProxy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedProxy. # 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 PagedProxy. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedProxy. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedProxy. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedProxy. # noqa: E501 - - - :return: The offset of this PagedProxy. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedProxy. - - - :param offset: The offset of this PagedProxy. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedProxy. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedProxy. # 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 PagedProxy. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedProxy. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedProxy. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedProxy. # 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 PagedProxy. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedProxy. - - 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 PagedProxy. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedProxy. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedProxy. # noqa: E501 + + + :return: The offset of this PagedProxy. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedProxy. + + + :param offset: The offset of this PagedProxy. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedProxy. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedProxy. # 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 PagedProxy. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedProxy. + + 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 PagedProxy. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedProxy, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedProxy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedProxy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_recent_app_map_search.py b/wavefront_api_client/models/paged_recent_app_map_search.py new file mode 100644 index 00000000..cecde6bb --- /dev/null +++ b/wavefront_api_client/models/paged_recent_app_map_search.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedRecentAppMapSearch(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[RecentAppMapSearch]', + '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 + """PagedRecentAppMapSearch - 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 PagedRecentAppMapSearch. # 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 PagedRecentAppMapSearch. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedRecentAppMapSearch. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedRecentAppMapSearch. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedRecentAppMapSearch. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedRecentAppMapSearch. # noqa: E501 + :rtype: list[RecentAppMapSearch] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedRecentAppMapSearch. + + List of requested items # noqa: E501 + + :param items: The items of this PagedRecentAppMapSearch. # noqa: E501 + :type: list[RecentAppMapSearch] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedRecentAppMapSearch. # noqa: E501 + + + :return: The limit of this PagedRecentAppMapSearch. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedRecentAppMapSearch. + + + :param limit: The limit of this PagedRecentAppMapSearch. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedRecentAppMapSearch. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedRecentAppMapSearch. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedRecentAppMapSearch. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedRecentAppMapSearch. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedRecentAppMapSearch. # noqa: E501 + + + :return: The offset of this PagedRecentAppMapSearch. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedRecentAppMapSearch. + + + :param offset: The offset of this PagedRecentAppMapSearch. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedRecentAppMapSearch. # noqa: E501 + + + :return: The sort of this PagedRecentAppMapSearch. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedRecentAppMapSearch. + + + :param sort: The sort of this PagedRecentAppMapSearch. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedRecentAppMapSearch. # 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 PagedRecentAppMapSearch. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedRecentAppMapSearch. + + 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 PagedRecentAppMapSearch. # 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(PagedRecentAppMapSearch, 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, PagedRecentAppMapSearch): + 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, PagedRecentAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_recent_traces_search.py b/wavefront_api_client/models/paged_recent_traces_search.py new file mode 100644 index 00000000..414e85c9 --- /dev/null +++ b/wavefront_api_client/models/paged_recent_traces_search.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedRecentTracesSearch(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[RecentTracesSearch]', + '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 + """PagedRecentTracesSearch - 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 PagedRecentTracesSearch. # 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 PagedRecentTracesSearch. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedRecentTracesSearch. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedRecentTracesSearch. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedRecentTracesSearch. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedRecentTracesSearch. # noqa: E501 + :rtype: list[RecentTracesSearch] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedRecentTracesSearch. + + List of requested items # noqa: E501 + + :param items: The items of this PagedRecentTracesSearch. # noqa: E501 + :type: list[RecentTracesSearch] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedRecentTracesSearch. # noqa: E501 + + + :return: The limit of this PagedRecentTracesSearch. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedRecentTracesSearch. + + + :param limit: The limit of this PagedRecentTracesSearch. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedRecentTracesSearch. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedRecentTracesSearch. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedRecentTracesSearch. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedRecentTracesSearch. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedRecentTracesSearch. # noqa: E501 + + + :return: The offset of this PagedRecentTracesSearch. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedRecentTracesSearch. + + + :param offset: The offset of this PagedRecentTracesSearch. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedRecentTracesSearch. # noqa: E501 + + + :return: The sort of this PagedRecentTracesSearch. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedRecentTracesSearch. + + + :param sort: The sort of this PagedRecentTracesSearch. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedRecentTracesSearch. # 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 PagedRecentTracesSearch. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedRecentTracesSearch. + + 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 PagedRecentTracesSearch. # 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(PagedRecentTracesSearch, 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, PagedRecentTracesSearch): + 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, PagedRecentTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_related_event.py b/wavefront_api_client/models/paged_related_event.py new file mode 100644 index 00000000..ad3d915f --- /dev/null +++ b/wavefront_api_client/models/paged_related_event.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedRelatedEvent(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[RelatedEvent]', + '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 + """PagedRelatedEvent - 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 PagedRelatedEvent. # 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 PagedRelatedEvent. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedRelatedEvent. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedRelatedEvent. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedRelatedEvent. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedRelatedEvent. # noqa: E501 + :rtype: list[RelatedEvent] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedRelatedEvent. + + List of requested items # noqa: E501 + + :param items: The items of this PagedRelatedEvent. # noqa: E501 + :type: list[RelatedEvent] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedRelatedEvent. # noqa: E501 + + + :return: The limit of this PagedRelatedEvent. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedRelatedEvent. + + + :param limit: The limit of this PagedRelatedEvent. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedRelatedEvent. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedRelatedEvent. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedRelatedEvent. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedRelatedEvent. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedRelatedEvent. # noqa: E501 + + + :return: The offset of this PagedRelatedEvent. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedRelatedEvent. + + + :param offset: The offset of this PagedRelatedEvent. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedRelatedEvent. # noqa: E501 + + + :return: The sort of this PagedRelatedEvent. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedRelatedEvent. + + + :param sort: The sort of this PagedRelatedEvent. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedRelatedEvent. # 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 PagedRelatedEvent. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedRelatedEvent. + + 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 PagedRelatedEvent. # 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(PagedRelatedEvent, 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, PagedRelatedEvent): + 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, PagedRelatedEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_report_event_anomaly_dto.py b/wavefront_api_client/models/paged_report_event_anomaly_dto.py new file mode 100644 index 00000000..374a5bb6 --- /dev/null +++ b/wavefront_api_client/models/paged_report_event_anomaly_dto.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedReportEventAnomalyDTO(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[ReportEventAnomalyDTO]', + '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 + """PagedReportEventAnomalyDTO - 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 PagedReportEventAnomalyDTO. # 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 PagedReportEventAnomalyDTO. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedReportEventAnomalyDTO. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedReportEventAnomalyDTO. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedReportEventAnomalyDTO. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedReportEventAnomalyDTO. # noqa: E501 + :rtype: list[ReportEventAnomalyDTO] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedReportEventAnomalyDTO. + + List of requested items # noqa: E501 + + :param items: The items of this PagedReportEventAnomalyDTO. # noqa: E501 + :type: list[ReportEventAnomalyDTO] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedReportEventAnomalyDTO. # noqa: E501 + + + :return: The limit of this PagedReportEventAnomalyDTO. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedReportEventAnomalyDTO. + + + :param limit: The limit of this PagedReportEventAnomalyDTO. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedReportEventAnomalyDTO. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedReportEventAnomalyDTO. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedReportEventAnomalyDTO. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedReportEventAnomalyDTO. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedReportEventAnomalyDTO. # noqa: E501 + + + :return: The offset of this PagedReportEventAnomalyDTO. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedReportEventAnomalyDTO. + + + :param offset: The offset of this PagedReportEventAnomalyDTO. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedReportEventAnomalyDTO. # noqa: E501 + + + :return: The sort of this PagedReportEventAnomalyDTO. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedReportEventAnomalyDTO. + + + :param sort: The sort of this PagedReportEventAnomalyDTO. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedReportEventAnomalyDTO. # 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 PagedReportEventAnomalyDTO. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedReportEventAnomalyDTO. + + 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 PagedReportEventAnomalyDTO. # 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(PagedReportEventAnomalyDTO, 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, PagedReportEventAnomalyDTO): + 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, PagedReportEventAnomalyDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_role_dto.py b/wavefront_api_client/models/paged_role_dto.py new file mode 100644 index 00000000..799458cb --- /dev/null +++ b/wavefront_api_client/models/paged_role_dto.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedRoleDTO(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[RoleDTO]', + '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 + """PagedRoleDTO - 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 PagedRoleDTO. # 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 PagedRoleDTO. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedRoleDTO. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedRoleDTO. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedRoleDTO. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedRoleDTO. # noqa: E501 + :rtype: list[RoleDTO] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedRoleDTO. + + List of requested items # noqa: E501 + + :param items: The items of this PagedRoleDTO. # noqa: E501 + :type: list[RoleDTO] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedRoleDTO. # noqa: E501 + + + :return: The limit of this PagedRoleDTO. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedRoleDTO. + + + :param limit: The limit of this PagedRoleDTO. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedRoleDTO. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedRoleDTO. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedRoleDTO. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedRoleDTO. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedRoleDTO. # noqa: E501 + + + :return: The offset of this PagedRoleDTO. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedRoleDTO. + + + :param offset: The offset of this PagedRoleDTO. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedRoleDTO. # noqa: E501 + + + :return: The sort of this PagedRoleDTO. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedRoleDTO. + + + :param sort: The sort of this PagedRoleDTO. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedRoleDTO. # 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 PagedRoleDTO. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedRoleDTO. + + 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 PagedRoleDTO. # 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(PagedRoleDTO, 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, PagedRoleDTO): + 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, PagedRoleDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_saved_app_map_search.py b/wavefront_api_client/models/paged_saved_app_map_search.py new file mode 100644 index 00000000..3346a21b --- /dev/null +++ b/wavefront_api_client/models/paged_saved_app_map_search.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedSavedAppMapSearch(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[SavedAppMapSearch]', + '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 + """PagedSavedAppMapSearch - 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 PagedSavedAppMapSearch. # 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 PagedSavedAppMapSearch. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedSavedAppMapSearch. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedSavedAppMapSearch. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedSavedAppMapSearch. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedSavedAppMapSearch. # noqa: E501 + :rtype: list[SavedAppMapSearch] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedSavedAppMapSearch. + + List of requested items # noqa: E501 + + :param items: The items of this PagedSavedAppMapSearch. # noqa: E501 + :type: list[SavedAppMapSearch] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedSavedAppMapSearch. # noqa: E501 + + + :return: The limit of this PagedSavedAppMapSearch. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedSavedAppMapSearch. + + + :param limit: The limit of this PagedSavedAppMapSearch. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedSavedAppMapSearch. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedSavedAppMapSearch. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedSavedAppMapSearch. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedSavedAppMapSearch. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedSavedAppMapSearch. # noqa: E501 + + + :return: The offset of this PagedSavedAppMapSearch. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedSavedAppMapSearch. + + + :param offset: The offset of this PagedSavedAppMapSearch. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedSavedAppMapSearch. # noqa: E501 + + + :return: The sort of this PagedSavedAppMapSearch. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedSavedAppMapSearch. + + + :param sort: The sort of this PagedSavedAppMapSearch. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedSavedAppMapSearch. # 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 PagedSavedAppMapSearch. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedSavedAppMapSearch. + + 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 PagedSavedAppMapSearch. # 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(PagedSavedAppMapSearch, 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, PagedSavedAppMapSearch): + 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, PagedSavedAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_saved_app_map_search_group.py b/wavefront_api_client/models/paged_saved_app_map_search_group.py new file mode 100644 index 00000000..4f86ff4c --- /dev/null +++ b/wavefront_api_client/models/paged_saved_app_map_search_group.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedSavedAppMapSearchGroup(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[SavedAppMapSearchGroup]', + '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 + """PagedSavedAppMapSearchGroup - 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 PagedSavedAppMapSearchGroup. # 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 PagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedSavedAppMapSearchGroup. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedSavedAppMapSearchGroup. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedSavedAppMapSearchGroup. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: list[SavedAppMapSearchGroup] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedSavedAppMapSearchGroup. + + List of requested items # noqa: E501 + + :param items: The items of this PagedSavedAppMapSearchGroup. # noqa: E501 + :type: list[SavedAppMapSearchGroup] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedSavedAppMapSearchGroup. # noqa: E501 + + + :return: The limit of this PagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedSavedAppMapSearchGroup. + + + :param limit: The limit of this PagedSavedAppMapSearchGroup. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedSavedAppMapSearchGroup. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedSavedAppMapSearchGroup. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedSavedAppMapSearchGroup. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedSavedAppMapSearchGroup. # noqa: E501 + + + :return: The offset of this PagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedSavedAppMapSearchGroup. + + + :param offset: The offset of this PagedSavedAppMapSearchGroup. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedSavedAppMapSearchGroup. # noqa: E501 + + + :return: The sort of this PagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedSavedAppMapSearchGroup. + + + :param sort: The sort of this PagedSavedAppMapSearchGroup. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedSavedAppMapSearchGroup. # 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 PagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedSavedAppMapSearchGroup. + + 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 PagedSavedAppMapSearchGroup. # 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(PagedSavedAppMapSearchGroup, 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, PagedSavedAppMapSearchGroup): + 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, PagedSavedAppMapSearchGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_saved_search.py b/wavefront_api_client/models/paged_saved_search.py index 7d48a2c7..e188a761 100644 --- a/wavefront_api_client/models/paged_saved_search.py +++ b/wavefront_api_client/models/paged_saved_search.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.saved_search import SavedSearch # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedSavedSearch(object): @@ -34,51 +33,77 @@ class PagedSavedSearch(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[SavedSearch]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedSavedSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedSavedSearch. # 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 PagedSavedSearch. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedSavedSearch. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedSavedSearch. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedSavedSearch. # noqa: E501 - - - :return: The offset of this PagedSavedSearch. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedSavedSearch. - - - :param offset: The offset of this PagedSavedSearch. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedSavedSearch. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedSavedSearch. # 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 PagedSavedSearch. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedSavedSearch. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedSavedSearch. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedSavedSearch. # 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 PagedSavedSearch. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedSavedSearch. - - 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 PagedSavedSearch. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedSavedSearch. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedSavedSearch. # noqa: E501 + + + :return: The offset of this PagedSavedSearch. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedSavedSearch. + + + :param offset: The offset of this PagedSavedSearch. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedSavedSearch. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedSavedSearch. # 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 PagedSavedSearch. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedSavedSearch. + + 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 PagedSavedSearch. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedSavedSearch, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedSavedSearch): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedSavedSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_saved_traces_search.py b/wavefront_api_client/models/paged_saved_traces_search.py new file mode 100644 index 00000000..9ea5c849 --- /dev/null +++ b/wavefront_api_client/models/paged_saved_traces_search.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedSavedTracesSearch(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[SavedTracesSearch]', + '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 + """PagedSavedTracesSearch - 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 PagedSavedTracesSearch. # 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 PagedSavedTracesSearch. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedSavedTracesSearch. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedSavedTracesSearch. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedSavedTracesSearch. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedSavedTracesSearch. # noqa: E501 + :rtype: list[SavedTracesSearch] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedSavedTracesSearch. + + List of requested items # noqa: E501 + + :param items: The items of this PagedSavedTracesSearch. # noqa: E501 + :type: list[SavedTracesSearch] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedSavedTracesSearch. # noqa: E501 + + + :return: The limit of this PagedSavedTracesSearch. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedSavedTracesSearch. + + + :param limit: The limit of this PagedSavedTracesSearch. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedSavedTracesSearch. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedSavedTracesSearch. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedSavedTracesSearch. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedSavedTracesSearch. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedSavedTracesSearch. # noqa: E501 + + + :return: The offset of this PagedSavedTracesSearch. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedSavedTracesSearch. + + + :param offset: The offset of this PagedSavedTracesSearch. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedSavedTracesSearch. # noqa: E501 + + + :return: The sort of this PagedSavedTracesSearch. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedSavedTracesSearch. + + + :param sort: The sort of this PagedSavedTracesSearch. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedSavedTracesSearch. # 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 PagedSavedTracesSearch. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedSavedTracesSearch. + + 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 PagedSavedTracesSearch. # 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(PagedSavedTracesSearch, 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, PagedSavedTracesSearch): + 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, PagedSavedTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_saved_traces_search_group.py b/wavefront_api_client/models/paged_saved_traces_search_group.py new file mode 100644 index 00000000..f847ea29 --- /dev/null +++ b/wavefront_api_client/models/paged_saved_traces_search_group.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedSavedTracesSearchGroup(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[SavedTracesSearchGroup]', + '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 + """PagedSavedTracesSearchGroup - 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 PagedSavedTracesSearchGroup. # 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 PagedSavedTracesSearchGroup. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedSavedTracesSearchGroup. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedSavedTracesSearchGroup. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedSavedTracesSearchGroup. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedSavedTracesSearchGroup. # noqa: E501 + :rtype: list[SavedTracesSearchGroup] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedSavedTracesSearchGroup. + + List of requested items # noqa: E501 + + :param items: The items of this PagedSavedTracesSearchGroup. # noqa: E501 + :type: list[SavedTracesSearchGroup] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedSavedTracesSearchGroup. # noqa: E501 + + + :return: The limit of this PagedSavedTracesSearchGroup. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedSavedTracesSearchGroup. + + + :param limit: The limit of this PagedSavedTracesSearchGroup. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedSavedTracesSearchGroup. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedSavedTracesSearchGroup. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedSavedTracesSearchGroup. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedSavedTracesSearchGroup. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedSavedTracesSearchGroup. # noqa: E501 + + + :return: The offset of this PagedSavedTracesSearchGroup. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedSavedTracesSearchGroup. + + + :param offset: The offset of this PagedSavedTracesSearchGroup. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedSavedTracesSearchGroup. # noqa: E501 + + + :return: The sort of this PagedSavedTracesSearchGroup. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedSavedTracesSearchGroup. + + + :param sort: The sort of this PagedSavedTracesSearchGroup. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedSavedTracesSearchGroup. # 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 PagedSavedTracesSearchGroup. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedSavedTracesSearchGroup. + + 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 PagedSavedTracesSearchGroup. # 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(PagedSavedTracesSearchGroup, 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, PagedSavedTracesSearchGroup): + 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, PagedSavedTracesSearchGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_service_account.py b/wavefront_api_client/models/paged_service_account.py new file mode 100644 index 00000000..cb589a2c --- /dev/null +++ b/wavefront_api_client/models/paged_service_account.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedServiceAccount(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[ServiceAccount]', + '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 + """PagedServiceAccount - 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 PagedServiceAccount. # 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 PagedServiceAccount. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedServiceAccount. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedServiceAccount. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedServiceAccount. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedServiceAccount. # noqa: E501 + :rtype: list[ServiceAccount] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedServiceAccount. + + List of requested items # noqa: E501 + + :param items: The items of this PagedServiceAccount. # noqa: E501 + :type: list[ServiceAccount] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedServiceAccount. # noqa: E501 + + + :return: The limit of this PagedServiceAccount. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedServiceAccount. + + + :param limit: The limit of this PagedServiceAccount. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedServiceAccount. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedServiceAccount. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedServiceAccount. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedServiceAccount. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedServiceAccount. # noqa: E501 + + + :return: The offset of this PagedServiceAccount. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedServiceAccount. + + + :param offset: The offset of this PagedServiceAccount. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedServiceAccount. # noqa: E501 + + + :return: The sort of this PagedServiceAccount. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedServiceAccount. + + + :param sort: The sort of this PagedServiceAccount. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedServiceAccount. # 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 PagedServiceAccount. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedServiceAccount. + + 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 PagedServiceAccount. # 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(PagedServiceAccount, 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, PagedServiceAccount): + 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, PagedServiceAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_source.py b/wavefront_api_client/models/paged_source.py index a67e7f81..858943e7 100644 --- a/wavefront_api_client/models/paged_source.py +++ b/wavefront_api_client/models/paged_source.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 -from wavefront_api_client.models.source import Source # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class PagedSource(object): @@ -34,51 +33,77 @@ class PagedSource(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[Source]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """PagedSource - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 PagedSource. # 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 PagedSource. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedSource. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedSource. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -103,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this PagedSource. # noqa: E501 - - - :return: The offset of this PagedSource. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PagedSource. - - - :param offset: The offset of this PagedSource. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this PagedSource. # noqa: E501 @@ -145,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this PagedSource. # 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 PagedSource. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this PagedSource. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this PagedSource. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this PagedSource. # 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 PagedSource. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this PagedSource. - - 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 PagedSource. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this PagedSource. # noqa: E501 @@ -214,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this PagedSource. # noqa: E501 + + + :return: The offset of this PagedSource. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedSource. + + + :param offset: The offset of this PagedSource. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this PagedSource. # noqa: E501 @@ -235,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this PagedSource. # 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 PagedSource. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedSource. + + 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 PagedSource. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -256,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PagedSource, dict): + for key, value in self.items(): + result[key] = value return result @@ -272,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, PagedSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PagedSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_span_sampling_policy.py b/wavefront_api_client/models/paged_span_sampling_policy.py new file mode 100644 index 00000000..0f3ebadb --- /dev/null +++ b/wavefront_api_client/models/paged_span_sampling_policy.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedSpanSamplingPolicy(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[SpanSamplingPolicy]', + '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 + """PagedSpanSamplingPolicy - 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 PagedSpanSamplingPolicy. # 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 PagedSpanSamplingPolicy. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedSpanSamplingPolicy. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedSpanSamplingPolicy. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedSpanSamplingPolicy. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedSpanSamplingPolicy. # noqa: E501 + :rtype: list[SpanSamplingPolicy] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedSpanSamplingPolicy. + + List of requested items # noqa: E501 + + :param items: The items of this PagedSpanSamplingPolicy. # noqa: E501 + :type: list[SpanSamplingPolicy] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedSpanSamplingPolicy. # noqa: E501 + + + :return: The limit of this PagedSpanSamplingPolicy. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedSpanSamplingPolicy. + + + :param limit: The limit of this PagedSpanSamplingPolicy. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedSpanSamplingPolicy. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedSpanSamplingPolicy. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedSpanSamplingPolicy. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedSpanSamplingPolicy. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedSpanSamplingPolicy. # noqa: E501 + + + :return: The offset of this PagedSpanSamplingPolicy. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedSpanSamplingPolicy. + + + :param offset: The offset of this PagedSpanSamplingPolicy. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedSpanSamplingPolicy. # noqa: E501 + + + :return: The sort of this PagedSpanSamplingPolicy. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedSpanSamplingPolicy. + + + :param sort: The sort of this PagedSpanSamplingPolicy. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedSpanSamplingPolicy. # 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 PagedSpanSamplingPolicy. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedSpanSamplingPolicy. + + 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 PagedSpanSamplingPolicy. # 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(PagedSpanSamplingPolicy, 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, PagedSpanSamplingPolicy): + 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, PagedSpanSamplingPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/paged_user_group_model.py b/wavefront_api_client/models/paged_user_group_model.py new file mode 100644 index 00000000..c39c90a3 --- /dev/null +++ b/wavefront_api_client/models/paged_user_group_model.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PagedUserGroupModel(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[UserGroupModel]', + '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 + """PagedUserGroupModel - 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 PagedUserGroupModel. # 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 PagedUserGroupModel. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this PagedUserGroupModel. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this PagedUserGroupModel. # noqa: E501 + :type: str + """ + + self._cursor = cursor + + @property + def items(self): + """Gets the items of this PagedUserGroupModel. # noqa: E501 + + List of requested items # noqa: E501 + + :return: The items of this PagedUserGroupModel. # noqa: E501 + :rtype: list[UserGroupModel] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PagedUserGroupModel. + + List of requested items # noqa: E501 + + :param items: The items of this PagedUserGroupModel. # noqa: E501 + :type: list[UserGroupModel] + """ + + self._items = items + + @property + def limit(self): + """Gets the limit of this PagedUserGroupModel. # noqa: E501 + + + :return: The limit of this PagedUserGroupModel. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PagedUserGroupModel. + + + :param limit: The limit of this PagedUserGroupModel. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def more_items(self): + """Gets the more_items of this PagedUserGroupModel. # noqa: E501 + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :return: The more_items of this PagedUserGroupModel. # noqa: E501 + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """Sets the more_items of this PagedUserGroupModel. + + Whether more items are available for return by increment offset or cursor # noqa: E501 + + :param more_items: The more_items of this PagedUserGroupModel. # noqa: E501 + :type: bool + """ + + self._more_items = more_items + + @property + def offset(self): + """Gets the offset of this PagedUserGroupModel. # noqa: E501 + + + :return: The offset of this PagedUserGroupModel. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PagedUserGroupModel. + + + :param offset: The offset of this PagedUserGroupModel. # noqa: E501 + :type: int + """ + + self._offset = offset + + @property + def sort(self): + """Gets the sort of this PagedUserGroupModel. # noqa: E501 + + + :return: The sort of this PagedUserGroupModel. # noqa: E501 + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this PagedUserGroupModel. + + + :param sort: The sort of this PagedUserGroupModel. # noqa: E501 + :type: Sorting + """ + + self._sort = sort + + @property + def total_items(self): + """Gets the total_items of this PagedUserGroupModel. # 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 PagedUserGroupModel. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this PagedUserGroupModel. + + 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 PagedUserGroupModel. # 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(PagedUserGroupModel, 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, PagedUserGroupModel): + 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, PagedUserGroupModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/point.py b/wavefront_api_client/models/point.py index 6039498b..98c4fb84 100644 --- a/wavefront_api_client/models/point.py +++ b/wavefront_api_client/models/point.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class Point(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,47 +33,27 @@ class Point(object): and the value is json key in definition. """ swagger_types = { - 'value': 'float', - 'timestamp': 'int' + 'timestamp': 'int', + 'value': 'float' } attribute_map = { - 'value': 'value', - 'timestamp': 'timestamp' + 'timestamp': 'timestamp', + 'value': 'value' } - def __init__(self, value=None, timestamp=None): # noqa: E501 + def __init__(self, timestamp=None, value=None, _configuration=None): # noqa: E501 """Point - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._value = None self._timestamp = None + self._value = None self.discriminator = None - self.value = value self.timestamp = timestamp - - @property - def value(self): - """Gets the value of this Point. # noqa: E501 - - - :return: The value of this Point. # noqa: E501 - :rtype: float - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this Point. - - - :param value: The value of this Point. # noqa: E501 - :type: float - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value + self.value = value @property def timestamp(self): @@ -93,11 +75,34 @@ def timestamp(self, timestamp): :param timestamp: The timestamp of this Point. # noqa: E501 :type: int """ - if timestamp is None: + if self._configuration.client_side_validation and timestamp is None: raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 self._timestamp = timestamp + @property + def value(self): + """Gets the value of this Point. # noqa: E501 + + + :return: The value of this Point. # noqa: E501 + :rtype: float + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this Point. + + + :param value: The value of this Point. # noqa: E501 + :type: float + """ + if self._configuration.client_side_validation and value is None: + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -119,6 +124,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Point, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, Point): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Point): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/policy_rule_read_model.py b/wavefront_api_client/models/policy_rule_read_model.py new file mode 100644 index 00000000..997f9625 --- /dev/null +++ b/wavefront_api_client/models/policy_rule_read_model.py @@ -0,0 +1,383 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PolicyRuleReadModel(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 = { + 'access_type': 'str', + 'accounts': 'list[AccessControlElement]', + 'description': 'str', + 'id': 'str', + 'name': 'str', + 'prefixes': 'list[str]', + 'roles': 'list[AccessControlElement]', + 'tags': 'list[Annotation]', + 'tags_anded': 'bool', + 'user_groups': 'list[AccessControlElement]' + } + + attribute_map = { + 'access_type': 'accessType', + 'accounts': 'accounts', + 'description': 'description', + 'id': 'id', + 'name': 'name', + 'prefixes': 'prefixes', + 'roles': 'roles', + 'tags': 'tags', + 'tags_anded': 'tagsAnded', + 'user_groups': 'userGroups' + } + + def __init__(self, access_type=None, accounts=None, description=None, id=None, name=None, prefixes=None, roles=None, tags=None, tags_anded=None, user_groups=None, _configuration=None): # noqa: E501 + """PolicyRuleReadModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._access_type = None + self._accounts = None + self._description = None + self._id = None + self._name = None + self._prefixes = None + self._roles = None + self._tags = None + self._tags_anded = None + self._user_groups = None + self.discriminator = None + + if access_type is not None: + self.access_type = access_type + if accounts is not None: + self.accounts = accounts + if description is not None: + self.description = description + if id is not None: + self.id = id + self.name = name + if prefixes is not None: + self.prefixes = prefixes + if roles is not None: + self.roles = roles + if tags is not None: + self.tags = tags + if tags_anded is not None: + self.tags_anded = tags_anded + if user_groups is not None: + self.user_groups = user_groups + + @property + def access_type(self): + """Gets the access_type of this PolicyRuleReadModel. # noqa: E501 + + The access type of the policy rule # noqa: E501 + + :return: The access_type of this PolicyRuleReadModel. # noqa: E501 + :rtype: str + """ + return self._access_type + + @access_type.setter + def access_type(self, access_type): + """Sets the access_type of this PolicyRuleReadModel. + + The access type of the policy rule # noqa: E501 + + :param access_type: The access_type of this PolicyRuleReadModel. # noqa: E501 + :type: str + """ + allowed_values = ["ALLOW", "BLOCK"] # noqa: E501 + if (self._configuration.client_side_validation and + access_type not in allowed_values): + raise ValueError( + "Invalid value for `access_type` ({0}), must be one of {1}" # noqa: E501 + .format(access_type, allowed_values) + ) + + self._access_type = access_type + + @property + def accounts(self): + """Gets the accounts of this PolicyRuleReadModel. # noqa: E501 + + The list of accounts of the policy rule # noqa: E501 + + :return: The accounts of this PolicyRuleReadModel. # noqa: E501 + :rtype: list[AccessControlElement] + """ + return self._accounts + + @accounts.setter + def accounts(self, accounts): + """Sets the accounts of this PolicyRuleReadModel. + + The list of accounts of the policy rule # noqa: E501 + + :param accounts: The accounts of this PolicyRuleReadModel. # noqa: E501 + :type: list[AccessControlElement] + """ + + self._accounts = accounts + + @property + def description(self): + """Gets the description of this PolicyRuleReadModel. # noqa: E501 + + The description of the policy rule # noqa: E501 + + :return: The description of this PolicyRuleReadModel. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PolicyRuleReadModel. + + The description of the policy rule # noqa: E501 + + :param description: The description of this PolicyRuleReadModel. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def id(self): + """Gets the id of this PolicyRuleReadModel. # noqa: E501 + + + :return: The id of this PolicyRuleReadModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PolicyRuleReadModel. + + + :param id: The id of this PolicyRuleReadModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this PolicyRuleReadModel. # noqa: E501 + + The name of the policy rule # noqa: E501 + + :return: The name of this PolicyRuleReadModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PolicyRuleReadModel. + + The name of the policy rule # noqa: E501 + + :param name: The name of this PolicyRuleReadModel. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def prefixes(self): + """Gets the prefixes of this PolicyRuleReadModel. # noqa: E501 + + The prefixes of the policy rule # noqa: E501 + + :return: The prefixes of this PolicyRuleReadModel. # noqa: E501 + :rtype: list[str] + """ + return self._prefixes + + @prefixes.setter + def prefixes(self, prefixes): + """Sets the prefixes of this PolicyRuleReadModel. + + The prefixes of the policy rule # noqa: E501 + + :param prefixes: The prefixes of this PolicyRuleReadModel. # noqa: E501 + :type: list[str] + """ + + self._prefixes = prefixes + + @property + def roles(self): + """Gets the roles of this PolicyRuleReadModel. # noqa: E501 + + The list of roles of the policy rule # noqa: E501 + + :return: The roles of this PolicyRuleReadModel. # noqa: E501 + :rtype: list[AccessControlElement] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this PolicyRuleReadModel. + + The list of roles of the policy rule # noqa: E501 + + :param roles: The roles of this PolicyRuleReadModel. # noqa: E501 + :type: list[AccessControlElement] + """ + + self._roles = roles + + @property + def tags(self): + """Gets the tags of this PolicyRuleReadModel. # noqa: E501 + + The tag/value pairs of the policy rule # noqa: E501 + + :return: The tags of this PolicyRuleReadModel. # noqa: E501 + :rtype: list[Annotation] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this PolicyRuleReadModel. + + The tag/value pairs of the policy rule # noqa: E501 + + :param tags: The tags of this PolicyRuleReadModel. # noqa: E501 + :type: list[Annotation] + """ + + self._tags = tags + + @property + def tags_anded(self): + """Gets the tags_anded of this PolicyRuleReadModel. # noqa: E501 + + Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the policy rule to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false # noqa: E501 + + :return: The tags_anded of this PolicyRuleReadModel. # noqa: E501 + :rtype: bool + """ + return self._tags_anded + + @tags_anded.setter + def tags_anded(self, tags_anded): + """Sets the tags_anded of this PolicyRuleReadModel. + + Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the policy rule to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false # noqa: E501 + + :param tags_anded: The tags_anded of this PolicyRuleReadModel. # noqa: E501 + :type: bool + """ + + self._tags_anded = tags_anded + + @property + def user_groups(self): + """Gets the user_groups of this PolicyRuleReadModel. # noqa: E501 + + The list of user groups of the policy rule # noqa: E501 + + :return: The user_groups of this PolicyRuleReadModel. # noqa: E501 + :rtype: list[AccessControlElement] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this PolicyRuleReadModel. + + The list of user groups of the policy rule # noqa: E501 + + :param user_groups: The user_groups of this PolicyRuleReadModel. # noqa: E501 + :type: list[AccessControlElement] + """ + + self._user_groups = user_groups + + 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(PolicyRuleReadModel, 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, PolicyRuleReadModel): + 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, PolicyRuleReadModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/policy_rule_write_model.py b/wavefront_api_client/models/policy_rule_write_model.py new file mode 100644 index 00000000..47e99a78 --- /dev/null +++ b/wavefront_api_client/models/policy_rule_write_model.py @@ -0,0 +1,383 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 PolicyRuleWriteModel(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 = { + 'access_type': 'str', + 'accounts': 'list[str]', + 'description': 'str', + 'id': 'str', + 'name': 'str', + 'prefixes': 'list[str]', + 'roles': 'list[str]', + 'tags': 'list[Annotation]', + 'tags_anded': 'bool', + 'user_groups': 'list[str]' + } + + attribute_map = { + 'access_type': 'accessType', + 'accounts': 'accounts', + 'description': 'description', + 'id': 'id', + 'name': 'name', + 'prefixes': 'prefixes', + 'roles': 'roles', + 'tags': 'tags', + 'tags_anded': 'tagsAnded', + 'user_groups': 'userGroups' + } + + def __init__(self, access_type=None, accounts=None, description=None, id=None, name=None, prefixes=None, roles=None, tags=None, tags_anded=None, user_groups=None, _configuration=None): # noqa: E501 + """PolicyRuleWriteModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._access_type = None + self._accounts = None + self._description = None + self._id = None + self._name = None + self._prefixes = None + self._roles = None + self._tags = None + self._tags_anded = None + self._user_groups = None + self.discriminator = None + + if access_type is not None: + self.access_type = access_type + if accounts is not None: + self.accounts = accounts + if description is not None: + self.description = description + if id is not None: + self.id = id + self.name = name + if prefixes is not None: + self.prefixes = prefixes + if roles is not None: + self.roles = roles + if tags is not None: + self.tags = tags + if tags_anded is not None: + self.tags_anded = tags_anded + if user_groups is not None: + self.user_groups = user_groups + + @property + def access_type(self): + """Gets the access_type of this PolicyRuleWriteModel. # noqa: E501 + + The access type of the policy rule # noqa: E501 + + :return: The access_type of this PolicyRuleWriteModel. # noqa: E501 + :rtype: str + """ + return self._access_type + + @access_type.setter + def access_type(self, access_type): + """Sets the access_type of this PolicyRuleWriteModel. + + The access type of the policy rule # noqa: E501 + + :param access_type: The access_type of this PolicyRuleWriteModel. # noqa: E501 + :type: str + """ + allowed_values = ["ALLOW", "BLOCK"] # noqa: E501 + if (self._configuration.client_side_validation and + access_type not in allowed_values): + raise ValueError( + "Invalid value for `access_type` ({0}), must be one of {1}" # noqa: E501 + .format(access_type, allowed_values) + ) + + self._access_type = access_type + + @property + def accounts(self): + """Gets the accounts of this PolicyRuleWriteModel. # noqa: E501 + + The list of account identifiers of the policy rule # noqa: E501 + + :return: The accounts of this PolicyRuleWriteModel. # noqa: E501 + :rtype: list[str] + """ + return self._accounts + + @accounts.setter + def accounts(self, accounts): + """Sets the accounts of this PolicyRuleWriteModel. + + The list of account identifiers of the policy rule # noqa: E501 + + :param accounts: The accounts of this PolicyRuleWriteModel. # noqa: E501 + :type: list[str] + """ + + self._accounts = accounts + + @property + def description(self): + """Gets the description of this PolicyRuleWriteModel. # noqa: E501 + + The description of the policy rule # noqa: E501 + + :return: The description of this PolicyRuleWriteModel. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PolicyRuleWriteModel. + + The description of the policy rule # noqa: E501 + + :param description: The description of this PolicyRuleWriteModel. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def id(self): + """Gets the id of this PolicyRuleWriteModel. # noqa: E501 + + + :return: The id of this PolicyRuleWriteModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PolicyRuleWriteModel. + + + :param id: The id of this PolicyRuleWriteModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this PolicyRuleWriteModel. # noqa: E501 + + The name of the policy rule # noqa: E501 + + :return: The name of this PolicyRuleWriteModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PolicyRuleWriteModel. + + The name of the policy rule # noqa: E501 + + :param name: The name of this PolicyRuleWriteModel. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def prefixes(self): + """Gets the prefixes of this PolicyRuleWriteModel. # noqa: E501 + + The prefixes of the policy rule # noqa: E501 + + :return: The prefixes of this PolicyRuleWriteModel. # noqa: E501 + :rtype: list[str] + """ + return self._prefixes + + @prefixes.setter + def prefixes(self, prefixes): + """Sets the prefixes of this PolicyRuleWriteModel. + + The prefixes of the policy rule # noqa: E501 + + :param prefixes: The prefixes of this PolicyRuleWriteModel. # noqa: E501 + :type: list[str] + """ + + self._prefixes = prefixes + + @property + def roles(self): + """Gets the roles of this PolicyRuleWriteModel. # noqa: E501 + + The list of role identifiers of the policy rule # noqa: E501 + + :return: The roles of this PolicyRuleWriteModel. # noqa: E501 + :rtype: list[str] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this PolicyRuleWriteModel. + + The list of role identifiers of the policy rule # noqa: E501 + + :param roles: The roles of this PolicyRuleWriteModel. # noqa: E501 + :type: list[str] + """ + + self._roles = roles + + @property + def tags(self): + """Gets the tags of this PolicyRuleWriteModel. # noqa: E501 + + The tag/value pairs of the policy rule # noqa: E501 + + :return: The tags of this PolicyRuleWriteModel. # noqa: E501 + :rtype: list[Annotation] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this PolicyRuleWriteModel. + + The tag/value pairs of the policy rule # noqa: E501 + + :param tags: The tags of this PolicyRuleWriteModel. # noqa: E501 + :type: list[Annotation] + """ + + self._tags = tags + + @property + def tags_anded(self): + """Gets the tags_anded of this PolicyRuleWriteModel. # noqa: E501 + + Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the policy rule to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false # noqa: E501 + + :return: The tags_anded of this PolicyRuleWriteModel. # noqa: E501 + :rtype: bool + """ + return self._tags_anded + + @tags_anded.setter + def tags_anded(self, tags_anded): + """Sets the tags_anded of this PolicyRuleWriteModel. + + Whether tags should be AND-ed or OR-ed.If true, a metric must contain all tags in order for the policy rule to apply. If false, the tags are OR-ed, and a metric must contain one of the tags. Default: false # noqa: E501 + + :param tags_anded: The tags_anded of this PolicyRuleWriteModel. # noqa: E501 + :type: bool + """ + + self._tags_anded = tags_anded + + @property + def user_groups(self): + """Gets the user_groups of this PolicyRuleWriteModel. # noqa: E501 + + The list of user group identifiers of the policy rule # noqa: E501 + + :return: The user_groups of this PolicyRuleWriteModel. # noqa: E501 + :rtype: list[str] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this PolicyRuleWriteModel. + + The list of user group identifiers of the policy rule # noqa: E501 + + :param user_groups: The user_groups of this PolicyRuleWriteModel. # noqa: E501 + :type: list[str] + """ + + self._user_groups = user_groups + + 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(PolicyRuleWriteModel, 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, PolicyRuleWriteModel): + 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, PolicyRuleWriteModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/proxy.py b/wavefront_api_client/models/proxy.py index 8fa0ebaa..f10180c8 100644 --- a/wavefront_api_client/models/proxy.py +++ b/wavefront_api_client/models/proxy.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.event import Event # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class Proxy(object): @@ -33,135 +33,442 @@ class Proxy(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'id': 'str', + 'bytes_left_for_buffer': 'int', + 'bytes_per_minute_for_buffer': 'int', + 'collector_rate_limit': 'int', + 'collector_sets_rate_limit': 'bool', 'customer_id': 'str', - 'hostname': 'str', - 'version': 'str', - 'status': 'str', + 'deleted': 'bool', 'ephemeral': 'bool', + 'events_rate_limit': 'float', + 'histo_disabled': 'bool', + 'histogram_rate_limit': 'int', + 'hostname': 'str', + 'id': 'str', 'in_trash': 'bool', 'last_check_in_time': 'int', 'last_error_event': 'Event', - 'ssh_agent': 'bool', 'last_error_time': 'int', - 'time_drift': 'int', - 'bytes_left_for_buffer': 'int', - 'bytes_per_minute_for_buffer': 'int', - 'local_queue_size': 'int', 'last_known_error': 'str', - 'deleted': 'bool', - 'status_cause': 'str' + 'local_queue_size': 'int', + 'logs_disabled': 'bool', + 'name': 'str', + 'preprocessor_rules': 'str', + 'proxyname': 'str', + 'shutdown': 'bool', + 'source_tags_rate_limit': 'float', + 'span_logs_disabled': 'bool', + 'span_logs_rate_limit': 'int', + 'span_rate_limit': 'int', + 'ssh_agent': 'bool', + 'status': 'str', + 'status_cause': 'str', + 'time_drift': 'int', + 'trace_disabled': 'bool', + 'truncate': 'bool', + 'user_id': 'str', + 'version': 'str' } attribute_map = { - 'name': 'name', - 'id': 'id', + 'bytes_left_for_buffer': 'bytesLeftForBuffer', + 'bytes_per_minute_for_buffer': 'bytesPerMinuteForBuffer', + 'collector_rate_limit': 'collectorRateLimit', + 'collector_sets_rate_limit': 'collectorSetsRateLimit', 'customer_id': 'customerId', - 'hostname': 'hostname', - 'version': 'version', - 'status': 'status', + 'deleted': 'deleted', 'ephemeral': 'ephemeral', + 'events_rate_limit': 'eventsRateLimit', + 'histo_disabled': 'histoDisabled', + 'histogram_rate_limit': 'histogramRateLimit', + 'hostname': 'hostname', + 'id': 'id', 'in_trash': 'inTrash', 'last_check_in_time': 'lastCheckInTime', 'last_error_event': 'lastErrorEvent', - 'ssh_agent': 'sshAgent', 'last_error_time': 'lastErrorTime', - 'time_drift': 'timeDrift', - 'bytes_left_for_buffer': 'bytesLeftForBuffer', - 'bytes_per_minute_for_buffer': 'bytesPerMinuteForBuffer', - 'local_queue_size': 'localQueueSize', 'last_known_error': 'lastKnownError', - 'deleted': 'deleted', - 'status_cause': 'statusCause' + 'local_queue_size': 'localQueueSize', + 'logs_disabled': 'logsDisabled', + 'name': 'name', + 'preprocessor_rules': 'preprocessorRules', + 'proxyname': 'proxyname', + 'shutdown': 'shutdown', + 'source_tags_rate_limit': 'sourceTagsRateLimit', + 'span_logs_disabled': 'spanLogsDisabled', + 'span_logs_rate_limit': 'spanLogsRateLimit', + 'span_rate_limit': 'spanRateLimit', + 'ssh_agent': 'sshAgent', + 'status': 'status', + 'status_cause': 'statusCause', + 'time_drift': 'timeDrift', + 'trace_disabled': 'traceDisabled', + 'truncate': 'truncate', + 'user_id': 'userId', + 'version': 'version' } - def __init__(self, name=None, id=None, customer_id=None, hostname=None, version=None, status=None, ephemeral=None, in_trash=None, last_check_in_time=None, last_error_event=None, ssh_agent=None, last_error_time=None, time_drift=None, bytes_left_for_buffer=None, bytes_per_minute_for_buffer=None, local_queue_size=None, last_known_error=None, deleted=None, status_cause=None): # noqa: E501 + def __init__(self, bytes_left_for_buffer=None, bytes_per_minute_for_buffer=None, collector_rate_limit=None, collector_sets_rate_limit=None, customer_id=None, deleted=None, ephemeral=None, events_rate_limit=None, histo_disabled=None, histogram_rate_limit=None, hostname=None, id=None, in_trash=None, last_check_in_time=None, last_error_event=None, last_error_time=None, last_known_error=None, local_queue_size=None, logs_disabled=None, name=None, preprocessor_rules=None, proxyname=None, shutdown=None, source_tags_rate_limit=None, span_logs_disabled=None, span_logs_rate_limit=None, span_rate_limit=None, ssh_agent=None, status=None, status_cause=None, time_drift=None, trace_disabled=None, truncate=None, user_id=None, version=None, _configuration=None): # noqa: E501 """Proxy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._name = None - self._id = None + self._bytes_left_for_buffer = None + self._bytes_per_minute_for_buffer = None + self._collector_rate_limit = None + self._collector_sets_rate_limit = None self._customer_id = None - self._hostname = None - self._version = None - self._status = None + self._deleted = None self._ephemeral = None + self._events_rate_limit = None + self._histo_disabled = None + self._histogram_rate_limit = None + self._hostname = None + self._id = None self._in_trash = None self._last_check_in_time = None self._last_error_event = None - self._ssh_agent = None self._last_error_time = None - self._time_drift = None - self._bytes_left_for_buffer = None - self._bytes_per_minute_for_buffer = None - self._local_queue_size = None self._last_known_error = None - self._deleted = None + self._local_queue_size = None + self._logs_disabled = None + self._name = None + self._preprocessor_rules = None + self._proxyname = None + self._shutdown = None + self._source_tags_rate_limit = None + self._span_logs_disabled = None + self._span_logs_rate_limit = None + self._span_rate_limit = None + self._ssh_agent = None + self._status = None self._status_cause = None + self._time_drift = None + self._trace_disabled = None + self._truncate = None + self._user_id = None + self._version = None self.discriminator = None - self.name = name - if id is not None: - self.id = id + if bytes_left_for_buffer is not None: + self.bytes_left_for_buffer = bytes_left_for_buffer + if bytes_per_minute_for_buffer is not None: + self.bytes_per_minute_for_buffer = bytes_per_minute_for_buffer + if collector_rate_limit is not None: + self.collector_rate_limit = collector_rate_limit + if collector_sets_rate_limit is not None: + self.collector_sets_rate_limit = collector_sets_rate_limit if customer_id is not None: self.customer_id = customer_id - if hostname is not None: - self.hostname = hostname - if version is not None: - self.version = version - if status is not None: - self.status = status + if deleted is not None: + self.deleted = deleted if ephemeral is not None: self.ephemeral = ephemeral + if events_rate_limit is not None: + self.events_rate_limit = events_rate_limit + if histo_disabled is not None: + self.histo_disabled = histo_disabled + if histogram_rate_limit is not None: + self.histogram_rate_limit = histogram_rate_limit + if hostname is not None: + self.hostname = hostname + if id is not None: + self.id = id if in_trash is not None: self.in_trash = in_trash if last_check_in_time is not None: self.last_check_in_time = last_check_in_time if last_error_event is not None: self.last_error_event = last_error_event - if ssh_agent is not None: - self.ssh_agent = ssh_agent if last_error_time is not None: self.last_error_time = last_error_time - if time_drift is not None: - self.time_drift = time_drift - if bytes_left_for_buffer is not None: - self.bytes_left_for_buffer = bytes_left_for_buffer - if bytes_per_minute_for_buffer is not None: - self.bytes_per_minute_for_buffer = bytes_per_minute_for_buffer - if local_queue_size is not None: - self.local_queue_size = local_queue_size if last_known_error is not None: self.last_known_error = last_known_error - if deleted is not None: - self.deleted = deleted + if local_queue_size is not None: + self.local_queue_size = local_queue_size + if logs_disabled is not None: + self.logs_disabled = logs_disabled + self.name = name + if preprocessor_rules is not None: + self.preprocessor_rules = preprocessor_rules + if proxyname is not None: + self.proxyname = proxyname + if shutdown is not None: + self.shutdown = shutdown + if source_tags_rate_limit is not None: + self.source_tags_rate_limit = source_tags_rate_limit + if span_logs_disabled is not None: + self.span_logs_disabled = span_logs_disabled + if span_logs_rate_limit is not None: + self.span_logs_rate_limit = span_logs_rate_limit + if span_rate_limit is not None: + self.span_rate_limit = span_rate_limit + if ssh_agent is not None: + self.ssh_agent = ssh_agent + if status is not None: + self.status = status if status_cause is not None: self.status_cause = status_cause + if time_drift is not None: + self.time_drift = time_drift + if trace_disabled is not None: + self.trace_disabled = trace_disabled + if truncate is not None: + self.truncate = truncate + if user_id is not None: + self.user_id = user_id + if version is not None: + self.version = version @property - def name(self): - """Gets the name of this Proxy. # noqa: E501 + def bytes_left_for_buffer(self): + """Gets the bytes_left_for_buffer of this Proxy. # noqa: E501 - Proxy name (modifiable) # noqa: E501 + Number of bytes of space remaining in the persistent disk queue of this proxy # noqa: E501 - :return: The name of this Proxy. # noqa: E501 + :return: The bytes_left_for_buffer of this Proxy. # noqa: E501 + :rtype: int + """ + return self._bytes_left_for_buffer + + @bytes_left_for_buffer.setter + def bytes_left_for_buffer(self, bytes_left_for_buffer): + """Sets the bytes_left_for_buffer of this Proxy. + + Number of bytes of space remaining in the persistent disk queue of this proxy # noqa: E501 + + :param bytes_left_for_buffer: The bytes_left_for_buffer of this Proxy. # noqa: E501 + :type: int + """ + + self._bytes_left_for_buffer = bytes_left_for_buffer + + @property + def bytes_per_minute_for_buffer(self): + """Gets the bytes_per_minute_for_buffer of this Proxy. # noqa: E501 + + Bytes used per minute by the persistent disk queue of this proxy # noqa: E501 + + :return: The bytes_per_minute_for_buffer of this Proxy. # noqa: E501 + :rtype: int + """ + return self._bytes_per_minute_for_buffer + + @bytes_per_minute_for_buffer.setter + def bytes_per_minute_for_buffer(self, bytes_per_minute_for_buffer): + """Sets the bytes_per_minute_for_buffer of this Proxy. + + Bytes used per minute by the persistent disk queue of this proxy # noqa: E501 + + :param bytes_per_minute_for_buffer: The bytes_per_minute_for_buffer of this Proxy. # noqa: E501 + :type: int + """ + + self._bytes_per_minute_for_buffer = bytes_per_minute_for_buffer + + @property + def collector_rate_limit(self): + """Gets the collector_rate_limit of this Proxy. # noqa: E501 + + Proxy's rate limit # noqa: E501 + + :return: The collector_rate_limit of this Proxy. # noqa: E501 + :rtype: int + """ + return self._collector_rate_limit + + @collector_rate_limit.setter + def collector_rate_limit(self, collector_rate_limit): + """Sets the collector_rate_limit of this Proxy. + + Proxy's rate limit # noqa: E501 + + :param collector_rate_limit: The collector_rate_limit of this Proxy. # noqa: E501 + :type: int + """ + + self._collector_rate_limit = collector_rate_limit + + @property + def collector_sets_rate_limit(self): + """Gets the collector_sets_rate_limit of this Proxy. # noqa: E501 + + When true, this proxy's rate limit is controlled remotely # noqa: E501 + + :return: The collector_sets_rate_limit of this Proxy. # noqa: E501 + :rtype: bool + """ + return self._collector_sets_rate_limit + + @collector_sets_rate_limit.setter + def collector_sets_rate_limit(self, collector_sets_rate_limit): + """Sets the collector_sets_rate_limit of this Proxy. + + When true, this proxy's rate limit is controlled remotely # noqa: E501 + + :param collector_sets_rate_limit: The collector_sets_rate_limit of this Proxy. # noqa: E501 + :type: bool + """ + + self._collector_sets_rate_limit = collector_sets_rate_limit + + @property + def customer_id(self): + """Gets the customer_id of this Proxy. # noqa: E501 + + + :return: The customer_id of this Proxy. # noqa: E501 :rtype: str """ - return self._name + return self._customer_id - @name.setter - def name(self, name): - """Sets the name of this Proxy. + @customer_id.setter + def customer_id(self, customer_id): + """Sets the customer_id of this Proxy. - Proxy name (modifiable) # noqa: E501 - :param name: The name of this Proxy. # noqa: E501 + :param customer_id: The customer_id of this Proxy. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._customer_id = customer_id + + @property + def deleted(self): + """Gets the deleted of this Proxy. # noqa: E501 + + + :return: The deleted of this Proxy. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this Proxy. + + + :param deleted: The deleted of this Proxy. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def ephemeral(self): + """Gets the ephemeral of this Proxy. # noqa: E501 + + When true, this proxy is expected to be ephemeral (possibly hosted on a short-lived container) and will be deleted after a period of inactivity (not checking in) # noqa: E501 + + :return: The ephemeral of this Proxy. # noqa: E501 + :rtype: bool + """ + return self._ephemeral + + @ephemeral.setter + def ephemeral(self, ephemeral): + """Sets the ephemeral of this Proxy. + + When true, this proxy is expected to be ephemeral (possibly hosted on a short-lived container) and will be deleted after a period of inactivity (not checking in) # noqa: E501 + + :param ephemeral: The ephemeral of this Proxy. # noqa: E501 + :type: bool + """ + + self._ephemeral = ephemeral + + @property + def events_rate_limit(self): + """Gets the events_rate_limit of this Proxy. # noqa: E501 + + Proxy's rate limit for events # noqa: E501 + + :return: The events_rate_limit of this Proxy. # noqa: E501 + :rtype: float + """ + return self._events_rate_limit + + @events_rate_limit.setter + def events_rate_limit(self, events_rate_limit): + """Sets the events_rate_limit of this Proxy. + + Proxy's rate limit for events # noqa: E501 + + :param events_rate_limit: The events_rate_limit of this Proxy. # noqa: E501 + :type: float + """ + + self._events_rate_limit = events_rate_limit + + @property + def histo_disabled(self): + """Gets the histo_disabled of this Proxy. # noqa: E501 + + Proxy's histogram feature disabled # noqa: E501 + + :return: The histo_disabled of this Proxy. # noqa: E501 + :rtype: bool + """ + return self._histo_disabled + + @histo_disabled.setter + def histo_disabled(self, histo_disabled): + """Sets the histo_disabled of this Proxy. + + Proxy's histogram feature disabled # noqa: E501 + + :param histo_disabled: The histo_disabled of this Proxy. # noqa: E501 + :type: bool + """ + + self._histo_disabled = histo_disabled + + @property + def histogram_rate_limit(self): + """Gets the histogram_rate_limit of this Proxy. # noqa: E501 + + Proxy's rate limit for histograms # noqa: E501 + + :return: The histogram_rate_limit of this Proxy. # noqa: E501 + :rtype: int + """ + return self._histogram_rate_limit + + @histogram_rate_limit.setter + def histogram_rate_limit(self, histogram_rate_limit): + """Sets the histogram_rate_limit of this Proxy. + + Proxy's rate limit for histograms # noqa: E501 + + :param histogram_rate_limit: The histogram_rate_limit of this Proxy. # noqa: E501 + :type: int + """ + + self._histogram_rate_limit = histogram_rate_limit + + @property + def hostname(self): + """Gets the hostname of this Proxy. # noqa: E501 + + Host name of the machine running the proxy # noqa: E501 + + :return: The hostname of this Proxy. # noqa: E501 + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this Proxy. + + Host name of the machine running the proxy # noqa: E501 + + :param hostname: The hostname of this Proxy. # noqa: E501 + :type: str + """ + + self._hostname = hostname @property def id(self): @@ -185,186 +492,347 @@ def id(self, id): self._id = id @property - def customer_id(self): - """Gets the customer_id of this Proxy. # noqa: E501 + def in_trash(self): + """Gets the in_trash of this Proxy. # noqa: E501 - :return: The customer_id of this Proxy. # noqa: E501 + :return: The in_trash of this Proxy. # noqa: E501 + :rtype: bool + """ + return self._in_trash + + @in_trash.setter + def in_trash(self, in_trash): + """Sets the in_trash of this Proxy. + + + :param in_trash: The in_trash of this Proxy. # noqa: E501 + :type: bool + """ + + self._in_trash = in_trash + + @property + def last_check_in_time(self): + """Gets the last_check_in_time of this Proxy. # noqa: E501 + + Last time when this proxy checked in (in milliseconds since the unix epoch) # noqa: E501 + + :return: The last_check_in_time of this Proxy. # noqa: E501 + :rtype: int + """ + return self._last_check_in_time + + @last_check_in_time.setter + def last_check_in_time(self, last_check_in_time): + """Sets the last_check_in_time of this Proxy. + + Last time when this proxy checked in (in milliseconds since the unix epoch) # noqa: E501 + + :param last_check_in_time: The last_check_in_time of this Proxy. # noqa: E501 + :type: int + """ + + self._last_check_in_time = last_check_in_time + + @property + def last_error_event(self): + """Gets the last_error_event of this Proxy. # noqa: E501 + + + :return: The last_error_event of this Proxy. # noqa: E501 + :rtype: Event + """ + return self._last_error_event + + @last_error_event.setter + def last_error_event(self, last_error_event): + """Sets the last_error_event of this Proxy. + + + :param last_error_event: The last_error_event of this Proxy. # noqa: E501 + :type: Event + """ + + self._last_error_event = last_error_event + + @property + def last_error_time(self): + """Gets the last_error_time of this Proxy. # noqa: E501 + + deprecated # noqa: E501 + + :return: The last_error_time of this Proxy. # noqa: E501 + :rtype: int + """ + return self._last_error_time + + @last_error_time.setter + def last_error_time(self, last_error_time): + """Sets the last_error_time of this Proxy. + + deprecated # noqa: E501 + + :param last_error_time: The last_error_time of this Proxy. # noqa: E501 + :type: int + """ + + self._last_error_time = last_error_time + + @property + def last_known_error(self): + """Gets the last_known_error of this Proxy. # noqa: E501 + + deprecated # noqa: E501 + + :return: The last_known_error of this Proxy. # noqa: E501 :rtype: str """ - return self._customer_id + return self._last_known_error - @customer_id.setter - def customer_id(self, customer_id): - """Sets the customer_id of this Proxy. + @last_known_error.setter + def last_known_error(self, last_known_error): + """Sets the last_known_error of this Proxy. + + deprecated # noqa: E501 + + :param last_known_error: The last_known_error of this Proxy. # noqa: E501 + :type: str + """ + + self._last_known_error = last_known_error + + @property + def local_queue_size(self): + """Gets the local_queue_size of this Proxy. # noqa: E501 + + Number of items in the persistent disk queue of this proxy # noqa: E501 + + :return: The local_queue_size of this Proxy. # noqa: E501 + :rtype: int + """ + return self._local_queue_size + + @local_queue_size.setter + def local_queue_size(self, local_queue_size): + """Sets the local_queue_size of this Proxy. + + Number of items in the persistent disk queue of this proxy # noqa: E501 + + :param local_queue_size: The local_queue_size of this Proxy. # noqa: E501 + :type: int + """ + + self._local_queue_size = local_queue_size + + @property + def logs_disabled(self): + """Gets the logs_disabled of this Proxy. # noqa: E501 + + Proxy's logs feature disabled for customer # noqa: E501 + + :return: The logs_disabled of this Proxy. # noqa: E501 + :rtype: bool + """ + return self._logs_disabled + + @logs_disabled.setter + def logs_disabled(self, logs_disabled): + """Sets the logs_disabled of this Proxy. + + Proxy's logs feature disabled for customer # noqa: E501 + + :param logs_disabled: The logs_disabled of this Proxy. # noqa: E501 + :type: bool + """ + + self._logs_disabled = logs_disabled + + @property + def name(self): + """Gets the name of this Proxy. # noqa: E501 + + Proxy name (modifiable) # noqa: E501 + + :return: The name of this Proxy. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Proxy. + Proxy name (modifiable) # noqa: E501 - :param customer_id: The customer_id of this Proxy. # noqa: E501 + :param name: The name of this Proxy. # noqa: E501 :type: str """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._customer_id = customer_id + self._name = name @property - def hostname(self): - """Gets the hostname of this Proxy. # noqa: E501 + def preprocessor_rules(self): + """Gets the preprocessor_rules of this Proxy. # noqa: E501 - Host name of the machine running the proxy # noqa: E501 + Proxy's preprocessor rules # noqa: E501 - :return: The hostname of this Proxy. # noqa: E501 + :return: The preprocessor_rules of this Proxy. # noqa: E501 :rtype: str """ - return self._hostname + return self._preprocessor_rules - @hostname.setter - def hostname(self, hostname): - """Sets the hostname of this Proxy. + @preprocessor_rules.setter + def preprocessor_rules(self, preprocessor_rules): + """Sets the preprocessor_rules of this Proxy. - Host name of the machine running the proxy # noqa: E501 + Proxy's preprocessor rules # noqa: E501 - :param hostname: The hostname of this Proxy. # noqa: E501 + :param preprocessor_rules: The preprocessor_rules of this Proxy. # noqa: E501 :type: str """ - self._hostname = hostname + self._preprocessor_rules = preprocessor_rules @property - def version(self): - """Gets the version of this Proxy. # noqa: E501 + def proxyname(self): + """Gets the proxyname of this Proxy. # noqa: E501 + Proxy name set by customer # noqa: E501 - :return: The version of this Proxy. # noqa: E501 + :return: The proxyname of this Proxy. # noqa: E501 :rtype: str """ - return self._version + return self._proxyname - @version.setter - def version(self, version): - """Sets the version of this Proxy. + @proxyname.setter + def proxyname(self, proxyname): + """Sets the proxyname of this Proxy. + Proxy name set by customer # noqa: E501 - :param version: The version of this Proxy. # noqa: E501 + :param proxyname: The proxyname of this Proxy. # noqa: E501 :type: str """ - self._version = version + self._proxyname = proxyname @property - def status(self): - """Gets the status of this Proxy. # noqa: E501 + def shutdown(self): + """Gets the shutdown of this Proxy. # noqa: E501 - the proxy's status # noqa: E501 + When true, attempt to shut down this proxy remotely # noqa: E501 - :return: The status of this Proxy. # noqa: E501 - :rtype: str + :return: The shutdown of this Proxy. # noqa: E501 + :rtype: bool """ - return self._status + return self._shutdown - @status.setter - def status(self, status): - """Sets the status of this Proxy. + @shutdown.setter + def shutdown(self, shutdown): + """Sets the shutdown of this Proxy. - the proxy's status # noqa: E501 + When true, attempt to shut down this proxy remotely # noqa: E501 - :param status: The status of this Proxy. # noqa: E501 - :type: str + :param shutdown: The shutdown of this Proxy. # noqa: E501 + :type: bool """ - allowed_values = ["ACTIVE", "STOPPED_UNKNOWN", "STOPPED_BY_SERVER"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - self._status = status + self._shutdown = shutdown @property - def ephemeral(self): - """Gets the ephemeral of this Proxy. # noqa: E501 + def source_tags_rate_limit(self): + """Gets the source_tags_rate_limit of this Proxy. # noqa: E501 - When true, this proxy is expected to be ephemeral (possibly hosted on a short-lived container) and will be deleted after a period of inactivity (not checking in) # noqa: E501 + Proxy's rate limit for source tag operations # noqa: E501 - :return: The ephemeral of this Proxy. # noqa: E501 - :rtype: bool + :return: The source_tags_rate_limit of this Proxy. # noqa: E501 + :rtype: float """ - return self._ephemeral + return self._source_tags_rate_limit - @ephemeral.setter - def ephemeral(self, ephemeral): - """Sets the ephemeral of this Proxy. + @source_tags_rate_limit.setter + def source_tags_rate_limit(self, source_tags_rate_limit): + """Sets the source_tags_rate_limit of this Proxy. - When true, this proxy is expected to be ephemeral (possibly hosted on a short-lived container) and will be deleted after a period of inactivity (not checking in) # noqa: E501 + Proxy's rate limit for source tag operations # noqa: E501 - :param ephemeral: The ephemeral of this Proxy. # noqa: E501 - :type: bool + :param source_tags_rate_limit: The source_tags_rate_limit of this Proxy. # noqa: E501 + :type: float """ - self._ephemeral = ephemeral + self._source_tags_rate_limit = source_tags_rate_limit @property - def in_trash(self): - """Gets the in_trash of this Proxy. # noqa: E501 + def span_logs_disabled(self): + """Gets the span_logs_disabled of this Proxy. # noqa: E501 + Proxy's span logs feature disabled # noqa: E501 - :return: The in_trash of this Proxy. # noqa: E501 + :return: The span_logs_disabled of this Proxy. # noqa: E501 :rtype: bool """ - return self._in_trash + return self._span_logs_disabled - @in_trash.setter - def in_trash(self, in_trash): - """Sets the in_trash of this Proxy. + @span_logs_disabled.setter + def span_logs_disabled(self, span_logs_disabled): + """Sets the span_logs_disabled of this Proxy. + Proxy's span logs feature disabled # noqa: E501 - :param in_trash: The in_trash of this Proxy. # noqa: E501 + :param span_logs_disabled: The span_logs_disabled of this Proxy. # noqa: E501 :type: bool """ - self._in_trash = in_trash + self._span_logs_disabled = span_logs_disabled @property - def last_check_in_time(self): - """Gets the last_check_in_time of this Proxy. # noqa: E501 + def span_logs_rate_limit(self): + """Gets the span_logs_rate_limit of this Proxy. # noqa: E501 - Last time when this proxy checked in (in milliseconds since the unix epoch) # noqa: E501 + Proxy's rate limit for span logs # noqa: E501 - :return: The last_check_in_time of this Proxy. # noqa: E501 + :return: The span_logs_rate_limit of this Proxy. # noqa: E501 :rtype: int """ - return self._last_check_in_time + return self._span_logs_rate_limit - @last_check_in_time.setter - def last_check_in_time(self, last_check_in_time): - """Sets the last_check_in_time of this Proxy. + @span_logs_rate_limit.setter + def span_logs_rate_limit(self, span_logs_rate_limit): + """Sets the span_logs_rate_limit of this Proxy. - Last time when this proxy checked in (in milliseconds since the unix epoch) # noqa: E501 + Proxy's rate limit for span logs # noqa: E501 - :param last_check_in_time: The last_check_in_time of this Proxy. # noqa: E501 + :param span_logs_rate_limit: The span_logs_rate_limit of this Proxy. # noqa: E501 :type: int """ - self._last_check_in_time = last_check_in_time + self._span_logs_rate_limit = span_logs_rate_limit @property - def last_error_event(self): - """Gets the last_error_event of this Proxy. # noqa: E501 + def span_rate_limit(self): + """Gets the span_rate_limit of this Proxy. # noqa: E501 + Proxy's rate limit for spans # noqa: E501 - :return: The last_error_event of this Proxy. # noqa: E501 - :rtype: Event + :return: The span_rate_limit of this Proxy. # noqa: E501 + :rtype: int """ - return self._last_error_event + return self._span_rate_limit - @last_error_event.setter - def last_error_event(self, last_error_event): - """Sets the last_error_event of this Proxy. + @span_rate_limit.setter + def span_rate_limit(self, span_rate_limit): + """Sets the span_rate_limit of this Proxy. + Proxy's rate limit for spans # noqa: E501 - :param last_error_event: The last_error_event of this Proxy. # noqa: E501 - :type: Event + :param span_rate_limit: The span_rate_limit of this Proxy. # noqa: E501 + :type: int """ - self._last_error_event = last_error_event + self._span_rate_limit = span_rate_limit @property def ssh_agent(self): @@ -390,27 +858,57 @@ def ssh_agent(self, ssh_agent): self._ssh_agent = ssh_agent @property - def last_error_time(self): - """Gets the last_error_time of this Proxy. # noqa: E501 + def status(self): + """Gets the status of this Proxy. # noqa: E501 - deprecated # noqa: E501 + the proxy's status # noqa: E501 - :return: The last_error_time of this Proxy. # noqa: E501 - :rtype: int + :return: The status of this Proxy. # noqa: E501 + :rtype: str """ - return self._last_error_time + return self._status - @last_error_time.setter - def last_error_time(self, last_error_time): - """Sets the last_error_time of this Proxy. + @status.setter + def status(self, status): + """Sets the status of this Proxy. - deprecated # noqa: E501 + the proxy's status # noqa: E501 - :param last_error_time: The last_error_time of this Proxy. # noqa: E501 - :type: int + :param status: The status of this Proxy. # noqa: E501 + :type: str """ + allowed_values = ["ACTIVE", "STOPPED_UNKNOWN", "STOPPED_BY_SERVER", "TOKEN_EXPIRED"] # noqa: E501 + if (self._configuration.client_side_validation and + status not in allowed_values): + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 + .format(status, allowed_values) + ) - self._last_error_time = last_error_time + self._status = status + + @property + def status_cause(self): + """Gets the status_cause of this Proxy. # noqa: E501 + + The reason why the proxy is in current status # noqa: E501 + + :return: The status_cause of this Proxy. # noqa: E501 + :rtype: str + """ + return self._status_cause + + @status_cause.setter + def status_cause(self, status_cause): + """Sets the status_cause of this Proxy. + + The reason why the proxy is in current status # noqa: E501 + + :param status_cause: The status_cause of this Proxy. # noqa: E501 + :type: str + """ + + self._status_cause = status_cause @property def time_drift(self): @@ -436,140 +934,94 @@ def time_drift(self, time_drift): self._time_drift = time_drift @property - def bytes_left_for_buffer(self): - """Gets the bytes_left_for_buffer of this Proxy. # noqa: E501 - - Number of bytes of space remaining in the persistent disk queue of this proxy # noqa: E501 - - :return: The bytes_left_for_buffer of this Proxy. # noqa: E501 - :rtype: int - """ - return self._bytes_left_for_buffer - - @bytes_left_for_buffer.setter - def bytes_left_for_buffer(self, bytes_left_for_buffer): - """Sets the bytes_left_for_buffer of this Proxy. - - Number of bytes of space remaining in the persistent disk queue of this proxy # noqa: E501 - - :param bytes_left_for_buffer: The bytes_left_for_buffer of this Proxy. # noqa: E501 - :type: int - """ - - self._bytes_left_for_buffer = bytes_left_for_buffer - - @property - def bytes_per_minute_for_buffer(self): - """Gets the bytes_per_minute_for_buffer of this Proxy. # noqa: E501 + def trace_disabled(self): + """Gets the trace_disabled of this Proxy. # noqa: E501 - Bytes used per minute by the persistent disk queue of this proxy # noqa: E501 + Proxy's spans feature disabled # noqa: E501 - :return: The bytes_per_minute_for_buffer of this Proxy. # noqa: E501 - :rtype: int + :return: The trace_disabled of this Proxy. # noqa: E501 + :rtype: bool """ - return self._bytes_per_minute_for_buffer + return self._trace_disabled - @bytes_per_minute_for_buffer.setter - def bytes_per_minute_for_buffer(self, bytes_per_minute_for_buffer): - """Sets the bytes_per_minute_for_buffer of this Proxy. + @trace_disabled.setter + def trace_disabled(self, trace_disabled): + """Sets the trace_disabled of this Proxy. - Bytes used per minute by the persistent disk queue of this proxy # noqa: E501 + Proxy's spans feature disabled # noqa: E501 - :param bytes_per_minute_for_buffer: The bytes_per_minute_for_buffer of this Proxy. # noqa: E501 - :type: int + :param trace_disabled: The trace_disabled of this Proxy. # noqa: E501 + :type: bool """ - self._bytes_per_minute_for_buffer = bytes_per_minute_for_buffer + self._trace_disabled = trace_disabled @property - def local_queue_size(self): - """Gets the local_queue_size of this Proxy. # noqa: E501 + def truncate(self): + """Gets the truncate of this Proxy. # noqa: E501 - Number of items in the persistent disk queue of this proxy # noqa: E501 + When true, attempt to truncate down this proxy backlog remotely # noqa: E501 - :return: The local_queue_size of this Proxy. # noqa: E501 - :rtype: int + :return: The truncate of this Proxy. # noqa: E501 + :rtype: bool """ - return self._local_queue_size + return self._truncate - @local_queue_size.setter - def local_queue_size(self, local_queue_size): - """Sets the local_queue_size of this Proxy. + @truncate.setter + def truncate(self, truncate): + """Sets the truncate of this Proxy. - Number of items in the persistent disk queue of this proxy # noqa: E501 + When true, attempt to truncate down this proxy backlog remotely # noqa: E501 - :param local_queue_size: The local_queue_size of this Proxy. # noqa: E501 - :type: int + :param truncate: The truncate of this Proxy. # noqa: E501 + :type: bool """ - self._local_queue_size = local_queue_size + self._truncate = truncate @property - def last_known_error(self): - """Gets the last_known_error of this Proxy. # noqa: E501 + def user_id(self): + """Gets the user_id of this Proxy. # noqa: E501 - deprecated # noqa: E501 + The user associated with this proxy # noqa: E501 - :return: The last_known_error of this Proxy. # noqa: E501 + :return: The user_id of this Proxy. # noqa: E501 :rtype: str """ - return self._last_known_error + return self._user_id - @last_known_error.setter - def last_known_error(self, last_known_error): - """Sets the last_known_error of this Proxy. + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this Proxy. - deprecated # noqa: E501 + The user associated with this proxy # noqa: E501 - :param last_known_error: The last_known_error of this Proxy. # noqa: E501 + :param user_id: The user_id of this Proxy. # noqa: E501 :type: str """ - self._last_known_error = last_known_error - - @property - def deleted(self): - """Gets the deleted of this Proxy. # noqa: E501 - - - :return: The deleted of this Proxy. # noqa: E501 - :rtype: bool - """ - return self._deleted - - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this Proxy. - - - :param deleted: The deleted of this Proxy. # noqa: E501 - :type: bool - """ - - self._deleted = deleted + self._user_id = user_id @property - def status_cause(self): - """Gets the status_cause of this Proxy. # noqa: E501 + def version(self): + """Gets the version of this Proxy. # noqa: E501 - The reason why the proxy is in current status # noqa: E501 - :return: The status_cause of this Proxy. # noqa: E501 + :return: The version of this Proxy. # noqa: E501 :rtype: str """ - return self._status_cause + return self._version - @status_cause.setter - def status_cause(self, status_cause): - """Sets the status_cause of this Proxy. + @version.setter + def version(self, version): + """Sets the version of this Proxy. - The reason why the proxy is in current status # noqa: E501 - :param status_cause: The status_cause of this Proxy. # noqa: E501 + :param version: The version of this Proxy. # noqa: E501 :type: str """ - self._status_cause = status_cause + self._version = version def to_dict(self): """Returns the model properties as a dict""" @@ -592,6 +1044,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Proxy, dict): + for key, value in self.items(): + result[key] = value return result @@ -608,8 +1063,11 @@ def __eq__(self, other): if not isinstance(other, Proxy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Proxy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/query_event.py b/wavefront_api_client/models/query_event.py index f4a40bb1..db1926ab 100644 --- a/wavefront_api_client/models/query_event.py +++ b/wavefront_api_client/models/query_event.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class QueryEvent(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,166 +33,169 @@ class QueryEvent(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'start': 'int', 'end': 'int', - 'tags': 'dict(str, str)', 'hosts': 'list[str]', + 'is_ephemeral': 'bool', + 'name': 'str', + 'start': 'int', 'summarized': 'int', - 'is_ephemeral': 'bool' + 'tags': 'dict(str, str)' } attribute_map = { - 'name': 'name', - 'start': 'start', 'end': 'end', - 'tags': 'tags', 'hosts': 'hosts', + 'is_ephemeral': 'isEphemeral', + 'name': 'name', + 'start': 'start', 'summarized': 'summarized', - 'is_ephemeral': 'isEphemeral' + 'tags': 'tags' } - def __init__(self, name=None, start=None, end=None, tags=None, hosts=None, summarized=None, is_ephemeral=None): # noqa: E501 + def __init__(self, end=None, hosts=None, is_ephemeral=None, name=None, start=None, summarized=None, tags=None, _configuration=None): # noqa: E501 """QueryEvent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._name = None - self._start = None self._end = None - self._tags = None self._hosts = None - self._summarized = None self._is_ephemeral = None + self._name = None + self._start = None + self._summarized = None + self._tags = None self.discriminator = None - if name is not None: - self.name = name - if start is not None: - self.start = start if end is not None: self.end = end - if tags is not None: - self.tags = tags if hosts is not None: self.hosts = hosts - if summarized is not None: - self.summarized = summarized if is_ephemeral is not None: self.is_ephemeral = is_ephemeral + if name is not None: + self.name = name + if start is not None: + self.start = start + if summarized is not None: + self.summarized = summarized + if tags is not None: + self.tags = tags @property - def name(self): - """Gets the name of this QueryEvent. # noqa: E501 + def end(self): + """Gets the end of this QueryEvent. # noqa: E501 - Event name # noqa: E501 + End time of event, in epoch millis # noqa: E501 - :return: The name of this QueryEvent. # noqa: E501 - :rtype: str + :return: The end of this QueryEvent. # noqa: E501 + :rtype: int """ - return self._name + return self._end - @name.setter - def name(self, name): - """Sets the name of this QueryEvent. + @end.setter + def end(self, end): + """Sets the end of this QueryEvent. - Event name # noqa: E501 + End time of event, in epoch millis # noqa: E501 - :param name: The name of this QueryEvent. # noqa: E501 - :type: str + :param end: The end of this QueryEvent. # noqa: E501 + :type: int """ - self._name = name + self._end = end @property - def start(self): - """Gets the start of this QueryEvent. # noqa: E501 + def hosts(self): + """Gets the hosts of this QueryEvent. # noqa: E501 - Start time of event, in epoch millis # noqa: E501 + Sources (hosts) to which the event pertains # noqa: E501 - :return: The start of this QueryEvent. # noqa: E501 - :rtype: int + :return: The hosts of this QueryEvent. # noqa: E501 + :rtype: list[str] """ - return self._start + return self._hosts - @start.setter - def start(self, start): - """Sets the start of this QueryEvent. + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this QueryEvent. - Start time of event, in epoch millis # noqa: E501 + Sources (hosts) to which the event pertains # noqa: E501 - :param start: The start of this QueryEvent. # noqa: E501 - :type: int + :param hosts: The hosts of this QueryEvent. # noqa: E501 + :type: list[str] """ - self._start = start + self._hosts = hosts @property - def end(self): - """Gets the end of this QueryEvent. # noqa: E501 + def is_ephemeral(self): + """Gets the is_ephemeral of this QueryEvent. # noqa: E501 - End time of event, in epoch millis # noqa: E501 + Whether the event is an artificial event generated by a literal expression or alert backtesting, i.e. not stored in the Wavefront backend # noqa: E501 - :return: The end of this QueryEvent. # noqa: E501 - :rtype: int + :return: The is_ephemeral of this QueryEvent. # noqa: E501 + :rtype: bool """ - return self._end + return self._is_ephemeral - @end.setter - def end(self, end): - """Sets the end of this QueryEvent. + @is_ephemeral.setter + def is_ephemeral(self, is_ephemeral): + """Sets the is_ephemeral of this QueryEvent. - End time of event, in epoch millis # noqa: E501 + Whether the event is an artificial event generated by a literal expression or alert backtesting, i.e. not stored in the Wavefront backend # noqa: E501 - :param end: The end of this QueryEvent. # noqa: E501 - :type: int + :param is_ephemeral: The is_ephemeral of this QueryEvent. # noqa: E501 + :type: bool """ - self._end = end + self._is_ephemeral = is_ephemeral @property - def tags(self): - """Gets the tags of this QueryEvent. # noqa: E501 + def name(self): + """Gets the name of this QueryEvent. # noqa: E501 - Tags (annotations) on the event # noqa: E501 + Event name # noqa: E501 - :return: The tags of this QueryEvent. # noqa: E501 - :rtype: dict(str, str) + :return: The name of this QueryEvent. # noqa: E501 + :rtype: str """ - return self._tags + return self._name - @tags.setter - def tags(self, tags): - """Sets the tags of this QueryEvent. + @name.setter + def name(self, name): + """Sets the name of this QueryEvent. - Tags (annotations) on the event # noqa: E501 + Event name # noqa: E501 - :param tags: The tags of this QueryEvent. # noqa: E501 - :type: dict(str, str) + :param name: The name of this QueryEvent. # noqa: E501 + :type: str """ - self._tags = tags + self._name = name @property - def hosts(self): - """Gets the hosts of this QueryEvent. # noqa: E501 + def start(self): + """Gets the start of this QueryEvent. # noqa: E501 - Sources (hosts) to which the event pertains # noqa: E501 + Start time of event, in epoch millis # noqa: E501 - :return: The hosts of this QueryEvent. # noqa: E501 - :rtype: list[str] + :return: The start of this QueryEvent. # noqa: E501 + :rtype: int """ - return self._hosts + return self._start - @hosts.setter - def hosts(self, hosts): - """Sets the hosts of this QueryEvent. + @start.setter + def start(self, start): + """Sets the start of this QueryEvent. - Sources (hosts) to which the event pertains # noqa: E501 + Start time of event, in epoch millis # noqa: E501 - :param hosts: The hosts of this QueryEvent. # noqa: E501 - :type: list[str] + :param start: The start of this QueryEvent. # noqa: E501 + :type: int """ - self._hosts = hosts + self._start = start @property def summarized(self): @@ -216,27 +221,27 @@ def summarized(self, summarized): self._summarized = summarized @property - def is_ephemeral(self): - """Gets the is_ephemeral of this QueryEvent. # noqa: E501 + def tags(self): + """Gets the tags of this QueryEvent. # noqa: E501 - Whether the event is an artificial event generated by a literal expression or alert backtesting, i.e. not stored in the Wavefront backend # noqa: E501 + Tags (annotations) on the event # noqa: E501 - :return: The is_ephemeral of this QueryEvent. # noqa: E501 - :rtype: bool + :return: The tags of this QueryEvent. # noqa: E501 + :rtype: dict(str, str) """ - return self._is_ephemeral + return self._tags - @is_ephemeral.setter - def is_ephemeral(self, is_ephemeral): - """Sets the is_ephemeral of this QueryEvent. + @tags.setter + def tags(self, tags): + """Sets the tags of this QueryEvent. - Whether the event is an artificial event generated by a literal expression or alert backtesting, i.e. not stored in the Wavefront backend # noqa: E501 + Tags (annotations) on the event # noqa: E501 - :param is_ephemeral: The is_ephemeral of this QueryEvent. # noqa: E501 - :type: bool + :param tags: The tags of this QueryEvent. # noqa: E501 + :type: dict(str, str) """ - self._is_ephemeral = is_ephemeral + self._tags = tags def to_dict(self): """Returns the model properties as a dict""" @@ -259,6 +264,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(QueryEvent, dict): + for key, value in self.items(): + result[key] = value return result @@ -275,8 +283,11 @@ def __eq__(self, other): if not isinstance(other, QueryEvent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, QueryEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/query_result.py b/wavefront_api_client/models/query_result.py index a0642067..e84444ff 100644 --- a/wavefront_api_client/models/query_result.py +++ b/wavefront_api_client/models/query_result.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,9 +16,7 @@ import six -from wavefront_api_client.models.query_event import QueryEvent # noqa: F401,E501 -from wavefront_api_client.models.stats_model import StatsModel # noqa: F401,E501 -from wavefront_api_client.models.timeseries import Timeseries # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class QueryResult(object): @@ -35,51 +33,204 @@ class QueryResult(object): and the value is json key in definition. """ swagger_types = { + 'dimensions': 'list[TupleResult]', + 'error_message': 'str', + 'error_type': 'str', + 'events': 'list[QueryEvent]', + 'granularity': 'int', 'name': 'str', 'query': 'str', - 'stats': 'StatsModel', - 'warnings': 'str', - 'granularity': 'int', - 'events': 'list[QueryEvent]', - 'timeseries': 'list[Timeseries]' + 'spans': 'list[Span]', + 'stats': 'StatsModelInternalUse', + 'timeseries': 'list[Timeseries]', + 'trace_dimensions': 'list[TupleResult]', + 'traces': 'list[Trace]', + 'warnings': 'str' } attribute_map = { + 'dimensions': 'dimensions', + 'error_message': 'errorMessage', + 'error_type': 'errorType', + 'events': 'events', + 'granularity': 'granularity', 'name': 'name', 'query': 'query', + 'spans': 'spans', 'stats': 'stats', - 'warnings': 'warnings', - 'granularity': 'granularity', - 'events': 'events', - 'timeseries': 'timeseries' + 'timeseries': 'timeseries', + 'trace_dimensions': 'traceDimensions', + 'traces': 'traces', + 'warnings': 'warnings' } - def __init__(self, name=None, query=None, stats=None, warnings=None, granularity=None, events=None, timeseries=None): # noqa: E501 + def __init__(self, dimensions=None, error_message=None, error_type=None, events=None, granularity=None, name=None, query=None, spans=None, stats=None, timeseries=None, trace_dimensions=None, traces=None, warnings=None, _configuration=None): # noqa: E501 """QueryResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._dimensions = None + self._error_message = None + self._error_type = None + self._events = None + self._granularity = None self._name = None self._query = None + self._spans = None self._stats = None - self._warnings = None - self._granularity = None - self._events = None self._timeseries = None + self._trace_dimensions = None + self._traces = None + self._warnings = None self.discriminator = None + if dimensions is not None: + self.dimensions = dimensions + if error_message is not None: + self.error_message = error_message + if error_type is not None: + self.error_type = error_type + if events is not None: + self.events = events + if granularity is not None: + self.granularity = granularity if name is not None: self.name = name if query is not None: self.query = query + if spans is not None: + self.spans = spans if stats is not None: self.stats = stats - if warnings is not None: - self.warnings = warnings - if granularity is not None: - self.granularity = granularity - if events is not None: - self.events = events if timeseries is not None: self.timeseries = timeseries + if trace_dimensions is not None: + self.trace_dimensions = trace_dimensions + if traces is not None: + self.traces = traces + if warnings is not None: + self.warnings = warnings + + @property + def dimensions(self): + """Gets the dimensions of this QueryResult. # noqa: E501 + + List of all dimension tuple results # noqa: E501 + + :return: The dimensions of this QueryResult. # noqa: E501 + :rtype: list[TupleResult] + """ + return self._dimensions + + @dimensions.setter + def dimensions(self, dimensions): + """Sets the dimensions of this QueryResult. + + List of all dimension tuple results # noqa: E501 + + :param dimensions: The dimensions of this QueryResult. # noqa: E501 + :type: list[TupleResult] + """ + + self._dimensions = dimensions + + @property + def error_message(self): + """Gets the error_message of this QueryResult. # noqa: E501 + + Error message, if query execution did not finish successfully # noqa: E501 + + :return: The error_message of this QueryResult. # noqa: E501 + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """Sets the error_message of this QueryResult. + + Error message, if query execution did not finish successfully # noqa: E501 + + :param error_message: The error_message of this QueryResult. # noqa: E501 + :type: str + """ + + self._error_message = error_message + + @property + def error_type(self): + """Gets the error_type of this QueryResult. # noqa: E501 + + Error type, if query execution did not finish successfully # noqa: E501 + + :return: The error_type of this QueryResult. # noqa: E501 + :rtype: str + """ + return self._error_type + + @error_type.setter + def error_type(self, error_type): + """Sets the error_type of this QueryResult. + + Error type, if query execution did not finish successfully # noqa: E501 + + :param error_type: The error_type of this QueryResult. # noqa: E501 + :type: str + """ + allowed_values = ["N/A", "QuerySyntaxError", "QueryExecutionError", "Timeout"] # noqa: E501 + if (self._configuration.client_side_validation and + error_type not in allowed_values): + raise ValueError( + "Invalid value for `error_type` ({0}), must be one of {1}" # noqa: E501 + .format(error_type, allowed_values) + ) + + self._error_type = error_type + + @property + def events(self): + """Gets the events of this QueryResult. # noqa: E501 + + + :return: The events of this QueryResult. # noqa: E501 + :rtype: list[QueryEvent] + """ + return self._events + + @events.setter + def events(self, events): + """Sets the events of this QueryResult. + + + :param events: The events of this QueryResult. # noqa: E501 + :type: list[QueryEvent] + """ + + self._events = events + + @property + def granularity(self): + """Gets the granularity of this QueryResult. # noqa: E501 + + The granularity of the returned results, in seconds # noqa: E501 + + :return: The granularity of this QueryResult. # noqa: E501 + :rtype: int + """ + return self._granularity + + @granularity.setter + def granularity(self, granularity): + """Sets the granularity of this QueryResult. + + The granularity of the returned results, in seconds # noqa: E501 + + :param granularity: The granularity of this QueryResult. # noqa: E501 + :type: int + """ + + self._granularity = granularity @property def name(self): @@ -127,13 +278,34 @@ def query(self, query): self._query = query + @property + def spans(self): + """Gets the spans of this QueryResult. # noqa: E501 + + + :return: The spans of this QueryResult. # noqa: E501 + :rtype: list[Span] + """ + return self._spans + + @spans.setter + def spans(self, spans): + """Sets the spans of this QueryResult. + + + :param spans: The spans of this QueryResult. # noqa: E501 + :type: list[Span] + """ + + self._spans = spans + @property def stats(self): """Gets the stats of this QueryResult. # noqa: E501 :return: The stats of this QueryResult. # noqa: E501 - :rtype: StatsModel + :rtype: StatsModelInternalUse """ return self._stats @@ -143,98 +315,98 @@ def stats(self, stats): :param stats: The stats of this QueryResult. # noqa: E501 - :type: StatsModel + :type: StatsModelInternalUse """ self._stats = stats @property - def warnings(self): - """Gets the warnings of this QueryResult. # noqa: E501 + def timeseries(self): + """Gets the timeseries of this QueryResult. # noqa: E501 - The warnings incurred by this query # noqa: E501 - :return: The warnings of this QueryResult. # noqa: E501 - :rtype: str + :return: The timeseries of this QueryResult. # noqa: E501 + :rtype: list[Timeseries] """ - return self._warnings + return self._timeseries - @warnings.setter - def warnings(self, warnings): - """Sets the warnings of this QueryResult. + @timeseries.setter + def timeseries(self, timeseries): + """Sets the timeseries of this QueryResult. - The warnings incurred by this query # noqa: E501 - :param warnings: The warnings of this QueryResult. # noqa: E501 - :type: str + :param timeseries: The timeseries of this QueryResult. # noqa: E501 + :type: list[Timeseries] """ - self._warnings = warnings + self._timeseries = timeseries @property - def granularity(self): - """Gets the granularity of this QueryResult. # noqa: E501 + def trace_dimensions(self): + """Gets the trace_dimensions of this QueryResult. # noqa: E501 - The granularity of the returned results, in seconds # noqa: E501 + List of all tracing tuple results # noqa: E501 - :return: The granularity of this QueryResult. # noqa: E501 - :rtype: int + :return: The trace_dimensions of this QueryResult. # noqa: E501 + :rtype: list[TupleResult] """ - return self._granularity + return self._trace_dimensions - @granularity.setter - def granularity(self, granularity): - """Sets the granularity of this QueryResult. + @trace_dimensions.setter + def trace_dimensions(self, trace_dimensions): + """Sets the trace_dimensions of this QueryResult. - The granularity of the returned results, in seconds # noqa: E501 + List of all tracing tuple results # noqa: E501 - :param granularity: The granularity of this QueryResult. # noqa: E501 - :type: int + :param trace_dimensions: The trace_dimensions of this QueryResult. # noqa: E501 + :type: list[TupleResult] """ - self._granularity = granularity + self._trace_dimensions = trace_dimensions @property - def events(self): - """Gets the events of this QueryResult. # noqa: E501 + def traces(self): + """Gets the traces of this QueryResult. # noqa: E501 - :return: The events of this QueryResult. # noqa: E501 - :rtype: list[QueryEvent] + :return: The traces of this QueryResult. # noqa: E501 + :rtype: list[Trace] """ - return self._events + return self._traces - @events.setter - def events(self, events): - """Sets the events of this QueryResult. + @traces.setter + def traces(self, traces): + """Sets the traces of this QueryResult. - :param events: The events of this QueryResult. # noqa: E501 - :type: list[QueryEvent] + :param traces: The traces of this QueryResult. # noqa: E501 + :type: list[Trace] """ - self._events = events + self._traces = traces @property - def timeseries(self): - """Gets the timeseries of this QueryResult. # noqa: E501 + def warnings(self): + """Gets the warnings of this QueryResult. # noqa: E501 + The warnings incurred by this query # noqa: E501 - :return: The timeseries of this QueryResult. # noqa: E501 - :rtype: list[Timeseries] + :return: The warnings of this QueryResult. # noqa: E501 + :rtype: str """ - return self._timeseries + return self._warnings - @timeseries.setter - def timeseries(self, timeseries): - """Sets the timeseries of this QueryResult. + @warnings.setter + def warnings(self, warnings): + """Sets the warnings of this QueryResult. + The warnings incurred by this query # noqa: E501 - :param timeseries: The timeseries of this QueryResult. # noqa: E501 - :type: list[Timeseries] + :param warnings: The warnings of this QueryResult. # noqa: E501 + :type: str """ - self._timeseries = timeseries + self._warnings = warnings def to_dict(self): """Returns the model properties as a dict""" @@ -257,6 +429,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(QueryResult, dict): + for key, value in self.items(): + result[key] = value return result @@ -273,8 +448,11 @@ def __eq__(self, other): if not isinstance(other, QueryResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, QueryResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/query_type_dto.py b/wavefront_api_client/models/query_type_dto.py new file mode 100644 index 00000000..f0504499 --- /dev/null +++ b/wavefront_api_client/models/query_type_dto.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 QueryTypeDTO(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 = { + 'input_query': 'str', + 'query_type': 'str', + 'translated_input': 'str' + } + + attribute_map = { + 'input_query': 'inputQuery', + 'query_type': 'queryType', + 'translated_input': 'translatedInput' + } + + def __init__(self, input_query=None, query_type=None, translated_input=None, _configuration=None): # noqa: E501 + """QueryTypeDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._input_query = None + self._query_type = None + self._translated_input = None + self.discriminator = None + + if input_query is not None: + self.input_query = input_query + if query_type is not None: + self.query_type = query_type + if translated_input is not None: + self.translated_input = translated_input + + @property + def input_query(self): + """Gets the input_query of this QueryTypeDTO. # noqa: E501 + + + :return: The input_query of this QueryTypeDTO. # noqa: E501 + :rtype: str + """ + return self._input_query + + @input_query.setter + def input_query(self, input_query): + """Sets the input_query of this QueryTypeDTO. + + + :param input_query: The input_query of this QueryTypeDTO. # noqa: E501 + :type: str + """ + + self._input_query = input_query + + @property + def query_type(self): + """Gets the query_type of this QueryTypeDTO. # noqa: E501 + + + :return: The query_type of this QueryTypeDTO. # noqa: E501 + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this QueryTypeDTO. + + + :param query_type: The query_type of this QueryTypeDTO. # noqa: E501 + :type: str + """ + allowed_values = ["WQL", "PROMQL", "HYBRID"] # noqa: E501 + if (self._configuration.client_side_validation and + query_type not in allowed_values): + raise ValueError( + "Invalid value for `query_type` ({0}), must be one of {1}" # noqa: E501 + .format(query_type, allowed_values) + ) + + self._query_type = query_type + + @property + def translated_input(self): + """Gets the translated_input of this QueryTypeDTO. # noqa: E501 + + + :return: The translated_input of this QueryTypeDTO. # noqa: E501 + :rtype: str + """ + return self._translated_input + + @translated_input.setter + def translated_input(self, translated_input): + """Sets the translated_input of this QueryTypeDTO. + + + :param translated_input: The translated_input of this QueryTypeDTO. # noqa: E501 + :type: str + """ + + self._translated_input = translated_input + + 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(QueryTypeDTO, 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, QueryTypeDTO): + 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, QueryTypeDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/raw_timeseries.py b/wavefront_api_client/models/raw_timeseries.py index ff1234a2..acf29012 100644 --- a/wavefront_api_client/models/raw_timeseries.py +++ b/wavefront_api_client/models/raw_timeseries.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.point import Point # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class RawTimeseries(object): @@ -33,25 +33,51 @@ class RawTimeseries(object): and the value is json key in definition. """ swagger_types = { - 'tags': 'dict(str, str)', - 'points': 'list[Point]' + 'points': 'list[Point]', + 'tags': 'dict(str, str)' } attribute_map = { - 'tags': 'tags', - 'points': 'points' + 'points': 'points', + 'tags': 'tags' } - def __init__(self, tags=None, points=None): # noqa: E501 + def __init__(self, points=None, tags=None, _configuration=None): # noqa: E501 """RawTimeseries - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._tags = None self._points = None + self._tags = None self.discriminator = None + self.points = points if tags is not None: self.tags = tags - self.points = points + + @property + def points(self): + """Gets the points of this RawTimeseries. # noqa: E501 + + + :return: The points of this RawTimeseries. # noqa: E501 + :rtype: list[Point] + """ + return self._points + + @points.setter + def points(self, points): + """Sets the points of this RawTimeseries. + + + :param points: The points of this RawTimeseries. # noqa: E501 + :type: list[Point] + """ + if self._configuration.client_side_validation and points is None: + raise ValueError("Invalid value for `points`, must not be `None`") # noqa: E501 + + self._points = points @property def tags(self): @@ -76,29 +102,6 @@ def tags(self, tags): self._tags = tags - @property - def points(self): - """Gets the points of this RawTimeseries. # noqa: E501 - - - :return: The points of this RawTimeseries. # noqa: E501 - :rtype: list[Point] - """ - return self._points - - @points.setter - def points(self, points): - """Sets the points of this RawTimeseries. - - - :param points: The points of this RawTimeseries. # noqa: E501 - :type: list[Point] - """ - if points is None: - raise ValueError("Invalid value for `points`, must not be `None`") # noqa: E501 - - self._points = points - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -120,6 +123,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RawTimeseries, dict): + for key, value in self.items(): + result[key] = value return result @@ -136,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, RawTimeseries): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RawTimeseries): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/avro_backed_standardized_dto.py b/wavefront_api_client/models/recent_app_map_search.py similarity index 52% rename from wavefront_api_client/models/avro_backed_standardized_dto.py rename to wavefront_api_client/models/recent_app_map_search.py index 1049b1c3..5510a22c 100644 --- a/wavefront_api_client/models/avro_backed_standardized_dto.py +++ b/wavefront_api_client/models/recent_app_map_search.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,10 @@ import six +from wavefront_api_client.configuration import Configuration -class AvroBackedStandardizedDTO(object): + +class RecentAppMapSearch(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,126 +33,153 @@ class AvroBackedStandardizedDTO(object): and the value is json key in definition. """ swagger_types = { - 'id': 'str', - 'creator_id': 'str', 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'id': 'str', + 'search_filters': 'AppSearchFilters', 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'deleted': 'bool' + 'updater_id': 'str' } attribute_map = { - 'id': 'id', - 'creator_id': 'creatorId', 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'id': 'id', + 'search_filters': 'searchFilters', 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'deleted': 'deleted' + 'updater_id': 'updaterId' } - def __init__(self, id=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, deleted=None): # noqa: E501 - """AvroBackedStandardizedDTO - a model defined in Swagger""" # noqa: E501 + def __init__(self, created_epoch_millis=None, creator_id=None, id=None, search_filters=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """RecentAppMapSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._id = None - self._creator_id = None self._created_epoch_millis = None + self._creator_id = None + self._id = None + self._search_filters = None self._updated_epoch_millis = None self._updater_id = None - self._deleted = None self.discriminator = None - if id is not None: - self.id = id - if creator_id is not None: - self.creator_id = creator_id if created_epoch_millis is not None: self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if id is not None: + self.id = id + self.search_filters = search_filters if updated_epoch_millis is not None: self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id - if deleted is not None: - self.deleted = deleted @property - def id(self): - """Gets the id of this AvroBackedStandardizedDTO. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this RecentAppMapSearch. # noqa: E501 - :return: The id of this AvroBackedStandardizedDTO. # noqa: E501 - :rtype: str + :return: The created_epoch_millis of this RecentAppMapSearch. # noqa: E501 + :rtype: int """ - return self._id + return self._created_epoch_millis - @id.setter - def id(self, id): - """Sets the id of this AvroBackedStandardizedDTO. + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): + """Sets the created_epoch_millis of this RecentAppMapSearch. - :param id: The id of this AvroBackedStandardizedDTO. # noqa: E501 - :type: str + :param created_epoch_millis: The created_epoch_millis of this RecentAppMapSearch. # noqa: E501 + :type: int """ - self._id = id + self._created_epoch_millis = created_epoch_millis @property def creator_id(self): - """Gets the creator_id of this AvroBackedStandardizedDTO. # noqa: E501 + """Gets the creator_id of this RecentAppMapSearch. # noqa: E501 - :return: The creator_id of this AvroBackedStandardizedDTO. # noqa: E501 + :return: The creator_id of this RecentAppMapSearch. # noqa: E501 :rtype: str """ return self._creator_id @creator_id.setter def creator_id(self, creator_id): - """Sets the creator_id of this AvroBackedStandardizedDTO. + """Sets the creator_id of this RecentAppMapSearch. - :param creator_id: The creator_id of this AvroBackedStandardizedDTO. # noqa: E501 + :param creator_id: The creator_id of this RecentAppMapSearch. # noqa: E501 :type: str """ self._creator_id = creator_id @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this AvroBackedStandardizedDTO. # noqa: E501 + def id(self): + """Gets the id of this RecentAppMapSearch. # noqa: E501 - :return: The created_epoch_millis of this AvroBackedStandardizedDTO. # noqa: E501 - :rtype: int + :return: The id of this RecentAppMapSearch. # noqa: E501 + :rtype: str """ - return self._created_epoch_millis + return self._id - @created_epoch_millis.setter - def created_epoch_millis(self, created_epoch_millis): - """Sets the created_epoch_millis of this AvroBackedStandardizedDTO. + @id.setter + def id(self, id): + """Sets the id of this RecentAppMapSearch. - :param created_epoch_millis: The created_epoch_millis of this AvroBackedStandardizedDTO. # noqa: E501 - :type: int + :param id: The id of this RecentAppMapSearch. # noqa: E501 + :type: str """ - self._created_epoch_millis = created_epoch_millis + self._id = id + + @property + def search_filters(self): + """Gets the search_filters of this RecentAppMapSearch. # noqa: E501 + + The search filters. # noqa: E501 + + :return: The search_filters of this RecentAppMapSearch. # noqa: E501 + :rtype: AppSearchFilters + """ + return self._search_filters + + @search_filters.setter + def search_filters(self, search_filters): + """Sets the search_filters of this RecentAppMapSearch. + + The search filters. # noqa: E501 + + :param search_filters: The search_filters of this RecentAppMapSearch. # noqa: E501 + :type: AppSearchFilters + """ + if self._configuration.client_side_validation and search_filters is None: + raise ValueError("Invalid value for `search_filters`, must not be `None`") # noqa: E501 + + self._search_filters = search_filters @property def updated_epoch_millis(self): - """Gets the updated_epoch_millis of this AvroBackedStandardizedDTO. # noqa: E501 + """Gets the updated_epoch_millis of this RecentAppMapSearch. # noqa: E501 - :return: The updated_epoch_millis of this AvroBackedStandardizedDTO. # noqa: E501 + :return: The updated_epoch_millis of this RecentAppMapSearch. # noqa: E501 :rtype: int """ return self._updated_epoch_millis @updated_epoch_millis.setter def updated_epoch_millis(self, updated_epoch_millis): - """Sets the updated_epoch_millis of this AvroBackedStandardizedDTO. + """Sets the updated_epoch_millis of this RecentAppMapSearch. - :param updated_epoch_millis: The updated_epoch_millis of this AvroBackedStandardizedDTO. # noqa: E501 + :param updated_epoch_millis: The updated_epoch_millis of this RecentAppMapSearch. # noqa: E501 :type: int """ @@ -158,46 +187,25 @@ def updated_epoch_millis(self, updated_epoch_millis): @property def updater_id(self): - """Gets the updater_id of this AvroBackedStandardizedDTO. # noqa: E501 + """Gets the updater_id of this RecentAppMapSearch. # noqa: E501 - :return: The updater_id of this AvroBackedStandardizedDTO. # noqa: E501 + :return: The updater_id of this RecentAppMapSearch. # noqa: E501 :rtype: str """ return self._updater_id @updater_id.setter def updater_id(self, updater_id): - """Sets the updater_id of this AvroBackedStandardizedDTO. + """Sets the updater_id of this RecentAppMapSearch. - :param updater_id: The updater_id of this AvroBackedStandardizedDTO. # noqa: E501 + :param updater_id: The updater_id of this RecentAppMapSearch. # noqa: E501 :type: str """ self._updater_id = updater_id - @property - def deleted(self): - """Gets the deleted of this AvroBackedStandardizedDTO. # noqa: E501 - - - :return: The deleted of this AvroBackedStandardizedDTO. # noqa: E501 - :rtype: bool - """ - return self._deleted - - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this AvroBackedStandardizedDTO. - - - :param deleted: The deleted of this AvroBackedStandardizedDTO. # noqa: E501 - :type: bool - """ - - self._deleted = deleted - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -219,6 +227,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RecentAppMapSearch, dict): + for key, value in self.items(): + result[key] = value return result @@ -232,11 +243,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AvroBackedStandardizedDTO): + if not isinstance(other, RecentAppMapSearch): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecentAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/recent_traces_search.py b/wavefront_api_client/models/recent_traces_search.py new file mode 100644 index 00000000..e6f85574 --- /dev/null +++ b/wavefront_api_client/models/recent_traces_search.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 RecentTracesSearch(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 = { + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'id': 'str', + 'search_filters': 'AppSearchFilters', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'id': 'id', + 'search_filters': 'searchFilters', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, created_epoch_millis=None, creator_id=None, id=None, search_filters=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """RecentTracesSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_epoch_millis = None + self._creator_id = None + self._id = None + self._search_filters = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if id is not None: + self.id = id + self.search_filters = search_filters + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this RecentTracesSearch. # noqa: E501 + + + :return: The created_epoch_millis of this RecentTracesSearch. # 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 RecentTracesSearch. + + + :param created_epoch_millis: The created_epoch_millis of this RecentTracesSearch. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this RecentTracesSearch. # noqa: E501 + + + :return: The creator_id of this RecentTracesSearch. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this RecentTracesSearch. + + + :param creator_id: The creator_id of this RecentTracesSearch. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def id(self): + """Gets the id of this RecentTracesSearch. # noqa: E501 + + + :return: The id of this RecentTracesSearch. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this RecentTracesSearch. + + + :param id: The id of this RecentTracesSearch. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def search_filters(self): + """Gets the search_filters of this RecentTracesSearch. # noqa: E501 + + The search filters. # noqa: E501 + + :return: The search_filters of this RecentTracesSearch. # noqa: E501 + :rtype: AppSearchFilters + """ + return self._search_filters + + @search_filters.setter + def search_filters(self, search_filters): + """Sets the search_filters of this RecentTracesSearch. + + The search filters. # noqa: E501 + + :param search_filters: The search_filters of this RecentTracesSearch. # noqa: E501 + :type: AppSearchFilters + """ + if self._configuration.client_side_validation and search_filters is None: + raise ValueError("Invalid value for `search_filters`, must not be `None`") # noqa: E501 + + self._search_filters = search_filters + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this RecentTracesSearch. # noqa: E501 + + + :return: The updated_epoch_millis of this RecentTracesSearch. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this RecentTracesSearch. + + + :param updated_epoch_millis: The updated_epoch_millis of this RecentTracesSearch. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this RecentTracesSearch. # noqa: E501 + + + :return: The updater_id of this RecentTracesSearch. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this RecentTracesSearch. + + + :param updater_id: The updater_id of this RecentTracesSearch. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(RecentTracesSearch, 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, RecentTracesSearch): + 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, RecentTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/related_anomaly.py b/wavefront_api_client/models/related_anomaly.py new file mode 100644 index 00000000..4e419649 --- /dev/null +++ b/wavefront_api_client/models/related_anomaly.py @@ -0,0 +1,798 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 RelatedAnomaly(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 = { + 'chart_hash': 'str', + 'chart_link': 'str', + 'col': 'int', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'customer': 'str', + 'dashboard_id': 'str', + 'deleted': 'bool', + 'end_ms': 'int', + 'hosts_used': 'list[str]', + 'id': 'str', + 'image_link': 'str', + 'metrics_used': 'list[str]', + 'model': 'str', + 'original_stripes': 'list[Stripe]', + 'param_hash': 'str', + 'query_hash': 'str', + '_query_params': 'dict(str, str)', + 'related_data': 'RelatedData', + 'row': 'int', + 'section': 'int', + 'start_ms': 'int', + 'updated_epoch_millis': 'int', + 'updated_ms': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'chart_hash': 'chartHash', + 'chart_link': 'chartLink', + 'col': 'col', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'customer': 'customer', + 'dashboard_id': 'dashboardId', + 'deleted': 'deleted', + 'end_ms': 'endMs', + 'hosts_used': 'hostsUsed', + 'id': 'id', + 'image_link': 'imageLink', + 'metrics_used': 'metricsUsed', + 'model': 'model', + 'original_stripes': 'originalStripes', + 'param_hash': 'paramHash', + 'query_hash': 'queryHash', + '_query_params': 'queryParams', + 'related_data': 'relatedData', + 'row': 'row', + 'section': 'section', + 'start_ms': 'startMs', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updated_ms': 'updatedMs', + 'updater_id': 'updaterId' + } + + def __init__(self, chart_hash=None, chart_link=None, col=None, created_epoch_millis=None, creator_id=None, customer=None, dashboard_id=None, deleted=None, end_ms=None, hosts_used=None, id=None, image_link=None, metrics_used=None, model=None, original_stripes=None, param_hash=None, query_hash=None, _query_params=None, related_data=None, row=None, section=None, start_ms=None, updated_epoch_millis=None, updated_ms=None, updater_id=None, _configuration=None): # noqa: E501 + """RelatedAnomaly - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._chart_hash = None + self._chart_link = None + self._col = None + self._created_epoch_millis = None + self._creator_id = None + self._customer = None + self._dashboard_id = None + self._deleted = None + self._end_ms = None + self._hosts_used = None + self._id = None + self._image_link = None + self._metrics_used = None + self._model = None + self._original_stripes = None + self._param_hash = None + self._query_hash = None + self.__query_params = None + self._related_data = None + self._row = None + self._section = None + self._start_ms = None + self._updated_epoch_millis = None + self._updated_ms = None + self._updater_id = None + self.discriminator = None + + self.chart_hash = chart_hash + if chart_link is not None: + self.chart_link = chart_link + self.col = col + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if customer is not None: + self.customer = customer + self.dashboard_id = dashboard_id + if deleted is not None: + self.deleted = deleted + self.end_ms = end_ms + if hosts_used is not None: + self.hosts_used = hosts_used + if id is not None: + self.id = id + if image_link is not None: + self.image_link = image_link + if metrics_used is not None: + self.metrics_used = metrics_used + if model is not None: + self.model = model + if original_stripes is not None: + self.original_stripes = original_stripes + self.param_hash = param_hash + self.query_hash = query_hash + self._query_params = _query_params + if related_data is not None: + self.related_data = related_data + self.row = row + self.section = section + self.start_ms = start_ms + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + self.updated_ms = updated_ms + if updater_id is not None: + self.updater_id = updater_id + + @property + def chart_hash(self): + """Gets the chart_hash of this RelatedAnomaly. # noqa: E501 + + chart hash(as unique identifier) for this anomaly # noqa: E501 + + :return: The chart_hash of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._chart_hash + + @chart_hash.setter + def chart_hash(self, chart_hash): + """Sets the chart_hash of this RelatedAnomaly. + + chart hash(as unique identifier) for this anomaly # noqa: E501 + + :param chart_hash: The chart_hash of this RelatedAnomaly. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and chart_hash is None: + raise ValueError("Invalid value for `chart_hash`, must not be `None`") # noqa: E501 + + self._chart_hash = chart_hash + + @property + def chart_link(self): + """Gets the chart_link of this RelatedAnomaly. # noqa: E501 + + chart link for this anomaly # noqa: E501 + + :return: The chart_link of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._chart_link + + @chart_link.setter + def chart_link(self, chart_link): + """Sets the chart_link of this RelatedAnomaly. + + chart link for this anomaly # noqa: E501 + + :param chart_link: The chart_link of this RelatedAnomaly. # noqa: E501 + :type: str + """ + + self._chart_link = chart_link + + @property + def col(self): + """Gets the col of this RelatedAnomaly. # noqa: E501 + + column number for this anomaly # noqa: E501 + + :return: The col of this RelatedAnomaly. # noqa: E501 + :rtype: int + """ + return self._col + + @col.setter + def col(self, col): + """Sets the col of this RelatedAnomaly. + + column number for this anomaly # noqa: E501 + + :param col: The col of this RelatedAnomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and col is None: + raise ValueError("Invalid value for `col`, must not be `None`") # noqa: E501 + + self._col = col + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this RelatedAnomaly. # noqa: E501 + + + :return: The created_epoch_millis of this RelatedAnomaly. # 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 RelatedAnomaly. + + + :param created_epoch_millis: The created_epoch_millis of this RelatedAnomaly. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this RelatedAnomaly. # noqa: E501 + + + :return: The creator_id of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this RelatedAnomaly. + + + :param creator_id: The creator_id of this RelatedAnomaly. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def customer(self): + """Gets the customer of this RelatedAnomaly. # noqa: E501 + + id of the customer to which this anomaly belongs # noqa: E501 + + :return: The customer of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this RelatedAnomaly. + + id of the customer to which this anomaly belongs # noqa: E501 + + :param customer: The customer of this RelatedAnomaly. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def dashboard_id(self): + """Gets the dashboard_id of this RelatedAnomaly. # noqa: E501 + + dashboard id for this anomaly # noqa: E501 + + :return: The dashboard_id of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._dashboard_id + + @dashboard_id.setter + def dashboard_id(self, dashboard_id): + """Sets the dashboard_id of this RelatedAnomaly. + + dashboard id for this anomaly # noqa: E501 + + :param dashboard_id: The dashboard_id of this RelatedAnomaly. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and dashboard_id is None: + raise ValueError("Invalid value for `dashboard_id`, must not be `None`") # noqa: E501 + + self._dashboard_id = dashboard_id + + @property + def deleted(self): + """Gets the deleted of this RelatedAnomaly. # noqa: E501 + + + :return: The deleted of this RelatedAnomaly. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this RelatedAnomaly. + + + :param deleted: The deleted of this RelatedAnomaly. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def end_ms(self): + """Gets the end_ms of this RelatedAnomaly. # noqa: E501 + + endMs for this anomaly # noqa: E501 + + :return: The end_ms of this RelatedAnomaly. # noqa: E501 + :rtype: int + """ + return self._end_ms + + @end_ms.setter + def end_ms(self, end_ms): + """Sets the end_ms of this RelatedAnomaly. + + endMs for this anomaly # noqa: E501 + + :param end_ms: The end_ms of this RelatedAnomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and end_ms is None: + raise ValueError("Invalid value for `end_ms`, must not be `None`") # noqa: E501 + + self._end_ms = end_ms + + @property + def hosts_used(self): + """Gets the hosts_used of this RelatedAnomaly. # noqa: E501 + + list of hosts affected of this anomaly # noqa: E501 + + :return: The hosts_used of this RelatedAnomaly. # noqa: E501 + :rtype: list[str] + """ + return self._hosts_used + + @hosts_used.setter + def hosts_used(self, hosts_used): + """Sets the hosts_used of this RelatedAnomaly. + + list of hosts affected of this anomaly # noqa: E501 + + :param hosts_used: The hosts_used of this RelatedAnomaly. # noqa: E501 + :type: list[str] + """ + + self._hosts_used = hosts_used + + @property + def id(self): + """Gets the id of this RelatedAnomaly. # noqa: E501 + + unique id that defines this anomaly # noqa: E501 + + :return: The id of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this RelatedAnomaly. + + unique id that defines this anomaly # noqa: E501 + + :param id: The id of this RelatedAnomaly. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def image_link(self): + """Gets the image_link of this RelatedAnomaly. # noqa: E501 + + image link for this anomaly # noqa: E501 + + :return: The image_link of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._image_link + + @image_link.setter + def image_link(self, image_link): + """Sets the image_link of this RelatedAnomaly. + + image link for this anomaly # noqa: E501 + + :param image_link: The image_link of this RelatedAnomaly. # noqa: E501 + :type: str + """ + + self._image_link = image_link + + @property + def metrics_used(self): + """Gets the metrics_used of this RelatedAnomaly. # noqa: E501 + + list of metrics used of this anomaly # noqa: E501 + + :return: The metrics_used of this RelatedAnomaly. # noqa: E501 + :rtype: list[str] + """ + return self._metrics_used + + @metrics_used.setter + def metrics_used(self, metrics_used): + """Sets the metrics_used of this RelatedAnomaly. + + list of metrics used of this anomaly # noqa: E501 + + :param metrics_used: The metrics_used of this RelatedAnomaly. # noqa: E501 + :type: list[str] + """ + + self._metrics_used = metrics_used + + @property + def model(self): + """Gets the model of this RelatedAnomaly. # noqa: E501 + + model for this anomaly # noqa: E501 + + :return: The model of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """Sets the model of this RelatedAnomaly. + + model for this anomaly # noqa: E501 + + :param model: The model of this RelatedAnomaly. # noqa: E501 + :type: str + """ + + self._model = model + + @property + def original_stripes(self): + """Gets the original_stripes of this RelatedAnomaly. # noqa: E501 + + list of originalStripe belongs to this anomaly # noqa: E501 + + :return: The original_stripes of this RelatedAnomaly. # noqa: E501 + :rtype: list[Stripe] + """ + return self._original_stripes + + @original_stripes.setter + def original_stripes(self, original_stripes): + """Sets the original_stripes of this RelatedAnomaly. + + list of originalStripe belongs to this anomaly # noqa: E501 + + :param original_stripes: The original_stripes of this RelatedAnomaly. # noqa: E501 + :type: list[Stripe] + """ + + self._original_stripes = original_stripes + + @property + def param_hash(self): + """Gets the param_hash of this RelatedAnomaly. # noqa: E501 + + param hash for this anomaly # noqa: E501 + + :return: The param_hash of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._param_hash + + @param_hash.setter + def param_hash(self, param_hash): + """Sets the param_hash of this RelatedAnomaly. + + param hash for this anomaly # noqa: E501 + + :param param_hash: The param_hash of this RelatedAnomaly. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and param_hash is None: + raise ValueError("Invalid value for `param_hash`, must not be `None`") # noqa: E501 + + self._param_hash = param_hash + + @property + def query_hash(self): + """Gets the query_hash of this RelatedAnomaly. # noqa: E501 + + query hash for this anomaly # noqa: E501 + + :return: The query_hash of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._query_hash + + @query_hash.setter + def query_hash(self, query_hash): + """Sets the query_hash of this RelatedAnomaly. + + query hash for this anomaly # noqa: E501 + + :param query_hash: The query_hash of this RelatedAnomaly. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and query_hash is None: + raise ValueError("Invalid value for `query_hash`, must not be `None`") # noqa: E501 + + self._query_hash = query_hash + + @property + def _query_params(self): + """Gets the _query_params of this RelatedAnomaly. # noqa: E501 + + map of query params belongs to this anomaly # noqa: E501 + + :return: The _query_params of this RelatedAnomaly. # noqa: E501 + :rtype: dict(str, str) + """ + return self.__query_params + + @_query_params.setter + def _query_params(self, _query_params): + """Sets the _query_params of this RelatedAnomaly. + + map of query params belongs to this anomaly # noqa: E501 + + :param _query_params: The _query_params of this RelatedAnomaly. # noqa: E501 + :type: dict(str, str) + """ + if self._configuration.client_side_validation and _query_params is None: + raise ValueError("Invalid value for `_query_params`, must not be `None`") # noqa: E501 + + self.__query_params = _query_params + + @property + def related_data(self): + """Gets the related_data of this RelatedAnomaly. # noqa: E501 + + Data concerning how this anomaly is related to the event in the request # noqa: E501 + + :return: The related_data of this RelatedAnomaly. # noqa: E501 + :rtype: RelatedData + """ + return self._related_data + + @related_data.setter + def related_data(self, related_data): + """Sets the related_data of this RelatedAnomaly. + + Data concerning how this anomaly is related to the event in the request # noqa: E501 + + :param related_data: The related_data of this RelatedAnomaly. # noqa: E501 + :type: RelatedData + """ + + self._related_data = related_data + + @property + def row(self): + """Gets the row of this RelatedAnomaly. # noqa: E501 + + row number for this anomaly # noqa: E501 + + :return: The row of this RelatedAnomaly. # noqa: E501 + :rtype: int + """ + return self._row + + @row.setter + def row(self, row): + """Sets the row of this RelatedAnomaly. + + row number for this anomaly # noqa: E501 + + :param row: The row of this RelatedAnomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and row is None: + raise ValueError("Invalid value for `row`, must not be `None`") # noqa: E501 + + self._row = row + + @property + def section(self): + """Gets the section of this RelatedAnomaly. # noqa: E501 + + section number for this anomaly # noqa: E501 + + :return: The section of this RelatedAnomaly. # noqa: E501 + :rtype: int + """ + return self._section + + @section.setter + def section(self, section): + """Sets the section of this RelatedAnomaly. + + section number for this anomaly # noqa: E501 + + :param section: The section of this RelatedAnomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and section is None: + raise ValueError("Invalid value for `section`, must not be `None`") # noqa: E501 + + self._section = section + + @property + def start_ms(self): + """Gets the start_ms of this RelatedAnomaly. # noqa: E501 + + startMs for this anomaly # noqa: E501 + + :return: The start_ms of this RelatedAnomaly. # noqa: E501 + :rtype: int + """ + return self._start_ms + + @start_ms.setter + def start_ms(self, start_ms): + """Sets the start_ms of this RelatedAnomaly. + + startMs for this anomaly # noqa: E501 + + :param start_ms: The start_ms of this RelatedAnomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and start_ms is None: + raise ValueError("Invalid value for `start_ms`, must not be `None`") # noqa: E501 + + self._start_ms = start_ms + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this RelatedAnomaly. # noqa: E501 + + + :return: The updated_epoch_millis of this RelatedAnomaly. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this RelatedAnomaly. + + + :param updated_epoch_millis: The updated_epoch_millis of this RelatedAnomaly. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updated_ms(self): + """Gets the updated_ms of this RelatedAnomaly. # noqa: E501 + + updateMs for this anomaly # noqa: E501 + + :return: The updated_ms of this RelatedAnomaly. # noqa: E501 + :rtype: int + """ + return self._updated_ms + + @updated_ms.setter + def updated_ms(self, updated_ms): + """Sets the updated_ms of this RelatedAnomaly. + + updateMs for this anomaly # noqa: E501 + + :param updated_ms: The updated_ms of this RelatedAnomaly. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and updated_ms is None: + raise ValueError("Invalid value for `updated_ms`, must not be `None`") # noqa: E501 + + self._updated_ms = updated_ms + + @property + def updater_id(self): + """Gets the updater_id of this RelatedAnomaly. # noqa: E501 + + + :return: The updater_id of this RelatedAnomaly. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this RelatedAnomaly. + + + :param updater_id: The updater_id of this RelatedAnomaly. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(RelatedAnomaly, 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, RelatedAnomaly): + 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, RelatedAnomaly): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/related_data.py b/wavefront_api_client/models/related_data.py new file mode 100644 index 00000000..025fd186 --- /dev/null +++ b/wavefront_api_client/models/related_data.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 RelatedData(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 = { + 'alert_description': 'str', + 'anomaly_chart_link': 'str', + 'common_dimensions': 'list[str]', + 'common_metrics': 'list[str]', + 'common_sources': 'list[str]', + 'enhanced_score': 'float', + 'related_id': 'str', + 'summary': 'str' + } + + attribute_map = { + 'alert_description': 'alertDescription', + 'anomaly_chart_link': 'anomalyChartLink', + 'common_dimensions': 'commonDimensions', + 'common_metrics': 'commonMetrics', + 'common_sources': 'commonSources', + 'enhanced_score': 'enhancedScore', + 'related_id': 'relatedId', + 'summary': 'summary' + } + + def __init__(self, alert_description=None, anomaly_chart_link=None, common_dimensions=None, common_metrics=None, common_sources=None, enhanced_score=None, related_id=None, summary=None, _configuration=None): # noqa: E501 + """RelatedData - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._alert_description = None + self._anomaly_chart_link = None + self._common_dimensions = None + self._common_metrics = None + self._common_sources = None + self._enhanced_score = None + self._related_id = None + self._summary = None + self.discriminator = None + + if alert_description is not None: + self.alert_description = alert_description + if anomaly_chart_link is not None: + self.anomaly_chart_link = anomaly_chart_link + if common_dimensions is not None: + self.common_dimensions = common_dimensions + if common_metrics is not None: + self.common_metrics = common_metrics + if common_sources is not None: + self.common_sources = common_sources + if enhanced_score is not None: + self.enhanced_score = enhanced_score + if related_id is not None: + self.related_id = related_id + if summary is not None: + self.summary = summary + + @property + def alert_description(self): + """Gets the alert_description of this RelatedData. # noqa: E501 + + If this event is generated by an alert, the description of that alert. # noqa: E501 + + :return: The alert_description of this RelatedData. # noqa: E501 + :rtype: str + """ + return self._alert_description + + @alert_description.setter + def alert_description(self, alert_description): + """Sets the alert_description of this RelatedData. + + If this event is generated by an alert, the description of that alert. # noqa: E501 + + :param alert_description: The alert_description of this RelatedData. # noqa: E501 + :type: str + """ + + self._alert_description = alert_description + + @property + def anomaly_chart_link(self): + """Gets the anomaly_chart_link of this RelatedData. # noqa: E501 + + Chart Link of the anomaly to which this event is related # noqa: E501 + + :return: The anomaly_chart_link of this RelatedData. # noqa: E501 + :rtype: str + """ + return self._anomaly_chart_link + + @anomaly_chart_link.setter + def anomaly_chart_link(self, anomaly_chart_link): + """Sets the anomaly_chart_link of this RelatedData. + + Chart Link of the anomaly to which this event is related # noqa: E501 + + :param anomaly_chart_link: The anomaly_chart_link of this RelatedData. # noqa: E501 + :type: str + """ + + self._anomaly_chart_link = anomaly_chart_link + + @property + def common_dimensions(self): + """Gets the common_dimensions of this RelatedData. # noqa: E501 + + Set of common dimensions between the 2 events, presented in key=value format # noqa: E501 + + :return: The common_dimensions of this RelatedData. # noqa: E501 + :rtype: list[str] + """ + return self._common_dimensions + + @common_dimensions.setter + def common_dimensions(self, common_dimensions): + """Sets the common_dimensions of this RelatedData. + + Set of common dimensions between the 2 events, presented in key=value format # noqa: E501 + + :param common_dimensions: The common_dimensions of this RelatedData. # noqa: E501 + :type: list[str] + """ + + self._common_dimensions = common_dimensions + + @property + def common_metrics(self): + """Gets the common_metrics of this RelatedData. # noqa: E501 + + Set of common metrics/labels between the 2 events or anomalies # noqa: E501 + + :return: The common_metrics of this RelatedData. # noqa: E501 + :rtype: list[str] + """ + return self._common_metrics + + @common_metrics.setter + def common_metrics(self, common_metrics): + """Sets the common_metrics of this RelatedData. + + Set of common metrics/labels between the 2 events or anomalies # noqa: E501 + + :param common_metrics: The common_metrics of this RelatedData. # noqa: E501 + :type: list[str] + """ + + self._common_metrics = common_metrics + + @property + def common_sources(self): + """Gets the common_sources of this RelatedData. # noqa: E501 + + Set of common sources between the 2 events or anomalies # noqa: E501 + + :return: The common_sources of this RelatedData. # noqa: E501 + :rtype: list[str] + """ + return self._common_sources + + @common_sources.setter + def common_sources(self, common_sources): + """Sets the common_sources of this RelatedData. + + Set of common sources between the 2 events or anomalies # noqa: E501 + + :param common_sources: The common_sources of this RelatedData. # noqa: E501 + :type: list[str] + """ + + self._common_sources = common_sources + + @property + def enhanced_score(self): + """Gets the enhanced_score of this RelatedData. # noqa: E501 + + Enhanced score to sort related events and anomalies # noqa: E501 + + :return: The enhanced_score of this RelatedData. # noqa: E501 + :rtype: float + """ + return self._enhanced_score + + @enhanced_score.setter + def enhanced_score(self, enhanced_score): + """Sets the enhanced_score of this RelatedData. + + Enhanced score to sort related events and anomalies # noqa: E501 + + :param enhanced_score: The enhanced_score of this RelatedData. # noqa: E501 + :type: float + """ + + self._enhanced_score = enhanced_score + + @property + def related_id(self): + """Gets the related_id of this RelatedData. # noqa: E501 + + ID of the event to which this event is related # noqa: E501 + + :return: The related_id of this RelatedData. # noqa: E501 + :rtype: str + """ + return self._related_id + + @related_id.setter + def related_id(self, related_id): + """Sets the related_id of this RelatedData. + + ID of the event to which this event is related # noqa: E501 + + :param related_id: The related_id of this RelatedData. # noqa: E501 + :type: str + """ + + self._related_id = related_id + + @property + def summary(self): + """Gets the summary of this RelatedData. # noqa: E501 + + Text summary of why the two events are related # noqa: E501 + + :return: The summary of this RelatedData. # noqa: E501 + :rtype: str + """ + return self._summary + + @summary.setter + def summary(self, summary): + """Sets the summary of this RelatedData. + + Text summary of why the two events are related # noqa: E501 + + :param summary: The summary of this RelatedData. # noqa: E501 + :type: str + """ + + self._summary = summary + + 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(RelatedData, 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, RelatedData): + 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, RelatedData): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/related_event.py b/wavefront_api_client/models/related_event.py new file mode 100644 index 00000000..1d4050ca --- /dev/null +++ b/wavefront_api_client/models/related_event.py @@ -0,0 +1,849 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 RelatedEvent(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 = { + 'alert_tags': 'list[str]', + 'annotations': 'dict(str, str)', + 'can_close': 'bool', + 'can_delete': 'bool', + 'computed_hlps': 'list[SourceLabelPair]', + 'created_at': 'int', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'creator_type': 'list[str]', + 'dimensions': 'dict(str, list[str])', + 'end_time': 'int', + 'hosts': 'list[str]', + 'id': 'str', + 'is_ephemeral': 'bool', + 'is_user_event': 'bool', + 'metrics_used': 'list[str]', + 'name': 'str', + 'related_data': 'RelatedData', + 'running_state': 'str', + 'similarity_score': 'float', + 'start_time': 'int', + 'summarized_events': 'int', + 'table': 'str', + 'tags': 'list[str]', + 'updated_at': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'alert_tags': 'alertTags', + 'annotations': 'annotations', + 'can_close': 'canClose', + 'can_delete': 'canDelete', + 'computed_hlps': 'computedHlps', + 'created_at': 'createdAt', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'creator_type': 'creatorType', + 'dimensions': 'dimensions', + 'end_time': 'endTime', + 'hosts': 'hosts', + 'id': 'id', + 'is_ephemeral': 'isEphemeral', + 'is_user_event': 'isUserEvent', + 'metrics_used': 'metricsUsed', + 'name': 'name', + 'related_data': 'relatedData', + 'running_state': 'runningState', + 'similarity_score': 'similarityScore', + 'start_time': 'startTime', + 'summarized_events': 'summarizedEvents', + 'table': 'table', + 'tags': 'tags', + 'updated_at': 'updatedAt', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, alert_tags=None, annotations=None, can_close=None, can_delete=None, computed_hlps=None, created_at=None, created_epoch_millis=None, creator_id=None, creator_type=None, dimensions=None, end_time=None, hosts=None, id=None, is_ephemeral=None, is_user_event=None, metrics_used=None, name=None, related_data=None, running_state=None, similarity_score=None, start_time=None, summarized_events=None, table=None, tags=None, updated_at=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """RelatedEvent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._alert_tags = None + self._annotations = None + self._can_close = None + self._can_delete = None + self._computed_hlps = None + self._created_at = None + self._created_epoch_millis = None + self._creator_id = None + self._creator_type = None + self._dimensions = None + self._end_time = None + self._hosts = None + self._id = None + self._is_ephemeral = None + self._is_user_event = None + self._metrics_used = None + self._name = None + self._related_data = None + self._running_state = None + self._similarity_score = None + self._start_time = None + self._summarized_events = None + self._table = None + self._tags = None + self._updated_at = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if alert_tags is not None: + self.alert_tags = alert_tags + self.annotations = annotations + if can_close is not None: + self.can_close = can_close + if can_delete is not None: + self.can_delete = can_delete + if computed_hlps is not None: + self.computed_hlps = computed_hlps + if created_at is not None: + self.created_at = created_at + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if creator_type is not None: + self.creator_type = creator_type + if dimensions is not None: + self.dimensions = dimensions + if end_time is not None: + self.end_time = end_time + if hosts is not None: + self.hosts = hosts + if id is not None: + self.id = id + if is_ephemeral is not None: + self.is_ephemeral = is_ephemeral + if is_user_event is not None: + self.is_user_event = is_user_event + if metrics_used is not None: + self.metrics_used = metrics_used + self.name = name + if related_data is not None: + self.related_data = related_data + if running_state is not None: + self.running_state = running_state + if similarity_score is not None: + self.similarity_score = similarity_score + self.start_time = start_time + if summarized_events is not None: + self.summarized_events = summarized_events + if table is not None: + self.table = table + if tags is not None: + self.tags = tags + if updated_at is not None: + self.updated_at = updated_at + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def alert_tags(self): + """Gets the alert_tags of this RelatedEvent. # noqa: E501 + + The list of tags on the alert which created this event. # noqa: E501 + + :return: The alert_tags of this RelatedEvent. # noqa: E501 + :rtype: list[str] + """ + return self._alert_tags + + @alert_tags.setter + def alert_tags(self, alert_tags): + """Sets the alert_tags of this RelatedEvent. + + The list of tags on the alert which created this event. # noqa: E501 + + :param alert_tags: The alert_tags of this RelatedEvent. # noqa: E501 + :type: list[str] + """ + + self._alert_tags = alert_tags + + @property + def annotations(self): + """Gets the annotations of this RelatedEvent. # noqa: E501 + + A string->string map of additional annotations on the event # noqa: E501 + + :return: The annotations of this RelatedEvent. # noqa: E501 + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this RelatedEvent. + + A string->string map of additional annotations on the event # noqa: E501 + + :param annotations: The annotations of this RelatedEvent. # noqa: E501 + :type: dict(str, str) + """ + if self._configuration.client_side_validation and annotations is None: + raise ValueError("Invalid value for `annotations`, must not be `None`") # noqa: E501 + + self._annotations = annotations + + @property + def can_close(self): + """Gets the can_close of this RelatedEvent. # noqa: E501 + + + :return: The can_close of this RelatedEvent. # noqa: E501 + :rtype: bool + """ + return self._can_close + + @can_close.setter + def can_close(self, can_close): + """Sets the can_close of this RelatedEvent. + + + :param can_close: The can_close of this RelatedEvent. # noqa: E501 + :type: bool + """ + + self._can_close = can_close + + @property + def can_delete(self): + """Gets the can_delete of this RelatedEvent. # noqa: E501 + + + :return: The can_delete of this RelatedEvent. # noqa: E501 + :rtype: bool + """ + return self._can_delete + + @can_delete.setter + def can_delete(self, can_delete): + """Sets the can_delete of this RelatedEvent. + + + :param can_delete: The can_delete of this RelatedEvent. # noqa: E501 + :type: bool + """ + + self._can_delete = can_delete + + @property + def computed_hlps(self): + """Gets the computed_hlps of this RelatedEvent. # noqa: E501 + + All the host/label/tags of the event. # noqa: E501 + + :return: The computed_hlps of this RelatedEvent. # noqa: E501 + :rtype: list[SourceLabelPair] + """ + return self._computed_hlps + + @computed_hlps.setter + def computed_hlps(self, computed_hlps): + """Sets the computed_hlps of this RelatedEvent. + + All the host/label/tags of the event. # noqa: E501 + + :param computed_hlps: The computed_hlps of this RelatedEvent. # noqa: E501 + :type: list[SourceLabelPair] + """ + + self._computed_hlps = computed_hlps + + @property + def created_at(self): + """Gets the created_at of this RelatedEvent. # noqa: E501 + + + :return: The created_at of this RelatedEvent. # noqa: E501 + :rtype: int + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this RelatedEvent. + + + :param created_at: The created_at of this RelatedEvent. # noqa: E501 + :type: int + """ + + self._created_at = created_at + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this RelatedEvent. # noqa: E501 + + + :return: The created_epoch_millis of this RelatedEvent. # 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 RelatedEvent. + + + :param created_epoch_millis: The created_epoch_millis of this RelatedEvent. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this RelatedEvent. # noqa: E501 + + + :return: The creator_id of this RelatedEvent. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this RelatedEvent. + + + :param creator_id: The creator_id of this RelatedEvent. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def creator_type(self): + """Gets the creator_type of this RelatedEvent. # noqa: E501 + + + :return: The creator_type of this RelatedEvent. # noqa: E501 + :rtype: list[str] + """ + return self._creator_type + + @creator_type.setter + def creator_type(self, creator_type): + """Sets the creator_type of this RelatedEvent. + + + :param creator_type: The creator_type of this RelatedEvent. # noqa: E501 + :type: list[str] + """ + allowed_values = ["USER", "ALERT", "SYSTEM"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(creator_type).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `creator_type` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(creator_type) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._creator_type = creator_type + + @property + def dimensions(self): + """Gets the dimensions of this RelatedEvent. # noqa: E501 + + A string->The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 RelatedEventTimeRange(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 = { + 'earliest_start_time_epoch_millis': 'int', + 'latest_start_time_epoch_millis': 'int' + } + + attribute_map = { + 'earliest_start_time_epoch_millis': 'earliestStartTimeEpochMillis', + 'latest_start_time_epoch_millis': 'latestStartTimeEpochMillis' + } + + def __init__(self, earliest_start_time_epoch_millis=None, latest_start_time_epoch_millis=None, _configuration=None): # noqa: E501 + """RelatedEventTimeRange - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._earliest_start_time_epoch_millis = None + self._latest_start_time_epoch_millis = None + self.discriminator = None + + if earliest_start_time_epoch_millis is not None: + self.earliest_start_time_epoch_millis = earliest_start_time_epoch_millis + if latest_start_time_epoch_millis is not None: + self.latest_start_time_epoch_millis = latest_start_time_epoch_millis + + @property + def earliest_start_time_epoch_millis(self): + """Gets the earliest_start_time_epoch_millis of this RelatedEventTimeRange. # noqa: E501 + + Start of search time window, in milliseconds since the Unix Epoch. Events whose start time occurs after this value will be returned. If no value is supplied, will return null # noqa: E501 + + :return: The earliest_start_time_epoch_millis of this RelatedEventTimeRange. # noqa: E501 + :rtype: int + """ + return self._earliest_start_time_epoch_millis + + @earliest_start_time_epoch_millis.setter + def earliest_start_time_epoch_millis(self, earliest_start_time_epoch_millis): + """Sets the earliest_start_time_epoch_millis of this RelatedEventTimeRange. + + Start of search time window, in milliseconds since the Unix Epoch. Events whose start time occurs after this value will be returned. If no value is supplied, will return null # noqa: E501 + + :param earliest_start_time_epoch_millis: The earliest_start_time_epoch_millis of this RelatedEventTimeRange. # noqa: E501 + :type: int + """ + + self._earliest_start_time_epoch_millis = earliest_start_time_epoch_millis + + @property + def latest_start_time_epoch_millis(self): + """Gets the latest_start_time_epoch_millis of this RelatedEventTimeRange. # noqa: E501 + + End of the search time window, in milliseconds since the Unix Epoch. Events whose start time occurs before this value will be returned. If no value is supplied, will return null # noqa: E501 + + :return: The latest_start_time_epoch_millis of this RelatedEventTimeRange. # noqa: E501 + :rtype: int + """ + return self._latest_start_time_epoch_millis + + @latest_start_time_epoch_millis.setter + def latest_start_time_epoch_millis(self, latest_start_time_epoch_millis): + """Sets the latest_start_time_epoch_millis of this RelatedEventTimeRange. + + End of the search time window, in milliseconds since the Unix Epoch. Events whose start time occurs before this value will be returned. If no value is supplied, will return null # noqa: E501 + + :param latest_start_time_epoch_millis: The latest_start_time_epoch_millis of this RelatedEventTimeRange. # noqa: E501 + :type: int + """ + + self._latest_start_time_epoch_millis = latest_start_time_epoch_millis + + 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(RelatedEventTimeRange, 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, RelatedEventTimeRange): + 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, RelatedEventTimeRange): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/report_event_anomaly_dto.py b/wavefront_api_client/models/report_event_anomaly_dto.py new file mode 100644 index 00000000..04911842 --- /dev/null +++ b/wavefront_api_client/models/report_event_anomaly_dto.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ReportEventAnomalyDTO(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 = { + 'related_anomaly_dto': 'RelatedAnomaly', + 'related_event_dto': 'RelatedEvent', + 'similarity_score': 'float' + } + + attribute_map = { + 'related_anomaly_dto': 'relatedAnomalyDTO', + 'related_event_dto': 'relatedEventDTO', + 'similarity_score': 'similarityScore' + } + + def __init__(self, related_anomaly_dto=None, related_event_dto=None, similarity_score=None, _configuration=None): # noqa: E501 + """ReportEventAnomalyDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._related_anomaly_dto = None + self._related_event_dto = None + self._similarity_score = None + self.discriminator = None + + if related_anomaly_dto is not None: + self.related_anomaly_dto = related_anomaly_dto + if related_event_dto is not None: + self.related_event_dto = related_event_dto + if similarity_score is not None: + self.similarity_score = similarity_score + + @property + def related_anomaly_dto(self): + """Gets the related_anomaly_dto of this ReportEventAnomalyDTO. # noqa: E501 + + + :return: The related_anomaly_dto of this ReportEventAnomalyDTO. # noqa: E501 + :rtype: RelatedAnomaly + """ + return self._related_anomaly_dto + + @related_anomaly_dto.setter + def related_anomaly_dto(self, related_anomaly_dto): + """Sets the related_anomaly_dto of this ReportEventAnomalyDTO. + + + :param related_anomaly_dto: The related_anomaly_dto of this ReportEventAnomalyDTO. # noqa: E501 + :type: RelatedAnomaly + """ + + self._related_anomaly_dto = related_anomaly_dto + + @property + def related_event_dto(self): + """Gets the related_event_dto of this ReportEventAnomalyDTO. # noqa: E501 + + + :return: The related_event_dto of this ReportEventAnomalyDTO. # noqa: E501 + :rtype: RelatedEvent + """ + return self._related_event_dto + + @related_event_dto.setter + def related_event_dto(self, related_event_dto): + """Sets the related_event_dto of this ReportEventAnomalyDTO. + + + :param related_event_dto: The related_event_dto of this ReportEventAnomalyDTO. # noqa: E501 + :type: RelatedEvent + """ + + self._related_event_dto = related_event_dto + + @property + def similarity_score(self): + """Gets the similarity_score of this ReportEventAnomalyDTO. # noqa: E501 + + + :return: The similarity_score of this ReportEventAnomalyDTO. # noqa: E501 + :rtype: float + """ + return self._similarity_score + + @similarity_score.setter + def similarity_score(self, similarity_score): + """Sets the similarity_score of this ReportEventAnomalyDTO. + + + :param similarity_score: The similarity_score of this ReportEventAnomalyDTO. # noqa: E501 + :type: float + """ + + self._similarity_score = similarity_score + + 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(ReportEventAnomalyDTO, 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, ReportEventAnomalyDTO): + 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, ReportEventAnomalyDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container.py b/wavefront_api_client/models/response_container.py index 5e29cff8..07f5671d 100644 --- a/wavefront_api_client/models/response_container.py +++ b/wavefront_api_client/models/response_container.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainer(object): @@ -33,48 +33,54 @@ class ResponseContainer(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'object' + 'debug_info': 'list[str]', + 'response': 'object', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainer. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainer. # noqa: E501 - :return: The status of this ResponseContainer. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainer. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainer. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainer. - :param status: The status of this ResponseContainer. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainer. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -97,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainer. # noqa: E501 + + + :return: The status of this ResponseContainer. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainer. + + + :param status: The status of this ResponseContainer. # 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 = {} @@ -118,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainer, dict): + for key, value in self.items(): + result[key] = value return result @@ -134,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainer): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_access_policy.py b/wavefront_api_client/models/response_container_access_policy.py new file mode 100644 index 00000000..47883c4a --- /dev/null +++ b/wavefront_api_client/models/response_container_access_policy.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerAccessPolicy(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 = { + 'debug_info': 'list[str]', + 'response': 'AccessPolicy', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerAccessPolicy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerAccessPolicy. # noqa: E501 + + + :return: The debug_info of this ResponseContainerAccessPolicy. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerAccessPolicy. + + + :param debug_info: The debug_info of this ResponseContainerAccessPolicy. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerAccessPolicy. # noqa: E501 + + + :return: The response of this ResponseContainerAccessPolicy. # noqa: E501 + :rtype: AccessPolicy + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerAccessPolicy. + + + :param response: The response of this ResponseContainerAccessPolicy. # noqa: E501 + :type: AccessPolicy + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerAccessPolicy. # noqa: E501 + + + :return: The status of this ResponseContainerAccessPolicy. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerAccessPolicy. + + + :param status: The status of this ResponseContainerAccessPolicy. # 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(ResponseContainerAccessPolicy, 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, ResponseContainerAccessPolicy): + 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, ResponseContainerAccessPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_access_policy_action.py b/wavefront_api_client/models/response_container_access_policy_action.py new file mode 100644 index 00000000..a7c72f0a --- /dev/null +++ b/wavefront_api_client/models/response_container_access_policy_action.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerAccessPolicyAction(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 = { + 'debug_info': 'list[str]', + 'response': 'str', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerAccessPolicyAction - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerAccessPolicyAction. # noqa: E501 + + + :return: The debug_info of this ResponseContainerAccessPolicyAction. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerAccessPolicyAction. + + + :param debug_info: The debug_info of this ResponseContainerAccessPolicyAction. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerAccessPolicyAction. # noqa: E501 + + + :return: The response of this ResponseContainerAccessPolicyAction. # noqa: E501 + :rtype: str + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerAccessPolicyAction. + + + :param response: The response of this ResponseContainerAccessPolicyAction. # noqa: E501 + :type: str + """ + allowed_values = ["ALLOW", "DENY"] # noqa: E501 + if (self._configuration.client_side_validation and + response not in allowed_values): + raise ValueError( + "Invalid value for `response` ({0}), must be one of {1}" # noqa: E501 + .format(response, allowed_values) + ) + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerAccessPolicyAction. # noqa: E501 + + + :return: The status of this ResponseContainerAccessPolicyAction. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerAccessPolicyAction. + + + :param status: The status of this ResponseContainerAccessPolicyAction. # 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(ResponseContainerAccessPolicyAction, 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, ResponseContainerAccessPolicyAction): + 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, ResponseContainerAccessPolicyAction): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_account.py b/wavefront_api_client/models/response_container_account.py new file mode 100644 index 00000000..8d3423ff --- /dev/null +++ b/wavefront_api_client/models/response_container_account.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerAccount(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 = { + 'debug_info': 'list[str]', + 'response': 'Account', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerAccount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerAccount. # noqa: E501 + + + :return: The debug_info of this ResponseContainerAccount. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerAccount. + + + :param debug_info: The debug_info of this ResponseContainerAccount. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerAccount. # noqa: E501 + + + :return: The response of this ResponseContainerAccount. # noqa: E501 + :rtype: Account + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerAccount. + + + :param response: The response of this ResponseContainerAccount. # noqa: E501 + :type: Account + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerAccount. # noqa: E501 + + + :return: The status of this ResponseContainerAccount. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerAccount. + + + :param status: The status of this ResponseContainerAccount. # 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(ResponseContainerAccount, 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, ResponseContainerAccount): + 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, ResponseContainerAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_alert.py b/wavefront_api_client/models/response_container_alert.py index 8e5cc4dc..6bb30162 100644 --- a/wavefront_api_client/models/response_container_alert.py +++ b/wavefront_api_client/models/response_container_alert.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.alert import Alert # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerAlert(object): @@ -34,48 +33,54 @@ class ResponseContainerAlert(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Alert' + 'debug_info': 'list[str]', + 'response': 'Alert', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerAlert - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerAlert. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerAlert. # noqa: E501 - :return: The status of this ResponseContainerAlert. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerAlert. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerAlert. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerAlert. - :param status: The status of this ResponseContainerAlert. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerAlert. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerAlert. # noqa: E501 + + + :return: The status of this ResponseContainerAlert. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerAlert. + + + :param status: The status of this ResponseContainerAlert. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerAlert, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerAlert): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerAlert): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_alert_analytics_summary.py b/wavefront_api_client/models/response_container_alert_analytics_summary.py new file mode 100644 index 00000000..31443afc --- /dev/null +++ b/wavefront_api_client/models/response_container_alert_analytics_summary.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerAlertAnalyticsSummary(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 = { + 'debug_info': 'list[str]', + 'response': 'AlertAnalyticsSummary', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerAlertAnalyticsSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerAlertAnalyticsSummary. # noqa: E501 + + + :return: The debug_info of this ResponseContainerAlertAnalyticsSummary. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerAlertAnalyticsSummary. + + + :param debug_info: The debug_info of this ResponseContainerAlertAnalyticsSummary. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerAlertAnalyticsSummary. # noqa: E501 + + + :return: The response of this ResponseContainerAlertAnalyticsSummary. # noqa: E501 + :rtype: AlertAnalyticsSummary + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerAlertAnalyticsSummary. + + + :param response: The response of this ResponseContainerAlertAnalyticsSummary. # noqa: E501 + :type: AlertAnalyticsSummary + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerAlertAnalyticsSummary. # noqa: E501 + + + :return: The status of this ResponseContainerAlertAnalyticsSummary. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerAlertAnalyticsSummary. + + + :param status: The status of this ResponseContainerAlertAnalyticsSummary. # 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(ResponseContainerAlertAnalyticsSummary, 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, ResponseContainerAlertAnalyticsSummary): + 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, ResponseContainerAlertAnalyticsSummary): + 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 00000000..10359439 --- /dev/null +++ b/wavefront_api_client/models/response_container_api_token_model.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 = { + 'debug_info': 'list[str]', + 'response': 'ApiTokenModel', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, 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._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerApiTokenModel. # noqa: E501 + + + :return: The debug_info of this ResponseContainerApiTokenModel. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerApiTokenModel. + + + :param debug_info: The debug_info of this ResponseContainerApiTokenModel. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @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_cloud_integration.py b/wavefront_api_client/models/response_container_cloud_integration.py index 1f88ca53..26e983c1 100644 --- a/wavefront_api_client/models/response_container_cloud_integration.py +++ b/wavefront_api_client/models/response_container_cloud_integration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.cloud_integration import CloudIntegration # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerCloudIntegration(object): @@ -34,48 +33,54 @@ class ResponseContainerCloudIntegration(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'CloudIntegration' + 'debug_info': 'list[str]', + 'response': 'CloudIntegration', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerCloudIntegration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerCloudIntegration. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerCloudIntegration. # noqa: E501 - :return: The status of this ResponseContainerCloudIntegration. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerCloudIntegration. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerCloudIntegration. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerCloudIntegration. - :param status: The status of this ResponseContainerCloudIntegration. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerCloudIntegration. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerCloudIntegration. # noqa: E501 + + + :return: The status of this ResponseContainerCloudIntegration. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerCloudIntegration. + + + :param status: The status of this ResponseContainerCloudIntegration. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerCloudIntegration, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerCloudIntegration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerCloudIntegration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_cluster_info_dto.py b/wavefront_api_client/models/response_container_cluster_info_dto.py new file mode 100644 index 00000000..82b6b8f3 --- /dev/null +++ b/wavefront_api_client/models/response_container_cluster_info_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerClusterInfoDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'ClusterInfoDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerClusterInfoDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerClusterInfoDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerClusterInfoDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerClusterInfoDTO. + + + :param debug_info: The debug_info of this ResponseContainerClusterInfoDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerClusterInfoDTO. # noqa: E501 + + + :return: The response of this ResponseContainerClusterInfoDTO. # noqa: E501 + :rtype: ClusterInfoDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerClusterInfoDTO. + + + :param response: The response of this ResponseContainerClusterInfoDTO. # noqa: E501 + :type: ClusterInfoDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerClusterInfoDTO. # noqa: E501 + + + :return: The status of this ResponseContainerClusterInfoDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerClusterInfoDTO. + + + :param status: The status of this ResponseContainerClusterInfoDTO. # 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(ResponseContainerClusterInfoDTO, 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, ResponseContainerClusterInfoDTO): + 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, ResponseContainerClusterInfoDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_dashboard.py b/wavefront_api_client/models/response_container_dashboard.py index 9cb9a89a..de6312de 100644 --- a/wavefront_api_client/models/response_container_dashboard.py +++ b/wavefront_api_client/models/response_container_dashboard.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.dashboard import Dashboard # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerDashboard(object): @@ -34,48 +33,54 @@ class ResponseContainerDashboard(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Dashboard' + 'debug_info': 'list[str]', + 'response': 'Dashboard', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerDashboard - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerDashboard. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerDashboard. # noqa: E501 - :return: The status of this ResponseContainerDashboard. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerDashboard. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerDashboard. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerDashboard. - :param status: The status of this ResponseContainerDashboard. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerDashboard. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerDashboard. # noqa: E501 + + + :return: The status of this ResponseContainerDashboard. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerDashboard. + + + :param status: The status of this ResponseContainerDashboard. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerDashboard, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerDashboard): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerDashboard): + 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 00000000..58ca95b6 --- /dev/null +++ b/wavefront_api_client/models/response_container_default_saved_app_map_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 = { + 'debug_info': 'list[str]', + 'response': 'DefaultSavedAppMapSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, 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._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerDefaultSavedAppMapSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerDefaultSavedAppMapSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerDefaultSavedAppMapSearch. + + + :param debug_info: The debug_info of this ResponseContainerDefaultSavedAppMapSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @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 00000000..b6cd4539 --- /dev/null +++ b/wavefront_api_client/models/response_container_default_saved_traces_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 = { + 'debug_info': 'list[str]', + 'response': 'DefaultSavedTracesSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, 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._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerDefaultSavedTracesSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerDefaultSavedTracesSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerDefaultSavedTracesSearch. + + + :param debug_info: The debug_info of this ResponseContainerDefaultSavedTracesSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @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_derived_metric_definition.py b/wavefront_api_client/models/response_container_derived_metric_definition.py index 66abe5fe..915f7bbd 100644 --- a/wavefront_api_client/models/response_container_derived_metric_definition.py +++ b/wavefront_api_client/models/response_container_derived_metric_definition.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.derived_metric_definition import DerivedMetricDefinition # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerDerivedMetricDefinition(object): @@ -34,48 +33,54 @@ class ResponseContainerDerivedMetricDefinition(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'DerivedMetricDefinition' + 'debug_info': 'list[str]', + 'response': 'DerivedMetricDefinition', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerDerivedMetricDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerDerivedMetricDefinition. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerDerivedMetricDefinition. # noqa: E501 - :return: The status of this ResponseContainerDerivedMetricDefinition. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerDerivedMetricDefinition. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerDerivedMetricDefinition. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerDerivedMetricDefinition. - :param status: The status of this ResponseContainerDerivedMetricDefinition. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerDerivedMetricDefinition. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerDerivedMetricDefinition. # noqa: E501 + + + :return: The status of this ResponseContainerDerivedMetricDefinition. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerDerivedMetricDefinition. + + + :param status: The status of this ResponseContainerDerivedMetricDefinition. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerDerivedMetricDefinition, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerDerivedMetricDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerDerivedMetricDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_event.py b/wavefront_api_client/models/response_container_event.py index bb299936..64e54ce8 100644 --- a/wavefront_api_client/models/response_container_event.py +++ b/wavefront_api_client/models/response_container_event.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.event import Event # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerEvent(object): @@ -34,48 +33,54 @@ class ResponseContainerEvent(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Event' + 'debug_info': 'list[str]', + 'response': 'Event', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerEvent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerEvent. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerEvent. # noqa: E501 - :return: The status of this ResponseContainerEvent. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerEvent. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerEvent. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerEvent. - :param status: The status of this ResponseContainerEvent. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerEvent. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerEvent. # noqa: E501 + + + :return: The status of this ResponseContainerEvent. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerEvent. + + + :param status: The status of this ResponseContainerEvent. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerEvent, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerEvent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_external_link.py b/wavefront_api_client/models/response_container_external_link.py index 0fbb8066..85eab7db 100644 --- a/wavefront_api_client/models/response_container_external_link.py +++ b/wavefront_api_client/models/response_container_external_link.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.external_link import ExternalLink # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerExternalLink(object): @@ -34,48 +33,54 @@ class ResponseContainerExternalLink(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'ExternalLink' + 'debug_info': 'list[str]', + 'response': 'ExternalLink', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerExternalLink - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerExternalLink. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerExternalLink. # noqa: E501 - :return: The status of this ResponseContainerExternalLink. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerExternalLink. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerExternalLink. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerExternalLink. - :param status: The status of this ResponseContainerExternalLink. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerExternalLink. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerExternalLink. # noqa: E501 + + + :return: The status of this ResponseContainerExternalLink. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerExternalLink. + + + :param status: The status of this ResponseContainerExternalLink. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerExternalLink, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerExternalLink): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerExternalLink): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_facet_response.py b/wavefront_api_client/models/response_container_facet_response.py index 2ed8b7d6..e27a6a63 100644 --- a/wavefront_api_client/models/response_container_facet_response.py +++ b/wavefront_api_client/models/response_container_facet_response.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.facet_response import FacetResponse # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerFacetResponse(object): @@ -34,48 +33,54 @@ class ResponseContainerFacetResponse(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'FacetResponse' + 'debug_info': 'list[str]', + 'response': 'FacetResponse', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerFacetResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerFacetResponse. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerFacetResponse. # noqa: E501 - :return: The status of this ResponseContainerFacetResponse. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerFacetResponse. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerFacetResponse. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerFacetResponse. - :param status: The status of this ResponseContainerFacetResponse. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerFacetResponse. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerFacetResponse. # noqa: E501 + + + :return: The status of this ResponseContainerFacetResponse. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerFacetResponse. + + + :param status: The status of this ResponseContainerFacetResponse. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerFacetResponse, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerFacetResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerFacetResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_facets_response_container.py b/wavefront_api_client/models/response_container_facets_response_container.py index 1b0c1d79..712a058f 100644 --- a/wavefront_api_client/models/response_container_facets_response_container.py +++ b/wavefront_api_client/models/response_container_facets_response_container.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.facets_response_container import FacetsResponseContainer # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerFacetsResponseContainer(object): @@ -34,48 +33,54 @@ class ResponseContainerFacetsResponseContainer(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'FacetsResponseContainer' + 'debug_info': 'list[str]', + 'response': 'FacetsResponseContainer', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerFacetsResponseContainer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerFacetsResponseContainer. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerFacetsResponseContainer. # noqa: E501 - :return: The status of this ResponseContainerFacetsResponseContainer. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerFacetsResponseContainer. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerFacetsResponseContainer. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerFacetsResponseContainer. - :param status: The status of this ResponseContainerFacetsResponseContainer. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerFacetsResponseContainer. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerFacetsResponseContainer. # noqa: E501 + + + :return: The status of this ResponseContainerFacetsResponseContainer. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerFacetsResponseContainer. + + + :param status: The status of this ResponseContainerFacetsResponseContainer. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerFacetsResponseContainer, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerFacetsResponseContainer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerFacetsResponseContainer): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_history_response.py b/wavefront_api_client/models/response_container_history_response.py index 4b9fc021..96d0cfa3 100644 --- a/wavefront_api_client/models/response_container_history_response.py +++ b/wavefront_api_client/models/response_container_history_response.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.history_response import HistoryResponse # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerHistoryResponse(object): @@ -34,48 +33,54 @@ class ResponseContainerHistoryResponse(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'HistoryResponse' + 'debug_info': 'list[str]', + 'response': 'HistoryResponse', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerHistoryResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerHistoryResponse. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerHistoryResponse. # noqa: E501 - :return: The status of this ResponseContainerHistoryResponse. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerHistoryResponse. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerHistoryResponse. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerHistoryResponse. - :param status: The status of this ResponseContainerHistoryResponse. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerHistoryResponse. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerHistoryResponse. # noqa: E501 + + + :return: The status of this ResponseContainerHistoryResponse. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerHistoryResponse. + + + :param status: The status of this ResponseContainerHistoryResponse. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerHistoryResponse, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerHistoryResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerHistoryResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_ingestion_policy_read_model.py b/wavefront_api_client/models/response_container_ingestion_policy_read_model.py new file mode 100644 index 00000000..4e2b6a98 --- /dev/null +++ b/wavefront_api_client/models/response_container_ingestion_policy_read_model.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerIngestionPolicyReadModel(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 = { + 'debug_info': 'list[str]', + 'response': 'IngestionPolicyReadModel', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerIngestionPolicyReadModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerIngestionPolicyReadModel. # noqa: E501 + + + :return: The debug_info of this ResponseContainerIngestionPolicyReadModel. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerIngestionPolicyReadModel. + + + :param debug_info: The debug_info of this ResponseContainerIngestionPolicyReadModel. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerIngestionPolicyReadModel. # noqa: E501 + + + :return: The response of this ResponseContainerIngestionPolicyReadModel. # noqa: E501 + :rtype: IngestionPolicyReadModel + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerIngestionPolicyReadModel. + + + :param response: The response of this ResponseContainerIngestionPolicyReadModel. # noqa: E501 + :type: IngestionPolicyReadModel + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerIngestionPolicyReadModel. # noqa: E501 + + + :return: The status of this ResponseContainerIngestionPolicyReadModel. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerIngestionPolicyReadModel. + + + :param status: The status of this ResponseContainerIngestionPolicyReadModel. # 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(ResponseContainerIngestionPolicyReadModel, 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, ResponseContainerIngestionPolicyReadModel): + 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, ResponseContainerIngestionPolicyReadModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_integration.py b/wavefront_api_client/models/response_container_integration.py index a0fb838c..9cc07118 100644 --- a/wavefront_api_client/models/response_container_integration.py +++ b/wavefront_api_client/models/response_container_integration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.integration import Integration # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerIntegration(object): @@ -34,48 +33,54 @@ class ResponseContainerIntegration(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Integration' + 'debug_info': 'list[str]', + 'response': 'Integration', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerIntegration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerIntegration. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerIntegration. # noqa: E501 - :return: The status of this ResponseContainerIntegration. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerIntegration. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerIntegration. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerIntegration. - :param status: The status of this ResponseContainerIntegration. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerIntegration. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerIntegration. # noqa: E501 + + + :return: The status of this ResponseContainerIntegration. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerIntegration. + + + :param status: The status of this ResponseContainerIntegration. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerIntegration, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerIntegration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerIntegration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_integration_status.py b/wavefront_api_client/models/response_container_integration_status.py index 1d2a0df2..89c3fdc0 100644 --- a/wavefront_api_client/models/response_container_integration_status.py +++ b/wavefront_api_client/models/response_container_integration_status.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.integration_status import IntegrationStatus # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerIntegrationStatus(object): @@ -34,48 +33,54 @@ class ResponseContainerIntegrationStatus(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'IntegrationStatus' + 'debug_info': 'list[str]', + 'response': 'IntegrationStatus', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerIntegrationStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerIntegrationStatus. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerIntegrationStatus. # noqa: E501 - :return: The status of this ResponseContainerIntegrationStatus. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerIntegrationStatus. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerIntegrationStatus. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerIntegrationStatus. - :param status: The status of this ResponseContainerIntegrationStatus. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerIntegrationStatus. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerIntegrationStatus. # noqa: E501 + + + :return: The status of this ResponseContainerIntegrationStatus. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerIntegrationStatus. + + + :param status: The status of this ResponseContainerIntegrationStatus. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerIntegrationStatus, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerIntegrationStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerIntegrationStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_list_access_control_list_read_dto.py b/wavefront_api_client/models/response_container_list_access_control_list_read_dto.py new file mode 100644 index 00000000..f69ae5c3 --- /dev/null +++ b/wavefront_api_client/models/response_container_list_access_control_list_read_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerListAccessControlListReadDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'list[AccessControlListReadDTO]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerListAccessControlListReadDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerListAccessControlListReadDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerListAccessControlListReadDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListAccessControlListReadDTO. + + + :param debug_info: The debug_info of this ResponseContainerListAccessControlListReadDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerListAccessControlListReadDTO. # noqa: E501 + + + :return: The response of this ResponseContainerListAccessControlListReadDTO. # noqa: E501 + :rtype: list[AccessControlListReadDTO] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerListAccessControlListReadDTO. + + + :param response: The response of this ResponseContainerListAccessControlListReadDTO. # noqa: E501 + :type: list[AccessControlListReadDTO] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerListAccessControlListReadDTO. # noqa: E501 + + + :return: The status of this ResponseContainerListAccessControlListReadDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListAccessControlListReadDTO. + + + :param status: The status of this ResponseContainerListAccessControlListReadDTO. # 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(ResponseContainerListAccessControlListReadDTO, 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, ResponseContainerListAccessControlListReadDTO): + 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, ResponseContainerListAccessControlListReadDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_list_alert_error_group_info.py b/wavefront_api_client/models/response_container_list_alert_error_group_info.py new file mode 100644 index 00000000..fd532c77 --- /dev/null +++ b/wavefront_api_client/models/response_container_list_alert_error_group_info.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerListAlertErrorGroupInfo(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 = { + 'debug_info': 'list[str]', + 'response': 'list[AlertErrorGroupInfo]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerListAlertErrorGroupInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerListAlertErrorGroupInfo. # noqa: E501 + + + :return: The debug_info of this ResponseContainerListAlertErrorGroupInfo. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListAlertErrorGroupInfo. + + + :param debug_info: The debug_info of this ResponseContainerListAlertErrorGroupInfo. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerListAlertErrorGroupInfo. # noqa: E501 + + + :return: The response of this ResponseContainerListAlertErrorGroupInfo. # noqa: E501 + :rtype: list[AlertErrorGroupInfo] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerListAlertErrorGroupInfo. + + + :param response: The response of this ResponseContainerListAlertErrorGroupInfo. # noqa: E501 + :type: list[AlertErrorGroupInfo] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerListAlertErrorGroupInfo. # noqa: E501 + + + :return: The status of this ResponseContainerListAlertErrorGroupInfo. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListAlertErrorGroupInfo. + + + :param status: The status of this ResponseContainerListAlertErrorGroupInfo. # 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(ResponseContainerListAlertErrorGroupInfo, 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, ResponseContainerListAlertErrorGroupInfo): + 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, ResponseContainerListAlertErrorGroupInfo): + 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 00000000..a843f8b0 --- /dev/null +++ b/wavefront_api_client/models/response_container_list_api_token_model.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 = { + 'debug_info': 'list[str]', + 'response': 'list[ApiTokenModel]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, 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._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerListApiTokenModel. # noqa: E501 + + + :return: The debug_info of this ResponseContainerListApiTokenModel. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListApiTokenModel. + + + :param debug_info: The debug_info of this ResponseContainerListApiTokenModel. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @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_list_integration.py b/wavefront_api_client/models/response_container_list_integration.py new file mode 100644 index 00000000..0c12b611 --- /dev/null +++ b/wavefront_api_client/models/response_container_list_integration.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerListIntegration(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 = { + 'debug_info': 'list[str]', + 'response': 'list[Integration]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerListIntegration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerListIntegration. # noqa: E501 + + + :return: The debug_info of this ResponseContainerListIntegration. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListIntegration. + + + :param debug_info: The debug_info of this ResponseContainerListIntegration. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerListIntegration. # noqa: E501 + + + :return: The response of this ResponseContainerListIntegration. # noqa: E501 + :rtype: list[Integration] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerListIntegration. + + + :param response: The response of this ResponseContainerListIntegration. # noqa: E501 + :type: list[Integration] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerListIntegration. # noqa: E501 + + + :return: The status of this ResponseContainerListIntegration. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListIntegration. + + + :param status: The status of this ResponseContainerListIntegration. # 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(ResponseContainerListIntegration, 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, ResponseContainerListIntegration): + 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, ResponseContainerListIntegration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_list_integration_manifest_group.py b/wavefront_api_client/models/response_container_list_integration_manifest_group.py index ef71263e..72d1b929 100644 --- a/wavefront_api_client/models/response_container_list_integration_manifest_group.py +++ b/wavefront_api_client/models/response_container_list_integration_manifest_group.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.integration_manifest_group import IntegrationManifestGroup # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerListIntegrationManifestGroup(object): @@ -34,48 +33,54 @@ class ResponseContainerListIntegrationManifestGroup(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'list[IntegrationManifestGroup]' + 'debug_info': 'list[str]', + 'response': 'list[IntegrationManifestGroup]', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerListIntegrationManifestGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerListIntegrationManifestGroup. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerListIntegrationManifestGroup. # noqa: E501 - :return: The status of this ResponseContainerListIntegrationManifestGroup. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerListIntegrationManifestGroup. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerListIntegrationManifestGroup. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListIntegrationManifestGroup. - :param status: The status of this ResponseContainerListIntegrationManifestGroup. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerListIntegrationManifestGroup. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerListIntegrationManifestGroup. # noqa: E501 + + + :return: The status of this ResponseContainerListIntegrationManifestGroup. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListIntegrationManifestGroup. + + + :param status: The status of this ResponseContainerListIntegrationManifestGroup. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerListIntegrationManifestGroup, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerListIntegrationManifestGroup): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerListIntegrationManifestGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_list_notification_messages.py b/wavefront_api_client/models/response_container_list_notification_messages.py new file mode 100644 index 00000000..36ac0579 --- /dev/null +++ b/wavefront_api_client/models/response_container_list_notification_messages.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerListNotificationMessages(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 = { + 'debug_info': 'list[str]', + 'response': 'list[NotificationMessages]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerListNotificationMessages - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerListNotificationMessages. # noqa: E501 + + + :return: The debug_info of this ResponseContainerListNotificationMessages. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListNotificationMessages. + + + :param debug_info: The debug_info of this ResponseContainerListNotificationMessages. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerListNotificationMessages. # noqa: E501 + + + :return: The response of this ResponseContainerListNotificationMessages. # noqa: E501 + :rtype: list[NotificationMessages] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerListNotificationMessages. + + + :param response: The response of this ResponseContainerListNotificationMessages. # noqa: E501 + :type: list[NotificationMessages] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerListNotificationMessages. # noqa: E501 + + + :return: The status of this ResponseContainerListNotificationMessages. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListNotificationMessages. + + + :param status: The status of this ResponseContainerListNotificationMessages. # 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(ResponseContainerListNotificationMessages, 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, ResponseContainerListNotificationMessages): + 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, ResponseContainerListNotificationMessages): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_list_service_account.py b/wavefront_api_client/models/response_container_list_service_account.py new file mode 100644 index 00000000..579a7b73 --- /dev/null +++ b/wavefront_api_client/models/response_container_list_service_account.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerListServiceAccount(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 = { + 'debug_info': 'list[str]', + 'response': 'list[ServiceAccount]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerListServiceAccount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerListServiceAccount. # noqa: E501 + + + :return: The debug_info of this ResponseContainerListServiceAccount. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListServiceAccount. + + + :param debug_info: The debug_info of this ResponseContainerListServiceAccount. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerListServiceAccount. # noqa: E501 + + + :return: The response of this ResponseContainerListServiceAccount. # noqa: E501 + :rtype: list[ServiceAccount] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerListServiceAccount. + + + :param response: The response of this ResponseContainerListServiceAccount. # noqa: E501 + :type: list[ServiceAccount] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerListServiceAccount. # noqa: E501 + + + :return: The status of this ResponseContainerListServiceAccount. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListServiceAccount. + + + :param status: The status of this ResponseContainerListServiceAccount. # 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(ResponseContainerListServiceAccount, 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, ResponseContainerListServiceAccount): + 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, ResponseContainerListServiceAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_list_string.py b/wavefront_api_client/models/response_container_list_string.py new file mode 100644 index 00000000..bc7289c0 --- /dev/null +++ b/wavefront_api_client/models/response_container_list_string.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerListString(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 = { + 'debug_info': 'list[str]', + 'response': 'list[str]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerListString - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerListString. # noqa: E501 + + + :return: The debug_info of this ResponseContainerListString. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListString. + + + :param debug_info: The debug_info of this ResponseContainerListString. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerListString. # noqa: E501 + + + :return: The response of this ResponseContainerListString. # noqa: E501 + :rtype: list[str] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerListString. + + + :param response: The response of this ResponseContainerListString. # noqa: E501 + :type: list[str] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerListString. # noqa: E501 + + + :return: The status of this ResponseContainerListString. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListString. + + + :param status: The status of this ResponseContainerListString. # 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(ResponseContainerListString, 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, ResponseContainerListString): + 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, ResponseContainerListString): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_list_user_api_token.py b/wavefront_api_client/models/response_container_list_user_api_token.py new file mode 100644 index 00000000..ac6d36d8 --- /dev/null +++ b/wavefront_api_client/models/response_container_list_user_api_token.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerListUserApiToken(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 = { + 'debug_info': 'list[str]', + 'response': 'list[UserApiToken]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerListUserApiToken - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerListUserApiToken. # noqa: E501 + + + :return: The debug_info of this ResponseContainerListUserApiToken. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListUserApiToken. + + + :param debug_info: The debug_info of this ResponseContainerListUserApiToken. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerListUserApiToken. # noqa: E501 + + + :return: The response of this ResponseContainerListUserApiToken. # noqa: E501 + :rtype: list[UserApiToken] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerListUserApiToken. + + + :param response: The response of this ResponseContainerListUserApiToken. # noqa: E501 + :type: list[UserApiToken] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerListUserApiToken. # noqa: E501 + + + :return: The status of this ResponseContainerListUserApiToken. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListUserApiToken. + + + :param status: The status of this ResponseContainerListUserApiToken. # 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(ResponseContainerListUserApiToken, 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, ResponseContainerListUserApiToken): + 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, ResponseContainerListUserApiToken): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_list_user_dto.py b/wavefront_api_client/models/response_container_list_user_dto.py new file mode 100644 index 00000000..8850125e --- /dev/null +++ b/wavefront_api_client/models/response_container_list_user_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerListUserDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'list[UserDTO]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerListUserDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerListUserDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerListUserDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerListUserDTO. + + + :param debug_info: The debug_info of this ResponseContainerListUserDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerListUserDTO. # noqa: E501 + + + :return: The response of this ResponseContainerListUserDTO. # noqa: E501 + :rtype: list[UserDTO] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerListUserDTO. + + + :param response: The response of this ResponseContainerListUserDTO. # noqa: E501 + :type: list[UserDTO] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerListUserDTO. # noqa: E501 + + + :return: The status of this ResponseContainerListUserDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerListUserDTO. + + + :param status: The status of this ResponseContainerListUserDTO. # 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(ResponseContainerListUserDTO, 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, ResponseContainerListUserDTO): + 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, ResponseContainerListUserDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_maintenance_window.py b/wavefront_api_client/models/response_container_maintenance_window.py index c14bbb92..ae5d2585 100644 --- a/wavefront_api_client/models/response_container_maintenance_window.py +++ b/wavefront_api_client/models/response_container_maintenance_window.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.maintenance_window import MaintenanceWindow # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerMaintenanceWindow(object): @@ -34,48 +33,54 @@ class ResponseContainerMaintenanceWindow(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'MaintenanceWindow' + 'debug_info': 'list[str]', + 'response': 'MaintenanceWindow', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerMaintenanceWindow - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerMaintenanceWindow. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerMaintenanceWindow. # noqa: E501 - :return: The status of this ResponseContainerMaintenanceWindow. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerMaintenanceWindow. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerMaintenanceWindow. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerMaintenanceWindow. - :param status: The status of this ResponseContainerMaintenanceWindow. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerMaintenanceWindow. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerMaintenanceWindow. # noqa: E501 + + + :return: The status of this ResponseContainerMaintenanceWindow. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerMaintenanceWindow. + + + :param status: The status of this ResponseContainerMaintenanceWindow. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerMaintenanceWindow, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerMaintenanceWindow): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerMaintenanceWindow): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_map.py b/wavefront_api_client/models/response_container_map.py new file mode 100644 index 00000000..8ccbf38f --- /dev/null +++ b/wavefront_api_client/models/response_container_map.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerMap(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 = { + 'debug_info': 'list[str]', + 'response': 'dict(str, object)', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerMap - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerMap. # noqa: E501 + + + :return: The debug_info of this ResponseContainerMap. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerMap. + + + :param debug_info: The debug_info of this ResponseContainerMap. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerMap. # noqa: E501 + + + :return: The response of this ResponseContainerMap. # noqa: E501 + :rtype: dict(str, object) + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerMap. + + + :param response: The response of this ResponseContainerMap. # noqa: E501 + :type: dict(str, object) + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerMap. # noqa: E501 + + + :return: The status of this ResponseContainerMap. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerMap. + + + :param status: The status of this ResponseContainerMap. # 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(ResponseContainerMap, 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, ResponseContainerMap): + 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, ResponseContainerMap): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_map_string_integer.py b/wavefront_api_client/models/response_container_map_string_integer.py index 67aae78e..92eb3fd9 100644 --- a/wavefront_api_client/models/response_container_map_string_integer.py +++ b/wavefront_api_client/models/response_container_map_string_integer.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerMapStringInteger(object): @@ -33,48 +33,54 @@ class ResponseContainerMapStringInteger(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'dict(str, int)' + 'debug_info': 'list[str]', + 'response': 'dict(str, int)', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerMapStringInteger - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerMapStringInteger. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerMapStringInteger. # noqa: E501 - :return: The status of this ResponseContainerMapStringInteger. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerMapStringInteger. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerMapStringInteger. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerMapStringInteger. - :param status: The status of this ResponseContainerMapStringInteger. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerMapStringInteger. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -97,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerMapStringInteger. # noqa: E501 + + + :return: The status of this ResponseContainerMapStringInteger. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerMapStringInteger. + + + :param status: The status of this ResponseContainerMapStringInteger. # 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 = {} @@ -118,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerMapStringInteger, dict): + for key, value in self.items(): + result[key] = value return result @@ -134,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerMapStringInteger): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerMapStringInteger): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_map_string_integration_status.py b/wavefront_api_client/models/response_container_map_string_integration_status.py index 61c8eeb7..b008766a 100644 --- a/wavefront_api_client/models/response_container_map_string_integration_status.py +++ b/wavefront_api_client/models/response_container_map_string_integration_status.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.integration_status import IntegrationStatus # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerMapStringIntegrationStatus(object): @@ -34,48 +33,54 @@ class ResponseContainerMapStringIntegrationStatus(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'dict(str, IntegrationStatus)' + 'debug_info': 'list[str]', + 'response': 'dict(str, IntegrationStatus)', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerMapStringIntegrationStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerMapStringIntegrationStatus. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerMapStringIntegrationStatus. # noqa: E501 - :return: The status of this ResponseContainerMapStringIntegrationStatus. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerMapStringIntegrationStatus. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerMapStringIntegrationStatus. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerMapStringIntegrationStatus. - :param status: The status of this ResponseContainerMapStringIntegrationStatus. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerMapStringIntegrationStatus. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerMapStringIntegrationStatus. # noqa: E501 + + + :return: The status of this ResponseContainerMapStringIntegrationStatus. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerMapStringIntegrationStatus. + + + :param status: The status of this ResponseContainerMapStringIntegrationStatus. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerMapStringIntegrationStatus, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerMapStringIntegrationStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerMapStringIntegrationStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_message.py b/wavefront_api_client/models/response_container_message.py index a3291f25..137a5748 100644 --- a/wavefront_api_client/models/response_container_message.py +++ b/wavefront_api_client/models/response_container_message.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.message import Message # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerMessage(object): @@ -34,48 +33,54 @@ class ResponseContainerMessage(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Message' + 'debug_info': 'list[str]', + 'response': 'Message', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerMessage - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerMessage. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerMessage. # noqa: E501 - :return: The status of this ResponseContainerMessage. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerMessage. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerMessage. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerMessage. - :param status: The status of this ResponseContainerMessage. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerMessage. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerMessage. # noqa: E501 + + + :return: The status of this ResponseContainerMessage. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerMessage. + + + :param status: The status of this ResponseContainerMessage. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerMessage, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerMessage): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerMessage): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_metrics_policy_read_model.py b/wavefront_api_client/models/response_container_metrics_policy_read_model.py new file mode 100644 index 00000000..ddc1e0ed --- /dev/null +++ b/wavefront_api_client/models/response_container_metrics_policy_read_model.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerMetricsPolicyReadModel(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 = { + 'debug_info': 'list[str]', + 'response': 'MetricsPolicyReadModel', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerMetricsPolicyReadModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerMetricsPolicyReadModel. # noqa: E501 + + + :return: The debug_info of this ResponseContainerMetricsPolicyReadModel. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerMetricsPolicyReadModel. + + + :param debug_info: The debug_info of this ResponseContainerMetricsPolicyReadModel. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerMetricsPolicyReadModel. # noqa: E501 + + + :return: The response of this ResponseContainerMetricsPolicyReadModel. # noqa: E501 + :rtype: MetricsPolicyReadModel + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerMetricsPolicyReadModel. + + + :param response: The response of this ResponseContainerMetricsPolicyReadModel. # noqa: E501 + :type: MetricsPolicyReadModel + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerMetricsPolicyReadModel. # noqa: E501 + + + :return: The status of this ResponseContainerMetricsPolicyReadModel. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerMetricsPolicyReadModel. + + + :param status: The status of this ResponseContainerMetricsPolicyReadModel. # 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(ResponseContainerMetricsPolicyReadModel, 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, ResponseContainerMetricsPolicyReadModel): + 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, ResponseContainerMetricsPolicyReadModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_monitored_application_dto.py b/wavefront_api_client/models/response_container_monitored_application_dto.py new file mode 100644 index 00000000..ff0a8af0 --- /dev/null +++ b/wavefront_api_client/models/response_container_monitored_application_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerMonitoredApplicationDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'MonitoredApplicationDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerMonitoredApplicationDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerMonitoredApplicationDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerMonitoredApplicationDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerMonitoredApplicationDTO. + + + :param debug_info: The debug_info of this ResponseContainerMonitoredApplicationDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerMonitoredApplicationDTO. # noqa: E501 + + + :return: The response of this ResponseContainerMonitoredApplicationDTO. # noqa: E501 + :rtype: MonitoredApplicationDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerMonitoredApplicationDTO. + + + :param response: The response of this ResponseContainerMonitoredApplicationDTO. # noqa: E501 + :type: MonitoredApplicationDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerMonitoredApplicationDTO. # noqa: E501 + + + :return: The status of this ResponseContainerMonitoredApplicationDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerMonitoredApplicationDTO. + + + :param status: The status of this ResponseContainerMonitoredApplicationDTO. # 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(ResponseContainerMonitoredApplicationDTO, 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, ResponseContainerMonitoredApplicationDTO): + 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, ResponseContainerMonitoredApplicationDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_monitored_cluster.py b/wavefront_api_client/models/response_container_monitored_cluster.py new file mode 100644 index 00000000..f5f14045 --- /dev/null +++ b/wavefront_api_client/models/response_container_monitored_cluster.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerMonitoredCluster(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 = { + 'debug_info': 'list[str]', + 'response': 'MonitoredCluster', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerMonitoredCluster - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerMonitoredCluster. # noqa: E501 + + + :return: The debug_info of this ResponseContainerMonitoredCluster. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerMonitoredCluster. + + + :param debug_info: The debug_info of this ResponseContainerMonitoredCluster. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerMonitoredCluster. # noqa: E501 + + + :return: The response of this ResponseContainerMonitoredCluster. # noqa: E501 + :rtype: MonitoredCluster + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerMonitoredCluster. + + + :param response: The response of this ResponseContainerMonitoredCluster. # noqa: E501 + :type: MonitoredCluster + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerMonitoredCluster. # noqa: E501 + + + :return: The status of this ResponseContainerMonitoredCluster. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerMonitoredCluster. + + + :param status: The status of this ResponseContainerMonitoredCluster. # 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(ResponseContainerMonitoredCluster, 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, ResponseContainerMonitoredCluster): + 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, ResponseContainerMonitoredCluster): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_monitored_service_dto.py b/wavefront_api_client/models/response_container_monitored_service_dto.py new file mode 100644 index 00000000..4f14f458 --- /dev/null +++ b/wavefront_api_client/models/response_container_monitored_service_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerMonitoredServiceDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'MonitoredServiceDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerMonitoredServiceDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerMonitoredServiceDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerMonitoredServiceDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerMonitoredServiceDTO. + + + :param debug_info: The debug_info of this ResponseContainerMonitoredServiceDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerMonitoredServiceDTO. # noqa: E501 + + + :return: The response of this ResponseContainerMonitoredServiceDTO. # noqa: E501 + :rtype: MonitoredServiceDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerMonitoredServiceDTO. + + + :param response: The response of this ResponseContainerMonitoredServiceDTO. # noqa: E501 + :type: MonitoredServiceDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerMonitoredServiceDTO. # noqa: E501 + + + :return: The status of this ResponseContainerMonitoredServiceDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerMonitoredServiceDTO. + + + :param status: The status of this ResponseContainerMonitoredServiceDTO. # 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(ResponseContainerMonitoredServiceDTO, 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, ResponseContainerMonitoredServiceDTO): + 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, ResponseContainerMonitoredServiceDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_notificant.py b/wavefront_api_client/models/response_container_notificant.py index a69c5a98..4859505e 100644 --- a/wavefront_api_client/models/response_container_notificant.py +++ b/wavefront_api_client/models/response_container_notificant.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.notificant import Notificant # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerNotificant(object): @@ -34,48 +33,54 @@ class ResponseContainerNotificant(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Notificant' + 'debug_info': 'list[str]', + 'response': 'Notificant', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerNotificant - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerNotificant. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerNotificant. # noqa: E501 - :return: The status of this ResponseContainerNotificant. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerNotificant. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerNotificant. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerNotificant. - :param status: The status of this ResponseContainerNotificant. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerNotificant. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerNotificant. # noqa: E501 + + + :return: The status of this ResponseContainerNotificant. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerNotificant. + + + :param status: The status of this ResponseContainerNotificant. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerNotificant, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerNotificant): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerNotificant): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_account.py b/wavefront_api_client/models/response_container_paged_account.py new file mode 100644 index 00000000..33cd0b6a --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_account.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedAccount(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedAccount', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedAccount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedAccount. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedAccount. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedAccount. + + + :param debug_info: The debug_info of this ResponseContainerPagedAccount. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedAccount. # noqa: E501 + + + :return: The response of this ResponseContainerPagedAccount. # noqa: E501 + :rtype: PagedAccount + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedAccount. + + + :param response: The response of this ResponseContainerPagedAccount. # noqa: E501 + :type: PagedAccount + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedAccount. # noqa: E501 + + + :return: The status of this ResponseContainerPagedAccount. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedAccount. + + + :param status: The status of this ResponseContainerPagedAccount. # 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(ResponseContainerPagedAccount, 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, ResponseContainerPagedAccount): + 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, ResponseContainerPagedAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_alert.py b/wavefront_api_client/models/response_container_paged_alert.py index 9e42ccb6..11c28274 100644 --- a/wavefront_api_client/models/response_container_paged_alert.py +++ b/wavefront_api_client/models/response_container_paged_alert.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_alert import PagedAlert # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedAlert(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedAlert(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedAlert' + 'debug_info': 'list[str]', + 'response': 'PagedAlert', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedAlert - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedAlert. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedAlert. # noqa: E501 - :return: The status of this ResponseContainerPagedAlert. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedAlert. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedAlert. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedAlert. - :param status: The status of this ResponseContainerPagedAlert. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedAlert. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedAlert. # noqa: E501 + + + :return: The status of this ResponseContainerPagedAlert. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedAlert. + + + :param status: The status of this ResponseContainerPagedAlert. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedAlert, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedAlert): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedAlert): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_alert_analytics_summary_detail.py b/wavefront_api_client/models/response_container_paged_alert_analytics_summary_detail.py new file mode 100644 index 00000000..78363edb --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_alert_analytics_summary_detail.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedAlertAnalyticsSummaryDetail(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedAlertAnalyticsSummaryDetail', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedAlertAnalyticsSummaryDetail - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedAlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedAlertAnalyticsSummaryDetail. + + + :param debug_info: The debug_info of this ResponseContainerPagedAlertAnalyticsSummaryDetail. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedAlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The response of this ResponseContainerPagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: PagedAlertAnalyticsSummaryDetail + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedAlertAnalyticsSummaryDetail. + + + :param response: The response of this ResponseContainerPagedAlertAnalyticsSummaryDetail. # noqa: E501 + :type: PagedAlertAnalyticsSummaryDetail + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedAlertAnalyticsSummaryDetail. # noqa: E501 + + + :return: The status of this ResponseContainerPagedAlertAnalyticsSummaryDetail. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedAlertAnalyticsSummaryDetail. + + + :param status: The status of this ResponseContainerPagedAlertAnalyticsSummaryDetail. # 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(ResponseContainerPagedAlertAnalyticsSummaryDetail, 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, ResponseContainerPagedAlertAnalyticsSummaryDetail): + 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, ResponseContainerPagedAlertAnalyticsSummaryDetail): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_alert_with_stats.py b/wavefront_api_client/models/response_container_paged_alert_with_stats.py index 2f044ddb..fb5aeb6c 100644 --- a/wavefront_api_client/models/response_container_paged_alert_with_stats.py +++ b/wavefront_api_client/models/response_container_paged_alert_with_stats.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_alert_with_stats import PagedAlertWithStats # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedAlertWithStats(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedAlertWithStats(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedAlertWithStats' + 'debug_info': 'list[str]', + 'response': 'PagedAlertWithStats', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedAlertWithStats - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedAlertWithStats. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedAlertWithStats. # noqa: E501 - :return: The status of this ResponseContainerPagedAlertWithStats. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedAlertWithStats. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedAlertWithStats. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedAlertWithStats. - :param status: The status of this ResponseContainerPagedAlertWithStats. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedAlertWithStats. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedAlertWithStats. # noqa: E501 + + + :return: The status of this ResponseContainerPagedAlertWithStats. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedAlertWithStats. + + + :param status: The status of this ResponseContainerPagedAlertWithStats. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedAlertWithStats, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedAlertWithStats): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedAlertWithStats): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_anomaly.py b/wavefront_api_client/models/response_container_paged_anomaly.py new file mode 100644 index 00000000..9d58271c --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_anomaly.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedAnomaly(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedAnomaly', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedAnomaly - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedAnomaly. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedAnomaly. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedAnomaly. + + + :param debug_info: The debug_info of this ResponseContainerPagedAnomaly. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedAnomaly. # noqa: E501 + + + :return: The response of this ResponseContainerPagedAnomaly. # noqa: E501 + :rtype: PagedAnomaly + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedAnomaly. + + + :param response: The response of this ResponseContainerPagedAnomaly. # noqa: E501 + :type: PagedAnomaly + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedAnomaly. # noqa: E501 + + + :return: The status of this ResponseContainerPagedAnomaly. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedAnomaly. + + + :param status: The status of this ResponseContainerPagedAnomaly. # 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(ResponseContainerPagedAnomaly, 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, ResponseContainerPagedAnomaly): + 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, ResponseContainerPagedAnomaly): + 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 00000000..1eaa047b --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_api_token_model.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 = { + 'debug_info': 'list[str]', + 'response': 'PagedApiTokenModel', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, 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._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedApiTokenModel. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedApiTokenModel. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedApiTokenModel. + + + :param debug_info: The debug_info of this ResponseContainerPagedApiTokenModel. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @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_paged_cloud_integration.py b/wavefront_api_client/models/response_container_paged_cloud_integration.py index 10ac8f43..c190bbab 100644 --- a/wavefront_api_client/models/response_container_paged_cloud_integration.py +++ b/wavefront_api_client/models/response_container_paged_cloud_integration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_cloud_integration import PagedCloudIntegration # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedCloudIntegration(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedCloudIntegration(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedCloudIntegration' + 'debug_info': 'list[str]', + 'response': 'PagedCloudIntegration', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedCloudIntegration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedCloudIntegration. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedCloudIntegration. # noqa: E501 - :return: The status of this ResponseContainerPagedCloudIntegration. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedCloudIntegration. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedCloudIntegration. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedCloudIntegration. - :param status: The status of this ResponseContainerPagedCloudIntegration. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedCloudIntegration. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedCloudIntegration. # noqa: E501 + + + :return: The status of this ResponseContainerPagedCloudIntegration. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedCloudIntegration. + + + :param status: The status of this ResponseContainerPagedCloudIntegration. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedCloudIntegration, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedCloudIntegration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedCloudIntegration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_customer_facing_user_object.py b/wavefront_api_client/models/response_container_paged_customer_facing_user_object.py index 5072ae21..a261d53a 100644 --- a/wavefront_api_client/models/response_container_paged_customer_facing_user_object.py +++ b/wavefront_api_client/models/response_container_paged_customer_facing_user_object.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_customer_facing_user_object import PagedCustomerFacingUserObject # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedCustomerFacingUserObject(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedCustomerFacingUserObject(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedCustomerFacingUserObject' + 'debug_info': 'list[str]', + 'response': 'PagedCustomerFacingUserObject', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedCustomerFacingUserObject - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedCustomerFacingUserObject. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedCustomerFacingUserObject. # noqa: E501 - :return: The status of this ResponseContainerPagedCustomerFacingUserObject. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedCustomerFacingUserObject. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedCustomerFacingUserObject. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedCustomerFacingUserObject. - :param status: The status of this ResponseContainerPagedCustomerFacingUserObject. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedCustomerFacingUserObject. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedCustomerFacingUserObject. # noqa: E501 + + + :return: The status of this ResponseContainerPagedCustomerFacingUserObject. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedCustomerFacingUserObject. + + + :param status: The status of this ResponseContainerPagedCustomerFacingUserObject. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedCustomerFacingUserObject, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedCustomerFacingUserObject): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedCustomerFacingUserObject): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_dashboard.py b/wavefront_api_client/models/response_container_paged_dashboard.py index b4a4bdc9..ec0e050e 100644 --- a/wavefront_api_client/models/response_container_paged_dashboard.py +++ b/wavefront_api_client/models/response_container_paged_dashboard.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_dashboard import PagedDashboard # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedDashboard(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedDashboard(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedDashboard' + 'debug_info': 'list[str]', + 'response': 'PagedDashboard', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedDashboard - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedDashboard. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedDashboard. # noqa: E501 - :return: The status of this ResponseContainerPagedDashboard. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedDashboard. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedDashboard. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedDashboard. - :param status: The status of this ResponseContainerPagedDashboard. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedDashboard. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedDashboard. # noqa: E501 + + + :return: The status of this ResponseContainerPagedDashboard. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedDashboard. + + + :param status: The status of this ResponseContainerPagedDashboard. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedDashboard, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedDashboard): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedDashboard): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_derived_metric_definition.py b/wavefront_api_client/models/response_container_paged_derived_metric_definition.py index d7ead436..e716d9b7 100644 --- a/wavefront_api_client/models/response_container_paged_derived_metric_definition.py +++ b/wavefront_api_client/models/response_container_paged_derived_metric_definition.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_derived_metric_definition import PagedDerivedMetricDefinition # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedDerivedMetricDefinition(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedDerivedMetricDefinition(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedDerivedMetricDefinition' + 'debug_info': 'list[str]', + 'response': 'PagedDerivedMetricDefinition', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedDerivedMetricDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedDerivedMetricDefinition. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedDerivedMetricDefinition. # noqa: E501 - :return: The status of this ResponseContainerPagedDerivedMetricDefinition. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedDerivedMetricDefinition. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedDerivedMetricDefinition. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedDerivedMetricDefinition. - :param status: The status of this ResponseContainerPagedDerivedMetricDefinition. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedDerivedMetricDefinition. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedDerivedMetricDefinition. # noqa: E501 + + + :return: The status of this ResponseContainerPagedDerivedMetricDefinition. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedDerivedMetricDefinition. + + + :param status: The status of this ResponseContainerPagedDerivedMetricDefinition. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedDerivedMetricDefinition, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedDerivedMetricDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedDerivedMetricDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_derived_metric_definition_with_stats.py b/wavefront_api_client/models/response_container_paged_derived_metric_definition_with_stats.py index 4638ab87..ca9453e1 100644 --- a/wavefront_api_client/models/response_container_paged_derived_metric_definition_with_stats.py +++ b/wavefront_api_client/models/response_container_paged_derived_metric_definition_with_stats.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_derived_metric_definition_with_stats import PagedDerivedMetricDefinitionWithStats # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedDerivedMetricDefinitionWithStats(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedDerivedMetricDefinitionWithStats(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedDerivedMetricDefinitionWithStats' + 'debug_info': 'list[str]', + 'response': 'PagedDerivedMetricDefinitionWithStats', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedDerivedMetricDefinitionWithStats - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedDerivedMetricDefinitionWithStats. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedDerivedMetricDefinitionWithStats. # noqa: E501 - :return: The status of this ResponseContainerPagedDerivedMetricDefinitionWithStats. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedDerivedMetricDefinitionWithStats. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedDerivedMetricDefinitionWithStats. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedDerivedMetricDefinitionWithStats. - :param status: The status of this ResponseContainerPagedDerivedMetricDefinitionWithStats. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedDerivedMetricDefinitionWithStats. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedDerivedMetricDefinitionWithStats. # noqa: E501 + + + :return: The status of this ResponseContainerPagedDerivedMetricDefinitionWithStats. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedDerivedMetricDefinitionWithStats. + + + :param status: The status of this ResponseContainerPagedDerivedMetricDefinitionWithStats. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedDerivedMetricDefinitionWithStats, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedDerivedMetricDefinitionWithStats): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedDerivedMetricDefinitionWithStats): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_event.py b/wavefront_api_client/models/response_container_paged_event.py index 95e8b57b..72cdb308 100644 --- a/wavefront_api_client/models/response_container_paged_event.py +++ b/wavefront_api_client/models/response_container_paged_event.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_event import PagedEvent # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedEvent(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedEvent(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedEvent' + 'debug_info': 'list[str]', + 'response': 'PagedEvent', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedEvent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedEvent. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedEvent. # noqa: E501 - :return: The status of this ResponseContainerPagedEvent. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedEvent. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedEvent. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedEvent. - :param status: The status of this ResponseContainerPagedEvent. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedEvent. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedEvent. # noqa: E501 + + + :return: The status of this ResponseContainerPagedEvent. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedEvent. + + + :param status: The status of this ResponseContainerPagedEvent. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedEvent, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedEvent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_external_link.py b/wavefront_api_client/models/response_container_paged_external_link.py index 61a9492f..05e959cc 100644 --- a/wavefront_api_client/models/response_container_paged_external_link.py +++ b/wavefront_api_client/models/response_container_paged_external_link.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_external_link import PagedExternalLink # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedExternalLink(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedExternalLink(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedExternalLink' + 'debug_info': 'list[str]', + 'response': 'PagedExternalLink', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedExternalLink - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedExternalLink. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedExternalLink. # noqa: E501 - :return: The status of this ResponseContainerPagedExternalLink. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedExternalLink. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedExternalLink. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedExternalLink. - :param status: The status of this ResponseContainerPagedExternalLink. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedExternalLink. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedExternalLink. # noqa: E501 + + + :return: The status of this ResponseContainerPagedExternalLink. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedExternalLink. + + + :param status: The status of this ResponseContainerPagedExternalLink. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedExternalLink, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedExternalLink): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedExternalLink): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_ingestion_policy_read_model.py b/wavefront_api_client/models/response_container_paged_ingestion_policy_read_model.py new file mode 100644 index 00000000..3dd96984 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_ingestion_policy_read_model.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedIngestionPolicyReadModel(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedIngestionPolicyReadModel', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedIngestionPolicyReadModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedIngestionPolicyReadModel. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedIngestionPolicyReadModel. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedIngestionPolicyReadModel. + + + :param debug_info: The debug_info of this ResponseContainerPagedIngestionPolicyReadModel. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedIngestionPolicyReadModel. # noqa: E501 + + + :return: The response of this ResponseContainerPagedIngestionPolicyReadModel. # noqa: E501 + :rtype: PagedIngestionPolicyReadModel + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedIngestionPolicyReadModel. + + + :param response: The response of this ResponseContainerPagedIngestionPolicyReadModel. # noqa: E501 + :type: PagedIngestionPolicyReadModel + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedIngestionPolicyReadModel. # noqa: E501 + + + :return: The status of this ResponseContainerPagedIngestionPolicyReadModel. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedIngestionPolicyReadModel. + + + :param status: The status of this ResponseContainerPagedIngestionPolicyReadModel. # 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(ResponseContainerPagedIngestionPolicyReadModel, 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, ResponseContainerPagedIngestionPolicyReadModel): + 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, ResponseContainerPagedIngestionPolicyReadModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_integration.py b/wavefront_api_client/models/response_container_paged_integration.py index 20b9eaff..d21f16eb 100644 --- a/wavefront_api_client/models/response_container_paged_integration.py +++ b/wavefront_api_client/models/response_container_paged_integration.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_integration import PagedIntegration # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedIntegration(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedIntegration(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedIntegration' + 'debug_info': 'list[str]', + 'response': 'PagedIntegration', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedIntegration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedIntegration. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedIntegration. # noqa: E501 - :return: The status of this ResponseContainerPagedIntegration. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedIntegration. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedIntegration. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedIntegration. - :param status: The status of this ResponseContainerPagedIntegration. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedIntegration. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedIntegration. # noqa: E501 + + + :return: The status of this ResponseContainerPagedIntegration. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedIntegration. + + + :param status: The status of this ResponseContainerPagedIntegration. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedIntegration, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedIntegration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedIntegration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_maintenance_window.py b/wavefront_api_client/models/response_container_paged_maintenance_window.py index b5afdcfa..bc7ea3c5 100644 --- a/wavefront_api_client/models/response_container_paged_maintenance_window.py +++ b/wavefront_api_client/models/response_container_paged_maintenance_window.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_maintenance_window import PagedMaintenanceWindow # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedMaintenanceWindow(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedMaintenanceWindow(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedMaintenanceWindow' + 'debug_info': 'list[str]', + 'response': 'PagedMaintenanceWindow', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedMaintenanceWindow - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedMaintenanceWindow. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedMaintenanceWindow. # noqa: E501 - :return: The status of this ResponseContainerPagedMaintenanceWindow. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedMaintenanceWindow. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedMaintenanceWindow. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedMaintenanceWindow. - :param status: The status of this ResponseContainerPagedMaintenanceWindow. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedMaintenanceWindow. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedMaintenanceWindow. # noqa: E501 + + + :return: The status of this ResponseContainerPagedMaintenanceWindow. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedMaintenanceWindow. + + + :param status: The status of this ResponseContainerPagedMaintenanceWindow. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedMaintenanceWindow, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedMaintenanceWindow): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedMaintenanceWindow): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_message.py b/wavefront_api_client/models/response_container_paged_message.py index 3196a9ee..ca9c7c46 100644 --- a/wavefront_api_client/models/response_container_paged_message.py +++ b/wavefront_api_client/models/response_container_paged_message.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_message import PagedMessage # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedMessage(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedMessage(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedMessage' + 'debug_info': 'list[str]', + 'response': 'PagedMessage', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedMessage - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedMessage. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedMessage. # noqa: E501 - :return: The status of this ResponseContainerPagedMessage. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedMessage. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedMessage. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedMessage. - :param status: The status of this ResponseContainerPagedMessage. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedMessage. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedMessage. # noqa: E501 + + + :return: The status of this ResponseContainerPagedMessage. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedMessage. + + + :param status: The status of this ResponseContainerPagedMessage. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedMessage, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedMessage): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedMessage): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_monitored_application_dto.py b/wavefront_api_client/models/response_container_paged_monitored_application_dto.py new file mode 100644 index 00000000..14fc5c36 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_monitored_application_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedMonitoredApplicationDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedMonitoredApplicationDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedMonitoredApplicationDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedMonitoredApplicationDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedMonitoredApplicationDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedMonitoredApplicationDTO. + + + :param debug_info: The debug_info of this ResponseContainerPagedMonitoredApplicationDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedMonitoredApplicationDTO. # noqa: E501 + + + :return: The response of this ResponseContainerPagedMonitoredApplicationDTO. # noqa: E501 + :rtype: PagedMonitoredApplicationDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedMonitoredApplicationDTO. + + + :param response: The response of this ResponseContainerPagedMonitoredApplicationDTO. # noqa: E501 + :type: PagedMonitoredApplicationDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedMonitoredApplicationDTO. # noqa: E501 + + + :return: The status of this ResponseContainerPagedMonitoredApplicationDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedMonitoredApplicationDTO. + + + :param status: The status of this ResponseContainerPagedMonitoredApplicationDTO. # 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(ResponseContainerPagedMonitoredApplicationDTO, 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, ResponseContainerPagedMonitoredApplicationDTO): + 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, ResponseContainerPagedMonitoredApplicationDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_monitored_cluster.py b/wavefront_api_client/models/response_container_paged_monitored_cluster.py new file mode 100644 index 00000000..a2f54641 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_monitored_cluster.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedMonitoredCluster(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedMonitoredCluster', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedMonitoredCluster - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedMonitoredCluster. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedMonitoredCluster. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedMonitoredCluster. + + + :param debug_info: The debug_info of this ResponseContainerPagedMonitoredCluster. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedMonitoredCluster. # noqa: E501 + + + :return: The response of this ResponseContainerPagedMonitoredCluster. # noqa: E501 + :rtype: PagedMonitoredCluster + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedMonitoredCluster. + + + :param response: The response of this ResponseContainerPagedMonitoredCluster. # noqa: E501 + :type: PagedMonitoredCluster + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedMonitoredCluster. # noqa: E501 + + + :return: The status of this ResponseContainerPagedMonitoredCluster. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedMonitoredCluster. + + + :param status: The status of this ResponseContainerPagedMonitoredCluster. # 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(ResponseContainerPagedMonitoredCluster, 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, ResponseContainerPagedMonitoredCluster): + 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, ResponseContainerPagedMonitoredCluster): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_monitored_service_dto.py b/wavefront_api_client/models/response_container_paged_monitored_service_dto.py new file mode 100644 index 00000000..5e253b6e --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_monitored_service_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedMonitoredServiceDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedMonitoredServiceDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedMonitoredServiceDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedMonitoredServiceDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedMonitoredServiceDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedMonitoredServiceDTO. + + + :param debug_info: The debug_info of this ResponseContainerPagedMonitoredServiceDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedMonitoredServiceDTO. # noqa: E501 + + + :return: The response of this ResponseContainerPagedMonitoredServiceDTO. # noqa: E501 + :rtype: PagedMonitoredServiceDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedMonitoredServiceDTO. + + + :param response: The response of this ResponseContainerPagedMonitoredServiceDTO. # noqa: E501 + :type: PagedMonitoredServiceDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedMonitoredServiceDTO. # noqa: E501 + + + :return: The status of this ResponseContainerPagedMonitoredServiceDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedMonitoredServiceDTO. + + + :param status: The status of this ResponseContainerPagedMonitoredServiceDTO. # 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(ResponseContainerPagedMonitoredServiceDTO, 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, ResponseContainerPagedMonitoredServiceDTO): + 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, ResponseContainerPagedMonitoredServiceDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_notificant.py b/wavefront_api_client/models/response_container_paged_notificant.py index 7951376f..31f8e33e 100644 --- a/wavefront_api_client/models/response_container_paged_notificant.py +++ b/wavefront_api_client/models/response_container_paged_notificant.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_notificant import PagedNotificant # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedNotificant(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedNotificant(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedNotificant' + 'debug_info': 'list[str]', + 'response': 'PagedNotificant', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedNotificant - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedNotificant. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedNotificant. # noqa: E501 - :return: The status of this ResponseContainerPagedNotificant. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedNotificant. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedNotificant. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedNotificant. - :param status: The status of this ResponseContainerPagedNotificant. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedNotificant. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedNotificant. # noqa: E501 + + + :return: The status of this ResponseContainerPagedNotificant. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedNotificant. + + + :param status: The status of this ResponseContainerPagedNotificant. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedNotificant, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedNotificant): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedNotificant): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_proxy.py b/wavefront_api_client/models/response_container_paged_proxy.py index c5612b6f..f60a436e 100644 --- a/wavefront_api_client/models/response_container_paged_proxy.py +++ b/wavefront_api_client/models/response_container_paged_proxy.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_proxy import PagedProxy # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedProxy(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedProxy(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedProxy' + 'debug_info': 'list[str]', + 'response': 'PagedProxy', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedProxy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedProxy. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedProxy. # noqa: E501 - :return: The status of this ResponseContainerPagedProxy. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedProxy. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedProxy. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedProxy. - :param status: The status of this ResponseContainerPagedProxy. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedProxy. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedProxy. # noqa: E501 + + + :return: The status of this ResponseContainerPagedProxy. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedProxy. + + + :param status: The status of this ResponseContainerPagedProxy. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedProxy, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedProxy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedProxy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_recent_app_map_search.py b/wavefront_api_client/models/response_container_paged_recent_app_map_search.py new file mode 100644 index 00000000..906bb062 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_recent_app_map_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedRecentAppMapSearch(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedRecentAppMapSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedRecentAppMapSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedRecentAppMapSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedRecentAppMapSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedRecentAppMapSearch. + + + :param debug_info: The debug_info of this ResponseContainerPagedRecentAppMapSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedRecentAppMapSearch. # noqa: E501 + + + :return: The response of this ResponseContainerPagedRecentAppMapSearch. # noqa: E501 + :rtype: PagedRecentAppMapSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedRecentAppMapSearch. + + + :param response: The response of this ResponseContainerPagedRecentAppMapSearch. # noqa: E501 + :type: PagedRecentAppMapSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedRecentAppMapSearch. # noqa: E501 + + + :return: The status of this ResponseContainerPagedRecentAppMapSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedRecentAppMapSearch. + + + :param status: The status of this ResponseContainerPagedRecentAppMapSearch. # 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(ResponseContainerPagedRecentAppMapSearch, 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, ResponseContainerPagedRecentAppMapSearch): + 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, ResponseContainerPagedRecentAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_recent_traces_search.py b/wavefront_api_client/models/response_container_paged_recent_traces_search.py new file mode 100644 index 00000000..36646eeb --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_recent_traces_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedRecentTracesSearch(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedRecentTracesSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedRecentTracesSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedRecentTracesSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedRecentTracesSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedRecentTracesSearch. + + + :param debug_info: The debug_info of this ResponseContainerPagedRecentTracesSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedRecentTracesSearch. # noqa: E501 + + + :return: The response of this ResponseContainerPagedRecentTracesSearch. # noqa: E501 + :rtype: PagedRecentTracesSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedRecentTracesSearch. + + + :param response: The response of this ResponseContainerPagedRecentTracesSearch. # noqa: E501 + :type: PagedRecentTracesSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedRecentTracesSearch. # noqa: E501 + + + :return: The status of this ResponseContainerPagedRecentTracesSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedRecentTracesSearch. + + + :param status: The status of this ResponseContainerPagedRecentTracesSearch. # 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(ResponseContainerPagedRecentTracesSearch, 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, ResponseContainerPagedRecentTracesSearch): + 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, ResponseContainerPagedRecentTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_related_event.py b/wavefront_api_client/models/response_container_paged_related_event.py new file mode 100644 index 00000000..fee4617a --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_related_event.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedRelatedEvent(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedRelatedEvent', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedRelatedEvent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedRelatedEvent. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedRelatedEvent. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedRelatedEvent. + + + :param debug_info: The debug_info of this ResponseContainerPagedRelatedEvent. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedRelatedEvent. # noqa: E501 + + + :return: The response of this ResponseContainerPagedRelatedEvent. # noqa: E501 + :rtype: PagedRelatedEvent + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedRelatedEvent. + + + :param response: The response of this ResponseContainerPagedRelatedEvent. # noqa: E501 + :type: PagedRelatedEvent + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedRelatedEvent. # noqa: E501 + + + :return: The status of this ResponseContainerPagedRelatedEvent. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedRelatedEvent. + + + :param status: The status of this ResponseContainerPagedRelatedEvent. # 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(ResponseContainerPagedRelatedEvent, 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, ResponseContainerPagedRelatedEvent): + 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, ResponseContainerPagedRelatedEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_report_event_anomaly_dto.py b/wavefront_api_client/models/response_container_paged_report_event_anomaly_dto.py new file mode 100644 index 00000000..74fa4dbd --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_report_event_anomaly_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedReportEventAnomalyDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedReportEventAnomalyDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedReportEventAnomalyDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedReportEventAnomalyDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedReportEventAnomalyDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedReportEventAnomalyDTO. + + + :param debug_info: The debug_info of this ResponseContainerPagedReportEventAnomalyDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedReportEventAnomalyDTO. # noqa: E501 + + + :return: The response of this ResponseContainerPagedReportEventAnomalyDTO. # noqa: E501 + :rtype: PagedReportEventAnomalyDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedReportEventAnomalyDTO. + + + :param response: The response of this ResponseContainerPagedReportEventAnomalyDTO. # noqa: E501 + :type: PagedReportEventAnomalyDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedReportEventAnomalyDTO. # noqa: E501 + + + :return: The status of this ResponseContainerPagedReportEventAnomalyDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedReportEventAnomalyDTO. + + + :param status: The status of this ResponseContainerPagedReportEventAnomalyDTO. # 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(ResponseContainerPagedReportEventAnomalyDTO, 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, ResponseContainerPagedReportEventAnomalyDTO): + 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, ResponseContainerPagedReportEventAnomalyDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_role_dto.py b/wavefront_api_client/models/response_container_paged_role_dto.py new file mode 100644 index 00000000..6a1a9462 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_role_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedRoleDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedRoleDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedRoleDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedRoleDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedRoleDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedRoleDTO. + + + :param debug_info: The debug_info of this ResponseContainerPagedRoleDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedRoleDTO. # noqa: E501 + + + :return: The response of this ResponseContainerPagedRoleDTO. # noqa: E501 + :rtype: PagedRoleDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedRoleDTO. + + + :param response: The response of this ResponseContainerPagedRoleDTO. # noqa: E501 + :type: PagedRoleDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedRoleDTO. # noqa: E501 + + + :return: The status of this ResponseContainerPagedRoleDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedRoleDTO. + + + :param status: The status of this ResponseContainerPagedRoleDTO. # 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(ResponseContainerPagedRoleDTO, 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, ResponseContainerPagedRoleDTO): + 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, ResponseContainerPagedRoleDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_saved_app_map_search.py b/wavefront_api_client/models/response_container_paged_saved_app_map_search.py new file mode 100644 index 00000000..895e8dcb --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_saved_app_map_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedSavedAppMapSearch(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedSavedAppMapSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedSavedAppMapSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedSavedAppMapSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedSavedAppMapSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedSavedAppMapSearch. + + + :param debug_info: The debug_info of this ResponseContainerPagedSavedAppMapSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedSavedAppMapSearch. # noqa: E501 + + + :return: The response of this ResponseContainerPagedSavedAppMapSearch. # noqa: E501 + :rtype: PagedSavedAppMapSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedSavedAppMapSearch. + + + :param response: The response of this ResponseContainerPagedSavedAppMapSearch. # noqa: E501 + :type: PagedSavedAppMapSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedSavedAppMapSearch. # noqa: E501 + + + :return: The status of this ResponseContainerPagedSavedAppMapSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedSavedAppMapSearch. + + + :param status: The status of this ResponseContainerPagedSavedAppMapSearch. # 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(ResponseContainerPagedSavedAppMapSearch, 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, ResponseContainerPagedSavedAppMapSearch): + 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, ResponseContainerPagedSavedAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_saved_app_map_search_group.py b/wavefront_api_client/models/response_container_paged_saved_app_map_search_group.py new file mode 100644 index 00000000..15f1e024 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_saved_app_map_search_group.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedSavedAppMapSearchGroup(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedSavedAppMapSearchGroup', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedSavedAppMapSearchGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedSavedAppMapSearchGroup. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedSavedAppMapSearchGroup. + + + :param debug_info: The debug_info of this ResponseContainerPagedSavedAppMapSearchGroup. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedSavedAppMapSearchGroup. # noqa: E501 + + + :return: The response of this ResponseContainerPagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: PagedSavedAppMapSearchGroup + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedSavedAppMapSearchGroup. + + + :param response: The response of this ResponseContainerPagedSavedAppMapSearchGroup. # noqa: E501 + :type: PagedSavedAppMapSearchGroup + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedSavedAppMapSearchGroup. # noqa: E501 + + + :return: The status of this ResponseContainerPagedSavedAppMapSearchGroup. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedSavedAppMapSearchGroup. + + + :param status: The status of this ResponseContainerPagedSavedAppMapSearchGroup. # 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(ResponseContainerPagedSavedAppMapSearchGroup, 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, ResponseContainerPagedSavedAppMapSearchGroup): + 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, ResponseContainerPagedSavedAppMapSearchGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_saved_search.py b/wavefront_api_client/models/response_container_paged_saved_search.py index ea81c3bf..8ae1312a 100644 --- a/wavefront_api_client/models/response_container_paged_saved_search.py +++ b/wavefront_api_client/models/response_container_paged_saved_search.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_saved_search import PagedSavedSearch # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedSavedSearch(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedSavedSearch(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedSavedSearch' + 'debug_info': 'list[str]', + 'response': 'PagedSavedSearch', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedSavedSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedSavedSearch. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedSavedSearch. # noqa: E501 - :return: The status of this ResponseContainerPagedSavedSearch. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedSavedSearch. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedSavedSearch. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedSavedSearch. - :param status: The status of this ResponseContainerPagedSavedSearch. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedSavedSearch. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedSavedSearch. # noqa: E501 + + + :return: The status of this ResponseContainerPagedSavedSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedSavedSearch. + + + :param status: The status of this ResponseContainerPagedSavedSearch. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedSavedSearch, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedSavedSearch): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedSavedSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_saved_traces_search.py b/wavefront_api_client/models/response_container_paged_saved_traces_search.py new file mode 100644 index 00000000..29909e8e --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_saved_traces_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedSavedTracesSearch(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedSavedTracesSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedSavedTracesSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedSavedTracesSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedSavedTracesSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedSavedTracesSearch. + + + :param debug_info: The debug_info of this ResponseContainerPagedSavedTracesSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedSavedTracesSearch. # noqa: E501 + + + :return: The response of this ResponseContainerPagedSavedTracesSearch. # noqa: E501 + :rtype: PagedSavedTracesSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedSavedTracesSearch. + + + :param response: The response of this ResponseContainerPagedSavedTracesSearch. # noqa: E501 + :type: PagedSavedTracesSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedSavedTracesSearch. # noqa: E501 + + + :return: The status of this ResponseContainerPagedSavedTracesSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedSavedTracesSearch. + + + :param status: The status of this ResponseContainerPagedSavedTracesSearch. # 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(ResponseContainerPagedSavedTracesSearch, 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, ResponseContainerPagedSavedTracesSearch): + 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, ResponseContainerPagedSavedTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_saved_traces_search_group.py b/wavefront_api_client/models/response_container_paged_saved_traces_search_group.py new file mode 100644 index 00000000..bcce7e76 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_saved_traces_search_group.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedSavedTracesSearchGroup(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedSavedTracesSearchGroup', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedSavedTracesSearchGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedSavedTracesSearchGroup. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedSavedTracesSearchGroup. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedSavedTracesSearchGroup. + + + :param debug_info: The debug_info of this ResponseContainerPagedSavedTracesSearchGroup. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedSavedTracesSearchGroup. # noqa: E501 + + + :return: The response of this ResponseContainerPagedSavedTracesSearchGroup. # noqa: E501 + :rtype: PagedSavedTracesSearchGroup + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedSavedTracesSearchGroup. + + + :param response: The response of this ResponseContainerPagedSavedTracesSearchGroup. # noqa: E501 + :type: PagedSavedTracesSearchGroup + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedSavedTracesSearchGroup. # noqa: E501 + + + :return: The status of this ResponseContainerPagedSavedTracesSearchGroup. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedSavedTracesSearchGroup. + + + :param status: The status of this ResponseContainerPagedSavedTracesSearchGroup. # 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(ResponseContainerPagedSavedTracesSearchGroup, 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, ResponseContainerPagedSavedTracesSearchGroup): + 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, ResponseContainerPagedSavedTracesSearchGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_service_account.py b/wavefront_api_client/models/response_container_paged_service_account.py new file mode 100644 index 00000000..c4785150 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_service_account.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedServiceAccount(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedServiceAccount', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedServiceAccount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedServiceAccount. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedServiceAccount. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedServiceAccount. + + + :param debug_info: The debug_info of this ResponseContainerPagedServiceAccount. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedServiceAccount. # noqa: E501 + + + :return: The response of this ResponseContainerPagedServiceAccount. # noqa: E501 + :rtype: PagedServiceAccount + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedServiceAccount. + + + :param response: The response of this ResponseContainerPagedServiceAccount. # noqa: E501 + :type: PagedServiceAccount + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedServiceAccount. # noqa: E501 + + + :return: The status of this ResponseContainerPagedServiceAccount. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedServiceAccount. + + + :param status: The status of this ResponseContainerPagedServiceAccount. # 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(ResponseContainerPagedServiceAccount, 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, ResponseContainerPagedServiceAccount): + 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, ResponseContainerPagedServiceAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_source.py b/wavefront_api_client/models/response_container_paged_source.py index f1520c93..dfdf39f0 100644 --- a/wavefront_api_client/models/response_container_paged_source.py +++ b/wavefront_api_client/models/response_container_paged_source.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.paged_source import PagedSource # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerPagedSource(object): @@ -34,48 +33,54 @@ class ResponseContainerPagedSource(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedSource' + 'debug_info': 'list[str]', + 'response': 'PagedSource', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerPagedSource - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerPagedSource. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedSource. # noqa: E501 - :return: The status of this ResponseContainerPagedSource. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerPagedSource. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerPagedSource. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedSource. - :param status: The status of this ResponseContainerPagedSource. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerPagedSource. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerPagedSource. # noqa: E501 + + + :return: The status of this ResponseContainerPagedSource. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedSource. + + + :param status: The status of this ResponseContainerPagedSource. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerPagedSource, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerPagedSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerPagedSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_span_sampling_policy.py b/wavefront_api_client/models/response_container_paged_span_sampling_policy.py new file mode 100644 index 00000000..76f4e374 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_span_sampling_policy.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedSpanSamplingPolicy(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedSpanSamplingPolicy', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedSpanSamplingPolicy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedSpanSamplingPolicy. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedSpanSamplingPolicy. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedSpanSamplingPolicy. + + + :param debug_info: The debug_info of this ResponseContainerPagedSpanSamplingPolicy. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedSpanSamplingPolicy. # noqa: E501 + + + :return: The response of this ResponseContainerPagedSpanSamplingPolicy. # noqa: E501 + :rtype: PagedSpanSamplingPolicy + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedSpanSamplingPolicy. + + + :param response: The response of this ResponseContainerPagedSpanSamplingPolicy. # noqa: E501 + :type: PagedSpanSamplingPolicy + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedSpanSamplingPolicy. # noqa: E501 + + + :return: The status of this ResponseContainerPagedSpanSamplingPolicy. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedSpanSamplingPolicy. + + + :param status: The status of this ResponseContainerPagedSpanSamplingPolicy. # 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(ResponseContainerPagedSpanSamplingPolicy, 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, ResponseContainerPagedSpanSamplingPolicy): + 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, ResponseContainerPagedSpanSamplingPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_paged_user_group_model.py b/wavefront_api_client/models/response_container_paged_user_group_model.py new file mode 100644 index 00000000..cdc389f1 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_user_group_model.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerPagedUserGroupModel(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 = { + 'debug_info': 'list[str]', + 'response': 'PagedUserGroupModel', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerPagedUserGroupModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerPagedUserGroupModel. # noqa: E501 + + + :return: The debug_info of this ResponseContainerPagedUserGroupModel. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerPagedUserGroupModel. + + + :param debug_info: The debug_info of this ResponseContainerPagedUserGroupModel. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerPagedUserGroupModel. # noqa: E501 + + + :return: The response of this ResponseContainerPagedUserGroupModel. # noqa: E501 + :rtype: PagedUserGroupModel + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerPagedUserGroupModel. + + + :param response: The response of this ResponseContainerPagedUserGroupModel. # noqa: E501 + :type: PagedUserGroupModel + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerPagedUserGroupModel. # noqa: E501 + + + :return: The status of this ResponseContainerPagedUserGroupModel. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerPagedUserGroupModel. + + + :param status: The status of this ResponseContainerPagedUserGroupModel. # 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(ResponseContainerPagedUserGroupModel, 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, ResponseContainerPagedUserGroupModel): + 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, ResponseContainerPagedUserGroupModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_proxy.py b/wavefront_api_client/models/response_container_proxy.py index 3ab5635e..570cc884 100644 --- a/wavefront_api_client/models/response_container_proxy.py +++ b/wavefront_api_client/models/response_container_proxy.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.proxy import Proxy # noqa: F401,E501 -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerProxy(object): @@ -34,48 +33,54 @@ class ResponseContainerProxy(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Proxy' + 'debug_info': 'list[str]', + 'response': 'Proxy', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerProxy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerProxy. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerProxy. # noqa: E501 - :return: The status of this ResponseContainerProxy. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerProxy. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerProxy. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerProxy. - :param status: The status of this ResponseContainerProxy. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerProxy. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerProxy. # noqa: E501 + + + :return: The status of this ResponseContainerProxy. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerProxy. + + + :param status: The status of this ResponseContainerProxy. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerProxy, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerProxy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerProxy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_query_type_dto.py b/wavefront_api_client/models/response_container_query_type_dto.py new file mode 100644 index 00000000..76c2e8b6 --- /dev/null +++ b/wavefront_api_client/models/response_container_query_type_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerQueryTypeDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'QueryTypeDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerQueryTypeDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerQueryTypeDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerQueryTypeDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerQueryTypeDTO. + + + :param debug_info: The debug_info of this ResponseContainerQueryTypeDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerQueryTypeDTO. # noqa: E501 + + + :return: The response of this ResponseContainerQueryTypeDTO. # noqa: E501 + :rtype: QueryTypeDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerQueryTypeDTO. + + + :param response: The response of this ResponseContainerQueryTypeDTO. # noqa: E501 + :type: QueryTypeDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerQueryTypeDTO. # noqa: E501 + + + :return: The status of this ResponseContainerQueryTypeDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerQueryTypeDTO. + + + :param status: The status of this ResponseContainerQueryTypeDTO. # 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(ResponseContainerQueryTypeDTO, 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, ResponseContainerQueryTypeDTO): + 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, ResponseContainerQueryTypeDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_recent_app_map_search.py b/wavefront_api_client/models/response_container_recent_app_map_search.py new file mode 100644 index 00000000..91ff5950 --- /dev/null +++ b/wavefront_api_client/models/response_container_recent_app_map_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerRecentAppMapSearch(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 = { + 'debug_info': 'list[str]', + 'response': 'RecentAppMapSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerRecentAppMapSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerRecentAppMapSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerRecentAppMapSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerRecentAppMapSearch. + + + :param debug_info: The debug_info of this ResponseContainerRecentAppMapSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerRecentAppMapSearch. # noqa: E501 + + + :return: The response of this ResponseContainerRecentAppMapSearch. # noqa: E501 + :rtype: RecentAppMapSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerRecentAppMapSearch. + + + :param response: The response of this ResponseContainerRecentAppMapSearch. # noqa: E501 + :type: RecentAppMapSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerRecentAppMapSearch. # noqa: E501 + + + :return: The status of this ResponseContainerRecentAppMapSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerRecentAppMapSearch. + + + :param status: The status of this ResponseContainerRecentAppMapSearch. # 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(ResponseContainerRecentAppMapSearch, 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, ResponseContainerRecentAppMapSearch): + 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, ResponseContainerRecentAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_recent_traces_search.py b/wavefront_api_client/models/response_container_recent_traces_search.py new file mode 100644 index 00000000..73c15dde --- /dev/null +++ b/wavefront_api_client/models/response_container_recent_traces_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerRecentTracesSearch(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 = { + 'debug_info': 'list[str]', + 'response': 'RecentTracesSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerRecentTracesSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerRecentTracesSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerRecentTracesSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerRecentTracesSearch. + + + :param debug_info: The debug_info of this ResponseContainerRecentTracesSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerRecentTracesSearch. # noqa: E501 + + + :return: The response of this ResponseContainerRecentTracesSearch. # noqa: E501 + :rtype: RecentTracesSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerRecentTracesSearch. + + + :param response: The response of this ResponseContainerRecentTracesSearch. # noqa: E501 + :type: RecentTracesSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerRecentTracesSearch. # noqa: E501 + + + :return: The status of this ResponseContainerRecentTracesSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerRecentTracesSearch. + + + :param status: The status of this ResponseContainerRecentTracesSearch. # 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(ResponseContainerRecentTracesSearch, 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, ResponseContainerRecentTracesSearch): + 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, ResponseContainerRecentTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_role_dto.py b/wavefront_api_client/models/response_container_role_dto.py new file mode 100644 index 00000000..ad8c79a0 --- /dev/null +++ b/wavefront_api_client/models/response_container_role_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerRoleDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'RoleDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerRoleDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerRoleDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerRoleDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerRoleDTO. + + + :param debug_info: The debug_info of this ResponseContainerRoleDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerRoleDTO. # noqa: E501 + + + :return: The response of this ResponseContainerRoleDTO. # noqa: E501 + :rtype: RoleDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerRoleDTO. + + + :param response: The response of this ResponseContainerRoleDTO. # noqa: E501 + :type: RoleDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerRoleDTO. # noqa: E501 + + + :return: The status of this ResponseContainerRoleDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerRoleDTO. + + + :param status: The status of this ResponseContainerRoleDTO. # 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(ResponseContainerRoleDTO, 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, ResponseContainerRoleDTO): + 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, ResponseContainerRoleDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_saved_app_map_search.py b/wavefront_api_client/models/response_container_saved_app_map_search.py new file mode 100644 index 00000000..5f662975 --- /dev/null +++ b/wavefront_api_client/models/response_container_saved_app_map_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerSavedAppMapSearch(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 = { + 'debug_info': 'list[str]', + 'response': 'SavedAppMapSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerSavedAppMapSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerSavedAppMapSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerSavedAppMapSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerSavedAppMapSearch. + + + :param debug_info: The debug_info of this ResponseContainerSavedAppMapSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerSavedAppMapSearch. # noqa: E501 + + + :return: The response of this ResponseContainerSavedAppMapSearch. # noqa: E501 + :rtype: SavedAppMapSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerSavedAppMapSearch. + + + :param response: The response of this ResponseContainerSavedAppMapSearch. # noqa: E501 + :type: SavedAppMapSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerSavedAppMapSearch. # noqa: E501 + + + :return: The status of this ResponseContainerSavedAppMapSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerSavedAppMapSearch. + + + :param status: The status of this ResponseContainerSavedAppMapSearch. # 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(ResponseContainerSavedAppMapSearch, 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, ResponseContainerSavedAppMapSearch): + 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, ResponseContainerSavedAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_saved_app_map_search_group.py b/wavefront_api_client/models/response_container_saved_app_map_search_group.py new file mode 100644 index 00000000..96847797 --- /dev/null +++ b/wavefront_api_client/models/response_container_saved_app_map_search_group.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerSavedAppMapSearchGroup(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 = { + 'debug_info': 'list[str]', + 'response': 'SavedAppMapSearchGroup', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerSavedAppMapSearchGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerSavedAppMapSearchGroup. # noqa: E501 + + + :return: The debug_info of this ResponseContainerSavedAppMapSearchGroup. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerSavedAppMapSearchGroup. + + + :param debug_info: The debug_info of this ResponseContainerSavedAppMapSearchGroup. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerSavedAppMapSearchGroup. # noqa: E501 + + + :return: The response of this ResponseContainerSavedAppMapSearchGroup. # noqa: E501 + :rtype: SavedAppMapSearchGroup + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerSavedAppMapSearchGroup. + + + :param response: The response of this ResponseContainerSavedAppMapSearchGroup. # noqa: E501 + :type: SavedAppMapSearchGroup + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerSavedAppMapSearchGroup. # noqa: E501 + + + :return: The status of this ResponseContainerSavedAppMapSearchGroup. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerSavedAppMapSearchGroup. + + + :param status: The status of this ResponseContainerSavedAppMapSearchGroup. # 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(ResponseContainerSavedAppMapSearchGroup, 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, ResponseContainerSavedAppMapSearchGroup): + 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, ResponseContainerSavedAppMapSearchGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_saved_search.py b/wavefront_api_client/models/response_container_saved_search.py index 5e442519..ae40d86d 100644 --- a/wavefront_api_client/models/response_container_saved_search.py +++ b/wavefront_api_client/models/response_container_saved_search.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 -from wavefront_api_client.models.saved_search import SavedSearch # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerSavedSearch(object): @@ -34,48 +33,54 @@ class ResponseContainerSavedSearch(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'SavedSearch' + 'debug_info': 'list[str]', + 'response': 'SavedSearch', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerSavedSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerSavedSearch. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerSavedSearch. # noqa: E501 - :return: The status of this ResponseContainerSavedSearch. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerSavedSearch. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerSavedSearch. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerSavedSearch. - :param status: The status of this ResponseContainerSavedSearch. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerSavedSearch. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerSavedSearch. # noqa: E501 + + + :return: The status of this ResponseContainerSavedSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerSavedSearch. + + + :param status: The status of this ResponseContainerSavedSearch. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerSavedSearch, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerSavedSearch): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerSavedSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_saved_traces_search.py b/wavefront_api_client/models/response_container_saved_traces_search.py new file mode 100644 index 00000000..2bb4070a --- /dev/null +++ b/wavefront_api_client/models/response_container_saved_traces_search.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerSavedTracesSearch(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 = { + 'debug_info': 'list[str]', + 'response': 'SavedTracesSearch', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerSavedTracesSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerSavedTracesSearch. # noqa: E501 + + + :return: The debug_info of this ResponseContainerSavedTracesSearch. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerSavedTracesSearch. + + + :param debug_info: The debug_info of this ResponseContainerSavedTracesSearch. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerSavedTracesSearch. # noqa: E501 + + + :return: The response of this ResponseContainerSavedTracesSearch. # noqa: E501 + :rtype: SavedTracesSearch + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerSavedTracesSearch. + + + :param response: The response of this ResponseContainerSavedTracesSearch. # noqa: E501 + :type: SavedTracesSearch + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerSavedTracesSearch. # noqa: E501 + + + :return: The status of this ResponseContainerSavedTracesSearch. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerSavedTracesSearch. + + + :param status: The status of this ResponseContainerSavedTracesSearch. # 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(ResponseContainerSavedTracesSearch, 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, ResponseContainerSavedTracesSearch): + 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, ResponseContainerSavedTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_saved_traces_search_group.py b/wavefront_api_client/models/response_container_saved_traces_search_group.py new file mode 100644 index 00000000..fa0fa5d0 --- /dev/null +++ b/wavefront_api_client/models/response_container_saved_traces_search_group.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerSavedTracesSearchGroup(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 = { + 'debug_info': 'list[str]', + 'response': 'SavedTracesSearchGroup', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerSavedTracesSearchGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerSavedTracesSearchGroup. # noqa: E501 + + + :return: The debug_info of this ResponseContainerSavedTracesSearchGroup. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerSavedTracesSearchGroup. + + + :param debug_info: The debug_info of this ResponseContainerSavedTracesSearchGroup. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerSavedTracesSearchGroup. # noqa: E501 + + + :return: The response of this ResponseContainerSavedTracesSearchGroup. # noqa: E501 + :rtype: SavedTracesSearchGroup + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerSavedTracesSearchGroup. + + + :param response: The response of this ResponseContainerSavedTracesSearchGroup. # noqa: E501 + :type: SavedTracesSearchGroup + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerSavedTracesSearchGroup. # noqa: E501 + + + :return: The status of this ResponseContainerSavedTracesSearchGroup. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerSavedTracesSearchGroup. + + + :param status: The status of this ResponseContainerSavedTracesSearchGroup. # 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(ResponseContainerSavedTracesSearchGroup, 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, ResponseContainerSavedTracesSearchGroup): + 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, ResponseContainerSavedTracesSearchGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_service_account.py b/wavefront_api_client/models/response_container_service_account.py new file mode 100644 index 00000000..cbca5786 --- /dev/null +++ b/wavefront_api_client/models/response_container_service_account.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerServiceAccount(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 = { + 'debug_info': 'list[str]', + 'response': 'ServiceAccount', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerServiceAccount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerServiceAccount. # noqa: E501 + + + :return: The debug_info of this ResponseContainerServiceAccount. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerServiceAccount. + + + :param debug_info: The debug_info of this ResponseContainerServiceAccount. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerServiceAccount. # noqa: E501 + + + :return: The response of this ResponseContainerServiceAccount. # noqa: E501 + :rtype: ServiceAccount + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerServiceAccount. + + + :param response: The response of this ResponseContainerServiceAccount. # noqa: E501 + :type: ServiceAccount + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerServiceAccount. # noqa: E501 + + + :return: The status of this ResponseContainerServiceAccount. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerServiceAccount. + + + :param status: The status of this ResponseContainerServiceAccount. # 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(ResponseContainerServiceAccount, 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, ResponseContainerServiceAccount): + 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, ResponseContainerServiceAccount): + 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 new file mode 100644 index 00000000..3de8a803 --- /dev/null +++ b/wavefront_api_client/models/response_container_set_business_function.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerSetBusinessFunction(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 = { + 'debug_info': 'list[str]', + 'response': 'list[str]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerSetBusinessFunction - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerSetBusinessFunction. # noqa: E501 + + + :return: The debug_info of this ResponseContainerSetBusinessFunction. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerSetBusinessFunction. + + + :param debug_info: The debug_info of this ResponseContainerSetBusinessFunction. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerSetBusinessFunction. # noqa: E501 + + + :return: The response of this ResponseContainerSetBusinessFunction. # noqa: E501 + :rtype: list[str] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerSetBusinessFunction. + + + :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_EPHEMERAL_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", "VIEW_INGESTION_POLICY", "VIEW_CLUSTER_INFO", "VIEW_QUERY_FEDERATION", "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_METRIC_TYPE", "MODIFY_EXTERNAL_LINKS", "MODIFY_EXTERNAL_LINK_TAGS", "MODIFY_SAVED_SEARCHES", "MODIFY_SAVED_TRACES_SEARCH", "MODIFY_OWN_ONBOARDING_STATE", "MODIFY_APPLICATIONS", "INGESTION_POLICY_MANAGEMENT", "SECURITY_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", "UPGRADE_CUSTOMER", "TOKEN"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(response).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `response` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(response) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerSetBusinessFunction. # noqa: E501 + + + :return: The status of this ResponseContainerSetBusinessFunction. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerSetBusinessFunction. + + + :param status: The status of this ResponseContainerSetBusinessFunction. # 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(ResponseContainerSetBusinessFunction, 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, ResponseContainerSetBusinessFunction): + 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, ResponseContainerSetBusinessFunction): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_set_source_label_pair.py b/wavefront_api_client/models/response_container_set_source_label_pair.py new file mode 100644 index 00000000..f46799c0 --- /dev/null +++ b/wavefront_api_client/models/response_container_set_source_label_pair.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerSetSourceLabelPair(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 = { + 'debug_info': 'list[str]', + 'response': 'list[SourceLabelPair]', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerSetSourceLabelPair - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerSetSourceLabelPair. # noqa: E501 + + + :return: The debug_info of this ResponseContainerSetSourceLabelPair. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerSetSourceLabelPair. + + + :param debug_info: The debug_info of this ResponseContainerSetSourceLabelPair. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerSetSourceLabelPair. # noqa: E501 + + + :return: The response of this ResponseContainerSetSourceLabelPair. # noqa: E501 + :rtype: list[SourceLabelPair] + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerSetSourceLabelPair. + + + :param response: The response of this ResponseContainerSetSourceLabelPair. # noqa: E501 + :type: list[SourceLabelPair] + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerSetSourceLabelPair. # noqa: E501 + + + :return: The status of this ResponseContainerSetSourceLabelPair. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerSetSourceLabelPair. + + + :param status: The status of this ResponseContainerSetSourceLabelPair. # 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(ResponseContainerSetSourceLabelPair, 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, ResponseContainerSetSourceLabelPair): + 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, ResponseContainerSetSourceLabelPair): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_source.py b/wavefront_api_client/models/response_container_source.py index 3d95fa8f..180e51c5 100644 --- a/wavefront_api_client/models/response_container_source.py +++ b/wavefront_api_client/models/response_container_source.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 -from wavefront_api_client.models.source import Source # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerSource(object): @@ -34,48 +33,54 @@ class ResponseContainerSource(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Source' + 'debug_info': 'list[str]', + 'response': 'Source', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerSource - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerSource. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerSource. # noqa: E501 - :return: The status of this ResponseContainerSource. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerSource. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerSource. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerSource. - :param status: The status of this ResponseContainerSource. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerSource. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerSource. # noqa: E501 + + + :return: The status of this ResponseContainerSource. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerSource. + + + :param status: The status of this ResponseContainerSource. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerSource, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_span_sampling_policy.py b/wavefront_api_client/models/response_container_span_sampling_policy.py new file mode 100644 index 00000000..52a4cc62 --- /dev/null +++ b/wavefront_api_client/models/response_container_span_sampling_policy.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerSpanSamplingPolicy(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 = { + 'debug_info': 'list[str]', + 'response': 'SpanSamplingPolicy', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerSpanSamplingPolicy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerSpanSamplingPolicy. # noqa: E501 + + + :return: The debug_info of this ResponseContainerSpanSamplingPolicy. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerSpanSamplingPolicy. + + + :param debug_info: The debug_info of this ResponseContainerSpanSamplingPolicy. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerSpanSamplingPolicy. # noqa: E501 + + + :return: The response of this ResponseContainerSpanSamplingPolicy. # noqa: E501 + :rtype: SpanSamplingPolicy + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerSpanSamplingPolicy. + + + :param response: The response of this ResponseContainerSpanSamplingPolicy. # noqa: E501 + :type: SpanSamplingPolicy + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerSpanSamplingPolicy. # noqa: E501 + + + :return: The status of this ResponseContainerSpanSamplingPolicy. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerSpanSamplingPolicy. + + + :param status: The status of this ResponseContainerSpanSamplingPolicy. # 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(ResponseContainerSpanSamplingPolicy, 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, ResponseContainerSpanSamplingPolicy): + 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, ResponseContainerSpanSamplingPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_string.py b/wavefront_api_client/models/response_container_string.py new file mode 100644 index 00000000..a55e4df2 --- /dev/null +++ b/wavefront_api_client/models/response_container_string.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerString(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 = { + 'debug_info': 'list[str]', + 'response': 'str', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerString - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerString. # noqa: E501 + + + :return: The debug_info of this ResponseContainerString. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerString. + + + :param debug_info: The debug_info of this ResponseContainerString. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerString. # noqa: E501 + + + :return: The response of this ResponseContainerString. # noqa: E501 + :rtype: str + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerString. + + + :param response: The response of this ResponseContainerString. # noqa: E501 + :type: str + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerString. # noqa: E501 + + + :return: The status of this ResponseContainerString. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerString. + + + :param status: The status of this ResponseContainerString. # 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(ResponseContainerString, 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, ResponseContainerString): + 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, ResponseContainerString): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_tags_response.py b/wavefront_api_client/models/response_container_tags_response.py index bb3019f8..c783fa00 100644 --- a/wavefront_api_client/models/response_container_tags_response.py +++ b/wavefront_api_client/models/response_container_tags_response.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.response_status import ResponseStatus # noqa: F401,E501 -from wavefront_api_client.models.tags_response import TagsResponse # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class ResponseContainerTagsResponse(object): @@ -34,48 +33,54 @@ class ResponseContainerTagsResponse(object): and the value is json key in definition. """ swagger_types = { - 'status': 'ResponseStatus', - 'response': 'TagsResponse' + 'debug_info': 'list[str]', + 'response': 'TagsResponse', + 'status': 'ResponseStatus' } attribute_map = { - 'status': 'status', - 'response': 'response' + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' } - def __init__(self, status=None, response=None): # noqa: E501 + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 """ResponseContainerTagsResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._status = None + self._debug_info = None self._response = None + self._status = None self.discriminator = None - self.status = status + if debug_info is not None: + self.debug_info = debug_info if response is not None: self.response = response + self.status = status @property - def status(self): - """Gets the status of this ResponseContainerTagsResponse. # noqa: E501 + def debug_info(self): + """Gets the debug_info of this ResponseContainerTagsResponse. # noqa: E501 - :return: The status of this ResponseContainerTagsResponse. # noqa: E501 - :rtype: ResponseStatus + :return: The debug_info of this ResponseContainerTagsResponse. # noqa: E501 + :rtype: list[str] """ - return self._status + return self._debug_info - @status.setter - def status(self, status): - """Sets the status of this ResponseContainerTagsResponse. + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerTagsResponse. - :param status: The status of this ResponseContainerTagsResponse. # noqa: E501 - :type: ResponseStatus + :param debug_info: The debug_info of this ResponseContainerTagsResponse. # noqa: E501 + :type: list[str] """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._debug_info = debug_info @property def response(self): @@ -98,6 +103,29 @@ def response(self, response): self._response = response + @property + def status(self): + """Gets the status of this ResponseContainerTagsResponse. # noqa: E501 + + + :return: The status of this ResponseContainerTagsResponse. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerTagsResponse. + + + :param status: The status of this ResponseContainerTagsResponse. # 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 = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseContainerTagsResponse, dict): + for key, value in self.items(): + result[key] = value return result @@ -135,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ResponseContainerTagsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseContainerTagsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_user_api_token.py b/wavefront_api_client/models/response_container_user_api_token.py new file mode 100644 index 00000000..2b47179a --- /dev/null +++ b/wavefront_api_client/models/response_container_user_api_token.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerUserApiToken(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 = { + 'debug_info': 'list[str]', + 'response': 'UserApiToken', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerUserApiToken - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerUserApiToken. # noqa: E501 + + + :return: The debug_info of this ResponseContainerUserApiToken. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerUserApiToken. + + + :param debug_info: The debug_info of this ResponseContainerUserApiToken. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerUserApiToken. # noqa: E501 + + + :return: The response of this ResponseContainerUserApiToken. # noqa: E501 + :rtype: UserApiToken + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerUserApiToken. + + + :param response: The response of this ResponseContainerUserApiToken. # noqa: E501 + :type: UserApiToken + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerUserApiToken. # noqa: E501 + + + :return: The status of this ResponseContainerUserApiToken. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerUserApiToken. + + + :param status: The status of this ResponseContainerUserApiToken. # 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(ResponseContainerUserApiToken, 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, ResponseContainerUserApiToken): + 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, ResponseContainerUserApiToken): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_user_dto.py b/wavefront_api_client/models/response_container_user_dto.py new file mode 100644 index 00000000..c5270e3f --- /dev/null +++ b/wavefront_api_client/models/response_container_user_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerUserDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'UserDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerUserDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerUserDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerUserDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerUserDTO. + + + :param debug_info: The debug_info of this ResponseContainerUserDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerUserDTO. # noqa: E501 + + + :return: The response of this ResponseContainerUserDTO. # noqa: E501 + :rtype: UserDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerUserDTO. + + + :param response: The response of this ResponseContainerUserDTO. # noqa: E501 + :type: UserDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerUserDTO. # noqa: E501 + + + :return: The status of this ResponseContainerUserDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerUserDTO. + + + :param status: The status of this ResponseContainerUserDTO. # 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(ResponseContainerUserDTO, 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, ResponseContainerUserDTO): + 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, ResponseContainerUserDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_user_group_model.py b/wavefront_api_client/models/response_container_user_group_model.py new file mode 100644 index 00000000..871f99e6 --- /dev/null +++ b/wavefront_api_client/models/response_container_user_group_model.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerUserGroupModel(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 = { + 'debug_info': 'list[str]', + 'response': 'UserGroupModel', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerUserGroupModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerUserGroupModel. # noqa: E501 + + + :return: The debug_info of this ResponseContainerUserGroupModel. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerUserGroupModel. + + + :param debug_info: The debug_info of this ResponseContainerUserGroupModel. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerUserGroupModel. # noqa: E501 + + + :return: The response of this ResponseContainerUserGroupModel. # noqa: E501 + :rtype: UserGroupModel + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerUserGroupModel. + + + :param response: The response of this ResponseContainerUserGroupModel. # noqa: E501 + :type: UserGroupModel + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerUserGroupModel. # noqa: E501 + + + :return: The status of this ResponseContainerUserGroupModel. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerUserGroupModel. + + + :param status: The status of this ResponseContainerUserGroupModel. # 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(ResponseContainerUserGroupModel, 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, ResponseContainerUserGroupModel): + 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, ResponseContainerUserGroupModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_validated_users_dto.py b/wavefront_api_client/models/response_container_validated_users_dto.py new file mode 100644 index 00000000..3f6008bb --- /dev/null +++ b/wavefront_api_client/models/response_container_validated_users_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerValidatedUsersDTO(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 = { + 'debug_info': 'list[str]', + 'response': 'ValidatedUsersDTO', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerValidatedUsersDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerValidatedUsersDTO. # noqa: E501 + + + :return: The debug_info of this ResponseContainerValidatedUsersDTO. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerValidatedUsersDTO. + + + :param debug_info: The debug_info of this ResponseContainerValidatedUsersDTO. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerValidatedUsersDTO. # noqa: E501 + + + :return: The response of this ResponseContainerValidatedUsersDTO. # noqa: E501 + :rtype: ValidatedUsersDTO + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerValidatedUsersDTO. + + + :param response: The response of this ResponseContainerValidatedUsersDTO. # noqa: E501 + :type: ValidatedUsersDTO + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerValidatedUsersDTO. # noqa: E501 + + + :return: The status of this ResponseContainerValidatedUsersDTO. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerValidatedUsersDTO. + + + :param status: The status of this ResponseContainerValidatedUsersDTO. # 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(ResponseContainerValidatedUsersDTO, 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, ResponseContainerValidatedUsersDTO): + 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, ResponseContainerValidatedUsersDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_container_void.py b/wavefront_api_client/models/response_container_void.py new file mode 100644 index 00000000..d361e97d --- /dev/null +++ b/wavefront_api_client/models/response_container_void.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ResponseContainerVoid(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 = { + 'debug_info': 'list[str]', + 'response': 'Void', + 'status': 'ResponseStatus' + } + + attribute_map = { + 'debug_info': 'debugInfo', + 'response': 'response', + 'status': 'status' + } + + def __init__(self, debug_info=None, response=None, status=None, _configuration=None): # noqa: E501 + """ResponseContainerVoid - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._debug_info = None + self._response = None + self._status = None + self.discriminator = None + + if debug_info is not None: + self.debug_info = debug_info + if response is not None: + self.response = response + self.status = status + + @property + def debug_info(self): + """Gets the debug_info of this ResponseContainerVoid. # noqa: E501 + + + :return: The debug_info of this ResponseContainerVoid. # noqa: E501 + :rtype: list[str] + """ + return self._debug_info + + @debug_info.setter + def debug_info(self, debug_info): + """Sets the debug_info of this ResponseContainerVoid. + + + :param debug_info: The debug_info of this ResponseContainerVoid. # noqa: E501 + :type: list[str] + """ + + self._debug_info = debug_info + + @property + def response(self): + """Gets the response of this ResponseContainerVoid. # noqa: E501 + + + :return: The response of this ResponseContainerVoid. # noqa: E501 + :rtype: Void + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ResponseContainerVoid. + + + :param response: The response of this ResponseContainerVoid. # noqa: E501 + :type: Void + """ + + self._response = response + + @property + def status(self): + """Gets the status of this ResponseContainerVoid. # noqa: E501 + + + :return: The status of this ResponseContainerVoid. # noqa: E501 + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResponseContainerVoid. + + + :param status: The status of this ResponseContainerVoid. # 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(ResponseContainerVoid, 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, ResponseContainerVoid): + 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, ResponseContainerVoid): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/response_status.py b/wavefront_api_client/models/response_status.py index a1629e26..0e54d59e 100644 --- a/wavefront_api_client/models/response_status.py +++ b/wavefront_api_client/models/response_status.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class ResponseStatus(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,58 +33,57 @@ class ResponseStatus(object): and the value is json key in definition. """ swagger_types = { - 'result': 'str', + 'code': 'int', 'message': 'str', - 'code': 'int' + 'result': 'str' } attribute_map = { - 'result': 'result', + 'code': 'code', 'message': 'message', - 'code': 'code' + 'result': 'result' } - def __init__(self, result=None, message=None, code=None): # noqa: E501 + def __init__(self, code=None, message=None, result=None, _configuration=None): # noqa: E501 """ResponseStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._result = None - self._message = None self._code = None + self._message = None + self._result = None self.discriminator = None - self.result = result + self.code = code if message is not None: self.message = message - self.code = code + self.result = result @property - def result(self): - """Gets the result of this ResponseStatus. # noqa: E501 + def code(self): + """Gets the code of this ResponseStatus. # noqa: E501 + HTTP Response code corresponding to this response # noqa: E501 - :return: The result of this ResponseStatus. # noqa: E501 - :rtype: str + :return: The code of this ResponseStatus. # noqa: E501 + :rtype: int """ - return self._result + return self._code - @result.setter - def result(self, result): - """Sets the result of this ResponseStatus. + @code.setter + def code(self, code): + """Sets the code of this ResponseStatus. + HTTP Response code corresponding to this response # noqa: E501 - :param result: The result of this ResponseStatus. # noqa: E501 - :type: str + :param code: The code of this ResponseStatus. # noqa: E501 + :type: int """ - if result is None: - raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 - allowed_values = ["OK", "ERROR"] # noqa: E501 - if result not in allowed_values: - raise ValueError( - "Invalid value for `result` ({0}), must be one of {1}" # noqa: E501 - .format(result, allowed_values) - ) + if self._configuration.client_side_validation and code is None: + raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - self._result = result + self._code = code @property def message(self): @@ -108,29 +109,34 @@ def message(self, message): self._message = message @property - def code(self): - """Gets the code of this ResponseStatus. # noqa: E501 + def result(self): + """Gets the result of this ResponseStatus. # noqa: E501 - HTTP Response code corresponding to this response # noqa: E501 - :return: The code of this ResponseStatus. # noqa: E501 - :rtype: int + :return: The result of this ResponseStatus. # noqa: E501 + :rtype: str """ - return self._code + return self._result - @code.setter - def code(self, code): - """Sets the code of this ResponseStatus. + @result.setter + def result(self, result): + """Sets the result of this ResponseStatus. - HTTP Response code corresponding to this response # noqa: E501 - :param code: The code of this ResponseStatus. # noqa: E501 - :type: int + :param result: The result of this ResponseStatus. # noqa: E501 + :type: str """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 + if self._configuration.client_side_validation and result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + allowed_values = ["OK", "ERROR"] # noqa: E501 + if (self._configuration.client_side_validation and + result not in allowed_values): + raise ValueError( + "Invalid value for `result` ({0}), must be one of {1}" # noqa: E501 + .format(result, allowed_values) + ) - self._code = code + self._result = result def to_dict(self): """Returns the model properties as a dict""" @@ -153,6 +159,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResponseStatus, dict): + for key, value in self.items(): + result[key] = value return result @@ -169,8 +178,11 @@ def __eq__(self, other): if not isinstance(other, ResponseStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResponseStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/role_create_dto.py b/wavefront_api_client/models/role_create_dto.py new file mode 100644 index 00000000..bcb7df7d --- /dev/null +++ b/wavefront_api_client/models/role_create_dto.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 RoleCreateDTO(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 = { + 'description': 'str', + 'name': 'str', + 'permissions': 'list[str]' + } + + attribute_map = { + 'description': 'description', + 'name': 'name', + 'permissions': 'permissions' + } + + def __init__(self, description=None, name=None, permissions=None, _configuration=None): # noqa: E501 + """RoleCreateDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._description = None + self._name = None + self._permissions = None + self.discriminator = None + + if description is not None: + self.description = description + if name is not None: + self.name = name + if permissions is not None: + self.permissions = permissions + + @property + def description(self): + """Gets the description of this RoleCreateDTO. # noqa: E501 + + The description of the role # noqa: E501 + + :return: The description of this RoleCreateDTO. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this RoleCreateDTO. + + The description of the role # noqa: E501 + + :param description: The description of this RoleCreateDTO. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this RoleCreateDTO. # noqa: E501 + + The name of the role # noqa: E501 + + :return: The name of this RoleCreateDTO. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RoleCreateDTO. + + The name of the role # noqa: E501 + + :param name: The name of this RoleCreateDTO. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def permissions(self): + """Gets the permissions of this RoleCreateDTO. # noqa: E501 + + List of permissions the role has been granted access to # noqa: E501 + + :return: The permissions of this RoleCreateDTO. # noqa: E501 + :rtype: list[str] + """ + return self._permissions + + @permissions.setter + def permissions(self, permissions): + """Sets the permissions of this RoleCreateDTO. + + List of permissions the role has been granted access to # noqa: E501 + + :param permissions: The permissions of this RoleCreateDTO. # noqa: E501 + :type: list[str] + """ + + self._permissions = permissions + + 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(RoleCreateDTO, 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, RoleCreateDTO): + 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, RoleCreateDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/role_dto.py b/wavefront_api_client/models/role_dto.py new file mode 100644 index 00000000..9a458f57 --- /dev/null +++ b/wavefront_api_client/models/role_dto.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 RoleDTO(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 = { + 'created_epoch_millis': 'int', + 'customer': 'str', + 'description': 'str', + 'id': 'str', + 'last_updated_account_id': 'str', + 'last_updated_ms': 'int', + 'linked_accounts_count': 'int', + 'linked_groups_count': 'int', + 'name': 'str', + 'permissions': 'list[str]', + 'sample_linked_accounts': 'list[str]', + 'sample_linked_groups': 'list[UserGroup]' + } + + attribute_map = { + 'created_epoch_millis': 'createdEpochMillis', + 'customer': 'customer', + 'description': 'description', + 'id': 'id', + 'last_updated_account_id': 'lastUpdatedAccountId', + 'last_updated_ms': 'lastUpdatedMs', + 'linked_accounts_count': 'linkedAccountsCount', + 'linked_groups_count': 'linkedGroupsCount', + 'name': 'name', + 'permissions': 'permissions', + 'sample_linked_accounts': 'sampleLinkedAccounts', + 'sample_linked_groups': 'sampleLinkedGroups' + } + + def __init__(self, created_epoch_millis=None, customer=None, description=None, id=None, last_updated_account_id=None, last_updated_ms=None, linked_accounts_count=None, linked_groups_count=None, name=None, permissions=None, sample_linked_accounts=None, sample_linked_groups=None, _configuration=None): # noqa: E501 + """RoleDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_epoch_millis = None + self._customer = None + self._description = None + self._id = None + self._last_updated_account_id = None + self._last_updated_ms = None + self._linked_accounts_count = None + self._linked_groups_count = None + self._name = None + self._permissions = None + self._sample_linked_accounts = None + self._sample_linked_groups = None + self.discriminator = None + + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if customer is not None: + self.customer = customer + if description is not None: + self.description = description + if id is not None: + self.id = id + if last_updated_account_id is not None: + self.last_updated_account_id = last_updated_account_id + if last_updated_ms is not None: + self.last_updated_ms = last_updated_ms + if linked_accounts_count is not None: + self.linked_accounts_count = linked_accounts_count + if linked_groups_count is not None: + self.linked_groups_count = linked_groups_count + if name is not None: + self.name = name + if permissions is not None: + self.permissions = permissions + if sample_linked_accounts is not None: + self.sample_linked_accounts = sample_linked_accounts + if sample_linked_groups is not None: + self.sample_linked_groups = sample_linked_groups + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this RoleDTO. # noqa: E501 + + + :return: The created_epoch_millis of this RoleDTO. # 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 RoleDTO. + + + :param created_epoch_millis: The created_epoch_millis of this RoleDTO. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def customer(self): + """Gets the customer of this RoleDTO. # noqa: E501 + + The id of the customer to which the role belongs # noqa: E501 + + :return: The customer of this RoleDTO. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this RoleDTO. + + The id of the customer to which the role belongs # noqa: E501 + + :param customer: The customer of this RoleDTO. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def description(self): + """Gets the description of this RoleDTO. # noqa: E501 + + The description of the role # noqa: E501 + + :return: The description of this RoleDTO. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this RoleDTO. + + The description of the role # noqa: E501 + + :param description: The description of this RoleDTO. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def id(self): + """Gets the id of this RoleDTO. # noqa: E501 + + The unique identifier of the role # noqa: E501 + + :return: The id of this RoleDTO. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this RoleDTO. + + The unique identifier of the role # noqa: E501 + + :param id: The id of this RoleDTO. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def last_updated_account_id(self): + """Gets the last_updated_account_id of this RoleDTO. # noqa: E501 + + The account that updated this role last time # noqa: E501 + + :return: The last_updated_account_id of this RoleDTO. # noqa: E501 + :rtype: str + """ + return self._last_updated_account_id + + @last_updated_account_id.setter + def last_updated_account_id(self, last_updated_account_id): + """Sets the last_updated_account_id of this RoleDTO. + + The account that updated this role last time # noqa: E501 + + :param last_updated_account_id: The last_updated_account_id of this RoleDTO. # noqa: E501 + :type: str + """ + + self._last_updated_account_id = last_updated_account_id + + @property + def last_updated_ms(self): + """Gets the last_updated_ms of this RoleDTO. # noqa: E501 + + The last time when the role is updated, in epoch milliseconds # noqa: E501 + + :return: The last_updated_ms of this RoleDTO. # noqa: E501 + :rtype: int + """ + return self._last_updated_ms + + @last_updated_ms.setter + def last_updated_ms(self, last_updated_ms): + """Sets the last_updated_ms of this RoleDTO. + + The last time when the role is updated, in epoch milliseconds # noqa: E501 + + :param last_updated_ms: The last_updated_ms of this RoleDTO. # noqa: E501 + :type: int + """ + + self._last_updated_ms = last_updated_ms + + @property + def linked_accounts_count(self): + """Gets the linked_accounts_count of this RoleDTO. # noqa: E501 + + Total number of accounts that are linked to the role # noqa: E501 + + :return: The linked_accounts_count of this RoleDTO. # noqa: E501 + :rtype: int + """ + return self._linked_accounts_count + + @linked_accounts_count.setter + def linked_accounts_count(self, linked_accounts_count): + """Sets the linked_accounts_count of this RoleDTO. + + Total number of accounts that are linked to the role # noqa: E501 + + :param linked_accounts_count: The linked_accounts_count of this RoleDTO. # noqa: E501 + :type: int + """ + + self._linked_accounts_count = linked_accounts_count + + @property + def linked_groups_count(self): + """Gets the linked_groups_count of this RoleDTO. # noqa: E501 + + Total number of groups that are linked to the role # noqa: E501 + + :return: The linked_groups_count of this RoleDTO. # noqa: E501 + :rtype: int + """ + return self._linked_groups_count + + @linked_groups_count.setter + def linked_groups_count(self, linked_groups_count): + """Sets the linked_groups_count of this RoleDTO. + + Total number of groups that are linked to the role # noqa: E501 + + :param linked_groups_count: The linked_groups_count of this RoleDTO. # noqa: E501 + :type: int + """ + + self._linked_groups_count = linked_groups_count + + @property + def name(self): + """Gets the name of this RoleDTO. # noqa: E501 + + The name of the role # noqa: E501 + + :return: The name of this RoleDTO. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RoleDTO. + + The name of the role # noqa: E501 + + :param name: The name of this RoleDTO. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def permissions(self): + """Gets the permissions of this RoleDTO. # noqa: E501 + + List of permissions the role has been granted access to # noqa: E501 + + :return: The permissions of this RoleDTO. # noqa: E501 + :rtype: list[str] + """ + return self._permissions + + @permissions.setter + def permissions(self, permissions): + """Sets the permissions of this RoleDTO. + + List of permissions the role has been granted access to # noqa: E501 + + :param permissions: The permissions of this RoleDTO. # noqa: E501 + :type: list[str] + """ + + self._permissions = permissions + + @property + def sample_linked_accounts(self): + """Gets the sample_linked_accounts of this RoleDTO. # noqa: E501 + + A sample of the accounts assigned to this role. Please use the Role facet of the Account Search API to get the full list of accounts for this role # noqa: E501 + + :return: The sample_linked_accounts of this RoleDTO. # noqa: E501 + :rtype: list[str] + """ + return self._sample_linked_accounts + + @sample_linked_accounts.setter + def sample_linked_accounts(self, sample_linked_accounts): + """Sets the sample_linked_accounts of this RoleDTO. + + A sample of the accounts assigned to this role. Please use the Role facet of the Account Search API to get the full list of accounts for this role # noqa: E501 + + :param sample_linked_accounts: The sample_linked_accounts of this RoleDTO. # noqa: E501 + :type: list[str] + """ + + self._sample_linked_accounts = sample_linked_accounts + + @property + def sample_linked_groups(self): + """Gets the sample_linked_groups of this RoleDTO. # noqa: E501 + + A sample of the groups assigned to this role. Please use the Role facet of the Group Search API to get the full list of groups for this role # noqa: E501 + + :return: The sample_linked_groups of this RoleDTO. # noqa: E501 + :rtype: list[UserGroup] + """ + return self._sample_linked_groups + + @sample_linked_groups.setter + def sample_linked_groups(self, sample_linked_groups): + """Sets the sample_linked_groups of this RoleDTO. + + A sample of the groups assigned to this role. Please use the Role facet of the Group Search API to get the full list of groups for this role # noqa: E501 + + :param sample_linked_groups: The sample_linked_groups of this RoleDTO. # noqa: E501 + :type: list[UserGroup] + """ + + self._sample_linked_groups = sample_linked_groups + + 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(RoleDTO, 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, RoleDTO): + 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, RoleDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/role_update_dto.py b/wavefront_api_client/models/role_update_dto.py new file mode 100644 index 00000000..08e0cc1f --- /dev/null +++ b/wavefront_api_client/models/role_update_dto.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 RoleUpdateDTO(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 = { + 'description': 'str', + 'id': 'str', + 'name': 'str', + 'permissions': 'list[str]' + } + + attribute_map = { + 'description': 'description', + 'id': 'id', + 'name': 'name', + 'permissions': 'permissions' + } + + def __init__(self, description=None, id=None, name=None, permissions=None, _configuration=None): # noqa: E501 + """RoleUpdateDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._description = None + self._id = None + self._name = None + self._permissions = None + self.discriminator = None + + if description is not None: + self.description = description + if id is not None: + self.id = id + if name is not None: + self.name = name + if permissions is not None: + self.permissions = permissions + + @property + def description(self): + """Gets the description of this RoleUpdateDTO. # noqa: E501 + + The description of the role # noqa: E501 + + :return: The description of this RoleUpdateDTO. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this RoleUpdateDTO. + + The description of the role # noqa: E501 + + :param description: The description of this RoleUpdateDTO. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def id(self): + """Gets the id of this RoleUpdateDTO. # noqa: E501 + + The unique identifier of the role # noqa: E501 + + :return: The id of this RoleUpdateDTO. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this RoleUpdateDTO. + + The unique identifier of the role # noqa: E501 + + :param id: The id of this RoleUpdateDTO. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this RoleUpdateDTO. # noqa: E501 + + The name of the role # noqa: E501 + + :return: The name of this RoleUpdateDTO. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RoleUpdateDTO. + + The name of the role # noqa: E501 + + :param name: The name of this RoleUpdateDTO. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def permissions(self): + """Gets the permissions of this RoleUpdateDTO. # noqa: E501 + + List of permissions the role has been granted access to # noqa: E501 + + :return: The permissions of this RoleUpdateDTO. # noqa: E501 + :rtype: list[str] + """ + return self._permissions + + @permissions.setter + def permissions(self, permissions): + """Sets the permissions of this RoleUpdateDTO. + + List of permissions the role has been granted access to # noqa: E501 + + :param permissions: The permissions of this RoleUpdateDTO. # noqa: E501 + :type: list[str] + """ + + self._permissions = permissions + + 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(RoleUpdateDTO, 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, RoleUpdateDTO): + 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, RoleUpdateDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/saved_app_map_search.py b/wavefront_api_client/models/saved_app_map_search.py new file mode 100644 index 00000000..6b5830f3 --- /dev/null +++ b/wavefront_api_client/models/saved_app_map_search.py @@ -0,0 +1,311 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 SavedAppMapSearch(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 = { + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'deleted': 'bool', + 'id': 'str', + 'name': 'str', + 'search_filters': 'AppSearchFilters', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'deleted': 'deleted', + 'id': 'id', + 'name': 'name', + 'search_filters': 'searchFilters', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, created_epoch_millis=None, creator_id=None, deleted=None, id=None, name=None, search_filters=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """SavedAppMapSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_epoch_millis = None + self._creator_id = None + self._deleted = None + self._id = None + self._name = None + self._search_filters = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted + if id is not None: + self.id = id + self.name = name + self.search_filters = search_filters + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this SavedAppMapSearch. # noqa: E501 + + + :return: The created_epoch_millis of this SavedAppMapSearch. # 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 SavedAppMapSearch. + + + :param created_epoch_millis: The created_epoch_millis of this SavedAppMapSearch. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this SavedAppMapSearch. # noqa: E501 + + + :return: The creator_id of this SavedAppMapSearch. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this SavedAppMapSearch. + + + :param creator_id: The creator_id of this SavedAppMapSearch. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def deleted(self): + """Gets the deleted of this SavedAppMapSearch. # noqa: E501 + + + :return: The deleted of this SavedAppMapSearch. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this SavedAppMapSearch. + + + :param deleted: The deleted of this SavedAppMapSearch. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def id(self): + """Gets the id of this SavedAppMapSearch. # noqa: E501 + + + :return: The id of this SavedAppMapSearch. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SavedAppMapSearch. + + + :param id: The id of this SavedAppMapSearch. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this SavedAppMapSearch. # noqa: E501 + + Name of the search # noqa: E501 + + :return: The name of this SavedAppMapSearch. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SavedAppMapSearch. + + Name of the search # noqa: E501 + + :param name: The name of this SavedAppMapSearch. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def search_filters(self): + """Gets the search_filters of this SavedAppMapSearch. # noqa: E501 + + The search filters. # noqa: E501 + + :return: The search_filters of this SavedAppMapSearch. # noqa: E501 + :rtype: AppSearchFilters + """ + return self._search_filters + + @search_filters.setter + def search_filters(self, search_filters): + """Sets the search_filters of this SavedAppMapSearch. + + The search filters. # noqa: E501 + + :param search_filters: The search_filters of this SavedAppMapSearch. # noqa: E501 + :type: AppSearchFilters + """ + if self._configuration.client_side_validation and search_filters is None: + raise ValueError("Invalid value for `search_filters`, must not be `None`") # noqa: E501 + + self._search_filters = search_filters + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this SavedAppMapSearch. # noqa: E501 + + + :return: The updated_epoch_millis of this SavedAppMapSearch. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this SavedAppMapSearch. + + + :param updated_epoch_millis: The updated_epoch_millis of this SavedAppMapSearch. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this SavedAppMapSearch. # noqa: E501 + + + :return: The updater_id of this SavedAppMapSearch. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this SavedAppMapSearch. + + + :param updater_id: The updater_id of this SavedAppMapSearch. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(SavedAppMapSearch, 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, SavedAppMapSearch): + 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, SavedAppMapSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/saved_app_map_search_group.py b/wavefront_api_client/models/saved_app_map_search_group.py new file mode 100644 index 00000000..b3124b65 --- /dev/null +++ b/wavefront_api_client/models/saved_app_map_search_group.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 SavedAppMapSearchGroup(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 = { + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'id': 'str', + 'name': 'str', + 'search_filters': 'list[str]', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'id': 'id', + 'name': 'name', + 'search_filters': 'searchFilters', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, created_epoch_millis=None, creator_id=None, id=None, name=None, search_filters=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """SavedAppMapSearchGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_epoch_millis = None + self._creator_id = None + self._id = None + self._name = None + self._search_filters = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if id is not None: + self.id = id + self.name = name + if search_filters is not None: + self.search_filters = search_filters + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this SavedAppMapSearchGroup. # noqa: E501 + + + :return: The created_epoch_millis of this SavedAppMapSearchGroup. # 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 SavedAppMapSearchGroup. + + + :param created_epoch_millis: The created_epoch_millis of this SavedAppMapSearchGroup. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this SavedAppMapSearchGroup. # noqa: E501 + + + :return: The creator_id of this SavedAppMapSearchGroup. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this SavedAppMapSearchGroup. + + + :param creator_id: The creator_id of this SavedAppMapSearchGroup. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def id(self): + """Gets the id of this SavedAppMapSearchGroup. # noqa: E501 + + + :return: The id of this SavedAppMapSearchGroup. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SavedAppMapSearchGroup. + + + :param id: The id of this SavedAppMapSearchGroup. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this SavedAppMapSearchGroup. # noqa: E501 + + Name of the search group # noqa: E501 + + :return: The name of this SavedAppMapSearchGroup. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SavedAppMapSearchGroup. + + Name of the search group # noqa: E501 + + :param name: The name of this SavedAppMapSearchGroup. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def search_filters(self): + """Gets the search_filters of this SavedAppMapSearchGroup. # noqa: E501 + + + :return: The search_filters of this SavedAppMapSearchGroup. # noqa: E501 + :rtype: list[str] + """ + return self._search_filters + + @search_filters.setter + def search_filters(self, search_filters): + """Sets the search_filters of this SavedAppMapSearchGroup. + + + :param search_filters: The search_filters of this SavedAppMapSearchGroup. # noqa: E501 + :type: list[str] + """ + + self._search_filters = search_filters + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this SavedAppMapSearchGroup. # noqa: E501 + + + :return: The updated_epoch_millis of this SavedAppMapSearchGroup. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this SavedAppMapSearchGroup. + + + :param updated_epoch_millis: The updated_epoch_millis of this SavedAppMapSearchGroup. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this SavedAppMapSearchGroup. # noqa: E501 + + + :return: The updater_id of this SavedAppMapSearchGroup. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this SavedAppMapSearchGroup. + + + :param updater_id: The updater_id of this SavedAppMapSearchGroup. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(SavedAppMapSearchGroup, 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, SavedAppMapSearchGroup): + 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, SavedAppMapSearchGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/saved_search.py b/wavefront_api_client/models/saved_search.py index b8ca350b..b1958694 100644 --- a/wavefront_api_client/models/saved_search.py +++ b/wavefront_api_client/models/saved_search.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class SavedSearch(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,54 +33,131 @@ class SavedSearch(object): and the value is json key in definition. """ swagger_types = { + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'entity_type': 'str', 'id': 'str', 'query': 'dict(str, str)', - 'creator_id': 'str', - 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'user_id': 'str', - 'entity_type': 'str' + 'user_id': 'str' } attribute_map = { + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'entity_type': 'entityType', 'id': 'id', 'query': 'query', - 'creator_id': 'creatorId', - 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'user_id': 'userId', - 'entity_type': 'entityType' + 'user_id': 'userId' } - def __init__(self, id=None, query=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, user_id=None, entity_type=None): # noqa: E501 + def __init__(self, created_epoch_millis=None, creator_id=None, entity_type=None, id=None, query=None, updated_epoch_millis=None, updater_id=None, user_id=None, _configuration=None): # noqa: E501 """SavedSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._created_epoch_millis = None + self._creator_id = None + self._entity_type = None self._id = None self._query = None - self._creator_id = None - self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None self._user_id = None - self._entity_type = None self.discriminator = None + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + self.entity_type = entity_type if id is not None: self.id = id self.query = query - if creator_id is not None: - self.creator_id = creator_id - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis if updated_epoch_millis is not None: self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id if user_id is not None: self.user_id = user_id - self.entity_type = entity_type + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this SavedSearch. # noqa: E501 + + + :return: The created_epoch_millis of this SavedSearch. # 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 SavedSearch. + + + :param created_epoch_millis: The created_epoch_millis of this SavedSearch. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this SavedSearch. # noqa: E501 + + + :return: The creator_id of this SavedSearch. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this SavedSearch. + + + :param creator_id: The creator_id of this SavedSearch. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def entity_type(self): + """Gets the entity_type of this SavedSearch. # noqa: E501 + + The Wavefront entity type over which to search # noqa: E501 + + :return: The entity_type of this SavedSearch. # noqa: E501 + :rtype: str + """ + return self._entity_type + + @entity_type.setter + def entity_type(self, entity_type): + """Sets the entity_type of this SavedSearch. + + The Wavefront entity type over which to search # noqa: E501 + + :param entity_type: The entity_type of this SavedSearch. # noqa: E501 + :type: str + """ + 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", "TOKEN", "ALERT_ANALYTICS", "LOG_ALERT", "MONITORED_SERVICE"] # noqa: E501 + if (self._configuration.client_side_validation and + entity_type not in allowed_values): + raise ValueError( + "Invalid value for `entity_type` ({0}), must be one of {1}" # noqa: E501 + .format(entity_type, allowed_values) + ) + + self._entity_type = entity_type @property def id(self): @@ -121,53 +200,11 @@ def query(self, query): :param query: The query of this SavedSearch. # noqa: E501 :type: dict(str, str) """ - if query is None: + if self._configuration.client_side_validation and query is None: raise ValueError("Invalid value for `query`, must not be `None`") # noqa: E501 self._query = query - @property - def creator_id(self): - """Gets the creator_id of this SavedSearch. # noqa: E501 - - - :return: The creator_id of this SavedSearch. # noqa: E501 - :rtype: str - """ - return self._creator_id - - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this SavedSearch. - - - :param creator_id: The creator_id of this SavedSearch. # noqa: E501 - :type: str - """ - - self._creator_id = creator_id - - @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this SavedSearch. # noqa: E501 - - - :return: The created_epoch_millis of this SavedSearch. # 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 SavedSearch. - - - :param created_epoch_millis: The created_epoch_millis of this SavedSearch. # noqa: E501 - :type: int - """ - - self._created_epoch_millis = created_epoch_millis - @property def updated_epoch_millis(self): """Gets the updated_epoch_millis of this SavedSearch. # noqa: E501 @@ -233,37 +270,6 @@ def user_id(self, user_id): self._user_id = user_id - @property - def entity_type(self): - """Gets the entity_type of this SavedSearch. # noqa: E501 - - The Wavefront entity type over which to search # noqa: E501 - - :return: The entity_type of this SavedSearch. # noqa: E501 - :rtype: str - """ - return self._entity_type - - @entity_type.setter - def entity_type(self, entity_type): - """Sets the entity_type of this SavedSearch. - - The Wavefront entity type over which to search # noqa: E501 - - :param entity_type: The entity_type of this SavedSearch. # noqa: E501 - :type: str - """ - if 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"] # noqa: E501 - if entity_type not in allowed_values: - raise ValueError( - "Invalid value for `entity_type` ({0}), must be one of {1}" # noqa: E501 - .format(entity_type, allowed_values) - ) - - self._entity_type = entity_type - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -285,6 +291,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SavedSearch, dict): + for key, value in self.items(): + result[key] = value return result @@ -301,8 +310,11 @@ def __eq__(self, other): if not isinstance(other, SavedSearch): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SavedSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/saved_traces_search.py b/wavefront_api_client/models/saved_traces_search.py new file mode 100644 index 00000000..49fd239d --- /dev/null +++ b/wavefront_api_client/models/saved_traces_search.py @@ -0,0 +1,310 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 SavedTracesSearch(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 = { + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'deleted': 'bool', + 'id': 'str', + 'name': 'str', + 'search_filters': 'AppSearchFilters', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'deleted': 'deleted', + 'id': 'id', + 'name': 'name', + 'search_filters': 'searchFilters', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, created_epoch_millis=None, creator_id=None, deleted=None, id=None, name=None, search_filters=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """SavedTracesSearch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_epoch_millis = None + self._creator_id = None + self._deleted = None + self._id = None + self._name = None + self._search_filters = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted + if id is not None: + self.id = id + if name is not None: + self.name = name + self.search_filters = search_filters + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this SavedTracesSearch. # noqa: E501 + + + :return: The created_epoch_millis of this SavedTracesSearch. # 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 SavedTracesSearch. + + + :param created_epoch_millis: The created_epoch_millis of this SavedTracesSearch. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this SavedTracesSearch. # noqa: E501 + + + :return: The creator_id of this SavedTracesSearch. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this SavedTracesSearch. + + + :param creator_id: The creator_id of this SavedTracesSearch. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def deleted(self): + """Gets the deleted of this SavedTracesSearch. # noqa: E501 + + + :return: The deleted of this SavedTracesSearch. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this SavedTracesSearch. + + + :param deleted: The deleted of this SavedTracesSearch. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def id(self): + """Gets the id of this SavedTracesSearch. # noqa: E501 + + + :return: The id of this SavedTracesSearch. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SavedTracesSearch. + + + :param id: The id of this SavedTracesSearch. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this SavedTracesSearch. # noqa: E501 + + Name of the search # noqa: E501 + + :return: The name of this SavedTracesSearch. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SavedTracesSearch. + + Name of the search # noqa: E501 + + :param name: The name of this SavedTracesSearch. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def search_filters(self): + """Gets the search_filters of this SavedTracesSearch. # noqa: E501 + + The search filters. # noqa: E501 + + :return: The search_filters of this SavedTracesSearch. # noqa: E501 + :rtype: AppSearchFilters + """ + return self._search_filters + + @search_filters.setter + def search_filters(self, search_filters): + """Sets the search_filters of this SavedTracesSearch. + + The search filters. # noqa: E501 + + :param search_filters: The search_filters of this SavedTracesSearch. # noqa: E501 + :type: AppSearchFilters + """ + if self._configuration.client_side_validation and search_filters is None: + raise ValueError("Invalid value for `search_filters`, must not be `None`") # noqa: E501 + + self._search_filters = search_filters + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this SavedTracesSearch. # noqa: E501 + + + :return: The updated_epoch_millis of this SavedTracesSearch. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this SavedTracesSearch. + + + :param updated_epoch_millis: The updated_epoch_millis of this SavedTracesSearch. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this SavedTracesSearch. # noqa: E501 + + + :return: The updater_id of this SavedTracesSearch. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this SavedTracesSearch. + + + :param updater_id: The updater_id of this SavedTracesSearch. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(SavedTracesSearch, 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, SavedTracesSearch): + 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, SavedTracesSearch): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/saved_traces_search_group.py b/wavefront_api_client/models/saved_traces_search_group.py new file mode 100644 index 00000000..213f7e0f --- /dev/null +++ b/wavefront_api_client/models/saved_traces_search_group.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 SavedTracesSearchGroup(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 = { + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'id': 'str', + 'name': 'str', + 'search_filters': 'list[str]', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'id': 'id', + 'name': 'name', + 'search_filters': 'searchFilters', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, created_epoch_millis=None, creator_id=None, id=None, name=None, search_filters=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """SavedTracesSearchGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_epoch_millis = None + self._creator_id = None + self._id = None + self._name = None + self._search_filters = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if id is not None: + self.id = id + self.name = name + if search_filters is not None: + self.search_filters = search_filters + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this SavedTracesSearchGroup. # noqa: E501 + + + :return: The created_epoch_millis of this SavedTracesSearchGroup. # 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 SavedTracesSearchGroup. + + + :param created_epoch_millis: The created_epoch_millis of this SavedTracesSearchGroup. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this SavedTracesSearchGroup. # noqa: E501 + + + :return: The creator_id of this SavedTracesSearchGroup. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this SavedTracesSearchGroup. + + + :param creator_id: The creator_id of this SavedTracesSearchGroup. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def id(self): + """Gets the id of this SavedTracesSearchGroup. # noqa: E501 + + + :return: The id of this SavedTracesSearchGroup. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SavedTracesSearchGroup. + + + :param id: The id of this SavedTracesSearchGroup. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this SavedTracesSearchGroup. # noqa: E501 + + Name of the search group # noqa: E501 + + :return: The name of this SavedTracesSearchGroup. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SavedTracesSearchGroup. + + Name of the search group # noqa: E501 + + :param name: The name of this SavedTracesSearchGroup. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def search_filters(self): + """Gets the search_filters of this SavedTracesSearchGroup. # noqa: E501 + + + :return: The search_filters of this SavedTracesSearchGroup. # noqa: E501 + :rtype: list[str] + """ + return self._search_filters + + @search_filters.setter + def search_filters(self, search_filters): + """Sets the search_filters of this SavedTracesSearchGroup. + + + :param search_filters: The search_filters of this SavedTracesSearchGroup. # noqa: E501 + :type: list[str] + """ + + self._search_filters = search_filters + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this SavedTracesSearchGroup. # noqa: E501 + + + :return: The updated_epoch_millis of this SavedTracesSearchGroup. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this SavedTracesSearchGroup. + + + :param updated_epoch_millis: The updated_epoch_millis of this SavedTracesSearchGroup. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this SavedTracesSearchGroup. # noqa: E501 + + + :return: The updater_id of this SavedTracesSearchGroup. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this SavedTracesSearchGroup. + + + :param updater_id: The updater_id of this SavedTracesSearchGroup. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(SavedTracesSearchGroup, 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, SavedTracesSearchGroup): + 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, SavedTracesSearchGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/schema.py b/wavefront_api_client/models/schema.py new file mode 100644 index 00000000..61c69b55 --- /dev/null +++ b/wavefront_api_client/models/schema.py @@ -0,0 +1,572 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Schema(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 = { + 'aliases': 'list[str]', + 'doc': 'str', + 'element_type': 'Schema', + 'enum_default': 'str', + 'enum_symbols': 'list[str]', + 'error': 'bool', + 'fields': 'list[Field]', + 'fixed_size': 'int', + 'full_name': 'str', + 'logical_type': 'LogicalType', + 'name': 'str', + 'namespace': 'str', + 'nullable': 'bool', + 'object_props': 'dict(str, object)', + 'type': 'str', + 'types': 'list[Schema]', + 'union': 'bool', + 'value_type': 'Schema' + } + + attribute_map = { + 'aliases': 'aliases', + 'doc': 'doc', + 'element_type': 'elementType', + 'enum_default': 'enumDefault', + 'enum_symbols': 'enumSymbols', + 'error': 'error', + 'fields': 'fields', + 'fixed_size': 'fixedSize', + 'full_name': 'fullName', + 'logical_type': 'logicalType', + 'name': 'name', + 'namespace': 'namespace', + 'nullable': 'nullable', + 'object_props': 'objectProps', + 'type': 'type', + 'types': 'types', + 'union': 'union', + 'value_type': 'valueType' + } + + def __init__(self, aliases=None, doc=None, element_type=None, enum_default=None, enum_symbols=None, error=None, fields=None, fixed_size=None, full_name=None, logical_type=None, name=None, namespace=None, nullable=None, object_props=None, type=None, types=None, union=None, value_type=None, _configuration=None): # noqa: E501 + """Schema - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._aliases = None + self._doc = None + self._element_type = None + self._enum_default = None + self._enum_symbols = None + self._error = None + self._fields = None + self._fixed_size = None + self._full_name = None + self._logical_type = None + self._name = None + self._namespace = None + self._nullable = None + self._object_props = None + self._type = None + self._types = None + self._union = None + self._value_type = None + self.discriminator = None + + if aliases is not None: + self.aliases = aliases + if doc is not None: + self.doc = doc + if element_type is not None: + self.element_type = element_type + if enum_default is not None: + self.enum_default = enum_default + if enum_symbols is not None: + self.enum_symbols = enum_symbols + if error is not None: + self.error = error + if fields is not None: + self.fields = fields + if fixed_size is not None: + self.fixed_size = fixed_size + if full_name is not None: + self.full_name = full_name + if logical_type is not None: + self.logical_type = logical_type + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if nullable is not None: + self.nullable = nullable + if object_props is not None: + self.object_props = object_props + if type is not None: + self.type = type + if types is not None: + self.types = types + if union is not None: + self.union = union + if value_type is not None: + self.value_type = value_type + + @property + def aliases(self): + """Gets the aliases of this Schema. # noqa: E501 + + + :return: The aliases of this Schema. # noqa: E501 + :rtype: list[str] + """ + return self._aliases + + @aliases.setter + def aliases(self, aliases): + """Sets the aliases of this Schema. + + + :param aliases: The aliases of this Schema. # noqa: E501 + :type: list[str] + """ + + self._aliases = aliases + + @property + def doc(self): + """Gets the doc of this Schema. # noqa: E501 + + + :return: The doc of this Schema. # noqa: E501 + :rtype: str + """ + return self._doc + + @doc.setter + def doc(self, doc): + """Sets the doc of this Schema. + + + :param doc: The doc of this Schema. # noqa: E501 + :type: str + """ + + self._doc = doc + + @property + def element_type(self): + """Gets the element_type of this Schema. # noqa: E501 + + + :return: The element_type of this Schema. # noqa: E501 + :rtype: Schema + """ + return self._element_type + + @element_type.setter + def element_type(self, element_type): + """Sets the element_type of this Schema. + + + :param element_type: The element_type of this Schema. # noqa: E501 + :type: Schema + """ + + self._element_type = element_type + + @property + def enum_default(self): + """Gets the enum_default of this Schema. # noqa: E501 + + + :return: The enum_default of this Schema. # noqa: E501 + :rtype: str + """ + return self._enum_default + + @enum_default.setter + def enum_default(self, enum_default): + """Sets the enum_default of this Schema. + + + :param enum_default: The enum_default of this Schema. # noqa: E501 + :type: str + """ + + self._enum_default = enum_default + + @property + def enum_symbols(self): + """Gets the enum_symbols of this Schema. # noqa: E501 + + + :return: The enum_symbols of this Schema. # noqa: E501 + :rtype: list[str] + """ + return self._enum_symbols + + @enum_symbols.setter + def enum_symbols(self, enum_symbols): + """Sets the enum_symbols of this Schema. + + + :param enum_symbols: The enum_symbols of this Schema. # noqa: E501 + :type: list[str] + """ + + self._enum_symbols = enum_symbols + + @property + def error(self): + """Gets the error of this Schema. # noqa: E501 + + + :return: The error of this Schema. # noqa: E501 + :rtype: bool + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this Schema. + + + :param error: The error of this Schema. # noqa: E501 + :type: bool + """ + + self._error = error + + @property + def fields(self): + """Gets the fields of this Schema. # noqa: E501 + + + :return: The fields of this Schema. # noqa: E501 + :rtype: list[Field] + """ + return self._fields + + @fields.setter + def fields(self, fields): + """Sets the fields of this Schema. + + + :param fields: The fields of this Schema. # noqa: E501 + :type: list[Field] + """ + + self._fields = fields + + @property + def fixed_size(self): + """Gets the fixed_size of this Schema. # noqa: E501 + + + :return: The fixed_size of this Schema. # noqa: E501 + :rtype: int + """ + return self._fixed_size + + @fixed_size.setter + def fixed_size(self, fixed_size): + """Sets the fixed_size of this Schema. + + + :param fixed_size: The fixed_size of this Schema. # noqa: E501 + :type: int + """ + + self._fixed_size = fixed_size + + @property + def full_name(self): + """Gets the full_name of this Schema. # noqa: E501 + + + :return: The full_name of this Schema. # noqa: E501 + :rtype: str + """ + return self._full_name + + @full_name.setter + def full_name(self, full_name): + """Sets the full_name of this Schema. + + + :param full_name: The full_name of this Schema. # noqa: E501 + :type: str + """ + + self._full_name = full_name + + @property + def logical_type(self): + """Gets the logical_type of this Schema. # noqa: E501 + + + :return: The logical_type of this Schema. # noqa: E501 + :rtype: LogicalType + """ + return self._logical_type + + @logical_type.setter + def logical_type(self, logical_type): + """Sets the logical_type of this Schema. + + + :param logical_type: The logical_type of this Schema. # noqa: E501 + :type: LogicalType + """ + + self._logical_type = logical_type + + @property + def name(self): + """Gets the name of this Schema. # noqa: E501 + + + :return: The name of this Schema. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Schema. + + + :param name: The name of this Schema. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this Schema. # noqa: E501 + + + :return: The namespace of this Schema. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this Schema. + + + :param namespace: The namespace of this Schema. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + @property + def nullable(self): + """Gets the nullable of this Schema. # noqa: E501 + + + :return: The nullable of this Schema. # noqa: E501 + :rtype: bool + """ + return self._nullable + + @nullable.setter + def nullable(self, nullable): + """Sets the nullable of this Schema. + + + :param nullable: The nullable of this Schema. # noqa: E501 + :type: bool + """ + + self._nullable = nullable + + @property + def object_props(self): + """Gets the object_props of this Schema. # noqa: E501 + + + :return: The object_props of this Schema. # noqa: E501 + :rtype: dict(str, object) + """ + return self._object_props + + @object_props.setter + def object_props(self, object_props): + """Sets the object_props of this Schema. + + + :param object_props: The object_props of this Schema. # noqa: E501 + :type: dict(str, object) + """ + + self._object_props = object_props + + @property + def type(self): + """Gets the type of this Schema. # noqa: E501 + + + :return: The type of this Schema. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Schema. + + + :param type: The type of this Schema. # noqa: E501 + :type: str + """ + allowed_values = ["RECORD", "ENUM", "ARRAY", "MAP", "UNION", "FIXED", "STRING", "BYTES", "INT", "LONG", "FLOAT", "DOUBLE", "BOOLEAN", "NULL"] # noqa: E501 + if (self._configuration.client_side_validation and + type not in allowed_values): + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 + .format(type, allowed_values) + ) + + self._type = type + + @property + def types(self): + """Gets the types of this Schema. # noqa: E501 + + + :return: The types of this Schema. # noqa: E501 + :rtype: list[Schema] + """ + return self._types + + @types.setter + def types(self, types): + """Sets the types of this Schema. + + + :param types: The types of this Schema. # noqa: E501 + :type: list[Schema] + """ + + self._types = types + + @property + def union(self): + """Gets the union of this Schema. # noqa: E501 + + + :return: The union of this Schema. # noqa: E501 + :rtype: bool + """ + return self._union + + @union.setter + def union(self, union): + """Sets the union of this Schema. + + + :param union: The union of this Schema. # noqa: E501 + :type: bool + """ + + self._union = union + + @property + def value_type(self): + """Gets the value_type of this Schema. # noqa: E501 + + + :return: The value_type of this Schema. # noqa: E501 + :rtype: Schema + """ + return self._value_type + + @value_type.setter + def value_type(self, value_type): + """Sets the value_type of this Schema. + + + :param value_type: The value_type of this Schema. # noqa: E501 + :type: Schema + """ + + self._value_type = value_type + + 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(Schema, 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, Schema): + 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, Schema): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/search_query.py b/wavefront_api_client/models/search_query.py index fcc6f4f1..24c0ef99 100644 --- a/wavefront_api_client/models/search_query.py +++ b/wavefront_api_client/models/search_query.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class SearchQuery(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,29 +33,76 @@ 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', - 'matching_method': 'str' + 'values': 'list[str]' } attribute_map = { + 'end': 'end', 'key': 'key', + 'matching_method': 'matchingMethod', + 'negated': 'negated', + 'start': 'start', 'value': 'value', - 'matching_method': 'matchingMethod' + 'values': 'values' } - def __init__(self, key=None, value=None, matching_method=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._value = 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 - self.value = value 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): @@ -75,16 +124,92 @@ def key(self, key): :param key: The key of this SearchQuery. # noqa: E501 :type: str """ - if key is None: + if self._configuration.client_side_validation and key is None: raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key + @property + def matching_method(self): + """Gets the matching_method of this SearchQuery. # noqa: E501 + + The method by which search matching is performed. Default: CONTAINS # noqa: E501 + + :return: The matching_method of this SearchQuery. # noqa: E501 + :rtype: str + """ + return self._matching_method + + @matching_method.setter + def matching_method(self, matching_method): + """Sets the matching_method of this SearchQuery. + + The method by which search matching is performed. Default: CONTAINS # noqa: E501 + + :param matching_method: The matching_method of this SearchQuery. # noqa: E501 + :type: str + """ + allowed_values = ["CONTAINS", "STARTSWITH", "EXACT", "TAGPATH"] # noqa: E501 + if (self._configuration.client_side_validation and + matching_method not in allowed_values): + raise ValueError( + "Invalid value for `matching_method` ({0}), must be one of {1}" # noqa: E501 + .format(matching_method, allowed_values) + ) + + self._matching_method = matching_method + + @property + def negated(self): + """Gets the negated of this SearchQuery. # noqa: E501 + + The flag to create a NOT operation. Default: false # noqa: E501 + + :return: The negated of this SearchQuery. # noqa: E501 + :rtype: bool + """ + return self._negated + + @negated.setter + def negated(self, negated): + """Sets the negated of this SearchQuery. + + The flag to create a NOT operation. Default: false # noqa: E501 + + :param negated: The negated of this SearchQuery. # noqa: E501 + :type: bool + """ + + 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 - The entity facet value for which to search # noqa: E501 + The entity facet value for which to search. Either value or values field is required. If both are set, values takes precedence. # noqa: E501 :return: The value of this SearchQuery. # noqa: E501 :rtype: str @@ -95,44 +220,36 @@ def value(self): def value(self, value): """Sets the value of this SearchQuery. - The entity facet value for which to search # noqa: E501 + The entity facet value for which to search. Either value or values field is required. If both are set, values takes precedence. # noqa: E501 :param value: The value of this SearchQuery. # noqa: E501 :type: str """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value @property - def matching_method(self): - """Gets the matching_method of this SearchQuery. # noqa: E501 + def values(self): + """Gets the values of this SearchQuery. # noqa: E501 - The method by which search matching is performed. Default: CONTAINS # noqa: E501 + 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. # noqa: E501 - :return: The matching_method of this SearchQuery. # noqa: E501 - :rtype: str + :return: The values of this SearchQuery. # noqa: E501 + :rtype: list[str] """ - return self._matching_method + return self._values - @matching_method.setter - def matching_method(self, matching_method): - """Sets the matching_method of this SearchQuery. + @values.setter + def values(self, values): + """Sets the values of this SearchQuery. - The method by which search matching is performed. Default: CONTAINS # noqa: E501 + 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. # noqa: E501 - :param matching_method: The matching_method of this SearchQuery. # noqa: E501 - :type: str + :param values: The values of this SearchQuery. # noqa: E501 + :type: list[str] """ - allowed_values = ["CONTAINS", "STARTSWITH", "EXACT", "TAGPATH"] # noqa: E501 - if matching_method not in allowed_values: - raise ValueError( - "Invalid value for `matching_method` ({0}), must be one of {1}" # noqa: E501 - .format(matching_method, allowed_values) - ) - self._matching_method = matching_method + self._values = values def to_dict(self): """Returns the model properties as a dict""" @@ -155,6 +272,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SearchQuery, dict): + for key, value in self.items(): + result[key] = value return result @@ -171,8 +291,11 @@ def __eq__(self, other): if not isinstance(other, SearchQuery): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SearchQuery): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/service_account.py b/wavefront_api_client/models/service_account.py new file mode 100644 index 00000000..fbd9a424 --- /dev/null +++ b/wavefront_api_client/models/service_account.py @@ -0,0 +1,379 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ServiceAccount(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 = { + 'active': 'bool', + 'description': 'str', + 'groups': 'list[str]', + 'identifier': 'str', + 'last_used': 'int', + 'roles': 'list[RoleDTO]', + 'tokens': 'list[UserApiToken]', + 'united_permissions': 'list[str]', + 'united_roles': 'list[str]', + 'user_groups': 'list[UserGroup]' + } + + attribute_map = { + 'active': 'active', + 'description': 'description', + 'groups': 'groups', + 'identifier': 'identifier', + 'last_used': 'lastUsed', + 'roles': 'roles', + 'tokens': 'tokens', + 'united_permissions': 'unitedPermissions', + 'united_roles': 'unitedRoles', + 'user_groups': 'userGroups' + } + + def __init__(self, active=None, description=None, groups=None, identifier=None, last_used=None, roles=None, tokens=None, united_permissions=None, united_roles=None, user_groups=None, _configuration=None): # noqa: E501 + """ServiceAccount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._active = None + self._description = None + self._groups = None + self._identifier = None + self._last_used = None + self._roles = None + self._tokens = None + self._united_permissions = None + self._united_roles = None + self._user_groups = None + self.discriminator = None + + self.active = active + if description is not None: + self.description = description + if groups is not None: + self.groups = groups + self.identifier = identifier + if last_used is not None: + self.last_used = last_used + if roles is not None: + self.roles = roles + if tokens is not None: + self.tokens = tokens + if united_permissions is not None: + self.united_permissions = united_permissions + if united_roles is not None: + self.united_roles = united_roles + if user_groups is not None: + self.user_groups = user_groups + + @property + def active(self): + """Gets the active of this ServiceAccount. # noqa: E501 + + The state of the service account. # noqa: E501 + + :return: The active of this ServiceAccount. # noqa: E501 + :rtype: bool + """ + return self._active + + @active.setter + def active(self, active): + """Sets the active of this ServiceAccount. + + The state of the service account. # noqa: E501 + + :param active: The active of this ServiceAccount. # noqa: E501 + :type: bool + """ + if self._configuration.client_side_validation and active is None: + raise ValueError("Invalid value for `active`, must not be `None`") # noqa: E501 + + self._active = active + + @property + def description(self): + """Gets the description of this ServiceAccount. # noqa: E501 + + The description of the service account. # noqa: E501 + + :return: The description of this ServiceAccount. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ServiceAccount. + + The description of the service account. # noqa: E501 + + :param description: The description of this ServiceAccount. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def groups(self): + """Gets the groups of this ServiceAccount. # noqa: E501 + + The list of service account's permissions. # noqa: E501 + + :return: The groups of this ServiceAccount. # noqa: E501 + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """Sets the groups of this ServiceAccount. + + The list of service account's permissions. # noqa: E501 + + :param groups: The groups of this ServiceAccount. # noqa: E501 + :type: list[str] + """ + + self._groups = groups + + @property + def identifier(self): + """Gets the identifier of this ServiceAccount. # noqa: E501 + + The unique identifier of a service account. # noqa: E501 + + :return: The identifier of this ServiceAccount. # noqa: E501 + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this ServiceAccount. + + The unique identifier of a service account. # noqa: E501 + + :param identifier: The identifier of this ServiceAccount. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and identifier is None: + raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 + + self._identifier = identifier + + @property + def last_used(self): + """Gets the last_used of this ServiceAccount. # noqa: E501 + + The last time when a token of the service account was used. # noqa: E501 + + :return: The last_used of this ServiceAccount. # noqa: E501 + :rtype: int + """ + return self._last_used + + @last_used.setter + def last_used(self, last_used): + """Sets the last_used of this ServiceAccount. + + The last time when a token of the service account was used. # noqa: E501 + + :param last_used: The last_used of this ServiceAccount. # noqa: E501 + :type: int + """ + + self._last_used = last_used + + @property + def roles(self): + """Gets the roles of this ServiceAccount. # noqa: E501 + + The list of service account's roles. # noqa: E501 + + :return: The roles of this ServiceAccount. # noqa: E501 + :rtype: list[RoleDTO] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this ServiceAccount. + + The list of service account's roles. # noqa: E501 + + :param roles: The roles of this ServiceAccount. # noqa: E501 + :type: list[RoleDTO] + """ + + self._roles = roles + + @property + def tokens(self): + """Gets the tokens of this ServiceAccount. # noqa: E501 + + The service account's API tokens. # noqa: E501 + + :return: The tokens of this ServiceAccount. # noqa: E501 + :rtype: list[UserApiToken] + """ + return self._tokens + + @tokens.setter + def tokens(self, tokens): + """Sets the tokens of this ServiceAccount. + + The service account's API tokens. # noqa: E501 + + :param tokens: The tokens of this ServiceAccount. # noqa: E501 + :type: list[UserApiToken] + """ + + self._tokens = tokens + + @property + def united_permissions(self): + """Gets the united_permissions of this ServiceAccount. # noqa: E501 + + The list of account's permissions assigned directly or through united roles assigned to it # noqa: E501 + + :return: The united_permissions of this ServiceAccount. # noqa: E501 + :rtype: list[str] + """ + return self._united_permissions + + @united_permissions.setter + def united_permissions(self, united_permissions): + """Sets the united_permissions of this ServiceAccount. + + The list of account's permissions assigned directly or through united roles assigned to it # noqa: E501 + + :param united_permissions: The united_permissions of this ServiceAccount. # noqa: E501 + :type: list[str] + """ + + self._united_permissions = united_permissions + + @property + def united_roles(self): + """Gets the united_roles of this ServiceAccount. # noqa: E501 + + The list of account's roles assigned directly or through user groups assigned to it # noqa: E501 + + :return: The united_roles of this ServiceAccount. # noqa: E501 + :rtype: list[str] + """ + return self._united_roles + + @united_roles.setter + def united_roles(self, united_roles): + """Sets the united_roles of this ServiceAccount. + + The list of account's roles assigned directly or through user groups assigned to it # noqa: E501 + + :param united_roles: The united_roles of this ServiceAccount. # noqa: E501 + :type: list[str] + """ + + self._united_roles = united_roles + + @property + def user_groups(self): + """Gets the user_groups of this ServiceAccount. # noqa: E501 + + The list of service account's user groups. # noqa: E501 + + :return: The user_groups of this ServiceAccount. # noqa: E501 + :rtype: list[UserGroup] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this ServiceAccount. + + The list of service account's user groups. # noqa: E501 + + :param user_groups: The user_groups of this ServiceAccount. # noqa: E501 + :type: list[UserGroup] + """ + + self._user_groups = user_groups + + 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(ServiceAccount, 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, ServiceAccount): + 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, ServiceAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/service_account_write.py b/wavefront_api_client/models/service_account_write.py new file mode 100644 index 00000000..fc31599f --- /dev/null +++ b/wavefront_api_client/models/service_account_write.py @@ -0,0 +1,294 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ServiceAccountWrite(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 = { + 'active': 'bool', + 'description': 'str', + 'groups': 'list[str]', + 'identifier': 'str', + 'roles': 'list[str]', + 'tokens': 'list[str]', + 'user_groups': 'list[str]' + } + + attribute_map = { + 'active': 'active', + 'description': 'description', + 'groups': 'groups', + 'identifier': 'identifier', + 'roles': 'roles', + 'tokens': 'tokens', + 'user_groups': 'userGroups' + } + + def __init__(self, active=None, description=None, groups=None, identifier=None, roles=None, tokens=None, user_groups=None, _configuration=None): # noqa: E501 + """ServiceAccountWrite - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._active = None + self._description = None + self._groups = None + self._identifier = None + self._roles = None + self._tokens = None + self._user_groups = None + self.discriminator = None + + if active is not None: + self.active = active + if description is not None: + self.description = description + if groups is not None: + self.groups = groups + self.identifier = identifier + if roles is not None: + self.roles = roles + if tokens is not None: + self.tokens = tokens + if user_groups is not None: + self.user_groups = user_groups + + @property + def active(self): + """Gets the active of this ServiceAccountWrite. # noqa: E501 + + The current state of the service account. # noqa: E501 + + :return: The active of this ServiceAccountWrite. # noqa: E501 + :rtype: bool + """ + return self._active + + @active.setter + def active(self, active): + """Sets the active of this ServiceAccountWrite. + + The current state of the service account. # noqa: E501 + + :param active: The active of this ServiceAccountWrite. # noqa: E501 + :type: bool + """ + + self._active = active + + @property + def description(self): + """Gets the description of this ServiceAccountWrite. # noqa: E501 + + The description of the service account to be created. # noqa: E501 + + :return: The description of this ServiceAccountWrite. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ServiceAccountWrite. + + The description of the service account to be created. # noqa: E501 + + :param description: The description of this ServiceAccountWrite. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def groups(self): + """Gets the groups of this ServiceAccountWrite. # noqa: E501 + + The list of permissions, the service account will be granted. # noqa: E501 + + :return: The groups of this ServiceAccountWrite. # noqa: E501 + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """Sets the groups of this ServiceAccountWrite. + + The list of permissions, the service account will be granted. # noqa: E501 + + :param groups: The groups of this ServiceAccountWrite. # noqa: E501 + :type: list[str] + """ + + self._groups = groups + + @property + def identifier(self): + """Gets the identifier of this ServiceAccountWrite. # noqa: E501 + + The unique identifier for a service account. # noqa: E501 + + :return: The identifier of this ServiceAccountWrite. # noqa: E501 + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this ServiceAccountWrite. + + The unique identifier for a service account. # noqa: E501 + + :param identifier: The identifier of this ServiceAccountWrite. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and identifier is None: + raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 + + self._identifier = identifier + + @property + def roles(self): + """Gets the roles of this ServiceAccountWrite. # noqa: E501 + + The list of role ids, the service account will be added to.\" # noqa: E501 + + :return: The roles of this ServiceAccountWrite. # noqa: E501 + :rtype: list[str] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this ServiceAccountWrite. + + The list of role ids, the service account will be added to.\" # noqa: E501 + + :param roles: The roles of this ServiceAccountWrite. # noqa: E501 + :type: list[str] + """ + + self._roles = roles + + @property + def tokens(self): + """Gets the tokens of this ServiceAccountWrite. # noqa: E501 + + The service account's API tokens. # noqa: E501 + + :return: The tokens of this ServiceAccountWrite. # noqa: E501 + :rtype: list[str] + """ + return self._tokens + + @tokens.setter + def tokens(self, tokens): + """Sets the tokens of this ServiceAccountWrite. + + The service account's API tokens. # noqa: E501 + + :param tokens: The tokens of this ServiceAccountWrite. # noqa: E501 + :type: list[str] + """ + + self._tokens = tokens + + @property + def user_groups(self): + """Gets the user_groups of this ServiceAccountWrite. # noqa: E501 + + The list of user group ids, the service account will be added to. # noqa: E501 + + :return: The user_groups of this ServiceAccountWrite. # noqa: E501 + :rtype: list[str] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this ServiceAccountWrite. + + The list of user group ids, the service account will be added to. # noqa: E501 + + :param user_groups: The user_groups of this ServiceAccountWrite. # noqa: E501 + :type: list[str] + """ + + self._user_groups = user_groups + + 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(ServiceAccountWrite, 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, ServiceAccountWrite): + 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, ServiceAccountWrite): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/setup.py b/wavefront_api_client/models/setup.py new file mode 100644 index 00000000..77115b22 --- /dev/null +++ b/wavefront_api_client/models/setup.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Setup(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 = { + 'description': 'str', + 'file_path': 'str', + 'title': 'str', + 'type': 'str' + } + + attribute_map = { + 'description': 'description', + 'file_path': 'filePath', + 'title': 'title', + 'type': 'type' + } + + def __init__(self, description=None, file_path=None, title=None, type=None, _configuration=None): # noqa: E501 + """Setup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._description = None + self._file_path = None + self._title = None + self._type = None + self.discriminator = None + + self.description = description + self.file_path = file_path + if title is not None: + self.title = title + self.type = type + + @property + def description(self): + """Gets the description of this Setup. # noqa: E501 + + Setup description # noqa: E501 + + :return: The description of this Setup. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Setup. + + Setup description # noqa: E501 + + :param description: The description of this Setup. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and description is None: + raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 + + self._description = description + + @property + def file_path(self): + """Gets the file_path of this Setup. # noqa: E501 + + Relative file path to the setup.md file # noqa: E501 + + :return: The file_path of this Setup. # noqa: E501 + :rtype: str + """ + return self._file_path + + @file_path.setter + def file_path(self, file_path): + """Sets the file_path of this Setup. + + Relative file path to the setup.md file # noqa: E501 + + :param file_path: The file_path of this Setup. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and file_path is None: + raise ValueError("Invalid value for `file_path`, must not be `None`") # noqa: E501 + + self._file_path = file_path + + @property + def title(self): + """Gets the title of this Setup. # noqa: E501 + + Setup title # noqa: E501 + + :return: The title of this Setup. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this Setup. + + Setup title # noqa: E501 + + :param title: The title of this Setup. # noqa: E501 + :type: str + """ + + self._title = title + + @property + def type(self): + """Gets the type of this Setup. # noqa: E501 + + Setup Type # noqa: E501 + + :return: The type of this Setup. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Setup. + + Setup Type # noqa: E501 + + :param type: The type of this Setup. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + allowed_values = ["METRICS", "LOGS"] # noqa: E501 + if (self._configuration.client_side_validation and + type not in allowed_values): + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 + .format(type, allowed_values) + ) + + self._type = type + + 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(Setup, 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, Setup): + 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, Setup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/snowflake_configuration.py b/wavefront_api_client/models/snowflake_configuration.py new file mode 100644 index 00000000..3f930c88 --- /dev/null +++ b/wavefront_api_client/models/snowflake_configuration.py @@ -0,0 +1,296 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 SnowflakeConfiguration(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_id': 'str', + 'metric_filter_regex': 'str', + 'password': 'str', + 'private_key': 'str', + 'role': 'str', + 'user_name': 'str', + 'warehouse': 'str' + } + + attribute_map = { + 'account_id': 'accountID', + 'metric_filter_regex': 'metricFilterRegex', + 'password': 'password', + 'private_key': 'privateKey', + 'role': 'role', + 'user_name': 'userName', + 'warehouse': 'warehouse' + } + + def __init__(self, account_id=None, metric_filter_regex=None, password=None, private_key=None, role=None, user_name=None, warehouse=None, _configuration=None): # noqa: E501 + """SnowflakeConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._account_id = None + self._metric_filter_regex = None + self._password = None + self._private_key = None + self._role = None + self._user_name = None + self._warehouse = None + self.discriminator = None + + self.account_id = account_id + if metric_filter_regex is not None: + self.metric_filter_regex = metric_filter_regex + if password is not None: + self.password = password + self.private_key = private_key + if role is not None: + self.role = role + self.user_name = user_name + if warehouse is not None: + self.warehouse = warehouse + + @property + def account_id(self): + """Gets the account_id of this SnowflakeConfiguration. # noqa: E501 + + Snowflake AccountID # noqa: E501 + + :return: The account_id of this SnowflakeConfiguration. # noqa: E501 + :rtype: str + """ + return self._account_id + + @account_id.setter + def account_id(self, account_id): + """Sets the account_id of this SnowflakeConfiguration. + + Snowflake AccountID # noqa: E501 + + :param account_id: The account_id of this SnowflakeConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and account_id is None: + raise ValueError("Invalid value for `account_id`, must not be `None`") # noqa: E501 + + self._account_id = account_id + + @property + def metric_filter_regex(self): + """Gets the metric_filter_regex of this SnowflakeConfiguration. # noqa: E501 + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :return: The metric_filter_regex of this SnowflakeConfiguration. # noqa: E501 + :rtype: str + """ + return self._metric_filter_regex + + @metric_filter_regex.setter + def metric_filter_regex(self, metric_filter_regex): + """Sets the metric_filter_regex of this SnowflakeConfiguration. + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :param metric_filter_regex: The metric_filter_regex of this SnowflakeConfiguration. # noqa: E501 + :type: str + """ + + self._metric_filter_regex = metric_filter_regex + + @property + def password(self): + """Gets the password of this SnowflakeConfiguration. # noqa: E501 + + Snowflake Password # noqa: E501 + + :return: The password of this SnowflakeConfiguration. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this SnowflakeConfiguration. + + Snowflake Password # noqa: E501 + + :param password: The password of this SnowflakeConfiguration. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def private_key(self): + """Gets the private_key of this SnowflakeConfiguration. # noqa: E501 + + Snowflake Private Key # noqa: E501 + + :return: The private_key of this SnowflakeConfiguration. # noqa: E501 + :rtype: str + """ + return self._private_key + + @private_key.setter + def private_key(self, private_key): + """Sets the private_key of this SnowflakeConfiguration. + + Snowflake Private Key # noqa: E501 + + :param private_key: The private_key of this SnowflakeConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and private_key is None: + raise ValueError("Invalid value for `private_key`, must not be `None`") # noqa: E501 + + self._private_key = private_key + + @property + def role(self): + """Gets the role of this SnowflakeConfiguration. # noqa: E501 + + Role to be used while querying snowflake database # noqa: E501 + + :return: The role of this SnowflakeConfiguration. # noqa: E501 + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this SnowflakeConfiguration. + + Role to be used while querying snowflake database # noqa: E501 + + :param role: The role of this SnowflakeConfiguration. # noqa: E501 + :type: str + """ + + self._role = role + + @property + def user_name(self): + """Gets the user_name of this SnowflakeConfiguration. # noqa: E501 + + Snowflake Username # noqa: E501 + + :return: The user_name of this SnowflakeConfiguration. # noqa: E501 + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this SnowflakeConfiguration. + + Snowflake Username # noqa: E501 + + :param user_name: The user_name of this SnowflakeConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and user_name is None: + raise ValueError("Invalid value for `user_name`, must not be `None`") # noqa: E501 + + self._user_name = user_name + + @property + def warehouse(self): + """Gets the warehouse of this SnowflakeConfiguration. # noqa: E501 + + Warehouse to be used while querying snowflake database # noqa: E501 + + :return: The warehouse of this SnowflakeConfiguration. # noqa: E501 + :rtype: str + """ + return self._warehouse + + @warehouse.setter + def warehouse(self, warehouse): + """Sets the warehouse of this SnowflakeConfiguration. + + Warehouse to be used while querying snowflake database # noqa: E501 + + :param warehouse: The warehouse of this SnowflakeConfiguration. # noqa: E501 + :type: str + """ + + self._warehouse = warehouse + + 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(SnowflakeConfiguration, 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, SnowflakeConfiguration): + 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, SnowflakeConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/sortable_search_request.py b/wavefront_api_client/models/sortable_search_request.py index e09a0d13..472e7603 100644 --- a/wavefront_api_client/models/sortable_search_request.py +++ b/wavefront_api_client/models/sortable_search_request.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,8 +16,7 @@ import six -from wavefront_api_client.models.search_query import SearchQuery # noqa: F401,E501 -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class SortableSearchRequest(object): @@ -47,8 +46,11 @@ class SortableSearchRequest(object): 'sort': 'sort' } - def __init__(self, limit=None, offset=None, query=None, sort=None): # noqa: E501 + def __init__(self, limit=None, offset=None, query=None, sort=None, _configuration=None): # noqa: E501 """SortableSearchRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._limit = None self._offset = None @@ -69,7 +71,7 @@ def __init__(self, limit=None, offset=None, query=None, sort=None): # noqa: E50 def limit(self): """Gets the limit of this SortableSearchRequest. # noqa: E501 - The number of results to return. Default: 100 # noqa: E501 + The number of results to return. Default: 100, Maximum allowed: 1000 # noqa: E501 :return: The limit of this SortableSearchRequest. # noqa: E501 :rtype: int @@ -80,11 +82,17 @@ def limit(self): def limit(self, limit): """Sets the limit of this SortableSearchRequest. - The number of results to return. Default: 100 # noqa: E501 + The number of results to return. Default: 100, Maximum allowed: 1000 # noqa: E501 :param limit: The limit of this SortableSearchRequest. # noqa: E501 :type: int """ + if (self._configuration.client_side_validation and + limit is not None and limit > 1000): # noqa: E501 + raise ValueError("Invalid value for `limit`, must be a value less than or equal to `1000`") # noqa: E501 + if (self._configuration.client_side_validation and + limit is not None and limit < 1): # noqa: E501 + raise ValueError("Invalid value for `limit`, must be a value greater than or equal to `1`") # noqa: E501 self._limit = limit @@ -176,6 +184,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SortableSearchRequest, dict): + for key, value in self.items(): + result[key] = value return result @@ -192,8 +203,11 @@ def __eq__(self, other): if not isinstance(other, SortableSearchRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SortableSearchRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/sorting.py b/wavefront_api_client/models/sorting.py index 60f1db3d..31530334 100644 --- a/wavefront_api_client/models/sorting.py +++ b/wavefront_api_client/models/sorting.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class Sorting(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -32,28 +34,31 @@ class Sorting(object): """ swagger_types = { 'ascending': 'bool', - 'field': 'str', - 'default': 'bool' + 'default': 'bool', + 'field': 'str' } attribute_map = { 'ascending': 'ascending', - 'field': 'field', - 'default': 'default' + 'default': 'default', + 'field': 'field' } - def __init__(self, ascending=None, field=None, default=None): # noqa: E501 + def __init__(self, ascending=None, default=None, field=None, _configuration=None): # noqa: E501 """Sorting - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._ascending = None - self._field = None self._default = None + self._field = None self.discriminator = None self.ascending = ascending - self.field = field if default is not None: self.default = default + self.field = field @property def ascending(self): @@ -75,11 +80,34 @@ def ascending(self, ascending): :param ascending: The ascending of this Sorting. # noqa: E501 :type: bool """ - if ascending is None: + if self._configuration.client_side_validation and ascending is None: raise ValueError("Invalid value for `ascending`, must not be `None`") # noqa: E501 self._ascending = ascending + @property + def default(self): + """Gets the default of this Sorting. # noqa: E501 + + Whether this sort requests the default ranking order. Ascending/descending does not matter if this attribute is true. # noqa: E501 + + :return: The default of this Sorting. # noqa: E501 + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this Sorting. + + Whether this sort requests the default ranking order. Ascending/descending does not matter if this attribute is true. # noqa: E501 + + :param default: The default of this Sorting. # noqa: E501 + :type: bool + """ + + self._default = default + @property def field(self): """Gets the field of this Sorting. # noqa: E501 @@ -100,34 +128,11 @@ def field(self, field): :param field: The field of this Sorting. # noqa: E501 :type: str """ - if field is None: + if self._configuration.client_side_validation and field is None: raise ValueError("Invalid value for `field`, must not be `None`") # noqa: E501 self._field = field - @property - def default(self): - """Gets the default of this Sorting. # noqa: E501 - - Whether this sort requests the default ranking order. Ascending/descending does not matter if this attribute is true. # noqa: E501 - - :return: The default of this Sorting. # noqa: E501 - :rtype: bool - """ - return self._default - - @default.setter - def default(self, default): - """Sets the default of this Sorting. - - Whether this sort requests the default ranking order. Ascending/descending does not matter if this attribute is true. # noqa: E501 - - :param default: The default of this Sorting. # noqa: E501 - :type: bool - """ - - self._default = default - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -149,6 +154,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Sorting, dict): + for key, value in self.items(): + result[key] = value return result @@ -165,8 +173,11 @@ def __eq__(self, other): if not isinstance(other, Sorting): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Sorting): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/source.py b/wavefront_api_client/models/source.py index 6284e92e..1e28fc77 100644 --- a/wavefront_api_client/models/source.py +++ b/wavefront_api_client/models/source.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class Source(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,89 +33,132 @@ class Source(object): and the value is json key in definition. """ swagger_types = { - 'id': 'str', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'description': 'str', 'hidden': 'bool', + 'id': 'str', + 'marked_new_epoch_millis': 'int', + 'source_name': 'str', 'tags': 'dict(str, bool)', - 'description': 'str', - 'creator_id': 'str', - 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'marked_new_epoch_millis': 'int', - 'source_name': 'str' + 'updater_id': 'str' } attribute_map = { - 'id': 'id', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'description': 'description', 'hidden': 'hidden', + 'id': 'id', + 'marked_new_epoch_millis': 'markedNewEpochMillis', + 'source_name': 'sourceName', 'tags': 'tags', - 'description': 'description', - 'creator_id': 'creatorId', - 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'marked_new_epoch_millis': 'markedNewEpochMillis', - 'source_name': 'sourceName' + 'updater_id': 'updaterId' } - def __init__(self, id=None, hidden=None, tags=None, description=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, marked_new_epoch_millis=None, source_name=None): # noqa: E501 + def __init__(self, created_epoch_millis=None, creator_id=None, description=None, hidden=None, id=None, marked_new_epoch_millis=None, source_name=None, tags=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 """Source - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._id = None + self._created_epoch_millis = None + self._creator_id = None + self._description = None self._hidden = None + self._id = None + self._marked_new_epoch_millis = None + self._source_name = None self._tags = None - self._description = None - self._creator_id = None - self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._marked_new_epoch_millis = None - self._source_name = None self.discriminator = None - self.id = id + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if description is not None: + self.description = description if hidden is not None: self.hidden = hidden + self.id = id + if marked_new_epoch_millis is not None: + self.marked_new_epoch_millis = marked_new_epoch_millis + self.source_name = source_name if tags is not None: self.tags = tags - if description is not None: - self.description = description - if creator_id is not None: - self.creator_id = creator_id - if created_epoch_millis is not None: - self.created_epoch_millis = created_epoch_millis if updated_epoch_millis is not None: self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id - if marked_new_epoch_millis is not None: - self.marked_new_epoch_millis = marked_new_epoch_millis - self.source_name = source_name @property - def id(self): - """Gets the id of this Source. # noqa: E501 + def created_epoch_millis(self): + """Gets the created_epoch_millis of this Source. # noqa: E501 - id of this source, must be exactly equivalent to 'sourceName' # noqa: E501 - :return: The id of this Source. # noqa: E501 + :return: The created_epoch_millis of this Source. # 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 Source. + + + :param created_epoch_millis: The created_epoch_millis of this Source. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this Source. # noqa: E501 + + + :return: The creator_id of this Source. # noqa: E501 :rtype: str """ - return self._id + return self._creator_id - @id.setter - def id(self, id): - """Sets the id of this Source. + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this Source. - id of this source, must be exactly equivalent to 'sourceName' # noqa: E501 - :param id: The id of this Source. # noqa: E501 + :param creator_id: The creator_id of this Source. # noqa: E501 :type: str """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._id = id + self._creator_id = creator_id + + @property + def description(self): + """Gets the description of this Source. # noqa: E501 + + Description of this source # noqa: E501 + + :return: The description of this Source. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Source. + + Description of this source # noqa: E501 + + :param description: The description of this Source. # noqa: E501 + :type: str + """ + + self._description = description @property def hidden(self): @@ -139,92 +184,100 @@ def hidden(self, hidden): self._hidden = hidden @property - def tags(self): - """Gets the tags of this Source. # noqa: E501 + def id(self): + """Gets the id of this Source. # noqa: E501 - A Map (String -> boolean) Representing the source tags associated with this source. To create a tag, set it as a KEY in this map, with associated value equal to true # noqa: E501 + id of this source, must be exactly equivalent to 'sourceName' # noqa: E501 - :return: The tags of this Source. # noqa: E501 - :rtype: dict(str, bool) + :return: The id of this Source. # noqa: E501 + :rtype: str """ - return self._tags + return self._id - @tags.setter - def tags(self, tags): - """Sets the tags of this Source. + @id.setter + def id(self, id): + """Sets the id of this Source. - A Map (String -> boolean) Representing the source tags associated with this source. To create a tag, set it as a KEY in this map, with associated value equal to true # noqa: E501 + id of this source, must be exactly equivalent to 'sourceName' # noqa: E501 - :param tags: The tags of this Source. # noqa: E501 - :type: dict(str, bool) + :param id: The id of this Source. # noqa: E501 + :type: str """ + if self._configuration.client_side_validation and id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._tags = tags + self._id = id @property - def description(self): - """Gets the description of this Source. # noqa: E501 + def marked_new_epoch_millis(self): + """Gets the marked_new_epoch_millis of this Source. # noqa: E501 - Description of this source # noqa: E501 + Epoch Millis when this source was marked as ~status.new # noqa: E501 - :return: The description of this Source. # noqa: E501 - :rtype: str + :return: The marked_new_epoch_millis of this Source. # noqa: E501 + :rtype: int """ - return self._description + return self._marked_new_epoch_millis - @description.setter - def description(self, description): - """Sets the description of this Source. + @marked_new_epoch_millis.setter + def marked_new_epoch_millis(self, marked_new_epoch_millis): + """Sets the marked_new_epoch_millis of this Source. - Description of this source # noqa: E501 + Epoch Millis when this source was marked as ~status.new # noqa: E501 - :param description: The description of this Source. # noqa: E501 - :type: str + :param marked_new_epoch_millis: The marked_new_epoch_millis of this Source. # noqa: E501 + :type: int """ - self._description = description + self._marked_new_epoch_millis = marked_new_epoch_millis @property - def creator_id(self): - """Gets the creator_id of this Source. # noqa: E501 + def source_name(self): + """Gets the source_name of this Source. # noqa: E501 + The name of the source, usually set by ingested telemetry # noqa: E501 - :return: The creator_id of this Source. # noqa: E501 + :return: The source_name of this Source. # noqa: E501 :rtype: str """ - return self._creator_id + return self._source_name - @creator_id.setter - def creator_id(self, creator_id): - """Sets the creator_id of this Source. + @source_name.setter + def source_name(self, source_name): + """Sets the source_name of this Source. + The name of the source, usually set by ingested telemetry # noqa: E501 - :param creator_id: The creator_id of this Source. # noqa: E501 + :param source_name: The source_name of this Source. # noqa: E501 :type: str """ + if self._configuration.client_side_validation and source_name is None: + raise ValueError("Invalid value for `source_name`, must not be `None`") # noqa: E501 - self._creator_id = creator_id + self._source_name = source_name @property - def created_epoch_millis(self): - """Gets the created_epoch_millis of this Source. # noqa: E501 + def tags(self): + """Gets the tags of this Source. # noqa: E501 + A Map (String -> boolean) Representing the source tags associated with this source. To create a tag, set it as a KEY in this map, with associated value equal to true # noqa: E501 - :return: The created_epoch_millis of this Source. # noqa: E501 - :rtype: int + :return: The tags of this Source. # noqa: E501 + :rtype: dict(str, bool) """ - return self._created_epoch_millis + return self._tags - @created_epoch_millis.setter - def created_epoch_millis(self, created_epoch_millis): - """Sets the created_epoch_millis of this Source. + @tags.setter + def tags(self, tags): + """Sets the tags of this Source. + A Map (String -> boolean) Representing the source tags associated with this source. To create a tag, set it as a KEY in this map, with associated value equal to true # noqa: E501 - :param created_epoch_millis: The created_epoch_millis of this Source. # noqa: E501 - :type: int + :param tags: The tags of this Source. # noqa: E501 + :type: dict(str, bool) """ - self._created_epoch_millis = created_epoch_millis + self._tags = tags @property def updated_epoch_millis(self): @@ -268,54 +321,6 @@ def updater_id(self, updater_id): self._updater_id = updater_id - @property - def marked_new_epoch_millis(self): - """Gets the marked_new_epoch_millis of this Source. # noqa: E501 - - Epoch Millis when this source was marked as ~status.new # noqa: E501 - - :return: The marked_new_epoch_millis of this Source. # noqa: E501 - :rtype: int - """ - return self._marked_new_epoch_millis - - @marked_new_epoch_millis.setter - def marked_new_epoch_millis(self, marked_new_epoch_millis): - """Sets the marked_new_epoch_millis of this Source. - - Epoch Millis when this source was marked as ~status.new # noqa: E501 - - :param marked_new_epoch_millis: The marked_new_epoch_millis of this Source. # noqa: E501 - :type: int - """ - - self._marked_new_epoch_millis = marked_new_epoch_millis - - @property - def source_name(self): - """Gets the source_name of this Source. # noqa: E501 - - The name of the source, usually set by ingested telemetry # noqa: E501 - - :return: The source_name of this Source. # noqa: E501 - :rtype: str - """ - return self._source_name - - @source_name.setter - def source_name(self, source_name): - """Sets the source_name of this Source. - - The name of the source, usually set by ingested telemetry # noqa: E501 - - :param source_name: The source_name of this Source. # noqa: E501 - :type: str - """ - if source_name is None: - raise ValueError("Invalid value for `source_name`, must not be `None`") # noqa: E501 - - self._source_name = source_name - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -337,6 +342,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Source, dict): + for key, value in self.items(): + result[key] = value return result @@ -353,8 +361,11 @@ def __eq__(self, other): if not isinstance(other, Source): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Source): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/source_label_pair.py b/wavefront_api_client/models/source_label_pair.py index 4309640b..ab6ff02a 100644 --- a/wavefront_api_client/models/source_label_pair.py +++ b/wavefront_api_client/models/source_label_pair.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class SourceLabelPair(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,41 +33,75 @@ class SourceLabelPair(object): and the value is json key in definition. """ swagger_types = { + 'firing': 'int', 'host': 'str', - 'tags': 'dict(str, str)', 'label': 'str', - 'firing': 'int', - 'observed': 'int' + 'observed': 'int', + 'severity': 'str', + 'start_time': 'int', + 'tags': 'dict(str, str)' } attribute_map = { + 'firing': 'firing', 'host': 'host', - 'tags': 'tags', 'label': 'label', - 'firing': 'firing', - 'observed': 'observed' + 'observed': 'observed', + 'severity': 'severity', + 'start_time': 'startTime', + 'tags': 'tags' } - def __init__(self, host=None, tags=None, label=None, firing=None, observed=None): # noqa: E501 + def __init__(self, firing=None, host=None, label=None, observed=None, severity=None, start_time=None, tags=None, _configuration=None): # noqa: E501 """SourceLabelPair - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._firing = None self._host = None - self._tags = None self._label = None - self._firing = None self._observed = None + self._severity = None + self._start_time = None + self._tags = None self.discriminator = None + if firing is not None: + self.firing = firing if host is not None: self.host = host - if tags is not None: - self.tags = tags if label is not None: self.label = label - if firing is not None: - self.firing = firing if observed is not None: self.observed = observed + if severity is not None: + self.severity = severity + if start_time is not None: + self.start_time = start_time + if tags is not None: + self.tags = tags + + @property + def firing(self): + """Gets the firing of this SourceLabelPair. # noqa: E501 + + + :return: The firing of this SourceLabelPair. # noqa: E501 + :rtype: int + """ + return self._firing + + @firing.setter + def firing(self, firing): + """Sets the firing of this SourceLabelPair. + + + :param firing: The firing of this SourceLabelPair. # noqa: E501 + :type: int + """ + + self._firing = firing @property def host(self): @@ -90,27 +126,6 @@ def host(self, host): self._host = host - @property - def tags(self): - """Gets the tags of this SourceLabelPair. # noqa: E501 - - - :return: The tags of this SourceLabelPair. # noqa: E501 - :rtype: dict(str, str) - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this SourceLabelPair. - - - :param tags: The tags of this SourceLabelPair. # noqa: E501 - :type: dict(str, str) - """ - - self._tags = tags - @property def label(self): """Gets the label of this SourceLabelPair. # noqa: E501 @@ -133,46 +148,97 @@ def label(self, label): self._label = label @property - def firing(self): - """Gets the firing of this SourceLabelPair. # noqa: E501 + def observed(self): + """Gets the observed of this SourceLabelPair. # noqa: E501 - :return: The firing of this SourceLabelPair. # noqa: E501 + :return: The observed of this SourceLabelPair. # noqa: E501 :rtype: int """ - return self._firing + return self._observed - @firing.setter - def firing(self, firing): - """Sets the firing of this SourceLabelPair. + @observed.setter + def observed(self, observed): + """Sets the observed of this SourceLabelPair. - :param firing: The firing of this SourceLabelPair. # noqa: E501 + :param observed: The observed of this SourceLabelPair. # noqa: E501 :type: int """ - self._firing = firing + self._observed = observed @property - def observed(self): - """Gets the observed of this SourceLabelPair. # noqa: E501 + def severity(self): + """Gets the severity of this SourceLabelPair. # noqa: E501 - :return: The observed of this SourceLabelPair. # noqa: E501 + :return: The severity of this SourceLabelPair. # noqa: E501 + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this SourceLabelPair. + + + :param severity: The severity of this SourceLabelPair. # noqa: E501 + :type: str + """ + allowed_values = ["INFO", "SMOKE", "WARN", "SEVERE"] # noqa: E501 + if (self._configuration.client_side_validation and + severity not in allowed_values): + raise ValueError( + "Invalid value for `severity` ({0}), must be one of {1}" # noqa: E501 + .format(severity, allowed_values) + ) + + self._severity = severity + + @property + def start_time(self): + """Gets the start_time of this SourceLabelPair. # noqa: E501 + + Start time of this failing HLP, in epoch millis. # noqa: E501 + + :return: The start_time of this SourceLabelPair. # noqa: E501 :rtype: int """ - return self._observed + return self._start_time - @observed.setter - def observed(self, observed): - """Sets the observed of this SourceLabelPair. + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this SourceLabelPair. + Start time of this failing HLP, in epoch millis. # noqa: E501 - :param observed: The observed of this SourceLabelPair. # noqa: E501 + :param start_time: The start_time of this SourceLabelPair. # noqa: E501 :type: int """ - self._observed = observed + self._start_time = start_time + + @property + def tags(self): + """Gets the tags of this SourceLabelPair. # noqa: E501 + + + :return: The tags of this SourceLabelPair. # noqa: E501 + :rtype: dict(str, str) + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this SourceLabelPair. + + + :param tags: The tags of this SourceLabelPair. # noqa: E501 + :type: dict(str, str) + """ + + self._tags = tags def to_dict(self): """Returns the model properties as a dict""" @@ -195,6 +261,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SourceLabelPair, dict): + for key, value in self.items(): + result[key] = value return result @@ -211,8 +280,11 @@ def __eq__(self, other): if not isinstance(other, SourceLabelPair): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SourceLabelPair): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/source_search_request_container.py b/wavefront_api_client/models/source_search_request_container.py index 8fde9121..863da154 100644 --- a/wavefront_api_client/models/source_search_request_container.py +++ b/wavefront_api_client/models/source_search_request_container.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.search_query import SearchQuery # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class SourceSearchRequestContainer(object): @@ -34,6 +34,7 @@ class SourceSearchRequestContainer(object): """ swagger_types = { 'cursor': 'str', + 'include_obsolete': 'bool', 'limit': 'int', 'query': 'list[SearchQuery]', 'sort_sources_ascending': 'bool' @@ -41,15 +42,20 @@ class SourceSearchRequestContainer(object): attribute_map = { 'cursor': 'cursor', + 'include_obsolete': 'includeObsolete', 'limit': 'limit', 'query': 'query', 'sort_sources_ascending': 'sortSourcesAscending' } - def __init__(self, cursor=None, limit=None, query=None, sort_sources_ascending=None): # noqa: E501 + def __init__(self, cursor=None, include_obsolete=None, limit=None, query=None, sort_sources_ascending=None, _configuration=None): # noqa: E501 """SourceSearchRequestContainer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._cursor = None + self._include_obsolete = None self._limit = None self._query = None self._sort_sources_ascending = None @@ -57,6 +63,8 @@ def __init__(self, cursor=None, limit=None, query=None, sort_sources_ascending=N if cursor is not None: self.cursor = cursor + if include_obsolete is not None: + self.include_obsolete = include_obsolete if limit is not None: self.limit = limit if query is not None: @@ -87,10 +95,34 @@ def cursor(self, cursor): self._cursor = cursor + @property + def include_obsolete(self): + """Gets the include_obsolete of this SourceSearchRequestContainer. # noqa: E501 + + Whether to fetch obsolete sources. Default: false # noqa: E501 + + :return: The include_obsolete of this SourceSearchRequestContainer. # noqa: E501 + :rtype: bool + """ + return self._include_obsolete + + @include_obsolete.setter + def include_obsolete(self, include_obsolete): + """Sets the include_obsolete of this SourceSearchRequestContainer. + + Whether to fetch obsolete sources. Default: false # noqa: E501 + + :param include_obsolete: The include_obsolete of this SourceSearchRequestContainer. # noqa: E501 + :type: bool + """ + + self._include_obsolete = include_obsolete + @property def limit(self): """Gets the limit of this SourceSearchRequestContainer. # noqa: E501 + The number of results to return. Default: 100 # noqa: E501 :return: The limit of this SourceSearchRequestContainer. # noqa: E501 :rtype: int @@ -101,6 +133,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this SourceSearchRequestContainer. + The number of results to return. Default: 100 # noqa: E501 :param limit: The limit of this SourceSearchRequestContainer. # noqa: E501 :type: int @@ -175,6 +208,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SourceSearchRequestContainer, dict): + for key, value in self.items(): + result[key] = value return result @@ -191,8 +227,11 @@ def __eq__(self, other): if not isinstance(other, SourceSearchRequestContainer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SourceSearchRequestContainer): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/span.py b/wavefront_api_client/models/span.py new file mode 100644 index 00000000..3dd720b1 --- /dev/null +++ b/wavefront_api_client/models/span.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Span(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 = { + 'annotations': 'list[dict(str, str)]', + 'duration_ms': 'int', + 'host': 'str', + 'name': 'str', + 'span_id': 'str', + 'start_ms': 'int', + 'trace_id': 'str' + } + + attribute_map = { + 'annotations': 'annotations', + 'duration_ms': 'durationMs', + 'host': 'host', + 'name': 'name', + 'span_id': 'spanId', + 'start_ms': 'startMs', + 'trace_id': 'traceId' + } + + def __init__(self, annotations=None, duration_ms=None, host=None, name=None, span_id=None, start_ms=None, trace_id=None, _configuration=None): # noqa: E501 + """Span - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._annotations = None + self._duration_ms = None + self._host = None + self._name = None + self._span_id = None + self._start_ms = None + self._trace_id = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if duration_ms is not None: + self.duration_ms = duration_ms + if host is not None: + self.host = host + if name is not None: + self.name = name + if span_id is not None: + self.span_id = span_id + if start_ms is not None: + self.start_ms = start_ms + if trace_id is not None: + self.trace_id = trace_id + + @property + def annotations(self): + """Gets the annotations of this Span. # noqa: E501 + + Annotations (key-value pairs) of this span # noqa: E501 + + :return: The annotations of this Span. # noqa: E501 + :rtype: list[dict(str, str)] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this Span. + + Annotations (key-value pairs) of this span # noqa: E501 + + :param annotations: The annotations of this Span. # noqa: E501 + :type: list[dict(str, str)] + """ + + self._annotations = annotations + + @property + def duration_ms(self): + """Gets the duration_ms of this Span. # noqa: E501 + + Span duration (in milliseconds) # noqa: E501 + + :return: The duration_ms of this Span. # noqa: E501 + :rtype: int + """ + return self._duration_ms + + @duration_ms.setter + def duration_ms(self, duration_ms): + """Sets the duration_ms of this Span. + + Span duration (in milliseconds) # noqa: E501 + + :param duration_ms: The duration_ms of this Span. # noqa: E501 + :type: int + """ + + self._duration_ms = duration_ms + + @property + def host(self): + """Gets the host of this Span. # noqa: E501 + + Source/Host of this span # noqa: E501 + + :return: The host of this Span. # noqa: E501 + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this Span. + + Source/Host of this span # noqa: E501 + + :param host: The host of this Span. # noqa: E501 + :type: str + """ + + self._host = host + + @property + def name(self): + """Gets the name of this Span. # noqa: E501 + + Span name # noqa: E501 + + :return: The name of this Span. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Span. + + Span name # noqa: E501 + + :param name: The name of this Span. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def span_id(self): + """Gets the span_id of this Span. # noqa: E501 + + Span ID # noqa: E501 + + :return: The span_id of this Span. # noqa: E501 + :rtype: str + """ + return self._span_id + + @span_id.setter + def span_id(self, span_id): + """Sets the span_id of this Span. + + Span ID # noqa: E501 + + :param span_id: The span_id of this Span. # noqa: E501 + :type: str + """ + + self._span_id = span_id + + @property + def start_ms(self): + """Gets the start_ms of this Span. # noqa: E501 + + Span start time (in milliseconds) # noqa: E501 + + :return: The start_ms of this Span. # noqa: E501 + :rtype: int + """ + return self._start_ms + + @start_ms.setter + def start_ms(self, start_ms): + """Sets the start_ms of this Span. + + Span start time (in milliseconds) # noqa: E501 + + :param start_ms: The start_ms of this Span. # noqa: E501 + :type: int + """ + + self._start_ms = start_ms + + @property + def trace_id(self): + """Gets the trace_id of this Span. # noqa: E501 + + Trace ID # noqa: E501 + + :return: The trace_id of this Span. # noqa: E501 + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this Span. + + Trace ID # noqa: E501 + + :param trace_id: The trace_id of this Span. # noqa: E501 + :type: str + """ + + self._trace_id = trace_id + + 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(Span, 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, Span): + 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, Span): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/span_sampling_policy.py b/wavefront_api_client/models/span_sampling_policy.py new file mode 100644 index 00000000..d2ce0132 --- /dev/null +++ b/wavefront_api_client/models/span_sampling_policy.py @@ -0,0 +1,408 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 SpanSamplingPolicy(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 = { + 'active': 'bool', + 'created_epoch_millis': 'int', + 'creator_id': 'str', + 'deleted': 'bool', + 'description': 'str', + 'expression': 'str', + 'id': 'str', + 'name': 'str', + 'sampling_percent': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str' + } + + attribute_map = { + 'active': 'active', + 'created_epoch_millis': 'createdEpochMillis', + 'creator_id': 'creatorId', + 'deleted': 'deleted', + 'description': 'description', + 'expression': 'expression', + 'id': 'id', + 'name': 'name', + 'sampling_percent': 'samplingPercent', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId' + } + + def __init__(self, active=None, created_epoch_millis=None, creator_id=None, deleted=None, description=None, expression=None, id=None, name=None, sampling_percent=None, updated_epoch_millis=None, updater_id=None, _configuration=None): # noqa: E501 + """SpanSamplingPolicy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._active = None + self._created_epoch_millis = None + self._creator_id = None + self._deleted = None + self._description = None + self._expression = None + self._id = None + self._name = None + self._sampling_percent = None + self._updated_epoch_millis = None + self._updater_id = None + self.discriminator = None + + if active is not None: + self.active = active + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted + if description is not None: + self.description = description + self.expression = expression + self.id = id + self.name = name + if sampling_percent is not None: + self.sampling_percent = sampling_percent + if updated_epoch_millis is not None: + self.updated_epoch_millis = updated_epoch_millis + if updater_id is not None: + self.updater_id = updater_id + + @property + def active(self): + """Gets the active of this SpanSamplingPolicy. # noqa: E501 + + Whether span sampling policy is active # noqa: E501 + + :return: The active of this SpanSamplingPolicy. # noqa: E501 + :rtype: bool + """ + return self._active + + @active.setter + def active(self, active): + """Sets the active of this SpanSamplingPolicy. + + Whether span sampling policy is active # noqa: E501 + + :param active: The active of this SpanSamplingPolicy. # noqa: E501 + :type: bool + """ + + self._active = active + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this SpanSamplingPolicy. # noqa: E501 + + Created time of the span sampling policy # noqa: E501 + + :return: The created_epoch_millis of this SpanSamplingPolicy. # 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 SpanSamplingPolicy. + + Created time of the span sampling policy # noqa: E501 + + :param created_epoch_millis: The created_epoch_millis of this SpanSamplingPolicy. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def creator_id(self): + """Gets the creator_id of this SpanSamplingPolicy. # noqa: E501 + + Creator user of the span sampling policy # noqa: E501 + + :return: The creator_id of this SpanSamplingPolicy. # noqa: E501 + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this SpanSamplingPolicy. + + Creator user of the span sampling policy # noqa: E501 + + :param creator_id: The creator_id of this SpanSamplingPolicy. # noqa: E501 + :type: str + """ + + self._creator_id = creator_id + + @property + def deleted(self): + """Gets the deleted of this SpanSamplingPolicy. # noqa: E501 + + Whether span sampling policy is soft-deleted, can be modified with delete/undelete api # noqa: E501 + + :return: The deleted of this SpanSamplingPolicy. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this SpanSamplingPolicy. + + Whether span sampling policy is soft-deleted, can be modified with delete/undelete api # noqa: E501 + + :param deleted: The deleted of this SpanSamplingPolicy. # noqa: E501 + :type: bool + """ + + self._deleted = deleted + + @property + def description(self): + """Gets the description of this SpanSamplingPolicy. # noqa: E501 + + Span sampling policy description # noqa: E501 + + :return: The description of this SpanSamplingPolicy. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this SpanSamplingPolicy. + + Span sampling policy description # noqa: E501 + + :param description: The description of this SpanSamplingPolicy. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def expression(self): + """Gets the expression of this SpanSamplingPolicy. # noqa: E501 + + Span sampling policy expression # noqa: E501 + + :return: The expression of this SpanSamplingPolicy. # noqa: E501 + :rtype: str + """ + return self._expression + + @expression.setter + def expression(self, expression): + """Sets the expression of this SpanSamplingPolicy. + + Span sampling policy expression # noqa: E501 + + :param expression: The expression of this SpanSamplingPolicy. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and expression is None: + raise ValueError("Invalid value for `expression`, must not be `None`") # noqa: E501 + + self._expression = expression + + @property + def id(self): + """Gets the id of this SpanSamplingPolicy. # noqa: E501 + + Unique identifier of the span sampling policy # noqa: E501 + + :return: The id of this SpanSamplingPolicy. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SpanSamplingPolicy. + + Unique identifier of the span sampling policy # noqa: E501 + + :param id: The id of this SpanSamplingPolicy. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this SpanSamplingPolicy. # noqa: E501 + + Span sampling policy name # noqa: E501 + + :return: The name of this SpanSamplingPolicy. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SpanSamplingPolicy. + + Span sampling policy name # noqa: E501 + + :param name: The name of this SpanSamplingPolicy. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def sampling_percent(self): + """Gets the sampling_percent of this SpanSamplingPolicy. # noqa: E501 + + Sampling percent of policy, 100 means keeping all the spans that matches the policy # noqa: E501 + + :return: The sampling_percent of this SpanSamplingPolicy. # noqa: E501 + :rtype: int + """ + return self._sampling_percent + + @sampling_percent.setter + def sampling_percent(self, sampling_percent): + """Sets the sampling_percent of this SpanSamplingPolicy. + + Sampling percent of policy, 100 means keeping all the spans that matches the policy # noqa: E501 + + :param sampling_percent: The sampling_percent of this SpanSamplingPolicy. # noqa: E501 + :type: int + """ + + self._sampling_percent = sampling_percent + + @property + def updated_epoch_millis(self): + """Gets the updated_epoch_millis of this SpanSamplingPolicy. # noqa: E501 + + Last updated time of the span sampling policy # noqa: E501 + + :return: The updated_epoch_millis of this SpanSamplingPolicy. # noqa: E501 + :rtype: int + """ + return self._updated_epoch_millis + + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): + """Sets the updated_epoch_millis of this SpanSamplingPolicy. + + Last updated time of the span sampling policy # noqa: E501 + + :param updated_epoch_millis: The updated_epoch_millis of this SpanSamplingPolicy. # noqa: E501 + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """Gets the updater_id of this SpanSamplingPolicy. # noqa: E501 + + Updater user of the span sampling policy # noqa: E501 + + :return: The updater_id of this SpanSamplingPolicy. # noqa: E501 + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this SpanSamplingPolicy. + + Updater user of the span sampling policy # noqa: E501 + + :param updater_id: The updater_id of this SpanSamplingPolicy. # noqa: E501 + :type: str + """ + + self._updater_id = updater_id + + 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(SpanSamplingPolicy, 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, SpanSamplingPolicy): + 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, SpanSamplingPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/specific_data.py b/wavefront_api_client/models/specific_data.py new file mode 100644 index 00000000..05ab3935 --- /dev/null +++ b/wavefront_api_client/models/specific_data.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 SpecificData(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 = { + 'class_loader': 'ClassLoader', + 'conversions': 'list[ConversionObject]', + 'fast_reader_builder': 'FastReaderBuilder', + 'fast_reader_enabled': 'bool' + } + + attribute_map = { + 'class_loader': 'classLoader', + 'conversions': 'conversions', + 'fast_reader_builder': 'fastReaderBuilder', + 'fast_reader_enabled': 'fastReaderEnabled' + } + + def __init__(self, class_loader=None, conversions=None, fast_reader_builder=None, fast_reader_enabled=None, _configuration=None): # noqa: E501 + """SpecificData - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._class_loader = None + self._conversions = None + self._fast_reader_builder = None + self._fast_reader_enabled = None + self.discriminator = None + + if class_loader is not None: + self.class_loader = class_loader + if conversions is not None: + self.conversions = conversions + if fast_reader_builder is not None: + self.fast_reader_builder = fast_reader_builder + if fast_reader_enabled is not None: + self.fast_reader_enabled = fast_reader_enabled + + @property + def class_loader(self): + """Gets the class_loader of this SpecificData. # noqa: E501 + + + :return: The class_loader of this SpecificData. # noqa: E501 + :rtype: ClassLoader + """ + return self._class_loader + + @class_loader.setter + def class_loader(self, class_loader): + """Sets the class_loader of this SpecificData. + + + :param class_loader: The class_loader of this SpecificData. # noqa: E501 + :type: ClassLoader + """ + + self._class_loader = class_loader + + @property + def conversions(self): + """Gets the conversions of this SpecificData. # noqa: E501 + + + :return: The conversions of this SpecificData. # noqa: E501 + :rtype: list[ConversionObject] + """ + return self._conversions + + @conversions.setter + def conversions(self, conversions): + """Sets the conversions of this SpecificData. + + + :param conversions: The conversions of this SpecificData. # noqa: E501 + :type: list[ConversionObject] + """ + + self._conversions = conversions + + @property + def fast_reader_builder(self): + """Gets the fast_reader_builder of this SpecificData. # noqa: E501 + + + :return: The fast_reader_builder of this SpecificData. # noqa: E501 + :rtype: FastReaderBuilder + """ + return self._fast_reader_builder + + @fast_reader_builder.setter + def fast_reader_builder(self, fast_reader_builder): + """Sets the fast_reader_builder of this SpecificData. + + + :param fast_reader_builder: The fast_reader_builder of this SpecificData. # noqa: E501 + :type: FastReaderBuilder + """ + + self._fast_reader_builder = fast_reader_builder + + @property + def fast_reader_enabled(self): + """Gets the fast_reader_enabled of this SpecificData. # noqa: E501 + + + :return: The fast_reader_enabled of this SpecificData. # noqa: E501 + :rtype: bool + """ + return self._fast_reader_enabled + + @fast_reader_enabled.setter + def fast_reader_enabled(self, fast_reader_enabled): + """Sets the fast_reader_enabled of this SpecificData. + + + :param fast_reader_enabled: The fast_reader_enabled of this SpecificData. # noqa: E501 + :type: bool + """ + + self._fast_reader_enabled = fast_reader_enabled + + 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(SpecificData, 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, SpecificData): + 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, SpecificData): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/stats_model.py b/wavefront_api_client/models/stats_model.py deleted file mode 100644 index 26bea62f..00000000 --- a/wavefront_api_client/models/stats_model.py +++ /dev/null @@ -1,476 +0,0 @@ -# coding: utf-8 - -""" - Wavefront Public API - -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 - - OpenAPI spec version: v2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class StatsModel(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 = { - 'keys': 'int', - 'points': 'int', - 'summaries': 'int', - 'queries': 'int', - 'buffer_keys': 'int', - 'compacted_keys': 'int', - 'skipped_compacted_keys': 'int', - 'compacted_points': 'int', - 'cached_compacted_keys': 'int', - 'latency': 'int', - 's3_keys': 'int', - 'cpu_ns': 'int', - 'metrics_used': 'int', - 'hosts_used': 'int', - 'query_tasks': 'int' - } - - attribute_map = { - 'keys': 'keys', - 'points': 'points', - 'summaries': 'summaries', - 'queries': 'queries', - 'buffer_keys': 'buffer_keys', - 'compacted_keys': 'compacted_keys', - 'skipped_compacted_keys': 'skipped_compacted_keys', - 'compacted_points': 'compacted_points', - 'cached_compacted_keys': 'cached_compacted_keys', - 'latency': 'latency', - 's3_keys': 's3_keys', - 'cpu_ns': 'cpu_ns', - 'metrics_used': 'metrics_used', - 'hosts_used': 'hosts_used', - 'query_tasks': 'query_tasks' - } - - def __init__(self, keys=None, points=None, summaries=None, queries=None, buffer_keys=None, compacted_keys=None, skipped_compacted_keys=None, compacted_points=None, cached_compacted_keys=None, latency=None, s3_keys=None, cpu_ns=None, metrics_used=None, hosts_used=None, query_tasks=None): # noqa: E501 - """StatsModel - a model defined in Swagger""" # noqa: E501 - - self._keys = None - self._points = None - self._summaries = None - self._queries = None - self._buffer_keys = None - self._compacted_keys = None - self._skipped_compacted_keys = None - self._compacted_points = None - self._cached_compacted_keys = None - self._latency = None - self._s3_keys = None - self._cpu_ns = None - self._metrics_used = None - self._hosts_used = None - self._query_tasks = None - self.discriminator = None - - if keys is not None: - self.keys = keys - if points is not None: - self.points = points - if summaries is not None: - self.summaries = summaries - if queries is not None: - self.queries = queries - if buffer_keys is not None: - self.buffer_keys = buffer_keys - if compacted_keys is not None: - self.compacted_keys = compacted_keys - if skipped_compacted_keys is not None: - self.skipped_compacted_keys = skipped_compacted_keys - if compacted_points is not None: - self.compacted_points = compacted_points - if cached_compacted_keys is not None: - self.cached_compacted_keys = cached_compacted_keys - if latency is not None: - self.latency = latency - if s3_keys is not None: - self.s3_keys = s3_keys - if cpu_ns is not None: - self.cpu_ns = cpu_ns - if metrics_used is not None: - self.metrics_used = metrics_used - if hosts_used is not None: - self.hosts_used = hosts_used - if query_tasks is not None: - self.query_tasks = query_tasks - - @property - def keys(self): - """Gets the keys of this StatsModel. # noqa: E501 - - - :return: The keys of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._keys - - @keys.setter - def keys(self, keys): - """Sets the keys of this StatsModel. - - - :param keys: The keys of this StatsModel. # noqa: E501 - :type: int - """ - - self._keys = keys - - @property - def points(self): - """Gets the points of this StatsModel. # noqa: E501 - - - :return: The points of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._points - - @points.setter - def points(self, points): - """Sets the points of this StatsModel. - - - :param points: The points of this StatsModel. # noqa: E501 - :type: int - """ - - self._points = points - - @property - def summaries(self): - """Gets the summaries of this StatsModel. # noqa: E501 - - - :return: The summaries of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._summaries - - @summaries.setter - def summaries(self, summaries): - """Sets the summaries of this StatsModel. - - - :param summaries: The summaries of this StatsModel. # noqa: E501 - :type: int - """ - - self._summaries = summaries - - @property - def queries(self): - """Gets the queries of this StatsModel. # noqa: E501 - - - :return: The queries of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._queries - - @queries.setter - def queries(self, queries): - """Sets the queries of this StatsModel. - - - :param queries: The queries of this StatsModel. # noqa: E501 - :type: int - """ - - self._queries = queries - - @property - def buffer_keys(self): - """Gets the buffer_keys of this StatsModel. # noqa: E501 - - - :return: The buffer_keys of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._buffer_keys - - @buffer_keys.setter - def buffer_keys(self, buffer_keys): - """Sets the buffer_keys of this StatsModel. - - - :param buffer_keys: The buffer_keys of this StatsModel. # noqa: E501 - :type: int - """ - - self._buffer_keys = buffer_keys - - @property - def compacted_keys(self): - """Gets the compacted_keys of this StatsModel. # noqa: E501 - - - :return: The compacted_keys of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._compacted_keys - - @compacted_keys.setter - def compacted_keys(self, compacted_keys): - """Sets the compacted_keys of this StatsModel. - - - :param compacted_keys: The compacted_keys of this StatsModel. # noqa: E501 - :type: int - """ - - self._compacted_keys = compacted_keys - - @property - def skipped_compacted_keys(self): - """Gets the skipped_compacted_keys of this StatsModel. # noqa: E501 - - - :return: The skipped_compacted_keys of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._skipped_compacted_keys - - @skipped_compacted_keys.setter - def skipped_compacted_keys(self, skipped_compacted_keys): - """Sets the skipped_compacted_keys of this StatsModel. - - - :param skipped_compacted_keys: The skipped_compacted_keys of this StatsModel. # noqa: E501 - :type: int - """ - - self._skipped_compacted_keys = skipped_compacted_keys - - @property - def compacted_points(self): - """Gets the compacted_points of this StatsModel. # noqa: E501 - - - :return: The compacted_points of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._compacted_points - - @compacted_points.setter - def compacted_points(self, compacted_points): - """Sets the compacted_points of this StatsModel. - - - :param compacted_points: The compacted_points of this StatsModel. # noqa: E501 - :type: int - """ - - self._compacted_points = compacted_points - - @property - def cached_compacted_keys(self): - """Gets the cached_compacted_keys of this StatsModel. # noqa: E501 - - - :return: The cached_compacted_keys of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._cached_compacted_keys - - @cached_compacted_keys.setter - def cached_compacted_keys(self, cached_compacted_keys): - """Sets the cached_compacted_keys of this StatsModel. - - - :param cached_compacted_keys: The cached_compacted_keys of this StatsModel. # noqa: E501 - :type: int - """ - - self._cached_compacted_keys = cached_compacted_keys - - @property - def latency(self): - """Gets the latency of this StatsModel. # noqa: E501 - - - :return: The latency of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._latency - - @latency.setter - def latency(self, latency): - """Sets the latency of this StatsModel. - - - :param latency: The latency of this StatsModel. # noqa: E501 - :type: int - """ - - self._latency = latency - - @property - def s3_keys(self): - """Gets the s3_keys of this StatsModel. # noqa: E501 - - - :return: The s3_keys of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._s3_keys - - @s3_keys.setter - def s3_keys(self, s3_keys): - """Sets the s3_keys of this StatsModel. - - - :param s3_keys: The s3_keys of this StatsModel. # noqa: E501 - :type: int - """ - - self._s3_keys = s3_keys - - @property - def cpu_ns(self): - """Gets the cpu_ns of this StatsModel. # noqa: E501 - - - :return: The cpu_ns of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._cpu_ns - - @cpu_ns.setter - def cpu_ns(self, cpu_ns): - """Sets the cpu_ns of this StatsModel. - - - :param cpu_ns: The cpu_ns of this StatsModel. # noqa: E501 - :type: int - """ - - self._cpu_ns = cpu_ns - - @property - def metrics_used(self): - """Gets the metrics_used of this StatsModel. # noqa: E501 - - - :return: The metrics_used of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._metrics_used - - @metrics_used.setter - def metrics_used(self, metrics_used): - """Sets the metrics_used of this StatsModel. - - - :param metrics_used: The metrics_used of this StatsModel. # noqa: E501 - :type: int - """ - - self._metrics_used = metrics_used - - @property - def hosts_used(self): - """Gets the hosts_used of this StatsModel. # noqa: E501 - - - :return: The hosts_used of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._hosts_used - - @hosts_used.setter - def hosts_used(self, hosts_used): - """Sets the hosts_used of this StatsModel. - - - :param hosts_used: The hosts_used of this StatsModel. # noqa: E501 - :type: int - """ - - self._hosts_used = hosts_used - - @property - def query_tasks(self): - """Gets the query_tasks of this StatsModel. # noqa: E501 - - - :return: The query_tasks of this StatsModel. # noqa: E501 - :rtype: int - """ - return self._query_tasks - - @query_tasks.setter - def query_tasks(self, query_tasks): - """Sets the query_tasks of this StatsModel. - - - :param query_tasks: The query_tasks of this StatsModel. # noqa: E501 - :type: int - """ - - self._query_tasks = query_tasks - - 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 - - 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, StatsModel): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/wavefront_api_client/models/stats_model_internal_use.py b/wavefront_api_client/models/stats_model_internal_use.py new file mode 100644 index 00000000..4e5ab59c --- /dev/null +++ b/wavefront_api_client/models/stats_model_internal_use.py @@ -0,0 +1,591 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 StatsModelInternalUse(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 = { + 'buffer_keys': 'int', + 'cached_compacted_points': 'int', + 'compacted_keys': 'int', + 'compacted_points': 'int', + 'cpu_ns': 'int', + 'distributions': 'int', + 'edges': 'int', + 'hosts_used': 'int', + 'keys': 'int', + 'latency': 'int', + 'metrics': 'int', + 'metrics_used': 'int', + 'points': 'int', + 'queries': 'int', + 'query_tasks': 'int', + 's3_keys': 'int', + 'skipped_compacted_keys': 'int', + 'spans': 'int', + 'summaries': 'int' + } + + attribute_map = { + 'buffer_keys': 'buffer_keys', + 'cached_compacted_points': 'cached_compacted_points', + 'compacted_keys': 'compacted_keys', + 'compacted_points': 'compacted_points', + 'cpu_ns': 'cpu_ns', + 'distributions': 'distributions', + 'edges': 'edges', + 'hosts_used': 'hosts_used', + 'keys': 'keys', + 'latency': 'latency', + 'metrics': 'metrics', + 'metrics_used': 'metrics_used', + 'points': 'points', + 'queries': 'queries', + 'query_tasks': 'query_tasks', + 's3_keys': 's3_keys', + 'skipped_compacted_keys': 'skipped_compacted_keys', + 'spans': 'spans', + 'summaries': 'summaries' + } + + def __init__(self, buffer_keys=None, cached_compacted_points=None, compacted_keys=None, compacted_points=None, cpu_ns=None, distributions=None, edges=None, hosts_used=None, keys=None, latency=None, metrics=None, metrics_used=None, points=None, queries=None, query_tasks=None, s3_keys=None, skipped_compacted_keys=None, spans=None, summaries=None, _configuration=None): # noqa: E501 + """StatsModelInternalUse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._buffer_keys = None + self._cached_compacted_points = None + self._compacted_keys = None + self._compacted_points = None + self._cpu_ns = None + self._distributions = None + self._edges = None + self._hosts_used = None + self._keys = None + self._latency = None + self._metrics = None + self._metrics_used = None + self._points = None + self._queries = None + self._query_tasks = None + self._s3_keys = None + self._skipped_compacted_keys = None + self._spans = None + self._summaries = None + self.discriminator = None + + if buffer_keys is not None: + self.buffer_keys = buffer_keys + if cached_compacted_points is not None: + self.cached_compacted_points = cached_compacted_points + if compacted_keys is not None: + self.compacted_keys = compacted_keys + if compacted_points is not None: + self.compacted_points = compacted_points + if cpu_ns is not None: + self.cpu_ns = cpu_ns + if distributions is not None: + self.distributions = distributions + if edges is not None: + self.edges = edges + if hosts_used is not None: + self.hosts_used = hosts_used + if keys is not None: + self.keys = keys + if latency is not None: + self.latency = latency + if metrics is not None: + self.metrics = metrics + if metrics_used is not None: + self.metrics_used = metrics_used + if points is not None: + self.points = points + if queries is not None: + self.queries = queries + if query_tasks is not None: + self.query_tasks = query_tasks + if s3_keys is not None: + self.s3_keys = s3_keys + if skipped_compacted_keys is not None: + self.skipped_compacted_keys = skipped_compacted_keys + if spans is not None: + self.spans = spans + if summaries is not None: + self.summaries = summaries + + @property + def buffer_keys(self): + """Gets the buffer_keys of this StatsModelInternalUse. # noqa: E501 + + + :return: The buffer_keys of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._buffer_keys + + @buffer_keys.setter + def buffer_keys(self, buffer_keys): + """Sets the buffer_keys of this StatsModelInternalUse. + + + :param buffer_keys: The buffer_keys of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._buffer_keys = buffer_keys + + @property + def cached_compacted_points(self): + """Gets the cached_compacted_points of this StatsModelInternalUse. # noqa: E501 + + + :return: The cached_compacted_points of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._cached_compacted_points + + @cached_compacted_points.setter + def cached_compacted_points(self, cached_compacted_points): + """Sets the cached_compacted_points of this StatsModelInternalUse. + + + :param cached_compacted_points: The cached_compacted_points of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._cached_compacted_points = cached_compacted_points + + @property + def compacted_keys(self): + """Gets the compacted_keys of this StatsModelInternalUse. # noqa: E501 + + + :return: The compacted_keys of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._compacted_keys + + @compacted_keys.setter + def compacted_keys(self, compacted_keys): + """Sets the compacted_keys of this StatsModelInternalUse. + + + :param compacted_keys: The compacted_keys of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._compacted_keys = compacted_keys + + @property + def compacted_points(self): + """Gets the compacted_points of this StatsModelInternalUse. # noqa: E501 + + + :return: The compacted_points of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._compacted_points + + @compacted_points.setter + def compacted_points(self, compacted_points): + """Sets the compacted_points of this StatsModelInternalUse. + + + :param compacted_points: The compacted_points of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._compacted_points = compacted_points + + @property + def cpu_ns(self): + """Gets the cpu_ns of this StatsModelInternalUse. # noqa: E501 + + + :return: The cpu_ns of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._cpu_ns + + @cpu_ns.setter + def cpu_ns(self, cpu_ns): + """Sets the cpu_ns of this StatsModelInternalUse. + + + :param cpu_ns: The cpu_ns of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._cpu_ns = cpu_ns + + @property + def distributions(self): + """Gets the distributions of this StatsModelInternalUse. # noqa: E501 + + + :return: The distributions of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._distributions + + @distributions.setter + def distributions(self, distributions): + """Sets the distributions of this StatsModelInternalUse. + + + :param distributions: The distributions of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._distributions = distributions + + @property + def edges(self): + """Gets the edges of this StatsModelInternalUse. # noqa: E501 + + + :return: The edges of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._edges + + @edges.setter + def edges(self, edges): + """Sets the edges of this StatsModelInternalUse. + + + :param edges: The edges of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._edges = edges + + @property + def hosts_used(self): + """Gets the hosts_used of this StatsModelInternalUse. # noqa: E501 + + + :return: The hosts_used of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._hosts_used + + @hosts_used.setter + def hosts_used(self, hosts_used): + """Sets the hosts_used of this StatsModelInternalUse. + + + :param hosts_used: The hosts_used of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._hosts_used = hosts_used + + @property + def keys(self): + """Gets the keys of this StatsModelInternalUse. # noqa: E501 + + + :return: The keys of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._keys + + @keys.setter + def keys(self, keys): + """Sets the keys of this StatsModelInternalUse. + + + :param keys: The keys of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._keys = keys + + @property + def latency(self): + """Gets the latency of this StatsModelInternalUse. # noqa: E501 + + + :return: The latency of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._latency + + @latency.setter + def latency(self, latency): + """Sets the latency of this StatsModelInternalUse. + + + :param latency: The latency of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._latency = latency + + @property + def metrics(self): + """Gets the metrics of this StatsModelInternalUse. # noqa: E501 + + + :return: The metrics of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._metrics + + @metrics.setter + def metrics(self, metrics): + """Sets the metrics of this StatsModelInternalUse. + + + :param metrics: The metrics of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._metrics = metrics + + @property + def metrics_used(self): + """Gets the metrics_used of this StatsModelInternalUse. # noqa: E501 + + + :return: The metrics_used of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._metrics_used + + @metrics_used.setter + def metrics_used(self, metrics_used): + """Sets the metrics_used of this StatsModelInternalUse. + + + :param metrics_used: The metrics_used of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._metrics_used = metrics_used + + @property + def points(self): + """Gets the points of this StatsModelInternalUse. # noqa: E501 + + + :return: The points of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._points + + @points.setter + def points(self, points): + """Sets the points of this StatsModelInternalUse. + + + :param points: The points of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._points = points + + @property + def queries(self): + """Gets the queries of this StatsModelInternalUse. # noqa: E501 + + + :return: The queries of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._queries + + @queries.setter + def queries(self, queries): + """Sets the queries of this StatsModelInternalUse. + + + :param queries: The queries of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._queries = queries + + @property + def query_tasks(self): + """Gets the query_tasks of this StatsModelInternalUse. # noqa: E501 + + + :return: The query_tasks of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._query_tasks + + @query_tasks.setter + def query_tasks(self, query_tasks): + """Sets the query_tasks of this StatsModelInternalUse. + + + :param query_tasks: The query_tasks of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._query_tasks = query_tasks + + @property + def s3_keys(self): + """Gets the s3_keys of this StatsModelInternalUse. # noqa: E501 + + + :return: The s3_keys of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._s3_keys + + @s3_keys.setter + def s3_keys(self, s3_keys): + """Sets the s3_keys of this StatsModelInternalUse. + + + :param s3_keys: The s3_keys of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._s3_keys = s3_keys + + @property + def skipped_compacted_keys(self): + """Gets the skipped_compacted_keys of this StatsModelInternalUse. # noqa: E501 + + + :return: The skipped_compacted_keys of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._skipped_compacted_keys + + @skipped_compacted_keys.setter + def skipped_compacted_keys(self, skipped_compacted_keys): + """Sets the skipped_compacted_keys of this StatsModelInternalUse. + + + :param skipped_compacted_keys: The skipped_compacted_keys of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._skipped_compacted_keys = skipped_compacted_keys + + @property + def spans(self): + """Gets the spans of this StatsModelInternalUse. # noqa: E501 + + + :return: The spans of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._spans + + @spans.setter + def spans(self, spans): + """Sets the spans of this StatsModelInternalUse. + + + :param spans: The spans of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._spans = spans + + @property + def summaries(self): + """Gets the summaries of this StatsModelInternalUse. # noqa: E501 + + + :return: The summaries of this StatsModelInternalUse. # noqa: E501 + :rtype: int + """ + return self._summaries + + @summaries.setter + def summaries(self, summaries): + """Sets the summaries of this StatsModelInternalUse. + + + :param summaries: The summaries of this StatsModelInternalUse. # noqa: E501 + :type: int + """ + + self._summaries = summaries + + 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(StatsModelInternalUse, 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, StatsModelInternalUse): + 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, StatsModelInternalUse): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/stripe.py b/wavefront_api_client/models/stripe.py new file mode 100644 index 00000000..4b8242cb --- /dev/null +++ b/wavefront_api_client/models/stripe.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Stripe(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 = { + 'end_ms': 'int', + 'image_link': 'str', + 'model': 'str', + 'start_ms': 'int' + } + + attribute_map = { + 'end_ms': 'endMs', + 'image_link': 'imageLink', + 'model': 'model', + 'start_ms': 'startMs' + } + + def __init__(self, end_ms=None, image_link=None, model=None, start_ms=None, _configuration=None): # noqa: E501 + """Stripe - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._end_ms = None + self._image_link = None + self._model = None + self._start_ms = None + self.discriminator = None + + self.end_ms = end_ms + self.image_link = image_link + self.model = model + self.start_ms = start_ms + + @property + def end_ms(self): + """Gets the end_ms of this Stripe. # noqa: E501 + + endMs for this stripe # noqa: E501 + + :return: The end_ms of this Stripe. # noqa: E501 + :rtype: int + """ + return self._end_ms + + @end_ms.setter + def end_ms(self, end_ms): + """Sets the end_ms of this Stripe. + + endMs for this stripe # noqa: E501 + + :param end_ms: The end_ms of this Stripe. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and end_ms is None: + raise ValueError("Invalid value for `end_ms`, must not be `None`") # noqa: E501 + + self._end_ms = end_ms + + @property + def image_link(self): + """Gets the image_link of this Stripe. # noqa: E501 + + image link for this stripe # noqa: E501 + + :return: The image_link of this Stripe. # noqa: E501 + :rtype: str + """ + return self._image_link + + @image_link.setter + def image_link(self, image_link): + """Sets the image_link of this Stripe. + + image link for this stripe # noqa: E501 + + :param image_link: The image_link of this Stripe. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and image_link is None: + raise ValueError("Invalid value for `image_link`, must not be `None`") # noqa: E501 + + self._image_link = image_link + + @property + def model(self): + """Gets the model of this Stripe. # noqa: E501 + + model for this stripe # noqa: E501 + + :return: The model of this Stripe. # noqa: E501 + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """Sets the model of this Stripe. + + model for this stripe # noqa: E501 + + :param model: The model of this Stripe. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and model is None: + raise ValueError("Invalid value for `model`, must not be `None`") # noqa: E501 + + self._model = model + + @property + def start_ms(self): + """Gets the start_ms of this Stripe. # noqa: E501 + + startMs for this stripe # noqa: E501 + + :return: The start_ms of this Stripe. # noqa: E501 + :rtype: int + """ + return self._start_ms + + @start_ms.setter + def start_ms(self, start_ms): + """Sets the start_ms of this Stripe. + + startMs for this stripe # noqa: E501 + + :param start_ms: The start_ms of this Stripe. # noqa: E501 + :type: int + """ + if self._configuration.client_side_validation and start_ms is None: + raise ValueError("Invalid value for `start_ms`, must not be `None`") # noqa: E501 + + self._start_ms = start_ms + + 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(Stripe, 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, Stripe): + 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, Stripe): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/tags_response.py b/wavefront_api_client/models/tags_response.py index 13359d9a..f108eb47 100644 --- a/wavefront_api_client/models/tags_response.py +++ b/wavefront_api_client/models/tags_response.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import six -from wavefront_api_client.models.sorting import Sorting # noqa: F401,E501 +from wavefront_api_client.configuration import Configuration class TagsResponse(object): @@ -33,51 +33,77 @@ class TagsResponse(object): and the value is json key in definition. """ swagger_types = { + 'cursor': 'str', 'items': 'list[str]', - 'offset': 'int', 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', 'more_items': 'bool', - 'sort': 'Sorting' + 'offset': 'int', + 'sort': 'Sorting', + 'total_items': 'int' } attribute_map = { + 'cursor': 'cursor', 'items': 'items', - 'offset': 'offset', 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', 'more_items': 'moreItems', - 'sort': 'sort' + 'offset': 'offset', + 'sort': 'sort', + 'total_items': 'totalItems' } - def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): # noqa: E501 + def __init__(self, cursor=None, items=None, limit=None, more_items=None, offset=None, sort=None, total_items=None, _configuration=None): # noqa: E501 """TagsResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._cursor = None self._items = None - self._offset = None self._limit = None - self._cursor = None - self._total_items = 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 offset is not None: - self.offset = offset if limit is not None: self.limit = limit - if cursor is not None: - self.cursor = cursor - if total_items is not None: - self.total_items = total_items 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 TagsResponse. # 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 TagsResponse. # noqa: E501 + :rtype: str + """ + return self._cursor + + @cursor.setter + def cursor(self, cursor): + """Sets the cursor of this TagsResponse. + + The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 + + :param cursor: The cursor of this TagsResponse. # noqa: E501 + :type: str + """ + + self._cursor = cursor @property def items(self): @@ -102,27 +128,6 @@ def items(self, items): self._items = items - @property - def offset(self): - """Gets the offset of this TagsResponse. # noqa: E501 - - - :return: The offset of this TagsResponse. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this TagsResponse. - - - :param offset: The offset of this TagsResponse. # noqa: E501 - :type: int - """ - - self._offset = offset - @property def limit(self): """Gets the limit of this TagsResponse. # noqa: E501 @@ -144,52 +149,6 @@ def limit(self, limit): self._limit = limit - @property - def cursor(self): - """Gets the cursor of this TagsResponse. # 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 TagsResponse. # noqa: E501 - :rtype: str - """ - return self._cursor - - @cursor.setter - def cursor(self, cursor): - """Sets the cursor of this TagsResponse. - - The id at which the current (limited) search can be continued to obtain more matching items # noqa: E501 - - :param cursor: The cursor of this TagsResponse. # noqa: E501 - :type: str - """ - - self._cursor = cursor - - @property - def total_items(self): - """Gets the total_items of this TagsResponse. # 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 TagsResponse. # noqa: E501 - :rtype: int - """ - return self._total_items - - @total_items.setter - def total_items(self, total_items): - """Sets the total_items of this TagsResponse. - - 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 TagsResponse. # noqa: E501 - :type: int - """ - - self._total_items = total_items - @property def more_items(self): """Gets the more_items of this TagsResponse. # noqa: E501 @@ -213,6 +172,27 @@ def more_items(self, more_items): self._more_items = more_items + @property + def offset(self): + """Gets the offset of this TagsResponse. # noqa: E501 + + + :return: The offset of this TagsResponse. # noqa: E501 + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this TagsResponse. + + + :param offset: The offset of this TagsResponse. # noqa: E501 + :type: int + """ + + self._offset = offset + @property def sort(self): """Gets the sort of this TagsResponse. # noqa: E501 @@ -234,6 +214,29 @@ def sort(self, sort): self._sort = sort + @property + def total_items(self): + """Gets the total_items of this TagsResponse. # 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 TagsResponse. # noqa: E501 + :rtype: int + """ + return self._total_items + + @total_items.setter + def total_items(self, total_items): + """Sets the total_items of this TagsResponse. + + 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 TagsResponse. # noqa: E501 + :type: int + """ + + self._total_items = total_items + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -255,6 +258,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(TagsResponse, dict): + for key, value in self.items(): + result[key] = value return result @@ -271,8 +277,11 @@ def __eq__(self, other): if not isinstance(other, TagsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TagsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/target_info.py b/wavefront_api_client/models/target_info.py index 57d1b6c0..63a0a3a4 100644 --- a/wavefront_api_client/models/target_info.py +++ b/wavefront_api_client/models/target_info.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class TargetInfo(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,32 +33,58 @@ class TargetInfo(object): and the value is json key in definition. """ swagger_types = { - 'method': 'str', 'id': 'str', + 'method': 'str', 'name': 'str' } attribute_map = { - 'method': 'method', 'id': 'id', + 'method': 'method', 'name': 'name' } - def __init__(self, method=None, id=None, name=None): # noqa: E501 + def __init__(self, id=None, method=None, name=None, _configuration=None): # noqa: E501 """TargetInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._method = None self._id = None + self._method = None self._name = None self.discriminator = None - if method is not None: - self.method = method if id is not None: self.id = id + if method is not None: + self.method = method if name is not None: self.name = name + @property + def id(self): + """Gets the id of this TargetInfo. # noqa: E501 + + ID of the alert target # noqa: E501 + + :return: The id of this TargetInfo. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this TargetInfo. + + ID of the alert target # noqa: E501 + + :param id: The id of this TargetInfo. # noqa: E501 + :type: str + """ + + self._id = id + @property def method(self): """Gets the method of this TargetInfo. # noqa: E501 @@ -78,7 +106,8 @@ def method(self, method): :type: str """ allowed_values = ["EMAIL", "PAGERDUTY", "WEBHOOK"] # noqa: E501 - if method not in allowed_values: + if (self._configuration.client_side_validation and + method not in allowed_values): raise ValueError( "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 .format(method, allowed_values) @@ -86,29 +115,6 @@ def method(self, method): self._method = method - @property - def id(self): - """Gets the id of this TargetInfo. # noqa: E501 - - ID of the alert target # noqa: E501 - - :return: The id of this TargetInfo. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TargetInfo. - - ID of the alert target # noqa: E501 - - :param id: The id of this TargetInfo. # noqa: E501 - :type: str - """ - - self._id = id - @property def name(self): """Gets the name of this TargetInfo. # noqa: E501 @@ -153,6 +159,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(TargetInfo, dict): + for key, value in self.items(): + result[key] = value return result @@ -169,8 +178,11 @@ def __eq__(self, other): if not isinstance(other, TargetInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TargetInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/timeseries.py b/wavefront_api_client/models/timeseries.py index 987fe9f6..b67b2139 100644 --- a/wavefront_api_client/models/timeseries.py +++ b/wavefront_api_client/models/timeseries.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class Timeseries(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,59 +33,62 @@ class Timeseries(object): and the value is json key in definition. """ swagger_types = { - 'label': 'str', + 'data': 'list[list[float]]', 'host': 'str', - 'tags': 'dict(str, str)', - 'data': 'list[list[float]]' + 'label': 'str', + 'tags': 'dict(str, str)' } attribute_map = { - 'label': 'label', + 'data': 'data', 'host': 'host', - 'tags': 'tags', - 'data': 'data' + 'label': 'label', + 'tags': 'tags' } - def __init__(self, label=None, host=None, tags=None, data=None): # noqa: E501 + def __init__(self, data=None, host=None, label=None, tags=None, _configuration=None): # noqa: E501 """Timeseries - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._label = None + self._data = None self._host = None + self._label = None self._tags = None - self._data = None self.discriminator = None - if label is not None: - self.label = label + if data is not None: + self.data = data if host is not None: self.host = host + if label is not None: + self.label = label if tags is not None: self.tags = tags - if data is not None: - self.data = data @property - def label(self): - """Gets the label of this Timeseries. # noqa: E501 + def data(self): + """Gets the data of this Timeseries. # noqa: E501 - Label of this timeseries # noqa: E501 + Data returned by this time series. This is returned as a list of points, where each point is represented as a two-element list with 1st element being the timestamp in epoch SECONDS and the 2nd element being the numeric value of the series at the timestamp # noqa: E501 - :return: The label of this Timeseries. # noqa: E501 - :rtype: str + :return: The data of this Timeseries. # noqa: E501 + :rtype: list[list[float]] """ - return self._label + return self._data - @label.setter - def label(self, label): - """Sets the label of this Timeseries. + @data.setter + def data(self, data): + """Sets the data of this Timeseries. - Label of this timeseries # noqa: E501 + Data returned by this time series. This is returned as a list of points, where each point is represented as a two-element list with 1st element being the timestamp in epoch SECONDS and the 2nd element being the numeric value of the series at the timestamp # noqa: E501 - :param label: The label of this Timeseries. # noqa: E501 - :type: str + :param data: The data of this Timeseries. # noqa: E501 + :type: list[list[float]] """ - self._label = label + self._data = data @property def host(self): @@ -108,6 +113,29 @@ def host(self, host): self._host = host + @property + def label(self): + """Gets the label of this Timeseries. # noqa: E501 + + Label of this timeseries # noqa: E501 + + :return: The label of this Timeseries. # noqa: E501 + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """Sets the label of this Timeseries. + + Label of this timeseries # noqa: E501 + + :param label: The label of this Timeseries. # noqa: E501 + :type: str + """ + + self._label = label + @property def tags(self): """Gets the tags of this Timeseries. # noqa: E501 @@ -131,29 +159,6 @@ def tags(self, tags): self._tags = tags - @property - def data(self): - """Gets the data of this Timeseries. # noqa: E501 - - Data returned by this time series. This is returned as a list of points, where each point is represented as a two-element list with 1st element being the timestamp in epoch SECONDS and the 2nd element being the numeric value of the series at the timestamp # noqa: E501 - - :return: The data of this Timeseries. # noqa: E501 - :rtype: list[list[float]] - """ - return self._data - - @data.setter - def data(self, data): - """Sets the data of this Timeseries. - - Data returned by this time series. This is returned as a list of points, where each point is represented as a two-element list with 1st element being the timestamp in epoch SECONDS and the 2nd element being the numeric value of the series at the timestamp # noqa: E501 - - :param data: The data of this Timeseries. # noqa: E501 - :type: list[list[float]] - """ - - self._data = data - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -175,6 +180,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Timeseries, dict): + for key, value in self.items(): + result[key] = value return result @@ -191,8 +199,11 @@ def __eq__(self, other): if not isinstance(other, Timeseries): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Timeseries): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/trace.py b/wavefront_api_client/models/trace.py new file mode 100644 index 00000000..ddec411b --- /dev/null +++ b/wavefront_api_client/models/trace.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Trace(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 = { + 'end_ms': 'int', + 'spans': 'list[Span]', + 'start_ms': 'int', + 'total_duration_ms': 'int', + 'trace_id': 'str' + } + + attribute_map = { + 'end_ms': 'end_ms', + 'spans': 'spans', + 'start_ms': 'start_ms', + 'total_duration_ms': 'total_duration_ms', + 'trace_id': 'traceId' + } + + def __init__(self, end_ms=None, spans=None, start_ms=None, total_duration_ms=None, trace_id=None, _configuration=None): # noqa: E501 + """Trace - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._end_ms = None + self._spans = None + self._start_ms = None + self._total_duration_ms = None + self._trace_id = None + self.discriminator = None + + if end_ms is not None: + self.end_ms = end_ms + if spans is not None: + self.spans = spans + if start_ms is not None: + self.start_ms = start_ms + if total_duration_ms is not None: + self.total_duration_ms = total_duration_ms + if trace_id is not None: + self.trace_id = trace_id + + @property + def end_ms(self): + """Gets the end_ms of this Trace. # noqa: E501 + + Trace end time (in milliseconds) # noqa: E501 + + :return: The end_ms of this Trace. # noqa: E501 + :rtype: int + """ + return self._end_ms + + @end_ms.setter + def end_ms(self, end_ms): + """Sets the end_ms of this Trace. + + Trace end time (in milliseconds) # noqa: E501 + + :param end_ms: The end_ms of this Trace. # noqa: E501 + :type: int + """ + + self._end_ms = end_ms + + @property + def spans(self): + """Gets the spans of this Trace. # noqa: E501 + + Spans associated with this trace # noqa: E501 + + :return: The spans of this Trace. # noqa: E501 + :rtype: list[Span] + """ + return self._spans + + @spans.setter + def spans(self, spans): + """Sets the spans of this Trace. + + Spans associated with this trace # noqa: E501 + + :param spans: The spans of this Trace. # noqa: E501 + :type: list[Span] + """ + + self._spans = spans + + @property + def start_ms(self): + """Gets the start_ms of this Trace. # noqa: E501 + + Trace start time (in milliseconds) # noqa: E501 + + :return: The start_ms of this Trace. # noqa: E501 + :rtype: int + """ + return self._start_ms + + @start_ms.setter + def start_ms(self, start_ms): + """Sets the start_ms of this Trace. + + Trace start time (in milliseconds) # noqa: E501 + + :param start_ms: The start_ms of this Trace. # noqa: E501 + :type: int + """ + + self._start_ms = start_ms + + @property + def total_duration_ms(self): + """Gets the total_duration_ms of this Trace. # noqa: E501 + + Trace total duration (in milliseconds) # noqa: E501 + + :return: The total_duration_ms of this Trace. # noqa: E501 + :rtype: int + """ + return self._total_duration_ms + + @total_duration_ms.setter + def total_duration_ms(self, total_duration_ms): + """Sets the total_duration_ms of this Trace. + + Trace total duration (in milliseconds) # noqa: E501 + + :param total_duration_ms: The total_duration_ms of this Trace. # noqa: E501 + :type: int + """ + + self._total_duration_ms = total_duration_ms + + @property + def trace_id(self): + """Gets the trace_id of this Trace. # noqa: E501 + + Trace ID # noqa: E501 + + :return: The trace_id of this Trace. # noqa: E501 + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this Trace. + + Trace ID # noqa: E501 + + :param trace_id: The trace_id of this Trace. # noqa: E501 + :type: str + """ + + self._trace_id = trace_id + + 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(Trace, 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, Trace): + 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, Trace): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/triage_dashboard.py b/wavefront_api_client/models/triage_dashboard.py new file mode 100644 index 00000000..c18036ce --- /dev/null +++ b/wavefront_api_client/models/triage_dashboard.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 TriageDashboard(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 = { + 'dashboard_id': 'str', + 'description': 'str', + 'parameters': 'dict(str, str)' + } + + attribute_map = { + 'dashboard_id': 'dashboardId', + 'description': 'description', + 'parameters': 'parameters' + } + + def __init__(self, dashboard_id=None, description=None, parameters=None, _configuration=None): # noqa: E501 + """TriageDashboard - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._dashboard_id = None + self._description = None + self._parameters = None + self.discriminator = None + + if dashboard_id is not None: + self.dashboard_id = dashboard_id + if description is not None: + self.description = description + if parameters is not None: + self.parameters = parameters + + @property + def dashboard_id(self): + """Gets the dashboard_id of this TriageDashboard. # noqa: E501 + + + :return: The dashboard_id of this TriageDashboard. # noqa: E501 + :rtype: str + """ + return self._dashboard_id + + @dashboard_id.setter + def dashboard_id(self, dashboard_id): + """Sets the dashboard_id of this TriageDashboard. + + + :param dashboard_id: The dashboard_id of this TriageDashboard. # noqa: E501 + :type: str + """ + + self._dashboard_id = dashboard_id + + @property + def description(self): + """Gets the description of this TriageDashboard. # noqa: E501 + + + :return: The description of this TriageDashboard. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this TriageDashboard. + + + :param description: The description of this TriageDashboard. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def parameters(self): + """Gets the parameters of this TriageDashboard. # noqa: E501 + + + :return: The parameters of this TriageDashboard. # noqa: E501 + :rtype: dict(str, str) + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this TriageDashboard. + + + :param parameters: The parameters of this TriageDashboard. # noqa: E501 + :type: dict(str, str) + """ + + self._parameters = parameters + + 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(TriageDashboard, 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, TriageDashboard): + 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, TriageDashboard): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/tuple_result.py b/wavefront_api_client/models/tuple_result.py new file mode 100644 index 00000000..50a0d191 --- /dev/null +++ b/wavefront_api_client/models/tuple_result.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 TupleResult(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 = { + 'key': 'list[str]', + 'value_list': 'list[TupleValueResult]' + } + + attribute_map = { + 'key': 'key', + 'value_list': 'valueList' + } + + def __init__(self, key=None, value_list=None, _configuration=None): # noqa: E501 + """TupleResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._key = None + self._value_list = None + self.discriminator = None + + if key is not None: + self.key = key + if value_list is not None: + self.value_list = value_list + + @property + def key(self): + """Gets the key of this TupleResult. # noqa: E501 + + The keys used to surface the dimensions. # noqa: E501 + + :return: The key of this TupleResult. # noqa: E501 + :rtype: list[str] + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this TupleResult. + + The keys used to surface the dimensions. # noqa: E501 + + :param key: The key of this TupleResult. # noqa: E501 + :type: list[str] + """ + + self._key = key + + @property + def value_list(self): + """Gets the value_list of this TupleResult. # noqa: E501 + + All the possible value combination satisfying the provided keys and their respective counts from the query keys. # noqa: E501 + + :return: The value_list of this TupleResult. # noqa: E501 + :rtype: list[TupleValueResult] + """ + return self._value_list + + @value_list.setter + def value_list(self, value_list): + """Sets the value_list of this TupleResult. + + All the possible value combination satisfying the provided keys and their respective counts from the query keys. # noqa: E501 + + :param value_list: The value_list of this TupleResult. # noqa: E501 + :type: list[TupleValueResult] + """ + + self._value_list = value_list + + 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(TupleResult, 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, TupleResult): + 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, TupleResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/tuple_value_result.py b/wavefront_api_client/models/tuple_value_result.py new file mode 100644 index 00000000..a53a410a --- /dev/null +++ b/wavefront_api_client/models/tuple_value_result.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 TupleValueResult(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 = { + 'count': 'int', + 'value': 'list[str]' + } + + attribute_map = { + 'count': 'count', + 'value': 'value' + } + + def __init__(self, count=None, value=None, _configuration=None): # noqa: E501 + """TupleValueResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._count = None + self._value = None + self.discriminator = None + + if count is not None: + self.count = count + if value is not None: + self.value = value + + @property + def count(self): + """Gets the count of this TupleValueResult. # noqa: E501 + + The count of the values appearing in the query keys. # noqa: E501 + + :return: The count of this TupleValueResult. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this TupleValueResult. + + The count of the values appearing in the query keys. # noqa: E501 + + :param count: The count of this TupleValueResult. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def value(self): + """Gets the value of this TupleValueResult. # noqa: E501 + + The possible values for a given key list. # noqa: E501 + + :return: The value of this TupleValueResult. # noqa: E501 + :rtype: list[str] + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TupleValueResult. + + The possible values for a given key list. # noqa: E501 + + :param value: The value of this TupleValueResult. # noqa: E501 + :type: list[str] + """ + + self._value = value + + 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(TupleValueResult, 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, TupleValueResult): + 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, TupleValueResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/user_api_token.py b/wavefront_api_client/models/user_api_token.py new file mode 100644 index 00000000..671a4f4d --- /dev/null +++ b/wavefront_api_client/models/user_api_token.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 UserApiToken(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', + 'date_generated': 'int', + 'last_used': 'int', + 'token_id': 'str', + 'token_name': 'str' + } + + attribute_map = { + 'account': 'account', + 'account_type': 'accountType', + 'date_generated': 'dateGenerated', + 'last_used': 'lastUsed', + 'token_id': 'tokenID', + 'token_name': 'tokenName' + } + + def __init__(self, account=None, account_type=None, date_generated=None, last_used=None, token_id=None, token_name=None, _configuration=None): # noqa: E501 + """UserApiToken - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._account = None + self._account_type = None + self._date_generated = None + self._last_used = None + self._token_id = None + self._token_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 date_generated is not None: + self.date_generated = date_generated + if last_used is not None: + self.last_used = last_used + self.token_id = token_id + if token_name is not None: + self.token_name = token_name + + @property + def account(self): + """Gets the account of this UserApiToken. # noqa: E501 + + The account who generated this token. # noqa: E501 + + :return: The account of this UserApiToken. # noqa: E501 + :rtype: str + """ + return self._account + + @account.setter + def account(self, account): + """Sets the account of this UserApiToken. + + The account who generated this token. # noqa: E501 + + :param account: The account of this UserApiToken. # noqa: E501 + :type: str + """ + + self._account = account + + @property + def account_type(self): + """Gets the account_type of this UserApiToken. # noqa: E501 + + The user or service account generated this token. # noqa: E501 + + :return: The account_type of this UserApiToken. # noqa: E501 + :rtype: str + """ + return self._account_type + + @account_type.setter + def account_type(self, account_type): + """Sets the account_type of this UserApiToken. + + The user or service account generated this token. # noqa: E501 + + :param account_type: The account_type of this UserApiToken. # noqa: E501 + :type: str + """ + allowed_values = ["USER_ACCOUNT", "SERVICE_ACCOUNT", "INACTIVE_SERVICE_ACCOUNT", "CSP_USER_ACCOUNT", "CSP_AUTHORIZED_USER_ACCOUNT", "CSP_SERVICE_ACCOUNT", "CSP_AUTHORIZED_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 date_generated(self): + """Gets the date_generated of this UserApiToken. # noqa: E501 + + The generation date of the token. # noqa: E501 + + :return: The date_generated of this UserApiToken. # noqa: E501 + :rtype: int + """ + return self._date_generated + + @date_generated.setter + def date_generated(self, date_generated): + """Sets the date_generated of this UserApiToken. + + The generation date of the token. # noqa: E501 + + :param date_generated: The date_generated of this UserApiToken. # noqa: E501 + :type: int + """ + + self._date_generated = date_generated + + @property + def last_used(self): + """Gets the last_used of this UserApiToken. # noqa: E501 + + The last time this token was used # noqa: E501 + + :return: The last_used of this UserApiToken. # noqa: E501 + :rtype: int + """ + return self._last_used + + @last_used.setter + def last_used(self, last_used): + """Sets the last_used of this UserApiToken. + + The last time this token was used # noqa: E501 + + :param last_used: The last_used of this UserApiToken. # noqa: E501 + :type: int + """ + + self._last_used = last_used + + @property + def token_id(self): + """Gets the token_id of this UserApiToken. # noqa: E501 + + The identifier of the user API token # noqa: E501 + + :return: The token_id of this UserApiToken. # noqa: E501 + :rtype: str + """ + return self._token_id + + @token_id.setter + def token_id(self, token_id): + """Sets the token_id of this UserApiToken. + + The identifier of the user API token # noqa: E501 + + :param token_id: The token_id of this UserApiToken. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and token_id is None: + raise ValueError("Invalid value for `token_id`, must not be `None`") # noqa: E501 + + self._token_id = token_id + + @property + def token_name(self): + """Gets the token_name of this UserApiToken. # noqa: E501 + + The name of the user API token # noqa: E501 + + :return: The token_name of this UserApiToken. # noqa: E501 + :rtype: str + """ + return self._token_name + + @token_name.setter + def token_name(self, token_name): + """Sets the token_name of this UserApiToken. + + The name of the user API token # noqa: E501 + + :param token_name: The token_name of this UserApiToken. # noqa: E501 + :type: str + """ + + self._token_name = token_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(UserApiToken, 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, UserApiToken): + 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, UserApiToken): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/user_dto.py b/wavefront_api_client/models/user_dto.py new file mode 100644 index 00000000..98e03607 --- /dev/null +++ b/wavefront_api_client/models/user_dto.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 UserDTO(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 = { + 'customer': 'str', + 'groups': 'list[str]', + 'identifier': 'str', + 'last_successful_login': 'int', + 'roles': 'list[RoleDTO]', + 'sso_id': 'str', + 'user_groups': 'list[UserGroup]' + } + + attribute_map = { + 'customer': 'customer', + 'groups': 'groups', + 'identifier': 'identifier', + 'last_successful_login': 'lastSuccessfulLogin', + 'roles': 'roles', + 'sso_id': 'ssoId', + 'user_groups': 'userGroups' + } + + def __init__(self, customer=None, groups=None, identifier=None, last_successful_login=None, roles=None, sso_id=None, user_groups=None, _configuration=None): # noqa: E501 + """UserDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._customer = None + self._groups = None + self._identifier = None + self._last_successful_login = None + self._roles = None + self._sso_id = None + self._user_groups = None + self.discriminator = None + + if customer is not None: + self.customer = customer + if groups is not None: + self.groups = groups + if identifier is not None: + self.identifier = identifier + if last_successful_login is not None: + self.last_successful_login = last_successful_login + if roles is not None: + self.roles = roles + if sso_id is not None: + self.sso_id = sso_id + if user_groups is not None: + self.user_groups = user_groups + + @property + def customer(self): + """Gets the customer of this UserDTO. # noqa: E501 + + + :return: The customer of this UserDTO. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this UserDTO. + + + :param customer: The customer of this UserDTO. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def groups(self): + """Gets the groups of this UserDTO. # noqa: E501 + + + :return: The groups of this UserDTO. # noqa: E501 + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """Sets the groups of this UserDTO. + + + :param groups: The groups of this UserDTO. # noqa: E501 + :type: list[str] + """ + + self._groups = groups + + @property + def identifier(self): + """Gets the identifier of this UserDTO. # noqa: E501 + + + :return: The identifier of this UserDTO. # noqa: E501 + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this UserDTO. + + + :param identifier: The identifier of this UserDTO. # noqa: E501 + :type: str + """ + + self._identifier = identifier + + @property + def last_successful_login(self): + """Gets the last_successful_login of this UserDTO. # noqa: E501 + + + :return: The last_successful_login of this UserDTO. # noqa: E501 + :rtype: int + """ + return self._last_successful_login + + @last_successful_login.setter + def last_successful_login(self, last_successful_login): + """Sets the last_successful_login of this UserDTO. + + + :param last_successful_login: The last_successful_login of this UserDTO. # noqa: E501 + :type: int + """ + + self._last_successful_login = last_successful_login + + @property + def roles(self): + """Gets the roles of this UserDTO. # noqa: E501 + + + :return: The roles of this UserDTO. # noqa: E501 + :rtype: list[RoleDTO] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this UserDTO. + + + :param roles: The roles of this UserDTO. # noqa: E501 + :type: list[RoleDTO] + """ + + self._roles = roles + + @property + def sso_id(self): + """Gets the sso_id of this UserDTO. # noqa: E501 + + + :return: The sso_id of this UserDTO. # noqa: E501 + :rtype: str + """ + return self._sso_id + + @sso_id.setter + def sso_id(self, sso_id): + """Sets the sso_id of this UserDTO. + + + :param sso_id: The sso_id of this UserDTO. # noqa: E501 + :type: str + """ + + self._sso_id = sso_id + + @property + def user_groups(self): + """Gets the user_groups of this UserDTO. # noqa: E501 + + + :return: The user_groups of this UserDTO. # noqa: E501 + :rtype: list[UserGroup] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this UserDTO. + + + :param user_groups: The user_groups of this UserDTO. # noqa: E501 + :type: list[UserGroup] + """ + + self._user_groups = user_groups + + 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(UserDTO, 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, UserDTO): + 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, UserDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/user_group.py b/wavefront_api_client/models/user_group.py new file mode 100644 index 00000000..c1b34d6f --- /dev/null +++ b/wavefront_api_client/models/user_group.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 UserGroup(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 = { + 'customer': 'str', + 'description': 'str', + 'id': 'str', + 'name': 'str', + 'properties': 'UserGroupPropertiesDTO', + 'roles': 'list[RoleDTO]', + 'user_count': 'int', + 'users': 'list[str]' + } + + attribute_map = { + 'customer': 'customer', + 'description': 'description', + 'id': 'id', + 'name': 'name', + 'properties': 'properties', + 'roles': 'roles', + 'user_count': 'userCount', + 'users': 'users' + } + + def __init__(self, customer=None, description=None, id=None, name=None, properties=None, roles=None, user_count=None, users=None, _configuration=None): # noqa: E501 + """UserGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._customer = None + self._description = None + self._id = None + self._name = None + self._properties = None + self._roles = None + self._user_count = None + self._users = None + self.discriminator = None + + if customer is not None: + self.customer = customer + if description is not None: + self.description = description + if id is not None: + self.id = id + if name is not None: + self.name = name + if properties is not None: + self.properties = properties + if roles is not None: + self.roles = roles + if user_count is not None: + self.user_count = user_count + if users is not None: + self.users = users + + @property + def customer(self): + """Gets the customer of this UserGroup. # noqa: E501 + + ID of the customer to which the user group belongs # noqa: E501 + + :return: The customer of this UserGroup. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this UserGroup. + + ID of the customer to which the user group belongs # noqa: E501 + + :param customer: The customer of this UserGroup. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def description(self): + """Gets the description of this UserGroup. # noqa: E501 + + The description of the user group # noqa: E501 + + :return: The description of this UserGroup. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UserGroup. + + The description of the user group # noqa: E501 + + :param description: The description of this UserGroup. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def id(self): + """Gets the id of this UserGroup. # noqa: E501 + + Unique ID for the user group # noqa: E501 + + :return: The id of this UserGroup. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UserGroup. + + Unique ID for the user group # noqa: E501 + + :param id: The id of this UserGroup. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this UserGroup. # noqa: E501 + + Name of the user group # noqa: E501 + + :return: The name of this UserGroup. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UserGroup. + + Name of the user group # noqa: E501 + + :param name: The name of this UserGroup. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def properties(self): + """Gets the properties of this UserGroup. # noqa: E501 + + The properties of the user group(name editable, users editable, etc.) # noqa: E501 + + :return: The properties of this UserGroup. # noqa: E501 + :rtype: UserGroupPropertiesDTO + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UserGroup. + + The properties of the user group(name editable, users editable, etc.) # noqa: E501 + + :param properties: The properties of this UserGroup. # noqa: E501 + :type: UserGroupPropertiesDTO + """ + + self._properties = properties + + @property + def roles(self): + """Gets the roles of this UserGroup. # noqa: E501 + + List of roles the user group has been linked to # noqa: E501 + + :return: The roles of this UserGroup. # noqa: E501 + :rtype: list[RoleDTO] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this UserGroup. + + List of roles the user group has been linked to # noqa: E501 + + :param roles: The roles of this UserGroup. # noqa: E501 + :type: list[RoleDTO] + """ + + self._roles = roles + + @property + def user_count(self): + """Gets the user_count of this UserGroup. # noqa: E501 + + Total number of users that are members of the user group # noqa: E501 + + :return: The user_count of this UserGroup. # noqa: E501 + :rtype: int + """ + return self._user_count + + @user_count.setter + def user_count(self, user_count): + """Sets the user_count of this UserGroup. + + Total number of users that are members of the user group # noqa: E501 + + :param user_count: The user_count of this UserGroup. # noqa: E501 + :type: int + """ + + self._user_count = user_count + + @property + def users(self): + """Gets the users of this UserGroup. # noqa: E501 + + List of Users that are members of the user group. Maybe incomplete. # noqa: E501 + + :return: The users of this UserGroup. # noqa: E501 + :rtype: list[str] + """ + return self._users + + @users.setter + def users(self, users): + """Sets the users of this UserGroup. + + List of Users that are members of the user group. Maybe incomplete. # noqa: E501 + + :param users: The users of this UserGroup. # noqa: E501 + :type: list[str] + """ + + self._users = users + + 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(UserGroup, 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, UserGroup): + 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, UserGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/user_group_model.py b/wavefront_api_client/models/user_group_model.py new file mode 100644 index 00000000..73703b16 --- /dev/null +++ b/wavefront_api_client/models/user_group_model.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 UserGroupModel(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 = { + 'created_epoch_millis': 'int', + 'customer': 'str', + 'description': 'str', + 'id': 'str', + 'name': 'str', + 'properties': 'UserGroupPropertiesDTO', + 'role_count': 'int', + 'roles': 'list[RoleDTO]', + 'user_count': 'int', + 'users': 'list[str]' + } + + attribute_map = { + 'created_epoch_millis': 'createdEpochMillis', + 'customer': 'customer', + 'description': 'description', + 'id': 'id', + 'name': 'name', + 'properties': 'properties', + 'role_count': 'roleCount', + 'roles': 'roles', + 'user_count': 'userCount', + 'users': 'users' + } + + def __init__(self, created_epoch_millis=None, customer=None, description=None, id=None, name=None, properties=None, role_count=None, roles=None, user_count=None, users=None, _configuration=None): # noqa: E501 + """UserGroupModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_epoch_millis = None + self._customer = None + self._description = None + self._id = None + self._name = None + self._properties = None + self._role_count = None + self._roles = None + self._user_count = None + self._users = None + self.discriminator = None + + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if customer is not None: + self.customer = customer + if description is not None: + self.description = description + if id is not None: + self.id = id + self.name = name + if properties is not None: + self.properties = properties + if role_count is not None: + self.role_count = role_count + if roles is not None: + self.roles = roles + if user_count is not None: + self.user_count = user_count + if users is not None: + self.users = users + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this UserGroupModel. # noqa: E501 + + + :return: The created_epoch_millis of this UserGroupModel. # 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 UserGroupModel. + + + :param created_epoch_millis: The created_epoch_millis of this UserGroupModel. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def customer(self): + """Gets the customer of this UserGroupModel. # noqa: E501 + + The id of the customer to which the user group belongs # noqa: E501 + + :return: The customer of this UserGroupModel. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this UserGroupModel. + + The id of the customer to which the user group belongs # noqa: E501 + + :param customer: The customer of this UserGroupModel. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def description(self): + """Gets the description of this UserGroupModel. # noqa: E501 + + The description of the user group # noqa: E501 + + :return: The description of this UserGroupModel. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UserGroupModel. + + The description of the user group # noqa: E501 + + :param description: The description of this UserGroupModel. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def id(self): + """Gets the id of this UserGroupModel. # noqa: E501 + + The unique identifier of the user group # noqa: E501 + + :return: The id of this UserGroupModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UserGroupModel. + + The unique identifier of the user group # noqa: E501 + + :param id: The id of this UserGroupModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this UserGroupModel. # noqa: E501 + + The name of the user group # noqa: E501 + + :return: The name of this UserGroupModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UserGroupModel. + + The name of the user group # noqa: E501 + + :param name: The name of this UserGroupModel. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def properties(self): + """Gets the properties of this UserGroupModel. # noqa: E501 + + The properties of the user group(name editable, users editable, etc.) # noqa: E501 + + :return: The properties of this UserGroupModel. # noqa: E501 + :rtype: UserGroupPropertiesDTO + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UserGroupModel. + + The properties of the user group(name editable, users editable, etc.) # noqa: E501 + + :param properties: The properties of this UserGroupModel. # noqa: E501 + :type: UserGroupPropertiesDTO + """ + + self._properties = properties + + @property + def role_count(self): + """Gets the role_count of this UserGroupModel. # noqa: E501 + + Total number of roles that are linked the the user group # noqa: E501 + + :return: The role_count of this UserGroupModel. # noqa: E501 + :rtype: int + """ + return self._role_count + + @role_count.setter + def role_count(self, role_count): + """Sets the role_count of this UserGroupModel. + + Total number of roles that are linked the the user group # noqa: E501 + + :param role_count: The role_count of this UserGroupModel. # noqa: E501 + :type: int + """ + + self._role_count = role_count + + @property + def roles(self): + """Gets the roles of this UserGroupModel. # noqa: E501 + + List of roles that are linked to the user group. # noqa: E501 + + :return: The roles of this UserGroupModel. # noqa: E501 + :rtype: list[RoleDTO] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this UserGroupModel. + + List of roles that are linked to the user group. # noqa: E501 + + :param roles: The roles of this UserGroupModel. # noqa: E501 + :type: list[RoleDTO] + """ + + self._roles = roles + + @property + def user_count(self): + """Gets the user_count of this UserGroupModel. # noqa: E501 + + Total number of users that are members of the user group # noqa: E501 + + :return: The user_count of this UserGroupModel. # noqa: E501 + :rtype: int + """ + return self._user_count + + @user_count.setter + def user_count(self, user_count): + """Sets the user_count of this UserGroupModel. + + Total number of users that are members of the user group # noqa: E501 + + :param user_count: The user_count of this UserGroupModel. # noqa: E501 + :type: int + """ + + self._user_count = user_count + + @property + def users(self): + """Gets the users of this UserGroupModel. # noqa: E501 + + List(may be incomplete) of users that are members of the user group. # noqa: E501 + + :return: The users of this UserGroupModel. # noqa: E501 + :rtype: list[str] + """ + return self._users + + @users.setter + def users(self, users): + """Sets the users of this UserGroupModel. + + List(may be incomplete) of users that are members of the user group. # noqa: E501 + + :param users: The users of this UserGroupModel. # noqa: E501 + :type: list[str] + """ + + self._users = users + + 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(UserGroupModel, 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, UserGroupModel): + 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, UserGroupModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/user_group_properties_dto.py b/wavefront_api_client/models/user_group_properties_dto.py new file mode 100644 index 00000000..5902a5ff --- /dev/null +++ b/wavefront_api_client/models/user_group_properties_dto.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 UserGroupPropertiesDTO(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 = { + 'name_editable': 'bool', + 'roles_editable': 'bool', + 'users_editable': 'bool' + } + + attribute_map = { + 'name_editable': 'nameEditable', + 'roles_editable': 'rolesEditable', + 'users_editable': 'usersEditable' + } + + def __init__(self, name_editable=None, roles_editable=None, users_editable=None, _configuration=None): # noqa: E501 + """UserGroupPropertiesDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._name_editable = None + self._roles_editable = None + self._users_editable = None + self.discriminator = None + + if name_editable is not None: + self.name_editable = name_editable + if roles_editable is not None: + self.roles_editable = roles_editable + if users_editable is not None: + self.users_editable = users_editable + + @property + def name_editable(self): + """Gets the name_editable of this UserGroupPropertiesDTO. # noqa: E501 + + + :return: The name_editable of this UserGroupPropertiesDTO. # noqa: E501 + :rtype: bool + """ + return self._name_editable + + @name_editable.setter + def name_editable(self, name_editable): + """Sets the name_editable of this UserGroupPropertiesDTO. + + + :param name_editable: The name_editable of this UserGroupPropertiesDTO. # noqa: E501 + :type: bool + """ + + self._name_editable = name_editable + + @property + def roles_editable(self): + """Gets the roles_editable of this UserGroupPropertiesDTO. # noqa: E501 + + + :return: The roles_editable of this UserGroupPropertiesDTO. # noqa: E501 + :rtype: bool + """ + return self._roles_editable + + @roles_editable.setter + def roles_editable(self, roles_editable): + """Sets the roles_editable of this UserGroupPropertiesDTO. + + + :param roles_editable: The roles_editable of this UserGroupPropertiesDTO. # noqa: E501 + :type: bool + """ + + self._roles_editable = roles_editable + + @property + def users_editable(self): + """Gets the users_editable of this UserGroupPropertiesDTO. # noqa: E501 + + + :return: The users_editable of this UserGroupPropertiesDTO. # noqa: E501 + :rtype: bool + """ + return self._users_editable + + @users_editable.setter + def users_editable(self, users_editable): + """Sets the users_editable of this UserGroupPropertiesDTO. + + + :param users_editable: The users_editable of this UserGroupPropertiesDTO. # noqa: E501 + :type: bool + """ + + self._users_editable = users_editable + + 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(UserGroupPropertiesDTO, 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, UserGroupPropertiesDTO): + 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, UserGroupPropertiesDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/user_group_write.py b/wavefront_api_client/models/user_group_write.py new file mode 100644 index 00000000..11a3abec --- /dev/null +++ b/wavefront_api_client/models/user_group_write.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 UserGroupWrite(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 = { + 'created_epoch_millis': 'int', + 'customer': 'str', + 'description': 'str', + 'id': 'str', + 'name': 'str', + 'role_ids': 'list[str]' + } + + attribute_map = { + 'created_epoch_millis': 'createdEpochMillis', + 'customer': 'customer', + 'description': 'description', + 'id': 'id', + 'name': 'name', + 'role_ids': 'roleIDs' + } + + def __init__(self, created_epoch_millis=None, customer=None, description=None, id=None, name=None, role_ids=None, _configuration=None): # noqa: E501 + """UserGroupWrite - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_epoch_millis = None + self._customer = None + self._description = None + self._id = None + self._name = None + self._role_ids = None + self.discriminator = None + + if created_epoch_millis is not None: + self.created_epoch_millis = created_epoch_millis + if customer is not None: + self.customer = customer + if description is not None: + self.description = description + if id is not None: + self.id = id + self.name = name + self.role_ids = role_ids + + @property + def created_epoch_millis(self): + """Gets the created_epoch_millis of this UserGroupWrite. # noqa: E501 + + + :return: The created_epoch_millis of this UserGroupWrite. # 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 UserGroupWrite. + + + :param created_epoch_millis: The created_epoch_millis of this UserGroupWrite. # noqa: E501 + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def customer(self): + """Gets the customer of this UserGroupWrite. # noqa: E501 + + The id of the customer to which the user group belongs # noqa: E501 + + :return: The customer of this UserGroupWrite. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this UserGroupWrite. + + The id of the customer to which the user group belongs # noqa: E501 + + :param customer: The customer of this UserGroupWrite. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def description(self): + """Gets the description of this UserGroupWrite. # noqa: E501 + + The description of the user group # noqa: E501 + + :return: The description of this UserGroupWrite. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UserGroupWrite. + + The description of the user group # noqa: E501 + + :param description: The description of this UserGroupWrite. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def id(self): + """Gets the id of this UserGroupWrite. # noqa: E501 + + The unique identifier of the user group # noqa: E501 + + :return: The id of this UserGroupWrite. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UserGroupWrite. + + The unique identifier of the user group # noqa: E501 + + :param id: The id of this UserGroupWrite. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this UserGroupWrite. # noqa: E501 + + The name of the user group # noqa: E501 + + :return: The name of this UserGroupWrite. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UserGroupWrite. + + The name of the user group # noqa: E501 + + :param name: The name of this UserGroupWrite. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def role_ids(self): + """Gets the role_ids of this UserGroupWrite. # noqa: E501 + + List of role IDs the user group has been linked to. # noqa: E501 + + :return: The role_ids of this UserGroupWrite. # noqa: E501 + :rtype: list[str] + """ + return self._role_ids + + @role_ids.setter + def role_ids(self, role_ids): + """Sets the role_ids of this UserGroupWrite. + + List of role IDs the user group has been linked to. # noqa: E501 + + :param role_ids: The role_ids of this UserGroupWrite. # noqa: E501 + :type: list[str] + """ + if self._configuration.client_side_validation and role_ids is None: + raise ValueError("Invalid value for `role_ids`, must not be `None`") # noqa: E501 + + self._role_ids = role_ids + + 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(UserGroupWrite, 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, UserGroupWrite): + 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, UserGroupWrite): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/user_model.py b/wavefront_api_client/models/user_model.py index ece03662..df4c6bf3 100644 --- a/wavefront_api_client/models/user_model.py +++ b/wavefront_api_client/models/user_model.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class UserModel(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,53 +33,50 @@ class UserModel(object): and the value is json key in definition. """ swagger_types = { - 'identifier': 'str', 'customer': 'str', - 'groups': 'list[str]' + 'groups': 'list[str]', + 'identifier': 'str', + 'last_successful_login': 'int', + 'roles': 'list[RoleDTO]', + 'sso_id': 'str', + 'user_groups': 'list[UserGroup]' } attribute_map = { - 'identifier': 'identifier', 'customer': 'customer', - 'groups': 'groups' + 'groups': 'groups', + 'identifier': 'identifier', + 'last_successful_login': 'lastSuccessfulLogin', + 'roles': 'roles', + 'sso_id': 'ssoId', + 'user_groups': 'userGroups' } - def __init__(self, identifier=None, customer=None, groups=None): # noqa: E501 + def __init__(self, customer=None, groups=None, identifier=None, last_successful_login=None, roles=None, sso_id=None, user_groups=None, _configuration=None): # noqa: E501 """UserModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration - self._identifier = None self._customer = None self._groups = None + self._identifier = None + self._last_successful_login = None + self._roles = None + self._sso_id = None + self._user_groups = None self.discriminator = None - self.identifier = identifier self.customer = customer self.groups = groups - - @property - def identifier(self): - """Gets the identifier of this UserModel. # noqa: E501 - - The unique identifier of this user, which must be their valid email address # noqa: E501 - - :return: The identifier of this UserModel. # noqa: E501 - :rtype: str - """ - return self._identifier - - @identifier.setter - def identifier(self, identifier): - """Sets the identifier of this UserModel. - - The unique identifier of this user, which must be their valid email address # noqa: E501 - - :param identifier: The identifier of this UserModel. # noqa: E501 - :type: str - """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 - - self._identifier = identifier + self.identifier = identifier + if last_successful_login is not None: + self.last_successful_login = last_successful_login + if roles is not None: + self.roles = roles + if sso_id is not None: + self.sso_id = sso_id + self.user_groups = user_groups @property def customer(self): @@ -99,7 +98,7 @@ def customer(self, customer): :param customer: The customer of this UserModel. # noqa: E501 :type: str """ - if customer is None: + if self._configuration.client_side_validation and customer is None: raise ValueError("Invalid value for `customer`, must not be `None`") # noqa: E501 self._customer = customer @@ -124,11 +123,124 @@ def groups(self, groups): :param groups: The groups of this UserModel. # noqa: E501 :type: list[str] """ - if groups is None: + if self._configuration.client_side_validation and groups is None: raise ValueError("Invalid value for `groups`, must not be `None`") # noqa: E501 self._groups = groups + @property + def identifier(self): + """Gets the identifier of this UserModel. # noqa: E501 + + The unique identifier of this user, which must be their valid email address # noqa: E501 + + :return: The identifier of this UserModel. # noqa: E501 + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this UserModel. + + The unique identifier of this user, which must be their valid email address # noqa: E501 + + :param identifier: The identifier of this UserModel. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and identifier is None: + raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 + + self._identifier = identifier + + @property + def last_successful_login(self): + """Gets the last_successful_login of this UserModel. # noqa: E501 + + + :return: The last_successful_login of this UserModel. # noqa: E501 + :rtype: int + """ + return self._last_successful_login + + @last_successful_login.setter + def last_successful_login(self, last_successful_login): + """Sets the last_successful_login of this UserModel. + + + :param last_successful_login: The last_successful_login of this UserModel. # noqa: E501 + :type: int + """ + + self._last_successful_login = last_successful_login + + @property + def roles(self): + """Gets the roles of this UserModel. # noqa: E501 + + + :return: The roles of this UserModel. # noqa: E501 + :rtype: list[RoleDTO] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this UserModel. + + + :param roles: The roles of this UserModel. # noqa: E501 + :type: list[RoleDTO] + """ + + self._roles = roles + + @property + def sso_id(self): + """Gets the sso_id of this UserModel. # noqa: E501 + + + :return: The sso_id of this UserModel. # noqa: E501 + :rtype: str + """ + return self._sso_id + + @sso_id.setter + def sso_id(self, sso_id): + """Sets the sso_id of this UserModel. + + + :param sso_id: The sso_id of this UserModel. # noqa: E501 + :type: str + """ + + self._sso_id = sso_id + + @property + def user_groups(self): + """Gets the user_groups of this UserModel. # noqa: E501 + + The list of user groups the user belongs to # noqa: E501 + + :return: The user_groups of this UserModel. # noqa: E501 + :rtype: list[UserGroup] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this UserModel. + + The list of user groups the user belongs to # noqa: E501 + + :param user_groups: The user_groups of this UserModel. # noqa: E501 + :type: list[UserGroup] + """ + if self._configuration.client_side_validation and user_groups is None: + raise ValueError("Invalid value for `user_groups`, must not be `None`") # noqa: E501 + + self._user_groups = user_groups + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -150,6 +262,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UserModel, dict): + for key, value in self.items(): + result[key] = value return result @@ -166,8 +281,11 @@ def __eq__(self, other): if not isinstance(other, UserModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/user_request_dto.py b/wavefront_api_client/models/user_request_dto.py new file mode 100644 index 00000000..15bf2f9f --- /dev/null +++ b/wavefront_api_client/models/user_request_dto.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 UserRequestDTO(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 = { + 'credential': 'str', + 'customer': 'str', + 'groups': 'list[str]', + 'identifier': 'str', + 'roles': 'list[str]', + 'sso_id': 'str', + 'user_groups': 'list[str]' + } + + attribute_map = { + 'credential': 'credential', + 'customer': 'customer', + 'groups': 'groups', + 'identifier': 'identifier', + 'roles': 'roles', + 'sso_id': 'ssoId', + 'user_groups': 'userGroups' + } + + def __init__(self, credential=None, customer=None, groups=None, identifier=None, roles=None, sso_id=None, user_groups=None, _configuration=None): # noqa: E501 + """UserRequestDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._credential = None + self._customer = None + self._groups = None + self._identifier = None + self._roles = None + self._sso_id = None + self._user_groups = None + self.discriminator = None + + if credential is not None: + self.credential = credential + if customer is not None: + self.customer = customer + if groups is not None: + self.groups = groups + if identifier is not None: + self.identifier = identifier + if roles is not None: + self.roles = roles + if sso_id is not None: + self.sso_id = sso_id + if user_groups is not None: + self.user_groups = user_groups + + @property + def credential(self): + """Gets the credential of this UserRequestDTO. # noqa: E501 + + + :return: The credential of this UserRequestDTO. # noqa: E501 + :rtype: str + """ + return self._credential + + @credential.setter + def credential(self, credential): + """Sets the credential of this UserRequestDTO. + + + :param credential: The credential of this UserRequestDTO. # noqa: E501 + :type: str + """ + + self._credential = credential + + @property + def customer(self): + """Gets the customer of this UserRequestDTO. # noqa: E501 + + + :return: The customer of this UserRequestDTO. # noqa: E501 + :rtype: str + """ + return self._customer + + @customer.setter + def customer(self, customer): + """Sets the customer of this UserRequestDTO. + + + :param customer: The customer of this UserRequestDTO. # noqa: E501 + :type: str + """ + + self._customer = customer + + @property + def groups(self): + """Gets the groups of this UserRequestDTO. # noqa: E501 + + + :return: The groups of this UserRequestDTO. # noqa: E501 + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """Sets the groups of this UserRequestDTO. + + + :param groups: The groups of this UserRequestDTO. # noqa: E501 + :type: list[str] + """ + + self._groups = groups + + @property + def identifier(self): + """Gets the identifier of this UserRequestDTO. # noqa: E501 + + + :return: The identifier of this UserRequestDTO. # noqa: E501 + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this UserRequestDTO. + + + :param identifier: The identifier of this UserRequestDTO. # noqa: E501 + :type: str + """ + + self._identifier = identifier + + @property + def roles(self): + """Gets the roles of this UserRequestDTO. # noqa: E501 + + + :return: The roles of this UserRequestDTO. # noqa: E501 + :rtype: list[str] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this UserRequestDTO. + + + :param roles: The roles of this UserRequestDTO. # noqa: E501 + :type: list[str] + """ + + self._roles = roles + + @property + def sso_id(self): + """Gets the sso_id of this UserRequestDTO. # noqa: E501 + + + :return: The sso_id of this UserRequestDTO. # noqa: E501 + :rtype: str + """ + return self._sso_id + + @sso_id.setter + def sso_id(self, sso_id): + """Sets the sso_id of this UserRequestDTO. + + + :param sso_id: The sso_id of this UserRequestDTO. # noqa: E501 + :type: str + """ + + self._sso_id = sso_id + + @property + def user_groups(self): + """Gets the user_groups of this UserRequestDTO. # noqa: E501 + + + :return: The user_groups of this UserRequestDTO. # noqa: E501 + :rtype: list[str] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this UserRequestDTO. + + + :param user_groups: The user_groups of this UserRequestDTO. # noqa: E501 + :type: list[str] + """ + + self._user_groups = user_groups + + 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(UserRequestDTO, 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, UserRequestDTO): + 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, UserRequestDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/user_to_create.py b/wavefront_api_client/models/user_to_create.py index d6cad2e9..00599321 100644 --- a/wavefront_api_client/models/user_to_create.py +++ b/wavefront_api_client/models/user_to_create.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class UserToCreate(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -32,29 +34,41 @@ class UserToCreate(object): """ swagger_types = { 'email_address': 'str', - 'groups': 'list[str]' + 'groups': 'list[str]', + 'roles': 'list[str]', + 'user_groups': 'list[str]' } attribute_map = { 'email_address': 'emailAddress', - 'groups': 'groups' + 'groups': 'groups', + 'roles': 'roles', + 'user_groups': 'userGroups' } - def __init__(self, email_address=None, groups=None): # noqa: E501 + def __init__(self, email_address=None, groups=None, roles=None, user_groups=None, _configuration=None): # noqa: E501 """UserToCreate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email_address = None self._groups = None + self._roles = None + self._user_groups = None self.discriminator = None self.email_address = email_address self.groups = groups + if roles is not None: + self.roles = roles + self.user_groups = user_groups @property def email_address(self): """Gets the email_address of this UserToCreate. # noqa: E501 - The (unique) identifier of the user to create. Must be a valid email address # noqa: E501 + The (unique) identifier of the user to create. Must be a valid email address # noqa: E501 :return: The email_address of this UserToCreate. # noqa: E501 :rtype: str @@ -65,12 +79,12 @@ def email_address(self): def email_address(self, email_address): """Sets the email_address of this UserToCreate. - The (unique) identifier of the user to create. Must be a valid email address # noqa: E501 + The (unique) identifier of the user to create. Must be a valid email address # noqa: E501 :param email_address: The email_address of this UserToCreate. # noqa: E501 :type: str """ - if email_address is None: + if self._configuration.client_side_validation and email_address is None: raise ValueError("Invalid value for `email_address`, must not be `None`") # noqa: E501 self._email_address = email_address @@ -79,7 +93,7 @@ def email_address(self, email_address): def groups(self): """Gets the groups of this UserToCreate. # noqa: E501 - List of permission groups to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission. Possible values are browse, agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management # noqa: E501 + List of permission groups to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission. Possible values are log_management, dashboard_management, events_management, alerts_management, derived_metrics_management, host_tag_management, agent_management, token_management, ingestion, user_management, embedded_charts, metrics_management, external_links_management, application_management, batch_query_priority, saml_sso_management, monitored_application_service_management # noqa: E501 :return: The groups of this UserToCreate. # noqa: E501 :rtype: list[str] @@ -90,16 +104,64 @@ def groups(self): def groups(self, groups): """Sets the groups of this UserToCreate. - List of permission groups to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission. Possible values are browse, agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management # noqa: E501 + List of permission groups to grant to this user. Please note that 'host_tag_management' is the equivalent of the 'Source Tag Management' permission. Possible values are log_management, dashboard_management, events_management, alerts_management, derived_metrics_management, host_tag_management, agent_management, token_management, ingestion, user_management, embedded_charts, metrics_management, external_links_management, application_management, batch_query_priority, saml_sso_management, monitored_application_service_management # noqa: E501 :param groups: The groups of this UserToCreate. # noqa: E501 :type: list[str] """ - if groups is None: + if self._configuration.client_side_validation and groups is None: raise ValueError("Invalid value for `groups`, must not be `None`") # noqa: E501 self._groups = groups + @property + def roles(self): + """Gets the roles of this UserToCreate. # noqa: E501 + + The list of role ids, the user will be added to. # noqa: E501 + + :return: The roles of this UserToCreate. # noqa: E501 + :rtype: list[str] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this UserToCreate. + + The list of role ids, the user will be added to. # noqa: E501 + + :param roles: The roles of this UserToCreate. # noqa: E501 + :type: list[str] + """ + + self._roles = roles + + @property + def user_groups(self): + """Gets the user_groups of this UserToCreate. # noqa: E501 + + List of user groups to this user. # noqa: E501 + + :return: The user_groups of this UserToCreate. # noqa: E501 + :rtype: list[str] + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this UserToCreate. + + List of user groups to this user. # noqa: E501 + + :param user_groups: The user_groups of this UserToCreate. # noqa: E501 + :type: list[str] + """ + if self._configuration.client_side_validation and user_groups is None: + raise ValueError("Invalid value for `user_groups`, must not be `None`") # noqa: E501 + + self._user_groups = user_groups + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -121,6 +183,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UserToCreate, dict): + for key, value in self.items(): + result[key] = value return result @@ -137,8 +202,11 @@ def __eq__(self, other): if not isinstance(other, UserToCreate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserToCreate): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/validated_users_dto.py b/wavefront_api_client/models/validated_users_dto.py new file mode 100644 index 00000000..1fb8f20f --- /dev/null +++ b/wavefront_api_client/models/validated_users_dto.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 ValidatedUsersDTO(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 = { + 'invalid_identifiers': 'list[str]', + 'valid_users': 'list[UserDTO]' + } + + attribute_map = { + 'invalid_identifiers': 'invalidIdentifiers', + 'valid_users': 'validUsers' + } + + def __init__(self, invalid_identifiers=None, valid_users=None, _configuration=None): # noqa: E501 + """ValidatedUsersDTO - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._invalid_identifiers = None + self._valid_users = None + self.discriminator = None + + if invalid_identifiers is not None: + self.invalid_identifiers = invalid_identifiers + if valid_users is not None: + self.valid_users = valid_users + + @property + def invalid_identifiers(self): + """Gets the invalid_identifiers of this ValidatedUsersDTO. # noqa: E501 + + + :return: The invalid_identifiers of this ValidatedUsersDTO. # noqa: E501 + :rtype: list[str] + """ + return self._invalid_identifiers + + @invalid_identifiers.setter + def invalid_identifiers(self, invalid_identifiers): + """Sets the invalid_identifiers of this ValidatedUsersDTO. + + + :param invalid_identifiers: The invalid_identifiers of this ValidatedUsersDTO. # noqa: E501 + :type: list[str] + """ + + self._invalid_identifiers = invalid_identifiers + + @property + def valid_users(self): + """Gets the valid_users of this ValidatedUsersDTO. # noqa: E501 + + + :return: The valid_users of this ValidatedUsersDTO. # noqa: E501 + :rtype: list[UserDTO] + """ + return self._valid_users + + @valid_users.setter + def valid_users(self, valid_users): + """Sets the valid_users of this ValidatedUsersDTO. + + + :param valid_users: The valid_users of this ValidatedUsersDTO. # noqa: E501 + :type: list[UserDTO] + """ + + self._valid_users = valid_users + + 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(ValidatedUsersDTO, 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, ValidatedUsersDTO): + 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, ValidatedUsersDTO): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/void.py b/wavefront_api_client/models/void.py new file mode 100644 index 00000000..daebbb46 --- /dev/null +++ b/wavefront_api_client/models/void.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 Void(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 = { + } + + attribute_map = { + } + + def __init__(self, _configuration=None): # noqa: E501 + """Void - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self.discriminator = None + + 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(Void, 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, Void): + 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, Void): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/vrops_configuration.py b/wavefront_api_client/models/vrops_configuration.py new file mode 100644 index 00000000..6b20324b --- /dev/null +++ b/wavefront_api_client/models/vrops_configuration.py @@ -0,0 +1,274 @@ +# coding: utf-8 + +""" + Tanzu Observability REST API Documentation + +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# 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 VropsConfiguration(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 = { + 'adapter_names': 'dict(str, list[str])', + 'base_url': 'str', + 'categories_to_fetch': 'list[str]', + 'metric_filter_regex': 'str', + 'organization_id': 'str', + 'vrops_api_token': 'str' + } + + attribute_map = { + 'adapter_names': 'adapterNames', + 'base_url': 'baseURL', + 'categories_to_fetch': 'categoriesToFetch', + 'metric_filter_regex': 'metricFilterRegex', + 'organization_id': 'organizationID', + 'vrops_api_token': 'vropsAPIToken' + } + + def __init__(self, adapter_names=None, base_url=None, categories_to_fetch=None, metric_filter_regex=None, organization_id=None, vrops_api_token=None, _configuration=None): # noqa: E501 + """VropsConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._adapter_names = None + self._base_url = None + self._categories_to_fetch = None + self._metric_filter_regex = None + self._organization_id = None + self._vrops_api_token = None + self.discriminator = None + + if adapter_names is not None: + self.adapter_names = adapter_names + if base_url is not None: + self.base_url = base_url + if categories_to_fetch is not None: + self.categories_to_fetch = categories_to_fetch + if metric_filter_regex is not None: + self.metric_filter_regex = metric_filter_regex + if organization_id is not None: + self.organization_id = organization_id + self.vrops_api_token = vrops_api_token + + @property + def adapter_names(self): + """Gets the adapter_names of this VropsConfiguration. # noqa: E501 + + Adapter names: Metrics will be fetched of only these adapter if given # noqa: E501 + + :return: The adapter_names of this VropsConfiguration. # noqa: E501 + :rtype: dict(str, list[str]) + """ + return self._adapter_names + + @adapter_names.setter + def adapter_names(self, adapter_names): + """Sets the adapter_names of this VropsConfiguration. + + Adapter names: Metrics will be fetched of only these adapter if given # noqa: E501 + + :param adapter_names: The adapter_names of this VropsConfiguration. # noqa: E501 + :type: dict(str, list[str]) + """ + + self._adapter_names = adapter_names + + @property + def base_url(self): + """Gets the base_url of this VropsConfiguration. # noqa: E501 + + The base url for vrops api, Default : https://www.mgmt.cloud.vmware.com/vrops-cloud # noqa: E501 + + :return: The base_url of this VropsConfiguration. # noqa: E501 + :rtype: str + """ + return self._base_url + + @base_url.setter + def base_url(self, base_url): + """Sets the base_url of this VropsConfiguration. + + The base url for vrops api, Default : https://www.mgmt.cloud.vmware.com/vrops-cloud # noqa: E501 + + :param base_url: The base_url of this VropsConfiguration. # noqa: E501 + :type: str + """ + + self._base_url = base_url + + @property + def categories_to_fetch(self): + """Gets the categories_to_fetch of this VropsConfiguration. # noqa: E501 + + A list of vRops Adpater and Resource kind to fetch metrics. Allowable values are VMWARE_DATASTORE, VMWARE_DATASTORE) # noqa: E501 + + :return: The categories_to_fetch of this VropsConfiguration. # noqa: E501 + :rtype: list[str] + """ + return self._categories_to_fetch + + @categories_to_fetch.setter + def categories_to_fetch(self, categories_to_fetch): + """Sets the categories_to_fetch of this VropsConfiguration. + + A list of vRops Adpater and Resource kind to fetch metrics. Allowable values are VMWARE_DATASTORE, VMWARE_DATASTORE) # noqa: E501 + + :param categories_to_fetch: The categories_to_fetch of this VropsConfiguration. # noqa: E501 + :type: list[str] + """ + allowed_values = ["VMWARE_CLUSTERCOMPUTERESOURCE", "VMWARE_DATASTORE"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(categories_to_fetch).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `categories_to_fetch` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(categories_to_fetch) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._categories_to_fetch = categories_to_fetch + + @property + def metric_filter_regex(self): + """Gets the metric_filter_regex of this VropsConfiguration. # noqa: E501 + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :return: The metric_filter_regex of this VropsConfiguration. # noqa: E501 + :rtype: str + """ + return self._metric_filter_regex + + @metric_filter_regex.setter + def metric_filter_regex(self, metric_filter_regex): + """Sets the metric_filter_regex of this VropsConfiguration. + + A regular expression that a metric name must match (case-insensitively) in order to be ingested # noqa: E501 + + :param metric_filter_regex: The metric_filter_regex of this VropsConfiguration. # noqa: E501 + :type: str + """ + + self._metric_filter_regex = metric_filter_regex + + @property + def organization_id(self): + """Gets the organization_id of this VropsConfiguration. # noqa: E501 + + OrganizationID will be derived from api token # noqa: E501 + + :return: The organization_id of this VropsConfiguration. # noqa: E501 + :rtype: str + """ + return self._organization_id + + @organization_id.setter + def organization_id(self, organization_id): + """Sets the organization_id of this VropsConfiguration. + + OrganizationID will be derived from api token # noqa: E501 + + :param organization_id: The organization_id of this VropsConfiguration. # noqa: E501 + :type: str + """ + + self._organization_id = organization_id + + @property + def vrops_api_token(self): + """Gets the vrops_api_token of this VropsConfiguration. # noqa: E501 + + The vRops API Token # noqa: E501 + + :return: The vrops_api_token of this VropsConfiguration. # noqa: E501 + :rtype: str + """ + return self._vrops_api_token + + @vrops_api_token.setter + def vrops_api_token(self, vrops_api_token): + """Sets the vrops_api_token of this VropsConfiguration. + + The vRops API Token # noqa: E501 + + :param vrops_api_token: The vrops_api_token of this VropsConfiguration. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and vrops_api_token is None: + raise ValueError("Invalid value for `vrops_api_token`, must not be `None`") # noqa: E501 + + self._vrops_api_token = vrops_api_token + + 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(VropsConfiguration, 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, VropsConfiguration): + 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, VropsConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/wf_tags.py b/wavefront_api_client/models/wf_tags.py index ea2cb9be..83201a71 100644 --- a/wavefront_api_client/models/wf_tags.py +++ b/wavefront_api_client/models/wf_tags.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,6 +16,8 @@ import six +from wavefront_api_client.configuration import Configuration + class WFTags(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,8 +40,11 @@ class WFTags(object): 'customer_tags': 'customerTags' } - def __init__(self, customer_tags=None): # noqa: E501 + def __init__(self, customer_tags=None, _configuration=None): # noqa: E501 """WFTags - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._customer_tags = None self.discriminator = None @@ -91,6 +96,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(WFTags, dict): + for key, value in self.items(): + result[key] = value return result @@ -107,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, WFTags): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, WFTags): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/rest.py b/wavefront_api_client/rest.py index 5ea57e85..bf00bc7a 100644 --- a/wavefront_api_client/rest.py +++ b/wavefront_api_client/rest.py @@ -1,12 +1,12 @@ # coding: utf-8 """ - Wavefront Public API + Tanzu Observability REST API Documentation -The Wavefront public API enables you to interact with Wavefront servers using standard web service API tools. You can use the API to automate commonly executed operations such as automatically tagging sources.
When you make API calls outside the Wavefront API documentation you must add the header \"Authorization: Bearer <<API-TOKEN>>\" to your HTTP requests.
For legacy versions of the Wavefront API, see the legacy API documentation.
# noqa: E501 +The REST API enables you to interact with the Tanzu Observability service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.
When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Tanzu Observability REST API.
# noqa: E501 OpenAPI spec version: v2 - + Contact: chitimba@wavefront.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -156,7 +156,7 @@ def request(self, method, url, query_params=None, headers=None, if query_params: url += '?' + urlencode(query_params) if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = None + request_body = '{}' if body is not None: request_body = json.dumps(body) r = self.pool_manager.request(