Skip to content

Commit b6ebaae

Browse files
author
wf-jenkins
committed
Autogenerated Update v2.171.0.
1 parent e53ffb2 commit b6ebaae

19 files changed

+642
-7
lines changed

.swagger-codegen/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"gitUserId": "wavefrontHQ",
44
"packageName": "wavefront_api_client",
55
"packageUrl": "https://github.com/wavefrontHQ/python-client",
6-
"packageVersion": "2.170.1"
6+
"packageVersion": "2.171.0"
77
}

.swagger-codegen/config.jsone

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"gitUserId": "wavefrontHQ",
44
"packageName": "wavefront_api_client",
55
"packageUrl": "https://github.com/wavefrontHQ/python-client",
6-
"packageVersion": "2.169.0"
6+
"packageVersion": "2.170.1"
77
}

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

66
- API version: v2
7-
- Package version: 2.170.1
7+
- Package version: 2.171.0
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -454,6 +454,7 @@ Class | Method | HTTP request | Description
454454
*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
455455
*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
456456
*UserGroupApi* | [**update_user_group**](docs/UserGroupApi.md#update_user_group) | **PUT** /api/v2/usergroup/{id} | Update a specific user group
457+
*WavefrontApi* | [**get_cluster_info**](docs/WavefrontApi.md#get_cluster_info) | **GET** /api/v2/cluster/info | API endpoint to get cluster info
457458
*WebhookApi* | [**create_webhook**](docs/WebhookApi.md#create_webhook) | **POST** /api/v2/webhook | Create a specific webhook
458459
*WebhookApi* | [**delete_webhook**](docs/WebhookApi.md#delete_webhook) | **DELETE** /api/v2/webhook/{id} | Delete a specific webhook
459460
*WebhookApi* | [**get_all_webhooks**](docs/WebhookApi.md#get_all_webhooks) | **GET** /api/v2/webhook | Get all webhooks for a customer
@@ -493,6 +494,7 @@ Class | Method | HTTP request | Description
493494
- [CloudIntegration](docs/CloudIntegration.md)
494495
- [CloudTrailConfiguration](docs/CloudTrailConfiguration.md)
495496
- [CloudWatchConfiguration](docs/CloudWatchConfiguration.md)
497+
- [ClusterInfoDTO](docs/ClusterInfoDTO.md)
496498
- [Conversion](docs/Conversion.md)
497499
- [ConversionObject](docs/ConversionObject.md)
498500
- [CustomerFacingUserObject](docs/CustomerFacingUserObject.md)
@@ -613,6 +615,7 @@ Class | Method | HTTP request | Description
613615
- [ResponseContainerAlert](docs/ResponseContainerAlert.md)
614616
- [ResponseContainerApiTokenModel](docs/ResponseContainerApiTokenModel.md)
615617
- [ResponseContainerCloudIntegration](docs/ResponseContainerCloudIntegration.md)
618+
- [ResponseContainerClusterInfoDTO](docs/ResponseContainerClusterInfoDTO.md)
616619
- [ResponseContainerDashboard](docs/ResponseContainerDashboard.md)
617620
- [ResponseContainerDefaultSavedAppMapSearch](docs/ResponseContainerDefaultSavedAppMapSearch.md)
618621
- [ResponseContainerDefaultSavedTracesSearch](docs/ResponseContainerDefaultSavedTracesSearch.md)

docs/ClusterInfoDTO.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ClusterInfoDTO
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**cluster_alias** | **str** | | [optional]
7+
**status_page_link** | **str** | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ResponseContainerClusterInfoDTO
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**response** | [**ClusterInfoDTO**](ClusterInfoDTO.md) | | [optional]
7+
**status** | [**ResponseStatus**](ResponseStatus.md) | |
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

docs/WavefrontApi.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# wavefront_api_client.WavefrontApi
2+
3+
All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_cluster_info**](WavefrontApi.md#get_cluster_info) | **GET** /api/v2/cluster/info | API endpoint to get cluster info
8+
9+
10+
# **get_cluster_info**
11+
> ResponseContainerClusterInfoDTO get_cluster_info()
12+
13+
API endpoint to get cluster info
14+
15+
16+
17+
### Example
18+
```python
19+
from __future__ import print_function
20+
import time
21+
import wavefront_api_client
22+
from wavefront_api_client.rest import ApiException
23+
from pprint import pprint
24+
25+
# Configure API key authorization: api_key
26+
configuration = wavefront_api_client.Configuration()
27+
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
28+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
29+
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
30+
31+
# create an instance of the API class
32+
api_instance = wavefront_api_client.WavefrontApi(wavefront_api_client.ApiClient(configuration))
33+
34+
try:
35+
# API endpoint to get cluster info
36+
api_response = api_instance.get_cluster_info()
37+
pprint(api_response)
38+
except ApiException as e:
39+
print("Exception when calling WavefrontApi->get_cluster_info: %s\n" % e)
40+
```
41+
42+
### Parameters
43+
This endpoint does not need any parameter.
44+
45+
### Return type
46+
47+
[**ResponseContainerClusterInfoDTO**](ResponseContainerClusterInfoDTO.md)
48+
49+
### Authorization
50+
51+
[api_key](../README.md#api_key)
52+
53+
### HTTP request headers
54+
55+
- **Content-Type**: application/json
56+
- **Accept**: application/json
57+
58+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
59+

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from setuptools import setup, find_packages # noqa: H301
1515

1616
NAME = "wavefront-api-client"
17-
VERSION = "2.170.1"
17+
VERSION = "2.171.0"
1818
# To install the library, run the following
1919
#
2020
# python setup.py install

test/test_cluster_info_dto.py

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# coding: utf-8
2+
3+
"""
4+
Wavefront REST API Documentation
5+
6+
<p>The REST API enables you to interact with the Wavefront 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 Wavefront REST API.</a></p> # noqa: E501
7+
8+
OpenAPI spec version: v2
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
import unittest
17+
18+
import wavefront_api_client
19+
from wavefront_api_client.models.cluster_info_dto import ClusterInfoDTO # noqa: E501
20+
from wavefront_api_client.rest import ApiException
21+
22+
23+
class TestClusterInfoDTO(unittest.TestCase):
24+
"""ClusterInfoDTO unit test stubs"""
25+
26+
def setUp(self):
27+
pass
28+
29+
def tearDown(self):
30+
pass
31+
32+
def testClusterInfoDTO(self):
33+
"""Test ClusterInfoDTO"""
34+
# FIXME: construct object with mandatory attributes with example values
35+
# model = wavefront_api_client.models.cluster_info_dto.ClusterInfoDTO() # noqa: E501
36+
pass
37+
38+
39+
if __name__ == '__main__':
40+
unittest.main()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# coding: utf-8
2+
3+
"""
4+
Wavefront REST API Documentation
5+
6+
<p>The REST API enables you to interact with the Wavefront 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 Wavefront REST API.</a></p> # noqa: E501
7+
8+
OpenAPI spec version: v2
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
import unittest
17+
18+
import wavefront_api_client
19+
from wavefront_api_client.models.response_container_cluster_info_dto import ResponseContainerClusterInfoDTO # noqa: E501
20+
from wavefront_api_client.rest import ApiException
21+
22+
23+
class TestResponseContainerClusterInfoDTO(unittest.TestCase):
24+
"""ResponseContainerClusterInfoDTO unit test stubs"""
25+
26+
def setUp(self):
27+
pass
28+
29+
def tearDown(self):
30+
pass
31+
32+
def testResponseContainerClusterInfoDTO(self):
33+
"""Test ResponseContainerClusterInfoDTO"""
34+
# FIXME: construct object with mandatory attributes with example values
35+
# model = wavefront_api_client.models.response_container_cluster_info_dto.ResponseContainerClusterInfoDTO() # noqa: E501
36+
pass
37+
38+
39+
if __name__ == '__main__':
40+
unittest.main()

test/test_wavefront_api.py

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# coding: utf-8
2+
3+
"""
4+
Wavefront REST API Documentation
5+
6+
<p>The REST API enables you to interact with the Wavefront 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 Wavefront REST API.</a></p> # noqa: E501
7+
8+
OpenAPI spec version: v2
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
import unittest
17+
18+
import wavefront_api_client
19+
from wavefront_api_client.api.wavefront_api import WavefrontApi # noqa: E501
20+
from wavefront_api_client.rest import ApiException
21+
22+
23+
class TestWavefrontApi(unittest.TestCase):
24+
"""WavefrontApi unit test stubs"""
25+
26+
def setUp(self):
27+
self.api = wavefront_api_client.api.wavefront_api.WavefrontApi() # noqa: E501
28+
29+
def tearDown(self):
30+
pass
31+
32+
def test_get_cluster_info(self):
33+
"""Test case for get_cluster_info
34+
35+
API endpoint to get cluster info # noqa: E501
36+
"""
37+
pass
38+
39+
40+
if __name__ == '__main__':
41+
unittest.main()

wavefront_api_client/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
from wavefront_api_client.api.usage_api import UsageApi
5353
from wavefront_api_client.api.user_api import UserApi
5454
from wavefront_api_client.api.user_group_api import UserGroupApi
55+
from wavefront_api_client.api.wavefront_api import WavefrontApi
5556
from wavefront_api_client.api.webhook_api import WebhookApi
5657

5758
# import ApiClient
@@ -88,6 +89,7 @@
8889
from wavefront_api_client.models.cloud_integration import CloudIntegration
8990
from wavefront_api_client.models.cloud_trail_configuration import CloudTrailConfiguration
9091
from wavefront_api_client.models.cloud_watch_configuration import CloudWatchConfiguration
92+
from wavefront_api_client.models.cluster_info_dto import ClusterInfoDTO
9193
from wavefront_api_client.models.conversion import Conversion
9294
from wavefront_api_client.models.conversion_object import ConversionObject
9395
from wavefront_api_client.models.customer_facing_user_object import CustomerFacingUserObject
@@ -208,6 +210,7 @@
208210
from wavefront_api_client.models.response_container_alert import ResponseContainerAlert
209211
from wavefront_api_client.models.response_container_api_token_model import ResponseContainerApiTokenModel
210212
from wavefront_api_client.models.response_container_cloud_integration import ResponseContainerCloudIntegration
213+
from wavefront_api_client.models.response_container_cluster_info_dto import ResponseContainerClusterInfoDTO
211214
from wavefront_api_client.models.response_container_dashboard import ResponseContainerDashboard
212215
from wavefront_api_client.models.response_container_default_saved_app_map_search import ResponseContainerDefaultSavedAppMapSearch
213216
from wavefront_api_client.models.response_container_default_saved_traces_search import ResponseContainerDefaultSavedTracesSearch

wavefront_api_client/api/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@
3939
from wavefront_api_client.api.usage_api import UsageApi
4040
from wavefront_api_client.api.user_api import UserApi
4141
from wavefront_api_client.api.user_group_api import UserGroupApi
42+
from wavefront_api_client.api.wavefront_api import WavefrontApi
4243
from wavefront_api_client.api.webhook_api import WebhookApi

0 commit comments

Comments
 (0)