Skip to content

Commit

Permalink
Autogenerated Update v2.210.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
wf-jenkins committed Nov 14, 2023
1 parent 2b7057b commit 7106bce
Show file tree
Hide file tree
Showing 11 changed files with 880 additions and 13 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.203.2"
"packageVersion": "2.210.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.202.0"
"packageVersion": "2.203.2"
}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: v2
- Package version: 2.203.2
- Package version: 2.210.2
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -224,11 +224,6 @@ 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
*MetricsPolicyApi* | [**get_metrics_policy**](docs/MetricsPolicyApi.md#get_metrics_policy) | **GET** /api/v2/metricspolicy | Get the metrics policy
*MetricsPolicyApi* | [**get_metrics_policy_by_version**](docs/MetricsPolicyApi.md#get_metrics_policy_by_version) | **GET** /api/v2/metricspolicy/history/{version} | Get a specific historical version of a metrics policy
*MetricsPolicyApi* | [**get_metrics_policy_history**](docs/MetricsPolicyApi.md#get_metrics_policy_history) | **GET** /api/v2/metricspolicy/history | Get the version history of metrics policy
*MetricsPolicyApi* | [**revert_metrics_policy_by_version**](docs/MetricsPolicyApi.md#revert_metrics_policy_by_version) | **POST** /api/v2/metricspolicy/revert/{version} | Revert to a specific historical version of a metrics policy
*MetricsPolicyApi* | [**update_metrics_policy**](docs/MetricsPolicyApi.md#update_metrics_policy) | **PUT** /api/v2/metricspolicy | Update the metrics policy
*MonitoredApplicationApi* | [**get_all_applications**](docs/MonitoredApplicationApi.md#get_all_applications) | **GET** /api/v2/monitoredapplication | Get all monitored services
*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
Expand Down Expand Up @@ -402,6 +397,11 @@ Class | Method | HTTP request | Description
*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* | [**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* | [**update_metrics_policy**](docs/SecurityPolicyApi.md#update_metrics_policy) | **PUT** /api/v2/metricspolicy | Update the metrics 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
Expand Down
281 changes: 281 additions & 0 deletions docs/SecurityPolicyApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
# 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
[**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
[**update_metrics_policy**](SecurityPolicyApi.md#update_metrics_policy) | **PUT** /api/v2/metricspolicy | Update the metrics 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)

# **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)

# **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: <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)

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: &lt;pre&gt;{ \&quot;policyRules\&quot;: [{ \&quot;name\&quot;: \&quot;Policy rule1 name\&quot;, \&quot;description\&quot;: \&quot;Policy rule1 description\&quot;, \&quot;prefixes\&quot;: [\&quot;revenue.*\&quot;], \&quot;tags\&quot;: [{\&quot;key\&quot;:\&quot;sensitive\&quot;, \&quot;value\&quot;:\&quot;false\&quot;}, {\&quot;key\&quot;:\&quot;source\&quot;, \&quot;value\&quot;:\&quot;app1\&quot;}], \&quot;tagsAnded\&quot;: \&quot;true\&quot;, \&quot;accessType\&quot;: \&quot;ALLOW\&quot;, \&quot;accounts\&quot;: [\&quot;accountId1\&quot;, \&quot;accountId2\&quot;], \&quot;userGroups\&quot;: [\&quot;userGroupId1\&quot;], \&quot;roles\&quot;: [\&quot;roleId\&quot;] }, { \&quot;name\&quot;: \&quot;Policy rule2 name\&quot;, \&quot;description\&quot;: \&quot;Policy rule2 description\&quot;, \&quot;prefixes\&quot;: [\&quot;revenue.*\&quot;], \&quot;accessType\&quot;: \&quot;BLOCK\&quot;, \&quot;accounts\&quot;: [\&quot;accountId3\&quot;], \&quot;userGroups\&quot;: [\&quot;userGroupId1\&quot;] }] }&lt;/pre&gt; | [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)

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "wavefront-api-client"
VERSION = "2.203.2"
VERSION = "2.210.2"
# To install the library, run the following
#
# python setup.py install
Expand Down
Loading

0 comments on commit 7106bce

Please sign in to comment.