Skip to content

Commit

Permalink
Autogenerated Update v2.128.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
wf-jenkins committed Mar 31, 2022
1 parent 4b5c97b commit 67d0ab8
Show file tree
Hide file tree
Showing 53 changed files with 4,041 additions and 614 deletions.
2 changes: 1 addition & 1 deletion .swagger-codegen/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"gitUserId": "wavefrontHQ",
"packageName": "wavefront_api_client",
"packageUrl": "https://github.com/wavefrontHQ/python-client",
"packageVersion": "2.126.1"
"packageVersion": "2.128.2"
}
2 changes: 1 addition & 1 deletion .swagger-codegen/config.jsone
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"gitUserId": "wavefrontHQ",
"packageName": "wavefront_api_client",
"packageUrl": "https://github.com/wavefrontHQ/python-client",
"packageVersion": "2.124.1"
"packageVersion": "2.126.1"
}
27 changes: 22 additions & 5 deletions README.md

Large diffs are not rendered by default.

110 changes: 0 additions & 110 deletions docs/AccountUserAndServiceAccountApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Method | HTTP request | Description
[**add_account_to_roles**](AccountUserAndServiceAccountApi.md#add_account_to_roles) | **POST** /api/v2/account/{id}/addRoles | Adds specific roles to the account (user or service account)
[**add_account_to_user_groups**](AccountUserAndServiceAccountApi.md#add_account_to_user_groups) | **POST** /api/v2/account/{id}/addUserGroups | Adds specific groups to the account (user or service account)
[**add_ingestion_policy**](AccountUserAndServiceAccountApi.md#add_ingestion_policy) | **POST** /api/v2/account/addingestionpolicy | Add a specific ingestion policy to multiple accounts
[**add_single_ingestion_policy**](AccountUserAndServiceAccountApi.md#add_single_ingestion_policy) | **POST** /api/v2/account/addIngestionPolicy | Add single ingestion policy to multiple accounts
[**create_or_update_user_account**](AccountUserAndServiceAccountApi.md#create_or_update_user_account) | **POST** /api/v2/account/user | Creates or updates a user account
[**create_service_account**](AccountUserAndServiceAccountApi.md#create_service_account) | **POST** /api/v2/account/serviceaccount | Creates a service account
[**deactivate_account**](AccountUserAndServiceAccountApi.md#deactivate_account) | **POST** /api/v2/account/serviceaccount/{id}/deactivate | Deactivates the given service account
Expand All @@ -27,7 +26,6 @@ Method | HTTP request | Description
[**remove_account_from_roles**](AccountUserAndServiceAccountApi.md#remove_account_from_roles) | **POST** /api/v2/account/{id}/removeRoles | Removes specific roles from the account (user or service account)
[**remove_account_from_user_groups**](AccountUserAndServiceAccountApi.md#remove_account_from_user_groups) | **POST** /api/v2/account/{id}/removeUserGroups | Removes specific groups from the account (user or service account)
[**remove_ingestion_policies**](AccountUserAndServiceAccountApi.md#remove_ingestion_policies) | **POST** /api/v2/account/removeingestionpolicies | Removes ingestion policies from multiple accounts
[**remove_single_ingestion_policy**](AccountUserAndServiceAccountApi.md#remove_single_ingestion_policy) | **POST** /api/v2/account/removeIngestionPolicy | Removes single ingestion policy from multiple accounts
[**revoke_account_permission**](AccountUserAndServiceAccountApi.md#revoke_account_permission) | **POST** /api/v2/account/{id}/revoke/{permission} | Revokes a specific permission from account (user or service account)
[**revoke_permission_from_accounts**](AccountUserAndServiceAccountApi.md#revoke_permission_from_accounts) | **POST** /api/v2/account/revoke/{permission} | Revokes a specific permission from multiple accounts (users or service accounts)
[**update_service_account**](AccountUserAndServiceAccountApi.md#update_service_account) | **PUT** /api/v2/account/serviceaccount/{id} | Updates the service account
Expand Down Expand Up @@ -255,60 +253,6 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **add_single_ingestion_policy**
> ResponseContainerUserDTO add_single_ingestion_policy(body=body)
Add single ingestion policy to multiple accounts



### Example
```python
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'

# create an instance of the API class
api_instance = wavefront_api_client.AccountUserAndServiceAccountApi(wavefront_api_client.ApiClient(configuration))
body = wavefront_api_client.IngestionPolicyMapping() # IngestionPolicyMapping | Example Body: <pre>{ \"ingestionPolicyId\": \"Ingestion policy identifier\", \"accounts\": [ \"account1\", \"account2\", \"account3\" ], \"groups\": [ \"group1\", \"group2\" ] }</pre> (optional)

try:
# Add single ingestion policy to multiple accounts
api_response = api_instance.add_single_ingestion_policy(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountUserAndServiceAccountApi->add_single_ingestion_policy: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**IngestionPolicyMapping**](IngestionPolicyMapping.md)| Example Body: &lt;pre&gt;{ \&quot;ingestionPolicyId\&quot;: \&quot;Ingestion policy identifier\&quot;, \&quot;accounts\&quot;: [ \&quot;account1\&quot;, \&quot;account2\&quot;, \&quot;account3\&quot; ], \&quot;groups\&quot;: [ \&quot;group1\&quot;, \&quot;group2\&quot; ] }&lt;/pre&gt; | [optional]

### Return type

[**ResponseContainerUserDTO**](ResponseContainerUserDTO.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **create_or_update_user_account**
> UserModel create_or_update_user_account(send_email=send_email, body=body)
Expand Down Expand Up @@ -1285,60 +1229,6 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **remove_single_ingestion_policy**
> ResponseContainerUserDTO remove_single_ingestion_policy(body=body)
Removes single ingestion policy from multiple accounts



### Example
```python
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'

# create an instance of the API class
api_instance = wavefront_api_client.AccountUserAndServiceAccountApi(wavefront_api_client.ApiClient(configuration))
body = wavefront_api_client.IngestionPolicyMapping() # IngestionPolicyMapping | Example Body: <pre>{ \"ingestionPolicyId\": \"Ingestion policy identifier\", \"accounts\": [ \"account1\", \"account2\", \"account3\" ], \"groups\": [ \"group1\", \"group2\" ] }</pre> (optional)

try:
# Removes single ingestion policy from multiple accounts
api_response = api_instance.remove_single_ingestion_policy(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountUserAndServiceAccountApi->remove_single_ingestion_policy: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**IngestionPolicyMapping**](IngestionPolicyMapping.md)| Example Body: &lt;pre&gt;{ \&quot;ingestionPolicyId\&quot;: \&quot;Ingestion policy identifier\&quot;, \&quot;accounts\&quot;: [ \&quot;account1\&quot;, \&quot;account2\&quot;, \&quot;account3\&quot; ], \&quot;groups\&quot;: [ \&quot;group1\&quot;, \&quot;group2\&quot; ] }&lt;/pre&gt; | [optional]

### Return type

[**ResponseContainerUserDTO**](ResponseContainerUserDTO.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **revoke_account_permission**
> UserModel revoke_account_permission(id, permission)
Expand Down
161 changes: 161 additions & 0 deletions docs/ApiTokenApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
Method | HTTP request | Description
------------- | ------------- | -------------
[**create_token**](ApiTokenApi.md#create_token) | **POST** /api/v2/apitoken | Create new api token
[**delete_customer_token**](ApiTokenApi.md#delete_customer_token) | **PUT** /api/v2/apitoken/customertokens/revoke | Delete the specified api token for a customer
[**delete_token**](ApiTokenApi.md#delete_token) | **DELETE** /api/v2/apitoken/{id} | Delete the specified api token
[**delete_token_service_account**](ApiTokenApi.md#delete_token_service_account) | **DELETE** /api/v2/apitoken/serviceaccount/{id}/{token} | Delete the specified api token of the given service account
[**generate_token_service_account**](ApiTokenApi.md#generate_token_service_account) | **POST** /api/v2/apitoken/serviceaccount/{id} | Create a new api token for the service account
[**get_all_tokens**](ApiTokenApi.md#get_all_tokens) | **GET** /api/v2/apitoken | Get all api tokens for a user
[**get_customer_token**](ApiTokenApi.md#get_customer_token) | **GET** /api/v2/apitoken/customertokens/{id} | Get the specified api token for a customer
[**get_customer_tokens**](ApiTokenApi.md#get_customer_tokens) | **GET** /api/v2/apitoken/customertokens | Get all api tokens for a customer
[**get_tokens_service_account**](ApiTokenApi.md#get_tokens_service_account) | **GET** /api/v2/apitoken/serviceaccount/{id} | Get all api tokens for the given service account
[**update_token_name**](ApiTokenApi.md#update_token_name) | **PUT** /api/v2/apitoken/{id} | Update the name of the specified api token
[**update_token_name_service_account**](ApiTokenApi.md#update_token_name_service_account) | **PUT** /api/v2/apitoken/serviceaccount/{id}/{token} | Update the name of the specified api token for the given service account
Expand Down Expand Up @@ -64,6 +67,60 @@ This endpoint does not need any parameter.

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **delete_customer_token**
> ResponseContainerUserApiToken delete_customer_token(body=body)
Delete the specified api token for a customer



### Example
```python
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'

# create an instance of the API class
api_instance = wavefront_api_client.ApiTokenApi(wavefront_api_client.ApiClient(configuration))
body = wavefront_api_client.UserApiToken() # UserApiToken | (optional)

try:
# Delete the specified api token for a customer
api_response = api_instance.delete_customer_token(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApiTokenApi->delete_customer_token: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**UserApiToken**](UserApiToken.md)| | [optional]

### Return type

[**ResponseContainerUserApiToken**](ResponseContainerUserApiToken.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **delete_token**
> ResponseContainerListUserApiToken delete_token(id)
Expand Down Expand Up @@ -280,6 +337,110 @@ This endpoint does not need any parameter.

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_customer_token**
> ResponseContainerApiTokenModel get_customer_token(id)
Get the specified api token for a customer



### Example
```python
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'

# create an instance of the API class
api_instance = wavefront_api_client.ApiTokenApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |

try:
# Get the specified api token for a customer
api_response = api_instance.get_customer_token(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApiTokenApi->get_customer_token: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |

### Return type

[**ResponseContainerApiTokenModel**](ResponseContainerApiTokenModel.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_customer_tokens**
> ResponseContainerListApiTokenModel get_customer_tokens()
Get all api tokens for a customer



### Example
```python
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'

# create an instance of the API class
api_instance = wavefront_api_client.ApiTokenApi(wavefront_api_client.ApiClient(configuration))

try:
# Get all api tokens for a customer
api_response = api_instance.get_customer_tokens()
pprint(api_response)
except ApiException as e:
print("Exception when calling ApiTokenApi->get_customer_tokens: %s\n" % e)
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**ResponseContainerListApiTokenModel**](ResponseContainerListApiTokenModel.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_tokens_service_account**
> ResponseContainerListUserApiToken get_tokens_service_account(id)
Expand Down
17 changes: 17 additions & 0 deletions docs/ApiTokenModel.md
Original file line number Diff line number Diff line change
@@ -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)


1 change: 1 addition & 0 deletions docs/CloudWatchConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**metric_filter_regex** | **str** | A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested | [optional]
**namespaces** | **list[str]** | A list of namespace that limit what we query from CloudWatch. | [optional]
**point_tag_filter_regex** | **str** | A regular expression that AWS tag key name must match (case-insensitively) in order to be ingested | [optional]
**thread_distribution_in_mins** | **int** | ThreadDistributionInMins | [optional]
**volume_selection_tags** | **dict(str, str)** | A string-&gt;string map of allow list of AWS volume tag-value pairs (in AWS). If the volume&#39;s AWS tags match this allow list, CloudWatch data about this volume is ingested. Multiple entries are OR&#39;ed | [optional]
**volume_selection_tags_expr** | **str** | A string expressing the allow list of AWS volume tag-value pairs. If the volume&#39;s AWS tags match this allow list, CloudWatch data about this volume is ingested. Multiple entries are OR&#39;ed and also OR&#39;ed with entries from volumeSelectionTags. Key-value pairs in the string are separated by commas and in the form k&#x3D;v. Example: \&quot;k1&#x3D;v1, k1&#x3D;v2, k3&#x3D;v3\&quot;. | [optional]

Expand Down
11 changes: 11 additions & 0 deletions docs/DefaultSavedAppMapSearch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DefaultSavedAppMapSearch

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**default_search_id** | **str** | | [optional]
**user_setting** | **bool** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions docs/DefaultSavedTracesSearch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DefaultSavedTracesSearch

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**default_search_id** | **str** | | [optional]
**user_setting** | **bool** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading

0 comments on commit 67d0ab8

Please sign in to comment.