From d1c560a14b442c4c7a7410e0f2240ee707c916ad Mon Sep 17 00:00:00 2001 From: basilisk487 Date: Wed, 28 Jun 2017 19:12:59 -0500 Subject: [PATCH 1/3] Upgrade to version 2.2.0 (support HTTP proxy) --- example.py | 4 +- requirements.txt | 5 + setup.py | 22 +- wavefront_api_client/__init__.py | 2 - wavefront_api_client/api_client.py | 85 +- wavefront_api_client/apis/alert_api.py | 606 +++---- .../apis/cloud_integration_api.py | 249 +-- wavefront_api_client/apis/dashboard_api.py | 487 ++---- wavefront_api_client/apis/event_api.py | 409 ++--- .../apis/external_link_api.py | 210 +-- .../apis/maintenance_window_api.py | 210 +-- wavefront_api_client/apis/message_api.py | 95 +- wavefront_api_client/apis/metric_api.py | 56 +- wavefront_api_client/apis/proxy_api.py | 210 +-- wavefront_api_client/apis/query_api.py | 125 +- wavefront_api_client/apis/saved_search_api.py | 253 ++- wavefront_api_client/apis/search_api.py | 1532 +++++++---------- wavefront_api_client/apis/source_api.py | 366 ++-- wavefront_api_client/apis/user_api.py | 247 +-- wavefront_api_client/apis/webhook_api.py | 210 +-- wavefront_api_client/configuration.py | 22 +- wavefront_api_client/models/alert.py | 555 +++--- .../models/avro_backed_standardized_dto.py | 76 +- .../models/aws_base_credentials.py | 38 +- wavefront_api_client/models/chart.py | 154 +- wavefront_api_client/models/chart_settings.py | 633 ++++--- .../models/chart_source_query.py | 120 +- .../models/cloud_integration.py | 536 +++--- .../models/cloud_trail_configuration.py | 91 +- .../models/cloud_watch_configuration.py | 58 +- wavefront_api_client/models/dashboard.py | 554 +++--- .../models/dashboard_parameter_value.py | 204 ++- .../models/dashboard_section.py | 38 +- .../models/dashboard_section_row.py | 81 +- .../models/ec2_configuration.py | 40 +- wavefront_api_client/models/event.py | 442 ++--- .../models/event_search_request.py | 58 +- .../models/event_time_range.py | 40 +- wavefront_api_client/models/external_link.py | 113 +- wavefront_api_client/models/facet_response.py | 84 +- .../models/facet_search_request_container.py | 68 +- .../models/facets_response_container.py | 40 +- .../models/facets_search_request_container.py | 67 +- wavefront_api_client/models/history_entry.py | 76 +- .../models/history_response.py | 84 +- .../models/iterator_entry_string_json_node.py | 28 +- .../models/iterator_json_node.py | 28 +- .../models/iterator_string.py | 28 +- .../models/maintenance_window.py | 296 ++-- wavefront_api_client/models/message.py | 246 +-- wavefront_api_client/models/metric_details.py | 48 +- .../models/metric_details_response.py | 32 +- wavefront_api_client/models/number.py | 28 +- wavefront_api_client/models/paged.py | 92 +- wavefront_api_client/models/paged_alert.py | 84 +- .../models/paged_cloud_integration.py | 84 +- .../models/paged_dashboard.py | 84 +- wavefront_api_client/models/paged_event.py | 84 +- .../models/paged_external_link.py | 84 +- .../models/paged_maintenance_window.py | 84 +- wavefront_api_client/models/paged_message.py | 84 +- wavefront_api_client/models/paged_proxy.py | 84 +- .../models/paged_saved_search.py | 84 +- wavefront_api_client/models/paged_source.py | 84 +- wavefront_api_client/models/paged_webhook.py | 84 +- wavefront_api_client/models/point.py | 38 +- wavefront_api_client/models/proxy.py | 296 ++-- .../models/query_key_container.py | 68 +- wavefront_api_client/models/query_result.py | 148 +- wavefront_api_client/models/report_event.py | 138 +- .../models/response_container.py | 39 +- .../models/response_container_alert.py | 39 +- .../response_container_cloud_integration.py | 39 +- .../models/response_container_dashboard.py | 39 +- .../models/response_container_event.py | 39 +- .../response_container_external_link.py | 39 +- .../response_container_facet_response.py | 39 +- ...nse_container_facets_response_container.py | 39 +- .../response_container_history_response.py | 39 +- .../response_container_maintenance_window.py | 39 +- .../response_container_map_string_integer.py | 39 +- .../models/response_container_message.py | 39 +- .../models/response_container_paged.py | 39 +- .../models/response_container_paged_alert.py | 39 +- ...ponse_container_paged_cloud_integration.py | 39 +- .../response_container_paged_dashboard.py | 39 +- .../models/response_container_paged_event.py | 39 +- .../response_container_paged_external_link.py | 39 +- ...onse_container_paged_maintenance_window.py | 39 +- .../response_container_paged_message.py | 39 +- .../models/response_container_paged_proxy.py | 39 +- .../response_container_paged_saved_search.py | 39 +- .../models/response_container_paged_source.py | 39 +- .../response_container_paged_webhook.py | 39 +- .../models/response_container_proxy.py | 39 +- .../models/response_container_saved_search.py | 39 +- .../models/response_container_source.py | 39 +- .../response_container_tags_response.py | 39 +- .../models/response_container_webhook.py | 39 +- .../models/response_status.py | 48 +- wavefront_api_client/models/saved_search.py | 151 +- .../models/scoped_dto_converter.py | 28 +- wavefront_api_client/models/search_query.py | 46 +- .../models/sortable_search_request.py | 58 +- wavefront_api_client/models/sorting.py | 38 +- wavefront_api_client/models/source.py | 146 +- .../models/source_label_pair.py | 108 +- .../models/source_search_request_container.py | 58 +- wavefront_api_client/models/stats_model.py | 172 +- wavefront_api_client/models/tags_response.py | 84 +- wavefront_api_client/models/timeseries.py | 39 +- .../models/timeseries_stats_container.py | 92 +- wavefront_api_client/models/user_model.py | 48 +- wavefront_api_client/models/user_to_create.py | 38 +- wavefront_api_client/models/webhook.py | 273 +-- wavefront_api_client/models/wf_tags.py | 32 +- wavefront_api_client/rest.py | 45 +- 117 files changed, 7603 insertions(+), 7125 deletions(-) create mode 100644 requirements.txt diff --git a/example.py b/example.py index 79e7af3..976e99f 100644 --- a/example.py +++ b/example.py @@ -4,7 +4,9 @@ base_url = 'https://try.wavefront.com' api_key = 'YOUR_API_KEY' -client = wave_api.ApiClient(host=base_url, header_name='Authorization', header_value='Bearer ' + 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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..bafdc07 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +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 f67eb24..563c78d 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,21 @@ # coding: utf-8 -import sys -from setuptools import setup, find_packages +""" + Wavefront Public API -NAME = "wavefront-client" -VERSION = "2.1.0" +

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+ OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" +import sys +from setuptools import setup, find_packages + +NAME = "wavefront-client" +VERSION = "2.2.0" # To install the library, run the following # # python setup.py install @@ -15,7 +23,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"] +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] setup( name=NAME, @@ -29,8 +37,6 @@ packages=find_packages(), include_package_data=True, long_description="""\ - <p>Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.</p><p>When you make API calls outside the Wavefront UI you must add the header \"Authorization: Bearer &lt;&lt;API-TOKEN&gt;&gt;\" 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> + <p>Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.</p><p>When you make API calls outside the Wavefront UI you must add the header \"Authorization: Bearer &lt;&lt;API-TOKEN&gt;&gt;\" 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> """ ) - - diff --git a/wavefront_api_client/__init__.py b/wavefront_api_client/__init__.py index f70273d..82da6e7 100644 --- a/wavefront_api_client/__init__.py +++ b/wavefront_api_client/__init__.py @@ -131,5 +131,3 @@ from .api_client import ApiClient from .configuration import Configuration - -configuration = Configuration() diff --git a/wavefront_api_client/api_client.py b/wavefront_api_client/api_client.py index 94370c1..e7f2da3 100644 --- a/wavefront_api_client/api_client.py +++ b/wavefront_api_client/api_client.py @@ -16,7 +16,7 @@ import json import mimetypes import tempfile -import threading +from multiprocessing.pool import ThreadPool from datetime import date, datetime @@ -59,21 +59,19 @@ class ApiClient(object): 'object': object, } - def __init__(self, host=None, header_name=None, header_value=None, cookie=None): - """ - Constructor of the class. - """ - self.rest_client = RESTClientObject() + def __init__(self, configuration=None, header_name=None, header_value=None, cookie=None): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + + self.pool = ThreadPool() + self.rest_client = RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value - if host is None: - self.host = Configuration().host - else: - self.host = host self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.1/python' + self.user_agent = 'Swagger-Codegen/2.2.0/python' @property def user_agent(self): @@ -95,10 +93,12 @@ def set_default_header(self, header_name, header_value): 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, callback=None, + response_type=None, auth_settings=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): + config = Configuration() + # header parameters header_params = header_params or {} header_params.update(self.default_headers) @@ -115,8 +115,9 @@ def __call_api(self, resource_path, method, path_params = self.parameters_to_tuples(path_params, collection_formats) for k, v in path_params: + # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, quote(str(v), safe='')) # no safe chars, encode everything + '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) # query parameters if query_params: @@ -139,7 +140,7 @@ def __call_api(self, resource_path, method, body = self.sanitize_for_serialization(body) # request url - url = self.host + resource_path + url = self.configuration.host + resource_path # perform request and return response response_data = self.request(method, url, @@ -159,12 +160,7 @@ def __call_api(self, resource_path, method, else: return_data = None - if callback: - if _return_http_data_only: - callback(return_data) - else: - callback((return_data, response_data.status, response_data.getheaders())) - elif _return_http_data_only: + if _return_http_data_only: return (return_data) else: return (return_data, response_data.status, response_data.getheaders()) @@ -278,7 +274,7 @@ 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, callback=None, + response_type=None, auth_settings=None, async=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): """ @@ -298,9 +294,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 callback function: Callback function for asynchronous request. - If provide this parameter, - the request will be called asynchronously. + :param async 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, header, and post parameters. @@ -315,22 +309,20 @@ def call_api(self, resource_path, method, If parameter callback is None, then the method will return the response directly. """ - if callback is None: + if not async: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, - response_type, auth_settings, callback, + response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout) else: - thread = threading.Thread(target=self.__call_api, - args=(resource_path, method, - path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - callback, _return_http_data_only, - collection_formats, _preload_content, _request_timeout)) - thread.start() + thread = self.pool.apply_async(self.__call_api, (resource_path, method, + path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, _preload_content, _request_timeout)) return thread def request(self, method, url, query_params=None, headers=None, @@ -496,13 +488,11 @@ def update_params_for_auth(self, headers, querys, auth_settings): :param querys: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. """ - config = Configuration() - if not auth_settings: return for auth in auth_settings: - auth_setting = config.auth_settings().get(auth) + auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: if not auth_setting['value']: continue @@ -523,9 +513,7 @@ def __deserialize_file(self, response): :param response: RESTResponse. :return: file path. """ - config = Configuration() - - fd, path = tempfile.mkstemp(dir=config.temp_folder_path) + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) os.close(fd) os.remove(path) @@ -614,16 +602,17 @@ def __deserialize_model(self, data, klass): :param klass: class literal. :return: model object. """ - instance = klass() - - if not instance.swagger_types: + if not klass.swagger_types: return data - for attr, attr_type in iteritems(instance.swagger_types): + kwargs = {} + for attr, attr_type in iteritems(klass.swagger_types): if data is not None \ - and instance.attribute_map[attr] in data \ + and klass.attribute_map[attr] in data \ and isinstance(data, (list, dict)): - value = data[instance.attribute_map[attr]] - setattr(instance, attr, self.__deserialize(value, attr_type)) + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) return instance diff --git a/wavefront_api_client/apis/alert_api.py b/wavefront_api_client/apis/alert_api.py index a95b7b9..456f5e1 100644 --- a/wavefront_api_client/apis/alert_api.py +++ b/wavefront_api_client/apis/alert_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,28 +31,20 @@ class AlertApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def add_alert_tag(self, id, tag_value, **kwargs): """ Add a tag to a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.add_alert_tag(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.add_alert_tag(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -61,7 +52,7 @@ def add_alert_tag(self, id, tag_value, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.add_alert_tag_with_http_info(id, tag_value, **kwargs) else: (data) = self.add_alert_tag_with_http_info(id, tag_value, **kwargs) @@ -72,15 +63,11 @@ def add_alert_tag_with_http_info(self, id, tag_value, **kwargs): Add a tag to a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.add_alert_tag_with_http_info(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.add_alert_tag_with_http_info(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -89,7 +76,7 @@ def add_alert_tag_with_http_info(self, id, tag_value, **kwargs): """ all_params = ['id', 'tag_value'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -113,14 +100,13 @@ def add_alert_tag_with_http_info(self, id, tag_value, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}/tag/{tagValue}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'tag_value' in params: path_params['tagValue'] = params['tag_value'] - query_params = {} + query_params = [] header_params = {} @@ -139,7 +125,7 @@ def add_alert_tag_with_http_info(self, id, tag_value, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/alert/{id}/tag/{tagValue}', 'PUT', path_params, query_params, header_params, @@ -148,7 +134,7 @@ def add_alert_tag_with_http_info(self, id, tag_value, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -159,22 +145,18 @@ def create_alert(self, **kwargs): Create a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_alert(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_alert(async=True) + >>> result = thread.get() + + :param async bool :param Alert body: Example Body:
{   \"name\": \"Alert Name\",   \"target\": \"user@example.com\",   \"condition\": \"ts() > 1\",   \"displayExpression\": \"ts()\",   \"minutes\": 5,   \"resolveAfterMinutes\": 2,   \"severity\": \"INFO\",   \"additionalInformation\": \"Additional Info\" }
:return: ResponseContainerAlert If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.create_alert_with_http_info(**kwargs) else: (data) = self.create_alert_with_http_info(**kwargs) @@ -185,15 +167,11 @@ def create_alert_with_http_info(self, **kwargs): Create a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_alert_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_alert_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param Alert body: Example Body:
{   \"name\": \"Alert Name\",   \"target\": \"user@example.com\",   \"condition\": \"ts() > 1\",   \"displayExpression\": \"ts()\",   \"minutes\": 5,   \"resolveAfterMinutes\": 2,   \"severity\": \"INFO\",   \"additionalInformation\": \"Additional Info\" }
:return: ResponseContainerAlert If the method is called asynchronously, @@ -201,7 +179,7 @@ def create_alert_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -219,10 +197,9 @@ def create_alert_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -243,7 +220,7 @@ def create_alert_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/alert', 'POST', path_params, query_params, header_params, @@ -252,7 +229,7 @@ def create_alert_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -263,22 +240,18 @@ def delete_alert(self, id, **kwargs): Delete a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_alert(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_alert(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_alert_with_http_info(id, **kwargs) else: (data) = self.delete_alert_with_http_info(id, **kwargs) @@ -289,15 +262,11 @@ def delete_alert_with_http_info(self, id, **kwargs): Delete a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_alert_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_alert_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerAlert If the method is called asynchronously, @@ -305,7 +274,7 @@ def delete_alert_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -326,12 +295,11 @@ def delete_alert_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -346,7 +314,7 @@ def delete_alert_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/alert/{id}', 'DELETE', path_params, query_params, header_params, @@ -355,7 +323,7 @@ def delete_alert_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -366,22 +334,18 @@ def get_alert(self, id, **kwargs): Get a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alert(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alert(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_alert_with_http_info(id, **kwargs) else: (data) = self.get_alert_with_http_info(id, **kwargs) @@ -392,15 +356,11 @@ def get_alert_with_http_info(self, id, **kwargs): Get a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alert_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alert_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerAlert If the method is called asynchronously, @@ -408,7 +368,7 @@ def get_alert_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -429,12 +389,11 @@ def get_alert_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -449,7 +408,7 @@ def get_alert_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/alert/{id}', 'GET', path_params, query_params, header_params, @@ -458,7 +417,7 @@ def get_alert_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -469,15 +428,11 @@ def get_alert_history(self, id, **kwargs): Get the version history of a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alert_history(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alert_history(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int offset: :param int limit: @@ -486,7 +441,7 @@ def get_alert_history(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_alert_history_with_http_info(id, **kwargs) else: (data) = self.get_alert_history_with_http_info(id, **kwargs) @@ -497,15 +452,11 @@ def get_alert_history_with_http_info(self, id, **kwargs): Get the version history of a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alert_history_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alert_history_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int offset: :param int limit: @@ -515,7 +466,7 @@ def get_alert_history_with_http_info(self, id, **kwargs): """ all_params = ['id', 'offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -536,16 +487,15 @@ def get_alert_history_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}/history'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -560,7 +510,7 @@ def get_alert_history_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/alert/{id}/history', 'GET', path_params, query_params, header_params, @@ -569,7 +519,7 @@ def get_alert_history_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerHistoryResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -580,22 +530,18 @@ def get_alert_tags(self, id, **kwargs): Get all tags associated with a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alert_tags(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alert_tags(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_alert_tags_with_http_info(id, **kwargs) else: (data) = self.get_alert_tags_with_http_info(id, **kwargs) @@ -606,15 +552,11 @@ def get_alert_tags_with_http_info(self, id, **kwargs): Get all tags associated with a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alert_tags_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alert_tags_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerTagsResponse If the method is called asynchronously, @@ -622,7 +564,7 @@ def get_alert_tags_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -643,12 +585,11 @@ def get_alert_tags_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}/tag'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -663,7 +604,7 @@ def get_alert_tags_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/alert/{id}/tag', 'GET', path_params, query_params, header_params, @@ -672,7 +613,7 @@ def get_alert_tags_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerTagsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -683,15 +624,11 @@ def get_alert_version(self, id, version, **kwargs): Get a specific historical version of a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alert_version(id, version, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alert_version(id, version, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int version: (required) :return: ResponseContainerAlert @@ -699,7 +636,7 @@ def get_alert_version(self, id, version, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_alert_version_with_http_info(id, version, **kwargs) else: (data) = self.get_alert_version_with_http_info(id, version, **kwargs) @@ -710,15 +647,11 @@ def get_alert_version_with_http_info(self, id, version, **kwargs): Get a specific historical version of a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alert_version_with_http_info(id, version, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alert_version_with_http_info(id, version, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int version: (required) :return: ResponseContainerAlert @@ -727,7 +660,7 @@ def get_alert_version_with_http_info(self, id, version, **kwargs): """ all_params = ['id', 'version'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -751,14 +684,13 @@ def get_alert_version_with_http_info(self, id, version, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}/history/{version}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'version' in params: path_params['version'] = params['version'] - query_params = {} + query_params = [] header_params = {} @@ -773,7 +705,7 @@ def get_alert_version_with_http_info(self, id, version, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/alert/{id}/history/{version}', 'GET', path_params, query_params, header_params, @@ -782,7 +714,7 @@ def get_alert_version_with_http_info(self, id, version, **kwargs): files=local_var_files, response_type='ResponseContainerAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -793,21 +725,17 @@ def get_alerts_summary(self, **kwargs): Count alerts of various statuses for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alerts_summary(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alerts_summary(async=True) + >>> result = thread.get() + + :param async bool :return: ResponseContainerMapStringInteger If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_alerts_summary_with_http_info(**kwargs) else: (data) = self.get_alerts_summary_with_http_info(**kwargs) @@ -818,22 +746,18 @@ def get_alerts_summary_with_http_info(self, **kwargs): Count alerts of various statuses for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_alerts_summary_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_alerts_summary_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :return: ResponseContainerMapStringInteger If the method is called asynchronously, returns the request thread. """ all_params = [] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -850,10 +774,9 @@ def get_alerts_summary_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/summary'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -868,7 +791,7 @@ def get_alerts_summary_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/alert/summary', 'GET', path_params, query_params, header_params, @@ -877,7 +800,7 @@ def get_alerts_summary_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerMapStringInteger', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -888,15 +811,11 @@ def get_all_alert(self, **kwargs): Get all alerts for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_alert(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_alert(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedAlert @@ -904,7 +823,7 @@ def get_all_alert(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_alert_with_http_info(**kwargs) else: (data) = self.get_all_alert_with_http_info(**kwargs) @@ -915,15 +834,11 @@ def get_all_alert_with_http_info(self, **kwargs): Get all alerts for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_alert_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_alert_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedAlert @@ -932,7 +847,7 @@ def get_all_alert_with_http_info(self, **kwargs): """ all_params = ['offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -950,14 +865,13 @@ def get_all_alert_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -972,7 +886,7 @@ def get_all_alert_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/alert', 'GET', path_params, query_params, header_params, @@ -981,7 +895,7 @@ def get_all_alert_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -992,15 +906,11 @@ def remove_alert_tag(self, id, tag_value, **kwargs): Remove a tag from a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.remove_alert_tag(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.remove_alert_tag(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -1008,7 +918,7 @@ def remove_alert_tag(self, id, tag_value, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.remove_alert_tag_with_http_info(id, tag_value, **kwargs) else: (data) = self.remove_alert_tag_with_http_info(id, tag_value, **kwargs) @@ -1019,15 +929,11 @@ def remove_alert_tag_with_http_info(self, id, tag_value, **kwargs): Remove a tag from a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.remove_alert_tag_with_http_info(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.remove_alert_tag_with_http_info(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -1036,7 +942,7 @@ def remove_alert_tag_with_http_info(self, id, tag_value, **kwargs): """ all_params = ['id', 'tag_value'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1060,14 +966,13 @@ def remove_alert_tag_with_http_info(self, id, tag_value, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}/tag/{tagValue}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'tag_value' in params: path_params['tagValue'] = params['tag_value'] - query_params = {} + query_params = [] header_params = {} @@ -1082,7 +987,7 @@ def remove_alert_tag_with_http_info(self, id, tag_value, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/alert/{id}/tag/{tagValue}', 'DELETE', path_params, query_params, header_params, @@ -1091,7 +996,7 @@ def remove_alert_tag_with_http_info(self, id, tag_value, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1102,15 +1007,11 @@ def set_alert_tags(self, id, **kwargs): Set all tags associated with a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.set_alert_tags(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.set_alert_tags(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param list[str] body: :return: ResponseContainer @@ -1118,7 +1019,7 @@ def set_alert_tags(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.set_alert_tags_with_http_info(id, **kwargs) else: (data) = self.set_alert_tags_with_http_info(id, **kwargs) @@ -1129,15 +1030,11 @@ def set_alert_tags_with_http_info(self, id, **kwargs): Set all tags associated with a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.set_alert_tags_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.set_alert_tags_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param list[str] body: :return: ResponseContainer @@ -1146,7 +1043,7 @@ def set_alert_tags_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1167,12 +1064,11 @@ def set_alert_tags_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}/tag'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -1193,7 +1089,7 @@ def set_alert_tags_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/alert/{id}/tag', 'POST', path_params, query_params, header_params, @@ -1202,7 +1098,7 @@ def set_alert_tags_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1213,15 +1109,11 @@ def snooze_alert(self, id, **kwargs): Snooze a specific alert for some number of seconds This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.snooze_alert(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.snooze_alert(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int seconds: :return: ResponseContainerAlert @@ -1229,7 +1121,7 @@ def snooze_alert(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.snooze_alert_with_http_info(id, **kwargs) else: (data) = self.snooze_alert_with_http_info(id, **kwargs) @@ -1240,15 +1132,11 @@ def snooze_alert_with_http_info(self, id, **kwargs): Snooze a specific alert for some number of seconds This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.snooze_alert_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.snooze_alert_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int seconds: :return: ResponseContainerAlert @@ -1257,7 +1145,7 @@ def snooze_alert_with_http_info(self, id, **kwargs): """ all_params = ['id', 'seconds'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1278,14 +1166,13 @@ def snooze_alert_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}/snooze'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] if 'seconds' in params: - query_params['seconds'] = params['seconds'] + query_params.append(('seconds', params['seconds'])) header_params = {} @@ -1300,7 +1187,7 @@ def snooze_alert_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/alert/{id}/snooze', 'POST', path_params, query_params, header_params, @@ -1309,7 +1196,7 @@ def snooze_alert_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1320,22 +1207,18 @@ def undelete_alert(self, id, **kwargs): Undelete a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.undelete_alert(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.undelete_alert(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.undelete_alert_with_http_info(id, **kwargs) else: (data) = self.undelete_alert_with_http_info(id, **kwargs) @@ -1346,15 +1229,11 @@ def undelete_alert_with_http_info(self, id, **kwargs): Undelete a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.undelete_alert_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.undelete_alert_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerAlert If the method is called asynchronously, @@ -1362,7 +1241,7 @@ def undelete_alert_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1383,12 +1262,11 @@ def undelete_alert_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}/undelete'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -1403,7 +1281,7 @@ def undelete_alert_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/alert/{id}/undelete', 'POST', path_params, query_params, header_params, @@ -1412,7 +1290,7 @@ def undelete_alert_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1423,22 +1301,18 @@ def unsnooze_alert(self, id, **kwargs): Unsnooze a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.unsnooze_alert(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.unsnooze_alert(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.unsnooze_alert_with_http_info(id, **kwargs) else: (data) = self.unsnooze_alert_with_http_info(id, **kwargs) @@ -1449,15 +1323,11 @@ def unsnooze_alert_with_http_info(self, id, **kwargs): Unsnooze a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.unsnooze_alert_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.unsnooze_alert_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerAlert If the method is called asynchronously, @@ -1465,7 +1335,7 @@ def unsnooze_alert_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1486,12 +1356,11 @@ def unsnooze_alert_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}/unsnooze'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -1506,7 +1375,7 @@ def unsnooze_alert_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/alert/{id}/unsnooze', 'POST', path_params, query_params, header_params, @@ -1515,7 +1384,7 @@ def unsnooze_alert_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1526,15 +1395,11 @@ def update_alert(self, id, **kwargs): Update a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_alert(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_alert(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Alert body: Example Body:
{   \"id\": \"1459375928549\",   \"name\": \"Alert Name\",   \"target\": \"user@example.com\",   \"condition\": \"ts() > 1\",   \"displayExpression\": \"ts()\",   \"minutes\": 5,   \"resolveAfterMinutes\": 2,   \"severity\": \"INFO\",   \"additionalInformation\": \"Additional Info\" }
:return: ResponseContainerAlert @@ -1542,7 +1407,7 @@ def update_alert(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_alert_with_http_info(id, **kwargs) else: (data) = self.update_alert_with_http_info(id, **kwargs) @@ -1553,15 +1418,11 @@ def update_alert_with_http_info(self, id, **kwargs): Update a specific alert This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_alert_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_alert_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Alert body: Example Body:
{   \"id\": \"1459375928549\",   \"name\": \"Alert Name\",   \"target\": \"user@example.com\",   \"condition\": \"ts() > 1\",   \"displayExpression\": \"ts()\",   \"minutes\": 5,   \"resolveAfterMinutes\": 2,   \"severity\": \"INFO\",   \"additionalInformation\": \"Additional Info\" }
:return: ResponseContainerAlert @@ -1570,7 +1431,7 @@ def update_alert_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1591,12 +1452,11 @@ def update_alert_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/alert/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -1617,7 +1477,7 @@ def update_alert_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/alert/{id}', 'PUT', path_params, query_params, header_params, @@ -1626,7 +1486,7 @@ def update_alert_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/cloud_integration_api.py b/wavefront_api_client/apis/cloud_integration_api.py index a810a2c..964a60d 100644 --- a/wavefront_api_client/apis/cloud_integration_api.py +++ b/wavefront_api_client/apis/cloud_integration_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,35 +31,27 @@ class CloudIntegrationApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def create_cloud_integration(self, **kwargs): """ Create a cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cloud_integration(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_cloud_integration(async=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).*$\",     \"serviceRefreshRateInMins\":0,     \"forceSave\":false   } }
:return: ResponseContainerCloudIntegration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.create_cloud_integration_with_http_info(**kwargs) else: (data) = self.create_cloud_integration_with_http_info(**kwargs) @@ -71,15 +62,11 @@ def create_cloud_integration_with_http_info(self, **kwargs): Create a cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cloud_integration_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_cloud_integration_with_http_info(async=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).*$\",     \"serviceRefreshRateInMins\":0,     \"forceSave\":false   } }
:return: ResponseContainerCloudIntegration If the method is called asynchronously, @@ -87,7 +74,7 @@ def create_cloud_integration_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -105,10 +92,9 @@ def create_cloud_integration_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/cloudintegration'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -129,7 +115,7 @@ def create_cloud_integration_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/cloudintegration', 'POST', path_params, query_params, header_params, @@ -138,7 +124,7 @@ def create_cloud_integration_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerCloudIntegration', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -149,22 +135,18 @@ def delete_cloud_integration(self, id, **kwargs): Delete a specific cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cloud_integration(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_cloud_integration(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_cloud_integration_with_http_info(id, **kwargs) else: (data) = self.delete_cloud_integration_with_http_info(id, **kwargs) @@ -175,15 +157,11 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): Delete a specific cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cloud_integration_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_cloud_integration_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerCloudIntegration If the method is called asynchronously, @@ -191,7 +169,7 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -212,12 +190,11 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/cloudintegration/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -232,7 +209,7 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/cloudintegration/{id}', 'DELETE', path_params, query_params, header_params, @@ -241,7 +218,7 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerCloudIntegration', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -252,15 +229,11 @@ def get_all_cloud_integration(self, **kwargs): Get all cloud integrations for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_cloud_integration(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_cloud_integration(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedCloudIntegration @@ -268,7 +241,7 @@ def get_all_cloud_integration(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_cloud_integration_with_http_info(**kwargs) else: (data) = self.get_all_cloud_integration_with_http_info(**kwargs) @@ -279,15 +252,11 @@ def get_all_cloud_integration_with_http_info(self, **kwargs): Get all cloud integrations for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_cloud_integration_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_cloud_integration_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedCloudIntegration @@ -296,7 +265,7 @@ def get_all_cloud_integration_with_http_info(self, **kwargs): """ all_params = ['offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -314,14 +283,13 @@ def get_all_cloud_integration_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/cloudintegration'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -336,7 +304,7 @@ def get_all_cloud_integration_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/cloudintegration', 'GET', path_params, query_params, header_params, @@ -345,7 +313,7 @@ def get_all_cloud_integration_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedCloudIntegration', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -356,22 +324,18 @@ def get_cloud_integration(self, id, **kwargs): Get a specific cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_cloud_integration(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_cloud_integration(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_cloud_integration_with_http_info(id, **kwargs) else: (data) = self.get_cloud_integration_with_http_info(id, **kwargs) @@ -382,15 +346,11 @@ def get_cloud_integration_with_http_info(self, id, **kwargs): Get a specific cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_cloud_integration_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_cloud_integration_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerCloudIntegration If the method is called asynchronously, @@ -398,7 +358,7 @@ def get_cloud_integration_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -419,12 +379,11 @@ def get_cloud_integration_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/cloudintegration/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -439,7 +398,7 @@ def get_cloud_integration_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/cloudintegration/{id}', 'GET', path_params, query_params, header_params, @@ -448,7 +407,7 @@ def get_cloud_integration_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerCloudIntegration', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -459,22 +418,18 @@ def undelete_cloud_integration(self, id, **kwargs): Undelete a specific cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.undelete_cloud_integration(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.undelete_cloud_integration(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.undelete_cloud_integration_with_http_info(id, **kwargs) else: (data) = self.undelete_cloud_integration_with_http_info(id, **kwargs) @@ -485,15 +440,11 @@ def undelete_cloud_integration_with_http_info(self, id, **kwargs): Undelete a specific cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.undelete_cloud_integration_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.undelete_cloud_integration_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerCloudIntegration If the method is called asynchronously, @@ -501,7 +452,7 @@ def undelete_cloud_integration_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -522,12 +473,11 @@ def undelete_cloud_integration_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/cloudintegration/{id}/undelete'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -542,7 +492,7 @@ def undelete_cloud_integration_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/cloudintegration/{id}/undelete', 'POST', path_params, query_params, header_params, @@ -551,7 +501,7 @@ def undelete_cloud_integration_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerCloudIntegration', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -562,15 +512,11 @@ def update_cloud_integration(self, id, **kwargs): Update a specific cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_cloud_integration(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_cloud_integration(id, async=True) + >>> result = thread.get() + + :param async 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).*$\",     \"serviceRefreshRateInMins\":0,     \"forceSave\":false   } }
:return: ResponseContainerCloudIntegration @@ -578,7 +524,7 @@ def update_cloud_integration(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_cloud_integration_with_http_info(id, **kwargs) else: (data) = self.update_cloud_integration_with_http_info(id, **kwargs) @@ -589,15 +535,11 @@ def update_cloud_integration_with_http_info(self, id, **kwargs): Update a specific cloud integration This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_cloud_integration_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_cloud_integration_with_http_info(id, async=True) + >>> result = thread.get() + + :param async 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).*$\",     \"serviceRefreshRateInMins\":0,     \"forceSave\":false   } }
:return: ResponseContainerCloudIntegration @@ -606,7 +548,7 @@ def update_cloud_integration_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -627,12 +569,11 @@ def update_cloud_integration_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/cloudintegration/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -653,7 +594,7 @@ def update_cloud_integration_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/cloudintegration/{id}', 'PUT', path_params, query_params, header_params, @@ -662,7 +603,7 @@ def update_cloud_integration_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerCloudIntegration', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/dashboard_api.py b/wavefront_api_client/apis/dashboard_api.py index 0431100..35e53e8 100644 --- a/wavefront_api_client/apis/dashboard_api.py +++ b/wavefront_api_client/apis/dashboard_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,28 +31,20 @@ class DashboardApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def add_dashboard_tag(self, id, tag_value, **kwargs): """ Add a tag to a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.add_dashboard_tag(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.add_dashboard_tag(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -61,7 +52,7 @@ def add_dashboard_tag(self, id, tag_value, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.add_dashboard_tag_with_http_info(id, tag_value, **kwargs) else: (data) = self.add_dashboard_tag_with_http_info(id, tag_value, **kwargs) @@ -72,15 +63,11 @@ def add_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): Add a tag to a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.add_dashboard_tag_with_http_info(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.add_dashboard_tag_with_http_info(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -89,7 +76,7 @@ def add_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): """ all_params = ['id', 'tag_value'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -113,14 +100,13 @@ def add_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}/tag/{tagValue}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'tag_value' in params: path_params['tagValue'] = params['tag_value'] - query_params = {} + query_params = [] header_params = {} @@ -139,7 +125,7 @@ def add_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/dashboard/{id}/tag/{tagValue}', 'PUT', path_params, query_params, header_params, @@ -148,7 +134,7 @@ def add_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -159,22 +145,18 @@ def create_dashboard(self, **kwargs): Create a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_dashboard(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_dashboard(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.create_dashboard_with_http_info(**kwargs) else: (data) = self.create_dashboard_with_http_info(**kwargs) @@ -185,15 +167,11 @@ def create_dashboard_with_http_info(self, **kwargs): Create a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_dashboard_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_dashboard_with_http_info(async=True) + >>> result = thread.get() + + :param async 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, @@ -201,7 +179,7 @@ def create_dashboard_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -219,10 +197,9 @@ def create_dashboard_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -243,7 +220,7 @@ def create_dashboard_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/dashboard', 'POST', path_params, query_params, header_params, @@ -252,7 +229,7 @@ def create_dashboard_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerDashboard', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -263,22 +240,18 @@ def delete_dashboard(self, id, **kwargs): Delete a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_dashboard(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_dashboard(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_dashboard_with_http_info(id, **kwargs) else: (data) = self.delete_dashboard_with_http_info(id, **kwargs) @@ -289,15 +262,11 @@ def delete_dashboard_with_http_info(self, id, **kwargs): Delete a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_dashboard_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_dashboard_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerDashboard If the method is called asynchronously, @@ -305,7 +274,7 @@ def delete_dashboard_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -326,12 +295,11 @@ def delete_dashboard_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -346,7 +314,7 @@ def delete_dashboard_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/dashboard/{id}', 'DELETE', path_params, query_params, header_params, @@ -355,7 +323,7 @@ def delete_dashboard_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerDashboard', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -366,15 +334,11 @@ def get_all_dashboard(self, **kwargs): Get all dashboards for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_dashboard(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_dashboard(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedDashboard @@ -382,7 +346,7 @@ def get_all_dashboard(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_dashboard_with_http_info(**kwargs) else: (data) = self.get_all_dashboard_with_http_info(**kwargs) @@ -393,15 +357,11 @@ def get_all_dashboard_with_http_info(self, **kwargs): Get all dashboards for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_dashboard_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_dashboard_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedDashboard @@ -410,7 +370,7 @@ def get_all_dashboard_with_http_info(self, **kwargs): """ all_params = ['offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -428,14 +388,13 @@ def get_all_dashboard_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -450,7 +409,7 @@ def get_all_dashboard_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/dashboard', 'GET', path_params, query_params, header_params, @@ -459,7 +418,7 @@ def get_all_dashboard_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedDashboard', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -470,22 +429,18 @@ def get_dashboard(self, id, **kwargs): Get a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_dashboard(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_dashboard(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_dashboard_with_http_info(id, **kwargs) else: (data) = self.get_dashboard_with_http_info(id, **kwargs) @@ -496,15 +451,11 @@ def get_dashboard_with_http_info(self, id, **kwargs): Get a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_dashboard_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_dashboard_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerDashboard If the method is called asynchronously, @@ -512,7 +463,7 @@ def get_dashboard_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -533,12 +484,11 @@ def get_dashboard_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -553,7 +503,7 @@ def get_dashboard_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/dashboard/{id}', 'GET', path_params, query_params, header_params, @@ -562,7 +512,7 @@ def get_dashboard_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerDashboard', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -573,15 +523,11 @@ def get_dashboard_history(self, id, **kwargs): Get the version history of a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_dashboard_history(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_dashboard_history(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int offset: :param int limit: @@ -590,7 +536,7 @@ def get_dashboard_history(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_dashboard_history_with_http_info(id, **kwargs) else: (data) = self.get_dashboard_history_with_http_info(id, **kwargs) @@ -601,15 +547,11 @@ def get_dashboard_history_with_http_info(self, id, **kwargs): Get the version history of a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_dashboard_history_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_dashboard_history_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int offset: :param int limit: @@ -619,7 +561,7 @@ def get_dashboard_history_with_http_info(self, id, **kwargs): """ all_params = ['id', 'offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -640,16 +582,15 @@ def get_dashboard_history_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}/history'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -664,7 +605,7 @@ def get_dashboard_history_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/dashboard/{id}/history', 'GET', path_params, query_params, header_params, @@ -673,7 +614,7 @@ def get_dashboard_history_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerHistoryResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -684,22 +625,18 @@ def get_dashboard_tags(self, id, **kwargs): Get all tags associated with a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_dashboard_tags(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_dashboard_tags(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_dashboard_tags_with_http_info(id, **kwargs) else: (data) = self.get_dashboard_tags_with_http_info(id, **kwargs) @@ -710,15 +647,11 @@ def get_dashboard_tags_with_http_info(self, id, **kwargs): Get all tags associated with a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_dashboard_tags_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_dashboard_tags_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerTagsResponse If the method is called asynchronously, @@ -726,7 +659,7 @@ def get_dashboard_tags_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -747,12 +680,11 @@ def get_dashboard_tags_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}/tag'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -767,7 +699,7 @@ def get_dashboard_tags_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/dashboard/{id}/tag', 'GET', path_params, query_params, header_params, @@ -776,7 +708,7 @@ def get_dashboard_tags_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerTagsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -787,15 +719,11 @@ def get_dashboard_version(self, id, version, **kwargs): Get a specific version of a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_dashboard_version(id, version, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_dashboard_version(id, version, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int version: (required) :return: ResponseContainerDashboard @@ -803,7 +731,7 @@ def get_dashboard_version(self, id, version, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_dashboard_version_with_http_info(id, version, **kwargs) else: (data) = self.get_dashboard_version_with_http_info(id, version, **kwargs) @@ -814,15 +742,11 @@ def get_dashboard_version_with_http_info(self, id, version, **kwargs): Get a specific version of a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_dashboard_version_with_http_info(id, version, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_dashboard_version_with_http_info(id, version, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param int version: (required) :return: ResponseContainerDashboard @@ -831,7 +755,7 @@ def get_dashboard_version_with_http_info(self, id, version, **kwargs): """ all_params = ['id', 'version'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -855,14 +779,13 @@ def get_dashboard_version_with_http_info(self, id, version, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}/history/{version}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'version' in params: path_params['version'] = params['version'] - query_params = {} + query_params = [] header_params = {} @@ -877,7 +800,7 @@ def get_dashboard_version_with_http_info(self, id, version, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/dashboard/{id}/history/{version}', 'GET', path_params, query_params, header_params, @@ -886,7 +809,7 @@ def get_dashboard_version_with_http_info(self, id, version, **kwargs): files=local_var_files, response_type='ResponseContainerDashboard', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -897,15 +820,11 @@ def remove_dashboard_tag(self, id, tag_value, **kwargs): Remove a tag from a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.remove_dashboard_tag(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.remove_dashboard_tag(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -913,7 +832,7 @@ def remove_dashboard_tag(self, id, tag_value, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.remove_dashboard_tag_with_http_info(id, tag_value, **kwargs) else: (data) = self.remove_dashboard_tag_with_http_info(id, tag_value, **kwargs) @@ -924,15 +843,11 @@ def remove_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): Remove a tag from a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.remove_dashboard_tag_with_http_info(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.remove_dashboard_tag_with_http_info(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -941,7 +856,7 @@ def remove_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): """ all_params = ['id', 'tag_value'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -965,14 +880,13 @@ def remove_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}/tag/{tagValue}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'tag_value' in params: path_params['tagValue'] = params['tag_value'] - query_params = {} + query_params = [] header_params = {} @@ -987,7 +901,7 @@ def remove_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/dashboard/{id}/tag/{tagValue}', 'DELETE', path_params, query_params, header_params, @@ -996,7 +910,7 @@ def remove_dashboard_tag_with_http_info(self, id, tag_value, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1007,15 +921,11 @@ def set_dashboard_tags(self, id, **kwargs): Set all tags associated with a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.set_dashboard_tags(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.set_dashboard_tags(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param list[str] body: :return: ResponseContainer @@ -1023,7 +933,7 @@ def set_dashboard_tags(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.set_dashboard_tags_with_http_info(id, **kwargs) else: (data) = self.set_dashboard_tags_with_http_info(id, **kwargs) @@ -1034,15 +944,11 @@ def set_dashboard_tags_with_http_info(self, id, **kwargs): Set all tags associated with a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.set_dashboard_tags_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.set_dashboard_tags_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param list[str] body: :return: ResponseContainer @@ -1051,7 +957,7 @@ def set_dashboard_tags_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1072,12 +978,11 @@ def set_dashboard_tags_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}/tag'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -1098,7 +1003,7 @@ def set_dashboard_tags_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/dashboard/{id}/tag', 'POST', path_params, query_params, header_params, @@ -1107,7 +1012,7 @@ def set_dashboard_tags_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1118,22 +1023,18 @@ def undelete_dashboard(self, id, **kwargs): Undelete a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.undelete_dashboard(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.undelete_dashboard(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.undelete_dashboard_with_http_info(id, **kwargs) else: (data) = self.undelete_dashboard_with_http_info(id, **kwargs) @@ -1144,15 +1045,11 @@ def undelete_dashboard_with_http_info(self, id, **kwargs): Undelete a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.undelete_dashboard_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.undelete_dashboard_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerDashboard If the method is called asynchronously, @@ -1160,7 +1057,7 @@ def undelete_dashboard_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1181,12 +1078,11 @@ def undelete_dashboard_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}/undelete'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -1201,7 +1097,7 @@ def undelete_dashboard_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/dashboard/{id}/undelete', 'POST', path_params, query_params, header_params, @@ -1210,7 +1106,7 @@ def undelete_dashboard_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerDashboard', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1221,15 +1117,11 @@ def update_dashboard(self, id, **kwargs): Update a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_dashboard(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_dashboard(id, async=True) + >>> result = thread.get() + + :param async 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 @@ -1237,7 +1129,7 @@ def update_dashboard(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_dashboard_with_http_info(id, **kwargs) else: (data) = self.update_dashboard_with_http_info(id, **kwargs) @@ -1248,15 +1140,11 @@ def update_dashboard_with_http_info(self, id, **kwargs): Update a specific dashboard This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_dashboard_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_dashboard_with_http_info(id, async=True) + >>> result = thread.get() + + :param async 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 @@ -1265,7 +1153,7 @@ def update_dashboard_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1286,12 +1174,11 @@ def update_dashboard_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/dashboard/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -1312,7 +1199,7 @@ def update_dashboard_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/dashboard/{id}', 'PUT', path_params, query_params, header_params, @@ -1321,7 +1208,7 @@ def update_dashboard_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerDashboard', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/event_api.py b/wavefront_api_client/apis/event_api.py index 11eceb0..06c9667 100644 --- a/wavefront_api_client/apis/event_api.py +++ b/wavefront_api_client/apis/event_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,28 +31,20 @@ class EventApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def add_event_tag(self, id, tag_value, **kwargs): """ Add a tag to a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.add_event_tag(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.add_event_tag(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -61,7 +52,7 @@ def add_event_tag(self, id, tag_value, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.add_event_tag_with_http_info(id, tag_value, **kwargs) else: (data) = self.add_event_tag_with_http_info(id, tag_value, **kwargs) @@ -72,15 +63,11 @@ def add_event_tag_with_http_info(self, id, tag_value, **kwargs): Add a tag to a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.add_event_tag_with_http_info(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.add_event_tag_with_http_info(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -89,7 +76,7 @@ def add_event_tag_with_http_info(self, id, tag_value, **kwargs): """ all_params = ['id', 'tag_value'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -113,14 +100,13 @@ def add_event_tag_with_http_info(self, id, tag_value, **kwargs): collection_formats = {} - resource_path = '/api/v2/event/{id}/tag/{tagValue}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'tag_value' in params: path_params['tagValue'] = params['tag_value'] - query_params = {} + query_params = [] header_params = {} @@ -139,7 +125,7 @@ def add_event_tag_with_http_info(self, id, tag_value, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/event/{id}/tag/{tagValue}', 'PUT', path_params, query_params, header_params, @@ -148,7 +134,7 @@ def add_event_tag_with_http_info(self, id, tag_value, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -159,22 +145,18 @@ def close_event(self, id, **kwargs): Close a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.close_event(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.close_event(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.close_event_with_http_info(id, **kwargs) else: (data) = self.close_event_with_http_info(id, **kwargs) @@ -185,15 +167,11 @@ def close_event_with_http_info(self, id, **kwargs): Close a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.close_event_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.close_event_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerEvent If the method is called asynchronously, @@ -201,7 +179,7 @@ def close_event_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -222,12 +200,11 @@ def close_event_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/event/{id}/close'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -242,7 +219,7 @@ def close_event_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/event/{id}/close', 'POST', path_params, query_params, header_params, @@ -251,7 +228,7 @@ def close_event_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerEvent', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -262,22 +239,18 @@ def create_event(self, **kwargs): Create a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_event(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_event(async=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\": 0 }
:return: ResponseContainerEvent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.create_event_with_http_info(**kwargs) else: (data) = self.create_event_with_http_info(**kwargs) @@ -288,15 +261,11 @@ def create_event_with_http_info(self, **kwargs): Create a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_event_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_event_with_http_info(async=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\": 0 }
:return: ResponseContainerEvent If the method is called asynchronously, @@ -304,7 +273,7 @@ def create_event_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -322,10 +291,9 @@ def create_event_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/event'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -346,7 +314,7 @@ def create_event_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/event', 'POST', path_params, query_params, header_params, @@ -355,7 +323,7 @@ def create_event_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerEvent', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -366,22 +334,18 @@ def delete_event(self, id, **kwargs): Delete a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_event(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_event(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_event_with_http_info(id, **kwargs) else: (data) = self.delete_event_with_http_info(id, **kwargs) @@ -392,15 +356,11 @@ def delete_event_with_http_info(self, id, **kwargs): Delete a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_event_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_event_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerEvent If the method is called asynchronously, @@ -408,7 +368,7 @@ def delete_event_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -429,12 +389,11 @@ def delete_event_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/event/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -449,7 +408,7 @@ def delete_event_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/event/{id}', 'DELETE', path_params, query_params, header_params, @@ -458,7 +417,7 @@ def delete_event_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerEvent', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -469,15 +428,11 @@ def get_all_events_with_time_range(self, **kwargs): List all the events for a customer within a time range This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_events_with_time_range(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_events_with_time_range(async=True) + >>> result = thread.get() + + :param async bool :param int earliest_start_time_epoch_millis: :param int latest_start_time_epoch_millis: :param str cursor: @@ -487,7 +442,7 @@ def get_all_events_with_time_range(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_events_with_time_range_with_http_info(**kwargs) else: (data) = self.get_all_events_with_time_range_with_http_info(**kwargs) @@ -498,15 +453,11 @@ def get_all_events_with_time_range_with_http_info(self, **kwargs): List all the events for a customer within a time range This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_events_with_time_range_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_events_with_time_range_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int earliest_start_time_epoch_millis: :param int latest_start_time_epoch_millis: :param str cursor: @@ -517,7 +468,7 @@ def get_all_events_with_time_range_with_http_info(self, **kwargs): """ all_params = ['earliest_start_time_epoch_millis', 'latest_start_time_epoch_millis', 'cursor', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -535,18 +486,17 @@ def get_all_events_with_time_range_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/event'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'earliest_start_time_epoch_millis' in params: - query_params['earliestStartTimeEpochMillis'] = params['earliest_start_time_epoch_millis'] + query_params.append(('earliestStartTimeEpochMillis', params['earliest_start_time_epoch_millis'])) if 'latest_start_time_epoch_millis' in params: - query_params['latestStartTimeEpochMillis'] = params['latest_start_time_epoch_millis'] + query_params.append(('latestStartTimeEpochMillis', params['latest_start_time_epoch_millis'])) if 'cursor' in params: - query_params['cursor'] = params['cursor'] + query_params.append(('cursor', params['cursor'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -561,7 +511,7 @@ def get_all_events_with_time_range_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/event', 'GET', path_params, query_params, header_params, @@ -570,7 +520,7 @@ def get_all_events_with_time_range_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedEvent', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -581,22 +531,18 @@ def get_event(self, id, **kwargs): Get a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_event(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_event(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_event_with_http_info(id, **kwargs) else: (data) = self.get_event_with_http_info(id, **kwargs) @@ -607,15 +553,11 @@ def get_event_with_http_info(self, id, **kwargs): Get a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_event_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_event_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerEvent If the method is called asynchronously, @@ -623,7 +565,7 @@ def get_event_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -644,12 +586,11 @@ def get_event_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/event/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -664,7 +605,7 @@ def get_event_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/event/{id}', 'GET', path_params, query_params, header_params, @@ -673,7 +614,7 @@ def get_event_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerEvent', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -684,22 +625,18 @@ def get_event_tags(self, id, **kwargs): Get all tags associated with a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_event_tags(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_event_tags(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_event_tags_with_http_info(id, **kwargs) else: (data) = self.get_event_tags_with_http_info(id, **kwargs) @@ -710,15 +647,11 @@ def get_event_tags_with_http_info(self, id, **kwargs): Get all tags associated with a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_event_tags_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_event_tags_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerTagsResponse If the method is called asynchronously, @@ -726,7 +659,7 @@ def get_event_tags_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -747,12 +680,11 @@ def get_event_tags_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/event/{id}/tag'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -767,7 +699,7 @@ def get_event_tags_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/event/{id}/tag', 'GET', path_params, query_params, header_params, @@ -776,7 +708,7 @@ def get_event_tags_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerTagsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -787,15 +719,11 @@ def remove_event_tag(self, id, tag_value, **kwargs): Remove a tag from a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.remove_event_tag(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.remove_event_tag(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -803,7 +731,7 @@ def remove_event_tag(self, id, tag_value, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.remove_event_tag_with_http_info(id, tag_value, **kwargs) else: (data) = self.remove_event_tag_with_http_info(id, tag_value, **kwargs) @@ -814,15 +742,11 @@ def remove_event_tag_with_http_info(self, id, tag_value, **kwargs): Remove a tag from a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.remove_event_tag_with_http_info(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.remove_event_tag_with_http_info(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -831,7 +755,7 @@ def remove_event_tag_with_http_info(self, id, tag_value, **kwargs): """ all_params = ['id', 'tag_value'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -855,14 +779,13 @@ def remove_event_tag_with_http_info(self, id, tag_value, **kwargs): collection_formats = {} - resource_path = '/api/v2/event/{id}/tag/{tagValue}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'tag_value' in params: path_params['tagValue'] = params['tag_value'] - query_params = {} + query_params = [] header_params = {} @@ -881,7 +804,7 @@ def remove_event_tag_with_http_info(self, id, tag_value, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/event/{id}/tag/{tagValue}', 'DELETE', path_params, query_params, header_params, @@ -890,7 +813,7 @@ def remove_event_tag_with_http_info(self, id, tag_value, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -901,15 +824,11 @@ def set_event_tags(self, id, **kwargs): Set all tags associated with a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.set_event_tags(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.set_event_tags(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param list[str] body: :return: ResponseContainer @@ -917,7 +836,7 @@ def set_event_tags(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.set_event_tags_with_http_info(id, **kwargs) else: (data) = self.set_event_tags_with_http_info(id, **kwargs) @@ -928,15 +847,11 @@ def set_event_tags_with_http_info(self, id, **kwargs): Set all tags associated with a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.set_event_tags_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.set_event_tags_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param list[str] body: :return: ResponseContainer @@ -945,7 +860,7 @@ def set_event_tags_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -966,12 +881,11 @@ def set_event_tags_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/event/{id}/tag'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -992,7 +906,7 @@ def set_event_tags_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/event/{id}/tag', 'POST', path_params, query_params, header_params, @@ -1001,7 +915,7 @@ def set_event_tags_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1012,15 +926,11 @@ def update_event(self, id, **kwargs): Update a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_event(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_event(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Event body: Example Body:
{   \"name\": \"Event API Example\",   \"annotations\": {     \"severity\": \"info\",     \"type\": \"event type\",     \"details\": \"description\"   },   \"startTime\": 0 }
:return: ResponseContainerEvent @@ -1028,7 +938,7 @@ def update_event(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_event_with_http_info(id, **kwargs) else: (data) = self.update_event_with_http_info(id, **kwargs) @@ -1039,15 +949,11 @@ def update_event_with_http_info(self, id, **kwargs): Update a specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_event_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_event_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Event body: Example Body:
{   \"name\": \"Event API Example\",   \"annotations\": {     \"severity\": \"info\",     \"type\": \"event type\",     \"details\": \"description\"   },   \"startTime\": 0 }
:return: ResponseContainerEvent @@ -1056,7 +962,7 @@ def update_event_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1077,12 +983,11 @@ def update_event_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/event/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -1103,7 +1008,7 @@ def update_event_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/event/{id}', 'PUT', path_params, query_params, header_params, @@ -1112,7 +1017,7 @@ def update_event_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerEvent', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/external_link_api.py b/wavefront_api_client/apis/external_link_api.py index 9e13cfb..ea7cd4d 100644 --- a/wavefront_api_client/apis/external_link_api.py +++ b/wavefront_api_client/apis/external_link_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,35 +31,27 @@ class ExternalLinkApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def create_external_link(self, **kwargs): """ Create a specific external link This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_external_link(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_external_link(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.create_external_link_with_http_info(**kwargs) else: (data) = self.create_external_link_with_http_info(**kwargs) @@ -71,15 +62,11 @@ def create_external_link_with_http_info(self, **kwargs): Create a specific external link This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_external_link_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_external_link_with_http_info(async=True) + >>> result = thread.get() + + :param async 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, @@ -87,7 +74,7 @@ def create_external_link_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -105,10 +92,9 @@ def create_external_link_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/extlink'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -129,7 +115,7 @@ def create_external_link_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/extlink', 'POST', path_params, query_params, header_params, @@ -138,7 +124,7 @@ def create_external_link_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerExternalLink', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -149,22 +135,18 @@ def delete_external_link(self, id, **kwargs): Delete a specific external link This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_external_link(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_external_link(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_external_link_with_http_info(id, **kwargs) else: (data) = self.delete_external_link_with_http_info(id, **kwargs) @@ -175,15 +157,11 @@ def delete_external_link_with_http_info(self, id, **kwargs): Delete a specific external link This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_external_link_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_external_link_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerExternalLink If the method is called asynchronously, @@ -191,7 +169,7 @@ def delete_external_link_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -212,12 +190,11 @@ def delete_external_link_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/extlink/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -236,7 +213,7 @@ def delete_external_link_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/extlink/{id}', 'DELETE', path_params, query_params, header_params, @@ -245,7 +222,7 @@ def delete_external_link_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerExternalLink', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -256,15 +233,11 @@ def get_all_external_link(self, **kwargs): Get all external links for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_external_link(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_external_link(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedExternalLink @@ -272,7 +245,7 @@ def get_all_external_link(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_external_link_with_http_info(**kwargs) else: (data) = self.get_all_external_link_with_http_info(**kwargs) @@ -283,15 +256,11 @@ def get_all_external_link_with_http_info(self, **kwargs): Get all external links for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_external_link_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_external_link_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedExternalLink @@ -300,7 +269,7 @@ def get_all_external_link_with_http_info(self, **kwargs): """ all_params = ['offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -318,14 +287,13 @@ def get_all_external_link_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/extlink'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -340,7 +308,7 @@ def get_all_external_link_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/extlink', 'GET', path_params, query_params, header_params, @@ -349,7 +317,7 @@ def get_all_external_link_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedExternalLink', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -360,22 +328,18 @@ def get_external_link(self, id, **kwargs): Get a specific external link This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_external_link(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_external_link(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_external_link_with_http_info(id, **kwargs) else: (data) = self.get_external_link_with_http_info(id, **kwargs) @@ -386,15 +350,11 @@ def get_external_link_with_http_info(self, id, **kwargs): Get a specific external link This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_external_link_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_external_link_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerExternalLink If the method is called asynchronously, @@ -402,7 +362,7 @@ def get_external_link_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -423,12 +383,11 @@ def get_external_link_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/extlink/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -443,7 +402,7 @@ def get_external_link_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/extlink/{id}', 'GET', path_params, query_params, header_params, @@ -452,7 +411,7 @@ def get_external_link_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerExternalLink', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -463,15 +422,11 @@ def update_external_link(self, id, **kwargs): Update a specific external link This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_external_link(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_external_link(id, async=True) + >>> result = thread.get() + + :param async 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 @@ -479,7 +434,7 @@ def update_external_link(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_external_link_with_http_info(id, **kwargs) else: (data) = self.update_external_link_with_http_info(id, **kwargs) @@ -490,15 +445,11 @@ def update_external_link_with_http_info(self, id, **kwargs): Update a specific external link This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_external_link_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_external_link_with_http_info(id, async=True) + >>> result = thread.get() + + :param async 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 @@ -507,7 +458,7 @@ def update_external_link_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -528,12 +479,11 @@ def update_external_link_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/extlink/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -554,7 +504,7 @@ def update_external_link_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/extlink/{id}', 'PUT', path_params, query_params, header_params, @@ -563,7 +513,7 @@ def update_external_link_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerExternalLink', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/maintenance_window_api.py b/wavefront_api_client/apis/maintenance_window_api.py index fc9c66e..7c60dec 100644 --- a/wavefront_api_client/apis/maintenance_window_api.py +++ b/wavefront_api_client/apis/maintenance_window_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,35 +31,27 @@ class MaintenanceWindowApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def create_maintenance_window(self, **kwargs): """ Create a maintenance window This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_maintenance_window(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_maintenance_window(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.create_maintenance_window_with_http_info(**kwargs) else: (data) = self.create_maintenance_window_with_http_info(**kwargs) @@ -71,15 +62,11 @@ def create_maintenance_window_with_http_info(self, **kwargs): Create a maintenance window This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_maintenance_window_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_maintenance_window_with_http_info(async=True) + >>> result = thread.get() + + :param async 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, @@ -87,7 +74,7 @@ def create_maintenance_window_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -105,10 +92,9 @@ def create_maintenance_window_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/maintenancewindow'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -129,7 +115,7 @@ def create_maintenance_window_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/maintenancewindow', 'POST', path_params, query_params, header_params, @@ -138,7 +124,7 @@ def create_maintenance_window_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerMaintenanceWindow', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -149,22 +135,18 @@ def delete_maintenance_window(self, id, **kwargs): Delete a specific maintenance window This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_maintenance_window(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_maintenance_window(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_maintenance_window_with_http_info(id, **kwargs) else: (data) = self.delete_maintenance_window_with_http_info(id, **kwargs) @@ -175,15 +157,11 @@ def delete_maintenance_window_with_http_info(self, id, **kwargs): Delete a specific maintenance window This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_maintenance_window_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_maintenance_window_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerMaintenanceWindow If the method is called asynchronously, @@ -191,7 +169,7 @@ def delete_maintenance_window_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -212,12 +190,11 @@ def delete_maintenance_window_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/maintenancewindow/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -232,7 +209,7 @@ def delete_maintenance_window_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/maintenancewindow/{id}', 'DELETE', path_params, query_params, header_params, @@ -241,7 +218,7 @@ def delete_maintenance_window_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerMaintenanceWindow', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -252,15 +229,11 @@ def get_all_maintenance_window(self, **kwargs): Get all maintenance windows for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_maintenance_window(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_maintenance_window(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedMaintenanceWindow @@ -268,7 +241,7 @@ def get_all_maintenance_window(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_maintenance_window_with_http_info(**kwargs) else: (data) = self.get_all_maintenance_window_with_http_info(**kwargs) @@ -279,15 +252,11 @@ def get_all_maintenance_window_with_http_info(self, **kwargs): Get all maintenance windows for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_maintenance_window_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_maintenance_window_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedMaintenanceWindow @@ -296,7 +265,7 @@ def get_all_maintenance_window_with_http_info(self, **kwargs): """ all_params = ['offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -314,14 +283,13 @@ def get_all_maintenance_window_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/maintenancewindow'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -336,7 +304,7 @@ def get_all_maintenance_window_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/maintenancewindow', 'GET', path_params, query_params, header_params, @@ -345,7 +313,7 @@ def get_all_maintenance_window_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedMaintenanceWindow', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -356,22 +324,18 @@ def get_maintenance_window(self, id, **kwargs): Get a specific maintenance window This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_maintenance_window(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_maintenance_window(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_maintenance_window_with_http_info(id, **kwargs) else: (data) = self.get_maintenance_window_with_http_info(id, **kwargs) @@ -382,15 +346,11 @@ def get_maintenance_window_with_http_info(self, id, **kwargs): Get a specific maintenance window This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_maintenance_window_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_maintenance_window_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerMaintenanceWindow If the method is called asynchronously, @@ -398,7 +358,7 @@ def get_maintenance_window_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -419,12 +379,11 @@ def get_maintenance_window_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/maintenancewindow/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -439,7 +398,7 @@ def get_maintenance_window_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/maintenancewindow/{id}', 'GET', path_params, query_params, header_params, @@ -448,7 +407,7 @@ def get_maintenance_window_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerMaintenanceWindow', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -459,15 +418,11 @@ def update_maintenance_window(self, id, **kwargs): Update a specific maintenance window This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_maintenance_window(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_maintenance_window(id, async=True) + >>> result = thread.get() + + :param async 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 @@ -475,7 +430,7 @@ def update_maintenance_window(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_maintenance_window_with_http_info(id, **kwargs) else: (data) = self.update_maintenance_window_with_http_info(id, **kwargs) @@ -486,15 +441,11 @@ def update_maintenance_window_with_http_info(self, id, **kwargs): Update a specific maintenance window This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_maintenance_window_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_maintenance_window_with_http_info(id, async=True) + >>> result = thread.get() + + :param async 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 @@ -503,7 +454,7 @@ def update_maintenance_window_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -524,12 +475,11 @@ def update_maintenance_window_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/maintenancewindow/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -550,7 +500,7 @@ def update_maintenance_window_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/maintenancewindow/{id}', 'PUT', path_params, query_params, header_params, @@ -559,7 +509,7 @@ def update_maintenance_window_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerMaintenanceWindow', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/message_api.py b/wavefront_api_client/apis/message_api.py index 795199a..e5ee841 100644 --- a/wavefront_api_client/apis/message_api.py +++ b/wavefront_api_client/apis/message_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,28 +31,20 @@ class MessageApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def user_get_messages(self, **kwargs): """ Gets messages applicable to the current user, i.e. within time range and distribution scope This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.user_get_messages(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.user_get_messages(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :param bool unread_only: @@ -62,7 +53,7 @@ def user_get_messages(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.user_get_messages_with_http_info(**kwargs) else: (data) = self.user_get_messages_with_http_info(**kwargs) @@ -73,15 +64,11 @@ def user_get_messages_with_http_info(self, **kwargs): Gets messages applicable to the current user, i.e. within time range and distribution scope This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.user_get_messages_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.user_get_messages_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :param bool unread_only: @@ -91,7 +78,7 @@ def user_get_messages_with_http_info(self, **kwargs): """ all_params = ['offset', 'limit', 'unread_only'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -109,16 +96,15 @@ def user_get_messages_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/message'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) if 'unread_only' in params: - query_params['unreadOnly'] = params['unread_only'] + query_params.append(('unreadOnly', params['unread_only'])) header_params = {} @@ -133,7 +119,7 @@ def user_get_messages_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/message', 'GET', path_params, query_params, header_params, @@ -142,7 +128,7 @@ def user_get_messages_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedMessage', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -153,22 +139,18 @@ def user_read_message(self, id, **kwargs): Mark a specific message as read This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.user_read_message(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.user_read_message(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.user_read_message_with_http_info(id, **kwargs) else: (data) = self.user_read_message_with_http_info(id, **kwargs) @@ -179,15 +161,11 @@ def user_read_message_with_http_info(self, id, **kwargs): Mark a specific message as read This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.user_read_message_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.user_read_message_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerMessage If the method is called asynchronously, @@ -195,7 +173,7 @@ def user_read_message_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -216,12 +194,11 @@ def user_read_message_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/message/{id}/read'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -236,7 +213,7 @@ def user_read_message_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/message/{id}/read', 'POST', path_params, query_params, header_params, @@ -245,7 +222,7 @@ def user_read_message_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerMessage', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/metric_api.py b/wavefront_api_client/apis/metric_api.py index 60b6b62..38ffeec 100644 --- a/wavefront_api_client/apis/metric_api.py +++ b/wavefront_api_client/apis/metric_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,28 +31,20 @@ class MetricApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def get_metric_details(self, m, **kwargs): """ Get more details on a metric, including reporting sources and approximate last time reported This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_metric_details(m, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_metric_details(m, async=True) + >>> result = thread.get() + + :param async bool :param str m: Metric name (required) :param str c: cursor value to continue if the number of results exceeds 1000 :param list[str] h: glob pattern for sources to include in the query result @@ -62,7 +53,7 @@ def get_metric_details(self, m, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_metric_details_with_http_info(m, **kwargs) else: (data) = self.get_metric_details_with_http_info(m, **kwargs) @@ -73,15 +64,11 @@ def get_metric_details_with_http_info(self, m, **kwargs): Get more details on a metric, including reporting sources and approximate last time reported This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_metric_details_with_http_info(m, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_metric_details_with_http_info(m, async=True) + >>> result = thread.get() + + :param async bool :param str m: Metric name (required) :param str c: cursor value to continue if the number of results exceeds 1000 :param list[str] h: glob pattern for sources to include in the query result @@ -91,7 +78,7 @@ def get_metric_details_with_http_info(self, m, **kwargs): """ all_params = ['m', 'c', 'h'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -112,16 +99,15 @@ def get_metric_details_with_http_info(self, m, **kwargs): collection_formats = {} - resource_path = '/api/v2/chart/metric/detail'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'm' in params: - query_params['m'] = params['m'] + query_params.append(('m', params['m'])) if 'c' in params: - query_params['c'] = params['c'] + query_params.append(('c', params['c'])) if 'h' in params: - query_params['h'] = params['h'] + query_params.append(('h', params['h'])) collection_formats['h'] = 'multi' header_params = {} @@ -137,7 +123,7 @@ def get_metric_details_with_http_info(self, m, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/chart/metric/detail', 'GET', path_params, query_params, header_params, @@ -146,7 +132,7 @@ def get_metric_details_with_http_info(self, m, **kwargs): files=local_var_files, response_type='MetricDetailsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/proxy_api.py b/wavefront_api_client/apis/proxy_api.py index f282938..2c43e2b 100644 --- a/wavefront_api_client/apis/proxy_api.py +++ b/wavefront_api_client/apis/proxy_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,35 +31,27 @@ class ProxyApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def delete_proxy(self, id, **kwargs): """ Delete a specific proxy This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_proxy(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_proxy(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_proxy_with_http_info(id, **kwargs) else: (data) = self.delete_proxy_with_http_info(id, **kwargs) @@ -71,15 +62,11 @@ def delete_proxy_with_http_info(self, id, **kwargs): Delete a specific proxy This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_proxy_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_proxy_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerProxy If the method is called asynchronously, @@ -87,7 +74,7 @@ def delete_proxy_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -108,12 +95,11 @@ def delete_proxy_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/proxy/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -128,7 +114,7 @@ def delete_proxy_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/proxy/{id}', 'DELETE', path_params, query_params, header_params, @@ -137,7 +123,7 @@ def delete_proxy_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerProxy', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -148,15 +134,11 @@ def get_all_proxy(self, **kwargs): Get all proxies for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_proxy(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_proxy(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedProxy @@ -164,7 +146,7 @@ def get_all_proxy(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_proxy_with_http_info(**kwargs) else: (data) = self.get_all_proxy_with_http_info(**kwargs) @@ -175,15 +157,11 @@ def get_all_proxy_with_http_info(self, **kwargs): Get all proxies for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_proxy_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_proxy_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedProxy @@ -192,7 +170,7 @@ def get_all_proxy_with_http_info(self, **kwargs): """ all_params = ['offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -210,14 +188,13 @@ def get_all_proxy_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/proxy'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -232,7 +209,7 @@ def get_all_proxy_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/proxy', 'GET', path_params, query_params, header_params, @@ -241,7 +218,7 @@ def get_all_proxy_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedProxy', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -252,22 +229,18 @@ def get_proxy(self, id, **kwargs): Get a specific proxy This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_proxy(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_proxy(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_proxy_with_http_info(id, **kwargs) else: (data) = self.get_proxy_with_http_info(id, **kwargs) @@ -278,15 +251,11 @@ def get_proxy_with_http_info(self, id, **kwargs): Get a specific proxy This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_proxy_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_proxy_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerProxy If the method is called asynchronously, @@ -294,7 +263,7 @@ def get_proxy_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -315,12 +284,11 @@ def get_proxy_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/proxy/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -335,7 +303,7 @@ def get_proxy_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/proxy/{id}', 'GET', path_params, query_params, header_params, @@ -344,7 +312,7 @@ def get_proxy_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerProxy', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -355,22 +323,18 @@ def undelete_proxy(self, id, **kwargs): Undelete a specific proxy This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.undelete_proxy(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.undelete_proxy(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.undelete_proxy_with_http_info(id, **kwargs) else: (data) = self.undelete_proxy_with_http_info(id, **kwargs) @@ -381,15 +345,11 @@ def undelete_proxy_with_http_info(self, id, **kwargs): Undelete a specific proxy This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.undelete_proxy_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.undelete_proxy_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerProxy If the method is called asynchronously, @@ -397,7 +357,7 @@ def undelete_proxy_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -418,12 +378,11 @@ def undelete_proxy_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/proxy/{id}/undelete'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -438,7 +397,7 @@ def undelete_proxy_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/proxy/{id}/undelete', 'POST', path_params, query_params, header_params, @@ -447,7 +406,7 @@ def undelete_proxy_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerProxy', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -458,15 +417,11 @@ def update_proxy(self, id, **kwargs): Update the name of a specific proxy This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_proxy(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_proxy(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Proxy body: Example Body:
{   \"name\": \"New Name for proxy\" }
:return: ResponseContainerProxy @@ -474,7 +429,7 @@ def update_proxy(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_proxy_with_http_info(id, **kwargs) else: (data) = self.update_proxy_with_http_info(id, **kwargs) @@ -485,15 +440,11 @@ def update_proxy_with_http_info(self, id, **kwargs): Update the name of a specific proxy This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_proxy_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_proxy_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Proxy body: Example Body:
{   \"name\": \"New Name for proxy\" }
:return: ResponseContainerProxy @@ -502,7 +453,7 @@ def update_proxy_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -523,12 +474,11 @@ def update_proxy_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/proxy/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -549,7 +499,7 @@ def update_proxy_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/proxy/{id}', 'PUT', path_params, query_params, header_params, @@ -558,7 +508,7 @@ def update_proxy_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerProxy', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/query_api.py b/wavefront_api_client/apis/query_api.py index 023117e..53f8572 100644 --- a/wavefront_api_client/apis/query_api.py +++ b/wavefront_api_client/apis/query_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,28 +31,20 @@ class QueryApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def query_api(self, q, s, g, **kwargs): """ Perform a charting query against Wavefront servers that returns the appropriate points in the specified time window and granularity Long time spans and small granularities can take a long time to calculate This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.query_api(q, s, g, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.query_api(q, s, g, async=True) + >>> result = thread.get() + + :param async 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) @@ -72,7 +63,7 @@ def query_api(self, q, s, g, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.query_api_with_http_info(q, s, g, **kwargs) else: (data) = self.query_api_with_http_info(q, s, g, **kwargs) @@ -83,15 +74,11 @@ def query_api_with_http_info(self, q, s, g, **kwargs): Perform a charting query against Wavefront servers that returns the appropriate points in the specified time window and granularity Long time spans and small granularities can take a long time to calculate This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.query_api_with_http_info(q, s, g, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.query_api_with_http_info(q, s, g, async=True) + >>> result = thread.get() + + :param async 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) @@ -111,7 +98,7 @@ def query_api_with_http_info(self, q, s, g, **kwargs): """ all_params = ['q', 's', 'g', 'n', 'e', 'p', 'i', 'auto_events', 'summarization', 'list_mode', 'strict', 'include_obsolete_metrics', 'sorted'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -138,36 +125,35 @@ def query_api_with_http_info(self, q, s, g, **kwargs): collection_formats = {} - resource_path = '/api/v2/chart/api'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'n' in params: - query_params['n'] = params['n'] + query_params.append(('n', params['n'])) if 'q' in params: - query_params['q'] = params['q'] + query_params.append(('q', params['q'])) if 's' in params: - query_params['s'] = params['s'] + query_params.append(('s', params['s'])) if 'e' in params: - query_params['e'] = params['e'] + query_params.append(('e', params['e'])) if 'g' in params: - query_params['g'] = params['g'] + query_params.append(('g', params['g'])) if 'p' in params: - query_params['p'] = params['p'] + query_params.append(('p', params['p'])) if 'i' in params: - query_params['i'] = params['i'] + query_params.append(('i', params['i'])) if 'auto_events' in params: - query_params['autoEvents'] = params['auto_events'] + query_params.append(('autoEvents', params['auto_events'])) if 'summarization' in params: - query_params['summarization'] = params['summarization'] + query_params.append(('summarization', params['summarization'])) if 'list_mode' in params: - query_params['listMode'] = params['list_mode'] + query_params.append(('listMode', params['list_mode'])) if 'strict' in params: - query_params['strict'] = params['strict'] + query_params.append(('strict', params['strict'])) if 'include_obsolete_metrics' in params: - query_params['includeObsoleteMetrics'] = params['include_obsolete_metrics'] + query_params.append(('includeObsoleteMetrics', params['include_obsolete_metrics'])) if 'sorted' in params: - query_params['sorted'] = params['sorted'] + query_params.append(('sorted', params['sorted'])) header_params = {} @@ -182,7 +168,7 @@ def query_api_with_http_info(self, q, s, g, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/chart/api', 'GET', path_params, query_params, header_params, @@ -191,7 +177,7 @@ def query_api_with_http_info(self, q, s, g, **kwargs): files=local_var_files, response_type='QueryResult', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -202,15 +188,11 @@ def query_raw(self, metric, **kwargs): Perform a raw data query against Wavefront servers that returns second granularity points grouped by tags An API to check if ingested points are as expected. Points ingested within a single second are averaged when returned. This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.query_raw(metric, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.query_raw(metric, async=True) + >>> result = thread.get() + + :param async 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. @@ -221,7 +203,7 @@ def query_raw(self, metric, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.query_raw_with_http_info(metric, **kwargs) else: (data) = self.query_raw_with_http_info(metric, **kwargs) @@ -232,15 +214,11 @@ def query_raw_with_http_info(self, metric, **kwargs): Perform a raw data query against Wavefront servers that returns second granularity points grouped by tags An API to check if ingested points are as expected. Points ingested within a single second are averaged when returned. This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.query_raw_with_http_info(metric, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.query_raw_with_http_info(metric, async=True) + >>> result = thread.get() + + :param async 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. @@ -252,7 +230,7 @@ def query_raw_with_http_info(self, metric, **kwargs): """ all_params = ['metric', 'host', 'source', 'start_time', 'end_time'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -273,20 +251,19 @@ def query_raw_with_http_info(self, metric, **kwargs): collection_formats = {} - resource_path = '/api/v2/chart/raw'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'host' in params: - query_params['host'] = params['host'] + query_params.append(('host', params['host'])) if 'source' in params: - query_params['source'] = params['source'] + query_params.append(('source', params['source'])) if 'metric' in params: - query_params['metric'] = params['metric'] + query_params.append(('metric', params['metric'])) if 'start_time' in params: - query_params['startTime'] = params['start_time'] + query_params.append(('startTime', params['start_time'])) if 'end_time' in params: - query_params['endTime'] = params['end_time'] + query_params.append(('endTime', params['end_time'])) header_params = {} @@ -301,7 +278,7 @@ def query_raw_with_http_info(self, metric, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/chart/raw', 'GET', path_params, query_params, header_params, @@ -310,7 +287,7 @@ def query_raw_with_http_info(self, metric, **kwargs): files=local_var_files, response_type='list[Timeseries]', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/saved_search_api.py b/wavefront_api_client/apis/saved_search_api.py index ea95721..acac2eb 100644 --- a/wavefront_api_client/apis/saved_search_api.py +++ b/wavefront_api_client/apis/saved_search_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,35 +31,27 @@ class SavedSearchApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def create_saved_search(self, **kwargs): """ Create a saved search This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_saved_search(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_saved_search(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.create_saved_search_with_http_info(**kwargs) else: (data) = self.create_saved_search_with_http_info(**kwargs) @@ -71,15 +62,11 @@ def create_saved_search_with_http_info(self, **kwargs): Create a saved search This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_saved_search_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_saved_search_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SavedSearch body: Example Body:
{   \"query\": {     \"foo\": \"{\\\"searchTerms\\\":[{\\\"type\\\":\\\"freetext\\\",\\\"value\\\":\\\"foo\\\"}]}\"   },   \"entityType\": \"DASHBOARD\" }
:return: ResponseContainerSavedSearch If the method is called asynchronously, @@ -87,7 +74,7 @@ def create_saved_search_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -105,10 +92,9 @@ def create_saved_search_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/savedsearch'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -129,7 +115,7 @@ def create_saved_search_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/savedsearch', 'POST', path_params, query_params, header_params, @@ -138,7 +124,7 @@ def create_saved_search_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerSavedSearch', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -149,22 +135,18 @@ def delete_saved_search(self, id, **kwargs): Delete a specific saved search This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_saved_search(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_saved_search(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_saved_search_with_http_info(id, **kwargs) else: (data) = self.delete_saved_search_with_http_info(id, **kwargs) @@ -175,15 +157,11 @@ def delete_saved_search_with_http_info(self, id, **kwargs): Delete a specific saved search This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_saved_search_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_saved_search_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerSavedSearch If the method is called asynchronously, @@ -191,7 +169,7 @@ def delete_saved_search_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -212,12 +190,11 @@ def delete_saved_search_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/savedsearch/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -232,7 +209,7 @@ def delete_saved_search_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/savedsearch/{id}', 'DELETE', path_params, query_params, header_params, @@ -241,7 +218,7 @@ def delete_saved_search_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerSavedSearch', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -252,15 +229,11 @@ def get_all_entity_type_saved_searches(self, entitytype, **kwargs): Get all saved searches for a specific entity type for a user This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_entity_type_saved_searches(entitytype, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_entity_type_saved_searches(entitytype, async=True) + >>> result = thread.get() + + :param async bool :param str entitytype: (required) :param int offset: :param int limit: @@ -269,7 +242,7 @@ def get_all_entity_type_saved_searches(self, entitytype, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_entity_type_saved_searches_with_http_info(entitytype, **kwargs) else: (data) = self.get_all_entity_type_saved_searches_with_http_info(entitytype, **kwargs) @@ -280,15 +253,11 @@ def get_all_entity_type_saved_searches_with_http_info(self, entitytype, **kwargs Get all saved searches for a specific entity type for a user This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_entity_type_saved_searches_with_http_info(entitytype, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_entity_type_saved_searches_with_http_info(entitytype, async=True) + >>> result = thread.get() + + :param async bool :param str entitytype: (required) :param int offset: :param int limit: @@ -298,7 +267,7 @@ def get_all_entity_type_saved_searches_with_http_info(self, entitytype, **kwargs """ all_params = ['entitytype', 'offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -319,16 +288,15 @@ def get_all_entity_type_saved_searches_with_http_info(self, entitytype, **kwargs collection_formats = {} - resource_path = '/api/v2/savedsearch/type/{entitytype}'.replace('{format}', 'json') path_params = {} if 'entitytype' in params: path_params['entitytype'] = params['entitytype'] - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -343,7 +311,7 @@ def get_all_entity_type_saved_searches_with_http_info(self, entitytype, **kwargs # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/savedsearch/type/{entitytype}', 'GET', path_params, query_params, header_params, @@ -352,7 +320,7 @@ def get_all_entity_type_saved_searches_with_http_info(self, entitytype, **kwargs files=local_var_files, response_type='ResponseContainerPagedSavedSearch', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -363,15 +331,11 @@ def get_all_saved_searches(self, **kwargs): Get all saved searches for a user This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_saved_searches(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_saved_searches(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedSavedSearch @@ -379,7 +343,7 @@ def get_all_saved_searches(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_saved_searches_with_http_info(**kwargs) else: (data) = self.get_all_saved_searches_with_http_info(**kwargs) @@ -390,15 +354,11 @@ def get_all_saved_searches_with_http_info(self, **kwargs): Get all saved searches for a user This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_saved_searches_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_saved_searches_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedSavedSearch @@ -407,7 +367,7 @@ def get_all_saved_searches_with_http_info(self, **kwargs): """ all_params = ['offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -425,14 +385,13 @@ def get_all_saved_searches_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/savedsearch'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -447,7 +406,7 @@ def get_all_saved_searches_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/savedsearch', 'GET', path_params, query_params, header_params, @@ -456,7 +415,7 @@ def get_all_saved_searches_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedSavedSearch', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -467,22 +426,18 @@ def get_saved_search(self, id, **kwargs): Get a specific saved search This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_saved_search(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_saved_search(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_saved_search_with_http_info(id, **kwargs) else: (data) = self.get_saved_search_with_http_info(id, **kwargs) @@ -493,15 +448,11 @@ def get_saved_search_with_http_info(self, id, **kwargs): Get a specific saved search This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_saved_search_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_saved_search_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerSavedSearch If the method is called asynchronously, @@ -509,7 +460,7 @@ def get_saved_search_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -530,12 +481,11 @@ def get_saved_search_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/savedsearch/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -550,7 +500,7 @@ def get_saved_search_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/savedsearch/{id}', 'GET', path_params, query_params, header_params, @@ -559,7 +509,7 @@ def get_saved_search_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerSavedSearch', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -570,15 +520,11 @@ def update_saved_search(self, id, **kwargs): Update a specific saved search This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_saved_search(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_saved_search(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param SavedSearch body: Example Body:
{   \"query\": {     \"foo\": \"{\\\"searchTerms\\\":[{\\\"type\\\":\\\"freetext\\\",\\\"value\\\":\\\"foo\\\"}]}\"   },   \"entityType\": \"DASHBOARD\" }
:return: ResponseContainerSavedSearch @@ -586,7 +532,7 @@ def update_saved_search(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_saved_search_with_http_info(id, **kwargs) else: (data) = self.update_saved_search_with_http_info(id, **kwargs) @@ -597,15 +543,11 @@ def update_saved_search_with_http_info(self, id, **kwargs): Update a specific saved search This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_saved_search_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_saved_search_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param SavedSearch body: Example Body:
{   \"query\": {     \"foo\": \"{\\\"searchTerms\\\":[{\\\"type\\\":\\\"freetext\\\",\\\"value\\\":\\\"foo\\\"}]}\"   },   \"entityType\": \"DASHBOARD\" }
:return: ResponseContainerSavedSearch @@ -614,7 +556,7 @@ def update_saved_search_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -635,12 +577,11 @@ def update_saved_search_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/savedsearch/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -661,7 +602,7 @@ def update_saved_search_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/savedsearch/{id}', 'PUT', path_params, query_params, header_params, @@ -670,7 +611,7 @@ def update_saved_search_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerSavedSearch', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/search_api.py b/wavefront_api_client/apis/search_api.py index eb6f122..8129138 100644 --- a/wavefront_api_client/apis/search_api.py +++ b/wavefront_api_client/apis/search_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,35 +31,27 @@ class SearchApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def search_alert_deleted_entities(self, **kwargs): """ Search over a customer's deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_deleted_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_deleted_entities(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedAlert If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_alert_deleted_entities_with_http_info(**kwargs) else: (data) = self.search_alert_deleted_entities_with_http_info(**kwargs) @@ -71,15 +62,11 @@ def search_alert_deleted_entities_with_http_info(self, **kwargs): Search over a customer's deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_deleted_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_deleted_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedAlert If the method is called asynchronously, @@ -87,7 +74,7 @@ def search_alert_deleted_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -105,10 +92,9 @@ def search_alert_deleted_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/alert/deleted'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -129,7 +115,7 @@ def search_alert_deleted_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/alert/deleted', 'POST', path_params, query_params, header_params, @@ -138,7 +124,7 @@ def search_alert_deleted_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedAlert', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -149,15 +135,11 @@ def search_alert_deleted_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_deleted_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_deleted_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -165,7 +147,7 @@ def search_alert_deleted_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_alert_deleted_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_alert_deleted_for_facet_with_http_info(facet, **kwargs) @@ -176,15 +158,11 @@ def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_deleted_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_deleted_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -193,7 +171,7 @@ def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -214,12 +192,11 @@ def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/alert/deleted/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -240,7 +217,7 @@ def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/alert/deleted/{facet}', 'POST', path_params, query_params, header_params, @@ -249,7 +226,7 @@ def search_alert_deleted_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -260,22 +237,18 @@ def search_alert_deleted_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_deleted_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_deleted_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_alert_deleted_for_facets_with_http_info(**kwargs) else: (data) = self.search_alert_deleted_for_facets_with_http_info(**kwargs) @@ -286,15 +259,11 @@ def search_alert_deleted_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_deleted_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_deleted_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -302,7 +271,7 @@ def search_alert_deleted_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -320,10 +289,9 @@ def search_alert_deleted_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/alert/deleted/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -344,7 +312,7 @@ def search_alert_deleted_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/alert/deleted/facets', 'POST', path_params, query_params, header_params, @@ -353,7 +321,7 @@ def search_alert_deleted_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -364,22 +332,18 @@ def search_alert_entities(self, **kwargs): Search over a customer's non-deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_entities(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPaged If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_alert_entities_with_http_info(**kwargs) else: (data) = self.search_alert_entities_with_http_info(**kwargs) @@ -390,15 +354,11 @@ def search_alert_entities_with_http_info(self, **kwargs): Search over a customer's non-deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPaged If the method is called asynchronously, @@ -406,7 +366,7 @@ def search_alert_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -424,10 +384,9 @@ def search_alert_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/alert'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -448,7 +407,7 @@ def search_alert_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/alert', 'POST', path_params, query_params, header_params, @@ -457,7 +416,7 @@ def search_alert_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPaged', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -468,15 +427,11 @@ def search_alert_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's non-deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -484,7 +439,7 @@ def search_alert_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_alert_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_alert_for_facet_with_http_info(facet, **kwargs) @@ -495,15 +450,11 @@ def search_alert_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's non-deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -512,7 +463,7 @@ def search_alert_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -533,12 +484,11 @@ def search_alert_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/alert/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -559,7 +509,7 @@ def search_alert_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/alert/{facet}', 'POST', path_params, query_params, header_params, @@ -568,7 +518,7 @@ def search_alert_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -579,22 +529,18 @@ def search_alert_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's non-deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_alert_for_facets_with_http_info(**kwargs) else: (data) = self.search_alert_for_facets_with_http_info(**kwargs) @@ -605,15 +551,11 @@ def search_alert_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's non-deleted alerts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_alert_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_alert_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -621,7 +563,7 @@ def search_alert_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -639,10 +581,9 @@ def search_alert_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/alert/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -663,7 +604,7 @@ def search_alert_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/alert/facets', 'POST', path_params, query_params, header_params, @@ -672,7 +613,7 @@ def search_alert_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -683,22 +624,18 @@ def search_cloud_integration_deleted_entities(self, **kwargs): Search over a customer's deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_deleted_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_deleted_entities(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedCloudIntegration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_cloud_integration_deleted_entities_with_http_info(**kwargs) else: (data) = self.search_cloud_integration_deleted_entities_with_http_info(**kwargs) @@ -709,15 +646,11 @@ def search_cloud_integration_deleted_entities_with_http_info(self, **kwargs): Search over a customer's deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_deleted_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_deleted_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedCloudIntegration If the method is called asynchronously, @@ -725,7 +658,7 @@ def search_cloud_integration_deleted_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -743,10 +676,9 @@ def search_cloud_integration_deleted_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/cloudintegration/deleted'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -767,7 +699,7 @@ def search_cloud_integration_deleted_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/cloudintegration/deleted', 'POST', path_params, query_params, header_params, @@ -776,7 +708,7 @@ def search_cloud_integration_deleted_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedCloudIntegration', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -787,15 +719,11 @@ def search_cloud_integration_deleted_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_deleted_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_deleted_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -803,7 +731,7 @@ def search_cloud_integration_deleted_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_cloud_integration_deleted_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_cloud_integration_deleted_for_facet_with_http_info(facet, **kwargs) @@ -814,15 +742,11 @@ def search_cloud_integration_deleted_for_facet_with_http_info(self, facet, **kwa Lists the values of a specific facet over the customer's deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_deleted_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_deleted_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -831,7 +755,7 @@ def search_cloud_integration_deleted_for_facet_with_http_info(self, facet, **kwa """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -852,12 +776,11 @@ def search_cloud_integration_deleted_for_facet_with_http_info(self, facet, **kwa collection_formats = {} - resource_path = '/api/v2/search/cloudintegration/deleted/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -878,7 +801,7 @@ def search_cloud_integration_deleted_for_facet_with_http_info(self, facet, **kwa # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/cloudintegration/deleted/{facet}', 'POST', path_params, query_params, header_params, @@ -887,7 +810,7 @@ def search_cloud_integration_deleted_for_facet_with_http_info(self, facet, **kwa files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -898,22 +821,18 @@ def search_cloud_integration_deleted_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_deleted_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_deleted_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_cloud_integration_deleted_for_facets_with_http_info(**kwargs) else: (data) = self.search_cloud_integration_deleted_for_facets_with_http_info(**kwargs) @@ -924,15 +843,11 @@ def search_cloud_integration_deleted_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_deleted_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_deleted_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -940,7 +855,7 @@ def search_cloud_integration_deleted_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -958,10 +873,9 @@ def search_cloud_integration_deleted_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/cloudintegration/deleted/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -982,7 +896,7 @@ def search_cloud_integration_deleted_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/cloudintegration/deleted/facets', 'POST', path_params, query_params, header_params, @@ -991,7 +905,7 @@ def search_cloud_integration_deleted_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1002,22 +916,18 @@ def search_cloud_integration_entities(self, **kwargs): Search over a customer's non-deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_entities(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedCloudIntegration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_cloud_integration_entities_with_http_info(**kwargs) else: (data) = self.search_cloud_integration_entities_with_http_info(**kwargs) @@ -1028,15 +938,11 @@ def search_cloud_integration_entities_with_http_info(self, **kwargs): Search over a customer's non-deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedCloudIntegration If the method is called asynchronously, @@ -1044,7 +950,7 @@ def search_cloud_integration_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1062,10 +968,9 @@ def search_cloud_integration_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/cloudintegration'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -1086,7 +991,7 @@ def search_cloud_integration_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/cloudintegration', 'POST', path_params, query_params, header_params, @@ -1095,7 +1000,7 @@ def search_cloud_integration_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedCloudIntegration', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1106,15 +1011,11 @@ def search_cloud_integration_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's non-deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1122,7 +1023,7 @@ def search_cloud_integration_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_cloud_integration_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_cloud_integration_for_facet_with_http_info(facet, **kwargs) @@ -1133,15 +1034,11 @@ def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's non-deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1150,7 +1047,7 @@ def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1171,12 +1068,11 @@ def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/cloudintegration/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -1197,7 +1093,7 @@ def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/cloudintegration/{facet}', 'POST', path_params, query_params, header_params, @@ -1206,7 +1102,7 @@ def search_cloud_integration_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1217,22 +1113,18 @@ def search_cloud_integration_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's non-deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_cloud_integration_for_facets_with_http_info(**kwargs) else: (data) = self.search_cloud_integration_for_facets_with_http_info(**kwargs) @@ -1243,15 +1135,11 @@ def search_cloud_integration_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's non-deleted cloud integrations This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_cloud_integration_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_cloud_integration_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -1259,7 +1147,7 @@ def search_cloud_integration_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1277,10 +1165,9 @@ def search_cloud_integration_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/cloudintegration/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -1301,7 +1188,7 @@ def search_cloud_integration_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/cloudintegration/facets', 'POST', path_params, query_params, header_params, @@ -1310,7 +1197,7 @@ def search_cloud_integration_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1321,22 +1208,18 @@ def search_dashboard_deleted_entities(self, **kwargs): Search over a customer's deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_deleted_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_deleted_entities(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedDashboard If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_dashboard_deleted_entities_with_http_info(**kwargs) else: (data) = self.search_dashboard_deleted_entities_with_http_info(**kwargs) @@ -1347,15 +1230,11 @@ def search_dashboard_deleted_entities_with_http_info(self, **kwargs): Search over a customer's deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_deleted_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_deleted_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedDashboard If the method is called asynchronously, @@ -1363,7 +1242,7 @@ def search_dashboard_deleted_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1381,10 +1260,9 @@ def search_dashboard_deleted_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/dashboard/deleted'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -1405,7 +1283,7 @@ def search_dashboard_deleted_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/dashboard/deleted', 'POST', path_params, query_params, header_params, @@ -1414,7 +1292,7 @@ def search_dashboard_deleted_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedDashboard', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1425,15 +1303,11 @@ def search_dashboard_deleted_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_deleted_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_deleted_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1441,7 +1315,7 @@ def search_dashboard_deleted_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_dashboard_deleted_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_dashboard_deleted_for_facet_with_http_info(facet, **kwargs) @@ -1452,15 +1326,11 @@ def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_deleted_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_deleted_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1469,7 +1339,7 @@ def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1490,12 +1360,11 @@ def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/dashboard/deleted/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -1516,7 +1385,7 @@ def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/dashboard/deleted/{facet}', 'POST', path_params, query_params, header_params, @@ -1525,7 +1394,7 @@ def search_dashboard_deleted_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1536,22 +1405,18 @@ def search_dashboard_deleted_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_deleted_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_deleted_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_dashboard_deleted_for_facets_with_http_info(**kwargs) else: (data) = self.search_dashboard_deleted_for_facets_with_http_info(**kwargs) @@ -1562,15 +1427,11 @@ def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_deleted_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_deleted_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -1578,7 +1439,7 @@ def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1596,10 +1457,9 @@ def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/dashboard/deleted/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -1620,7 +1480,7 @@ def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/dashboard/deleted/facets', 'POST', path_params, query_params, header_params, @@ -1629,7 +1489,7 @@ def search_dashboard_deleted_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1640,22 +1500,18 @@ def search_dashboard_entities(self, **kwargs): Search over a customer's non-deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_entities(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedDashboard If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_dashboard_entities_with_http_info(**kwargs) else: (data) = self.search_dashboard_entities_with_http_info(**kwargs) @@ -1666,15 +1522,11 @@ def search_dashboard_entities_with_http_info(self, **kwargs): Search over a customer's non-deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedDashboard If the method is called asynchronously, @@ -1682,7 +1534,7 @@ def search_dashboard_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1700,10 +1552,9 @@ def search_dashboard_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/dashboard'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -1724,7 +1575,7 @@ def search_dashboard_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/dashboard', 'POST', path_params, query_params, header_params, @@ -1733,7 +1584,7 @@ def search_dashboard_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedDashboard', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1744,15 +1595,11 @@ def search_dashboard_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's non-deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1760,7 +1607,7 @@ def search_dashboard_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_dashboard_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_dashboard_for_facet_with_http_info(facet, **kwargs) @@ -1771,15 +1618,11 @@ def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's non-deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -1788,7 +1631,7 @@ def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1809,12 +1652,11 @@ def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/dashboard/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -1835,7 +1677,7 @@ def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/dashboard/{facet}', 'POST', path_params, query_params, header_params, @@ -1844,7 +1686,7 @@ def search_dashboard_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1855,22 +1697,18 @@ def search_dashboard_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's non-deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_dashboard_for_facets_with_http_info(**kwargs) else: (data) = self.search_dashboard_for_facets_with_http_info(**kwargs) @@ -1881,15 +1719,11 @@ def search_dashboard_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's non-deleted dashboards This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_dashboard_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_dashboard_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -1897,7 +1731,7 @@ def search_dashboard_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1915,10 +1749,9 @@ def search_dashboard_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/dashboard/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -1939,7 +1772,7 @@ def search_dashboard_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/dashboard/facets', 'POST', path_params, query_params, header_params, @@ -1948,7 +1781,7 @@ def search_dashboard_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1959,22 +1792,18 @@ def search_external_link_entities(self, **kwargs): Search over a customer's external links This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_external_link_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_external_link_entities(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_external_link_entities_with_http_info(**kwargs) else: (data) = self.search_external_link_entities_with_http_info(**kwargs) @@ -1985,15 +1814,11 @@ def search_external_link_entities_with_http_info(self, **kwargs): Search over a customer's external links This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_external_link_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_external_link_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedExternalLink If the method is called asynchronously, @@ -2001,7 +1826,7 @@ def search_external_link_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2019,10 +1844,9 @@ def search_external_link_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/extlink'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -2043,7 +1867,7 @@ def search_external_link_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/extlink', 'POST', path_params, query_params, header_params, @@ -2052,7 +1876,7 @@ def search_external_link_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedExternalLink', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2063,15 +1887,11 @@ def search_external_links_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's external links This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_external_links_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_external_links_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2079,7 +1899,7 @@ def search_external_links_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_external_links_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_external_links_for_facet_with_http_info(facet, **kwargs) @@ -2090,15 +1910,11 @@ def search_external_links_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's external links This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_external_links_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_external_links_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2107,7 +1923,7 @@ def search_external_links_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2128,12 +1944,11 @@ def search_external_links_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/extlink/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -2154,7 +1969,7 @@ def search_external_links_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/extlink/{facet}', 'POST', path_params, query_params, header_params, @@ -2163,7 +1978,7 @@ def search_external_links_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2174,22 +1989,18 @@ def search_external_links_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's external links This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_external_links_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_external_links_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_external_links_for_facets_with_http_info(**kwargs) else: (data) = self.search_external_links_for_facets_with_http_info(**kwargs) @@ -2200,15 +2011,11 @@ def search_external_links_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's external links This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_external_links_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_external_links_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -2216,7 +2023,7 @@ def search_external_links_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2234,10 +2041,9 @@ def search_external_links_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/extlink/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -2258,7 +2064,7 @@ def search_external_links_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/extlink/facets', 'POST', path_params, query_params, header_params, @@ -2267,7 +2073,7 @@ def search_external_links_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2278,22 +2084,18 @@ def search_maintenance_window_entities(self, **kwargs): Search over a customer's maintenance windows This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_maintenance_window_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_maintenance_window_entities(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedMaintenanceWindow If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_maintenance_window_entities_with_http_info(**kwargs) else: (data) = self.search_maintenance_window_entities_with_http_info(**kwargs) @@ -2304,15 +2106,11 @@ def search_maintenance_window_entities_with_http_info(self, **kwargs): Search over a customer's maintenance windows This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_maintenance_window_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_maintenance_window_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedMaintenanceWindow If the method is called asynchronously, @@ -2320,7 +2118,7 @@ def search_maintenance_window_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2338,10 +2136,9 @@ def search_maintenance_window_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/maintenancewindow'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -2362,7 +2159,7 @@ def search_maintenance_window_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/maintenancewindow', 'POST', path_params, query_params, header_params, @@ -2371,7 +2168,7 @@ def search_maintenance_window_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedMaintenanceWindow', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2382,15 +2179,11 @@ def search_maintenance_window_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's maintenance windows This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_maintenance_window_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_maintenance_window_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2398,7 +2191,7 @@ def search_maintenance_window_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_maintenance_window_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_maintenance_window_for_facet_with_http_info(facet, **kwargs) @@ -2409,15 +2202,11 @@ def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's maintenance windows This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_maintenance_window_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_maintenance_window_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2426,7 +2215,7 @@ def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2447,12 +2236,11 @@ def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/maintenancewindow/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -2473,7 +2261,7 @@ def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/maintenancewindow/{facet}', 'POST', path_params, query_params, header_params, @@ -2482,7 +2270,7 @@ def search_maintenance_window_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2493,22 +2281,18 @@ def search_maintenance_window_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's maintenance windows This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_maintenance_window_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_maintenance_window_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_maintenance_window_for_facets_with_http_info(**kwargs) else: (data) = self.search_maintenance_window_for_facets_with_http_info(**kwargs) @@ -2519,15 +2303,11 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's maintenance windows This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_maintenance_window_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_maintenance_window_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -2535,7 +2315,7 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2553,10 +2333,9 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/maintenancewindow/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -2577,7 +2356,7 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/maintenancewindow/facets', 'POST', path_params, query_params, header_params, @@ -2586,7 +2365,7 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2597,22 +2376,18 @@ def search_notficant_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's webhooks This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_notficant_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_notficant_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_notficant_for_facets_with_http_info(**kwargs) else: (data) = self.search_notficant_for_facets_with_http_info(**kwargs) @@ -2623,15 +2398,11 @@ def search_notficant_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's webhooks This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_notficant_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_notficant_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -2639,7 +2410,7 @@ def search_notficant_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2657,10 +2428,9 @@ def search_notficant_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/webhook/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -2681,7 +2451,7 @@ def search_notficant_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/webhook/facets', 'POST', path_params, query_params, header_params, @@ -2690,7 +2460,7 @@ def search_notficant_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2701,22 +2471,18 @@ def search_notificant_entities(self, **kwargs): Search over a customer's webhooks This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_notificant_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_notificant_entities(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedWebhook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_notificant_entities_with_http_info(**kwargs) else: (data) = self.search_notificant_entities_with_http_info(**kwargs) @@ -2727,15 +2493,11 @@ def search_notificant_entities_with_http_info(self, **kwargs): Search over a customer's webhooks This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_notificant_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_notificant_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedWebhook If the method is called asynchronously, @@ -2743,7 +2505,7 @@ def search_notificant_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2761,10 +2523,9 @@ def search_notificant_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/webhook'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -2785,7 +2546,7 @@ def search_notificant_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/webhook', 'POST', path_params, query_params, header_params, @@ -2794,7 +2555,7 @@ def search_notificant_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedWebhook', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2805,15 +2566,11 @@ def search_notificant_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's webhooks This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_notificant_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_notificant_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2821,7 +2578,7 @@ def search_notificant_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_notificant_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_notificant_for_facet_with_http_info(facet, **kwargs) @@ -2832,15 +2589,11 @@ def search_notificant_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's webhooks This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_notificant_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_notificant_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -2849,7 +2602,7 @@ def search_notificant_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2870,12 +2623,11 @@ def search_notificant_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/webhook/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -2896,7 +2648,7 @@ def search_notificant_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/webhook/{facet}', 'POST', path_params, query_params, header_params, @@ -2905,7 +2657,7 @@ def search_notificant_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2916,22 +2668,18 @@ def search_proxy_deleted_entities(self, **kwargs): Search over a customer's deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_deleted_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_deleted_entities(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_proxy_deleted_entities_with_http_info(**kwargs) else: (data) = self.search_proxy_deleted_entities_with_http_info(**kwargs) @@ -2942,15 +2690,11 @@ def search_proxy_deleted_entities_with_http_info(self, **kwargs): Search over a customer's deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_deleted_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_deleted_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedProxy If the method is called asynchronously, @@ -2958,7 +2702,7 @@ def search_proxy_deleted_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2976,10 +2720,9 @@ def search_proxy_deleted_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/proxy/deleted'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -3000,7 +2743,7 @@ def search_proxy_deleted_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/proxy/deleted', 'POST', path_params, query_params, header_params, @@ -3009,7 +2752,7 @@ def search_proxy_deleted_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedProxy', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3020,15 +2763,11 @@ def search_proxy_deleted_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_deleted_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_deleted_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3036,7 +2775,7 @@ def search_proxy_deleted_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_proxy_deleted_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_proxy_deleted_for_facet_with_http_info(facet, **kwargs) @@ -3047,15 +2786,11 @@ def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_deleted_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_deleted_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3064,7 +2799,7 @@ def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3085,12 +2820,11 @@ def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/proxy/deleted/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -3111,7 +2845,7 @@ def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/proxy/deleted/{facet}', 'POST', path_params, query_params, header_params, @@ -3120,7 +2854,7 @@ def search_proxy_deleted_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3131,22 +2865,18 @@ def search_proxy_deleted_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_deleted_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_deleted_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_proxy_deleted_for_facets_with_http_info(**kwargs) else: (data) = self.search_proxy_deleted_for_facets_with_http_info(**kwargs) @@ -3157,15 +2887,11 @@ def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_deleted_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_deleted_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -3173,7 +2899,7 @@ def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3191,10 +2917,9 @@ def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/proxy/deleted/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -3215,7 +2940,7 @@ def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/proxy/deleted/facets', 'POST', path_params, query_params, header_params, @@ -3224,7 +2949,7 @@ def search_proxy_deleted_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3235,22 +2960,18 @@ def search_proxy_entities(self, **kwargs): Search over a customer's non-deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_entities(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_proxy_entities_with_http_info(**kwargs) else: (data) = self.search_proxy_entities_with_http_info(**kwargs) @@ -3261,15 +2982,11 @@ def search_proxy_entities_with_http_info(self, **kwargs): Search over a customer's non-deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SortableSearchRequest body: :return: ResponseContainerPagedProxy If the method is called asynchronously, @@ -3277,7 +2994,7 @@ def search_proxy_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3295,10 +3012,9 @@ def search_proxy_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/proxy'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -3319,7 +3035,7 @@ def search_proxy_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/proxy', 'POST', path_params, query_params, header_params, @@ -3328,7 +3044,7 @@ def search_proxy_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedProxy', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3339,15 +3055,11 @@ def search_proxy_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's non-deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3355,7 +3067,7 @@ def search_proxy_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_proxy_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_proxy_for_facet_with_http_info(facet, **kwargs) @@ -3366,15 +3078,11 @@ def search_proxy_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's non-deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3383,7 +3091,7 @@ def search_proxy_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3404,12 +3112,11 @@ def search_proxy_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/proxy/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -3430,7 +3137,7 @@ def search_proxy_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/proxy/{facet}', 'POST', path_params, query_params, header_params, @@ -3439,7 +3146,7 @@ def search_proxy_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3450,22 +3157,18 @@ def search_proxy_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's non-deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_proxy_for_facets_with_http_info(**kwargs) else: (data) = self.search_proxy_for_facets_with_http_info(**kwargs) @@ -3476,15 +3179,11 @@ def search_proxy_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's non-deleted proxies This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_proxy_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_proxy_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -3492,7 +3191,7 @@ def search_proxy_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3510,10 +3209,9 @@ def search_proxy_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/proxy/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -3534,7 +3232,7 @@ def search_proxy_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/proxy/facets', 'POST', path_params, query_params, header_params, @@ -3543,7 +3241,7 @@ def search_proxy_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3554,22 +3252,18 @@ def search_report_event_entities(self, **kwargs): Search over a customer's events This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_report_event_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_report_event_entities(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_report_event_entities_with_http_info(**kwargs) else: (data) = self.search_report_event_entities_with_http_info(**kwargs) @@ -3580,15 +3274,11 @@ def search_report_event_entities_with_http_info(self, **kwargs): Search over a customer's events This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_report_event_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_report_event_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param EventSearchRequest body: :return: ResponseContainerPagedEvent If the method is called asynchronously, @@ -3596,7 +3286,7 @@ def search_report_event_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3614,10 +3304,9 @@ def search_report_event_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/event'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -3638,7 +3327,7 @@ def search_report_event_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/event', 'POST', path_params, query_params, header_params, @@ -3647,7 +3336,7 @@ def search_report_event_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedEvent', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3658,15 +3347,11 @@ def search_report_event_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's events This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_report_event_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_report_event_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3674,7 +3359,7 @@ def search_report_event_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_report_event_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_report_event_for_facet_with_http_info(facet, **kwargs) @@ -3685,15 +3370,11 @@ def search_report_event_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's events This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_report_event_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_report_event_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3702,7 +3383,7 @@ def search_report_event_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3723,12 +3404,11 @@ def search_report_event_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/event/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -3749,7 +3429,7 @@ def search_report_event_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/event/{facet}', 'POST', path_params, query_params, header_params, @@ -3758,7 +3438,7 @@ def search_report_event_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3769,22 +3449,18 @@ def search_report_event_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's events This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_report_event_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_report_event_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_report_event_for_facets_with_http_info(**kwargs) else: (data) = self.search_report_event_for_facets_with_http_info(**kwargs) @@ -3795,15 +3471,11 @@ def search_report_event_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's events This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_report_event_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_report_event_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -3811,7 +3483,7 @@ def search_report_event_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3829,10 +3501,9 @@ def search_report_event_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/event/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -3853,7 +3524,7 @@ def search_report_event_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/event/facets', 'POST', path_params, query_params, header_params, @@ -3862,7 +3533,7 @@ def search_report_event_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3873,22 +3544,18 @@ def search_tagged_source_entities(self, **kwargs): Search over a customer's sources This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_tagged_source_entities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_tagged_source_entities(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_tagged_source_entities_with_http_info(**kwargs) else: (data) = self.search_tagged_source_entities_with_http_info(**kwargs) @@ -3899,15 +3566,11 @@ def search_tagged_source_entities_with_http_info(self, **kwargs): Search over a customer's sources This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_tagged_source_entities_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_tagged_source_entities_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param SourceSearchRequestContainer body: :return: ResponseContainerPagedSource If the method is called asynchronously, @@ -3915,7 +3578,7 @@ def search_tagged_source_entities_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3933,10 +3596,9 @@ def search_tagged_source_entities_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/source'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -3957,7 +3619,7 @@ def search_tagged_source_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/source', 'POST', path_params, query_params, header_params, @@ -3966,7 +3628,7 @@ def search_tagged_source_entities_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedSource', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3977,15 +3639,11 @@ def search_tagged_source_for_facet(self, facet, **kwargs): Lists the values of a specific facet over the customer's sources This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_tagged_source_for_facet(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_tagged_source_for_facet(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -3993,7 +3651,7 @@ def search_tagged_source_for_facet(self, facet, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.search_tagged_source_for_facet_with_http_info(facet, **kwargs) else: (data) = self.search_tagged_source_for_facet_with_http_info(facet, **kwargs) @@ -4004,15 +3662,11 @@ def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): Lists the values of a specific facet over the customer's sources This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_tagged_source_for_facet_with_http_info(facet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_tagged_source_for_facet_with_http_info(facet, async=True) + >>> result = thread.get() + + :param async bool :param str facet: (required) :param FacetSearchRequestContainer body: :return: ResponseContainerFacetResponse @@ -4021,7 +3675,7 @@ def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): """ all_params = ['facet', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4042,12 +3696,11 @@ def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/source/{facet}'.replace('{format}', 'json') path_params = {} if 'facet' in params: path_params['facet'] = params['facet'] - query_params = {} + query_params = [] header_params = {} @@ -4068,7 +3721,7 @@ def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/source/{facet}', 'POST', path_params, query_params, header_params, @@ -4077,7 +3730,7 @@ def search_tagged_source_for_facet_with_http_info(self, facet, **kwargs): files=local_var_files, response_type='ResponseContainerFacetResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4088,22 +3741,18 @@ def search_tagged_source_for_facets(self, **kwargs): Lists the values of one or more facets over the customer's sources This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_tagged_source_for_facets(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_tagged_source_for_facets(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.search_tagged_source_for_facets_with_http_info(**kwargs) else: (data) = self.search_tagged_source_for_facets_with_http_info(**kwargs) @@ -4114,15 +3763,11 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): Lists the values of one or more facets over the customer's sources This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.search_tagged_source_for_facets_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.search_tagged_source_for_facets_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param FacetsSearchRequestContainer body: :return: ResponseContainerFacetsResponseContainer If the method is called asynchronously, @@ -4130,7 +3775,7 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4148,10 +3793,9 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/search/source/facets'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -4172,7 +3816,7 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/search/source/facets', 'POST', path_params, query_params, header_params, @@ -4181,7 +3825,7 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerFacetsResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/source_api.py b/wavefront_api_client/apis/source_api.py index b630a28..c77968f 100644 --- a/wavefront_api_client/apis/source_api.py +++ b/wavefront_api_client/apis/source_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,28 +31,20 @@ class SourceApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def add_source_tag(self, id, tag_value, **kwargs): """ Add a tag to a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.add_source_tag(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.add_source_tag(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -61,7 +52,7 @@ def add_source_tag(self, id, tag_value, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.add_source_tag_with_http_info(id, tag_value, **kwargs) else: (data) = self.add_source_tag_with_http_info(id, tag_value, **kwargs) @@ -72,15 +63,11 @@ def add_source_tag_with_http_info(self, id, tag_value, **kwargs): Add a tag to a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.add_source_tag_with_http_info(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.add_source_tag_with_http_info(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -89,7 +76,7 @@ def add_source_tag_with_http_info(self, id, tag_value, **kwargs): """ all_params = ['id', 'tag_value'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -113,14 +100,13 @@ def add_source_tag_with_http_info(self, id, tag_value, **kwargs): collection_formats = {} - resource_path = '/api/v2/source/{id}/tag/{tagValue}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'tag_value' in params: path_params['tagValue'] = params['tag_value'] - query_params = {} + query_params = [] header_params = {} @@ -139,7 +125,7 @@ def add_source_tag_with_http_info(self, id, tag_value, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/source/{id}/tag/{tagValue}', 'PUT', path_params, query_params, header_params, @@ -148,7 +134,7 @@ def add_source_tag_with_http_info(self, id, tag_value, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -159,22 +145,18 @@ def create_source(self, **kwargs): Create metadata (description or tags) for a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_source(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_source(async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.create_source_with_http_info(**kwargs) else: (data) = self.create_source_with_http_info(**kwargs) @@ -185,15 +167,11 @@ def create_source_with_http_info(self, **kwargs): Create metadata (description or tags) for a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_source_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_source_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param Source body: Example Body:
{     \"sourceName\": \"source.name\",     \"tags\": {\"sourceTag1\": true},     \"description\": \"Source Description\" }
:return: ResponseContainerSource If the method is called asynchronously, @@ -201,7 +179,7 @@ def create_source_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -219,10 +197,9 @@ def create_source_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/source'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -239,7 +216,7 @@ def create_source_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/source', 'POST', path_params, query_params, header_params, @@ -248,7 +225,7 @@ def create_source_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerSource', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -259,22 +236,18 @@ def delete_source(self, id, **kwargs): Delete metadata (description and tags) for a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_source(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_source(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_source_with_http_info(id, **kwargs) else: (data) = self.delete_source_with_http_info(id, **kwargs) @@ -285,15 +258,11 @@ def delete_source_with_http_info(self, id, **kwargs): Delete metadata (description and tags) for a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_source_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_source_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerSource If the method is called asynchronously, @@ -301,7 +270,7 @@ def delete_source_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -322,12 +291,11 @@ def delete_source_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/source/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -342,7 +310,7 @@ def delete_source_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/source/{id}', 'DELETE', path_params, query_params, header_params, @@ -351,7 +319,7 @@ def delete_source_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerSource', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -362,15 +330,11 @@ def get_all_source(self, **kwargs): Get all sources for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_source(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_source(async=True) + >>> result = thread.get() + + :param async bool :param str cursor: :param int limit: :return: ResponseContainerPagedSource @@ -378,7 +342,7 @@ def get_all_source(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_source_with_http_info(**kwargs) else: (data) = self.get_all_source_with_http_info(**kwargs) @@ -389,15 +353,11 @@ def get_all_source_with_http_info(self, **kwargs): Get all sources for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_source_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_source_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param str cursor: :param int limit: :return: ResponseContainerPagedSource @@ -406,7 +366,7 @@ def get_all_source_with_http_info(self, **kwargs): """ all_params = ['cursor', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -424,14 +384,13 @@ def get_all_source_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/source'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'cursor' in params: - query_params['cursor'] = params['cursor'] + query_params.append(('cursor', params['cursor'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -446,7 +405,7 @@ def get_all_source_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/source', 'GET', path_params, query_params, header_params, @@ -455,7 +414,7 @@ def get_all_source_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedSource', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -466,22 +425,18 @@ def get_source(self, id, **kwargs): Get a specific source for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_source(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_source(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_source_with_http_info(id, **kwargs) else: (data) = self.get_source_with_http_info(id, **kwargs) @@ -492,15 +447,11 @@ def get_source_with_http_info(self, id, **kwargs): Get a specific source for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_source_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_source_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerSource If the method is called asynchronously, @@ -508,7 +459,7 @@ def get_source_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -529,12 +480,11 @@ def get_source_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/source/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -549,7 +499,7 @@ def get_source_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/source/{id}', 'GET', path_params, query_params, header_params, @@ -558,7 +508,7 @@ def get_source_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerSource', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -569,22 +519,18 @@ def get_source_tags(self, id, **kwargs): Get all tags associated with a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_source_tags(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_source_tags(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_source_tags_with_http_info(id, **kwargs) else: (data) = self.get_source_tags_with_http_info(id, **kwargs) @@ -595,15 +541,11 @@ def get_source_tags_with_http_info(self, id, **kwargs): Get all tags associated with a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_source_tags_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_source_tags_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerTagsResponse If the method is called asynchronously, @@ -611,7 +553,7 @@ def get_source_tags_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -632,12 +574,11 @@ def get_source_tags_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/source/{id}/tag'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -652,7 +593,7 @@ def get_source_tags_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/source/{id}/tag', 'GET', path_params, query_params, header_params, @@ -661,7 +602,7 @@ def get_source_tags_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerTagsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -672,15 +613,11 @@ def remove_source_tag(self, id, tag_value, **kwargs): Remove a tag from a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.remove_source_tag(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.remove_source_tag(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -688,7 +625,7 @@ def remove_source_tag(self, id, tag_value, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.remove_source_tag_with_http_info(id, tag_value, **kwargs) else: (data) = self.remove_source_tag_with_http_info(id, tag_value, **kwargs) @@ -699,15 +636,11 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): Remove a tag from a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.remove_source_tag_with_http_info(id, tag_value, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.remove_source_tag_with_http_info(id, tag_value, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str tag_value: (required) :return: ResponseContainer @@ -716,7 +649,7 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): """ all_params = ['id', 'tag_value'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -740,14 +673,13 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): collection_formats = {} - resource_path = '/api/v2/source/{id}/tag/{tagValue}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] if 'tag_value' in params: path_params['tagValue'] = params['tag_value'] - query_params = {} + query_params = [] header_params = {} @@ -766,7 +698,7 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/source/{id}/tag/{tagValue}', 'DELETE', path_params, query_params, header_params, @@ -775,7 +707,7 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -786,15 +718,11 @@ def set_source_tags(self, id, **kwargs): Set all tags associated with a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.set_source_tags(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.set_source_tags(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param list[str] body: :return: ResponseContainer @@ -802,7 +730,7 @@ def set_source_tags(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.set_source_tags_with_http_info(id, **kwargs) else: (data) = self.set_source_tags_with_http_info(id, **kwargs) @@ -813,15 +741,11 @@ def set_source_tags_with_http_info(self, id, **kwargs): Set all tags associated with a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.set_source_tags_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.set_source_tags_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param list[str] body: :return: ResponseContainer @@ -830,7 +754,7 @@ def set_source_tags_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -851,12 +775,11 @@ def set_source_tags_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/source/{id}/tag'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -877,7 +800,7 @@ def set_source_tags_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/source/{id}/tag', 'POST', path_params, query_params, header_params, @@ -886,7 +809,7 @@ def set_source_tags_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainer', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -897,15 +820,11 @@ def update_source(self, id, **kwargs): Update metadata (description or tags) for a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_source(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_source(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Source body: Example Body:
{     \"sourceName\": \"source.name\",     \"tags\": {\"sourceTag1\": true},     \"description\": \"Source Description\" }
:return: ResponseContainerSource @@ -913,7 +832,7 @@ def update_source(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_source_with_http_info(id, **kwargs) else: (data) = self.update_source_with_http_info(id, **kwargs) @@ -924,15 +843,11 @@ def update_source_with_http_info(self, id, **kwargs): Update metadata (description or tags) for a specific source This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_source_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_source_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Source body: Example Body:
{     \"sourceName\": \"source.name\",     \"tags\": {\"sourceTag1\": true},     \"description\": \"Source Description\" }
:return: ResponseContainerSource @@ -941,7 +856,7 @@ def update_source_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -962,12 +877,11 @@ def update_source_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/source/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -984,7 +898,7 @@ def update_source_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/source/{id}', 'PUT', path_params, query_params, header_params, @@ -993,7 +907,7 @@ def update_source_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerSource', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/user_api.py b/wavefront_api_client/apis/user_api.py index f949fc6..37bcea4 100644 --- a/wavefront_api_client/apis/user_api.py +++ b/wavefront_api_client/apis/user_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,28 +31,20 @@ class UserApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def create_or_update_user(self, **kwargs): """ Creates or updates a user This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_or_update_user(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_or_update_user(async=True) + >>> result = thread.get() + + :param async 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\"   ] }
:return: UserModel @@ -61,7 +52,7 @@ def create_or_update_user(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.create_or_update_user_with_http_info(**kwargs) else: (data) = self.create_or_update_user_with_http_info(**kwargs) @@ -72,15 +63,11 @@ def create_or_update_user_with_http_info(self, **kwargs): Creates or updates a user This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_or_update_user_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_or_update_user_with_http_info(async=True) + >>> result = thread.get() + + :param async 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\"   ] }
:return: UserModel @@ -89,7 +76,7 @@ def create_or_update_user_with_http_info(self, **kwargs): """ all_params = ['send_email', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -107,12 +94,11 @@ def create_or_update_user_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/user'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'send_email' in params: - query_params['sendEmail'] = params['send_email'] + query_params.append(('sendEmail', params['send_email'])) header_params = {} @@ -133,7 +119,7 @@ def create_or_update_user_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/user', 'POST', path_params, query_params, header_params, @@ -142,7 +128,7 @@ def create_or_update_user_with_http_info(self, **kwargs): files=local_var_files, response_type='UserModel', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -153,22 +139,18 @@ def delete_user(self, id, **kwargs): Deletes a user identified by id This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_user(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_user(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.delete_user_with_http_info(id, **kwargs) else: (data) = self.delete_user_with_http_info(id, **kwargs) @@ -179,15 +161,11 @@ def delete_user_with_http_info(self, id, **kwargs): Deletes a user identified by id This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_user_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_user_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: None If the method is called asynchronously, @@ -195,7 +173,7 @@ def delete_user_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -216,12 +194,11 @@ def delete_user_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/user/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -236,7 +213,7 @@ def delete_user_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/user/{id}', 'DELETE', path_params, query_params, header_params, @@ -245,7 +222,7 @@ def delete_user_with_http_info(self, id, **kwargs): files=local_var_files, response_type=None, auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -256,21 +233,17 @@ def get_all_user(self, **kwargs): Get all users Returns all users This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_user(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_user(async=True) + >>> result = thread.get() + + :param async bool :return: list[UserModel] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_user_with_http_info(**kwargs) else: (data) = self.get_all_user_with_http_info(**kwargs) @@ -281,22 +254,18 @@ def get_all_user_with_http_info(self, **kwargs): Get all users Returns all users This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_user_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_user_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :return: list[UserModel] If the method is called asynchronously, returns the request thread. """ all_params = [] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -313,10 +282,9 @@ def get_all_user_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/user'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -331,7 +299,7 @@ def get_all_user_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/user', 'GET', path_params, query_params, header_params, @@ -340,7 +308,7 @@ def get_all_user_with_http_info(self, **kwargs): files=local_var_files, response_type='list[UserModel]', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -351,22 +319,18 @@ def get_user(self, id, **kwargs): Retrieves a user by identifier (email addr) This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_user(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_user(id, async=True) + >>> result = thread.get() + + :param async 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('callback'): + if kwargs.get('async'): return self.get_user_with_http_info(id, **kwargs) else: (data) = self.get_user_with_http_info(id, **kwargs) @@ -377,15 +341,11 @@ def get_user_with_http_info(self, id, **kwargs): Retrieves a user by identifier (email addr) This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_user_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_user_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: UserModel If the method is called asynchronously, @@ -393,7 +353,7 @@ def get_user_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -414,12 +374,11 @@ def get_user_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/user/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -434,7 +393,7 @@ def get_user_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/user/{id}', 'GET', path_params, query_params, header_params, @@ -443,7 +402,7 @@ def get_user_with_http_info(self, id, **kwargs): files=local_var_files, response_type='UserModel', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -454,15 +413,11 @@ def grant_user_permission(self, id, **kwargs): Grants a specific user permission This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.grant_user_permission(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.grant_user_permission(id, async=True) + >>> result = thread.get() + + :param async 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 @@ -470,7 +425,7 @@ def grant_user_permission(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.grant_user_permission_with_http_info(id, **kwargs) else: (data) = self.grant_user_permission_with_http_info(id, **kwargs) @@ -481,15 +436,11 @@ def grant_user_permission_with_http_info(self, id, **kwargs): Grants a specific user permission This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.grant_user_permission_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.grant_user_permission_with_http_info(id, async=True) + >>> result = thread.get() + + :param async 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 @@ -498,7 +449,7 @@ def grant_user_permission_with_http_info(self, id, **kwargs): """ all_params = ['id', 'group'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -519,12 +470,11 @@ def grant_user_permission_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/user/{id}/grant'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -545,7 +495,7 @@ def grant_user_permission_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/user/{id}/grant', 'POST', path_params, query_params, header_params, @@ -554,7 +504,7 @@ def grant_user_permission_with_http_info(self, id, **kwargs): files=local_var_files, response_type='UserModel', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -565,15 +515,11 @@ def revoke_user_permission(self, id, **kwargs): Revokes a specific user permission This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.revoke_user_permission(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.revoke_user_permission(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str group: :param ScopedDTOConverter body: @@ -582,7 +528,7 @@ def revoke_user_permission(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.revoke_user_permission_with_http_info(id, **kwargs) else: (data) = self.revoke_user_permission_with_http_info(id, **kwargs) @@ -593,15 +539,11 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): Revokes a specific user permission This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.revoke_user_permission_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.revoke_user_permission_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param str group: :param ScopedDTOConverter body: @@ -611,7 +553,7 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): """ all_params = ['id', 'group', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -632,12 +574,11 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/user/{id}/revoke'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -660,7 +601,7 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/user/{id}/revoke', 'POST', path_params, query_params, header_params, @@ -669,7 +610,7 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): files=local_var_files, response_type='UserModel', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/apis/webhook_api.py b/wavefront_api_client/apis/webhook_api.py index d49ab78..3c9e1e5 100644 --- a/wavefront_api_client/apis/webhook_api.py +++ b/wavefront_api_client/apis/webhook_api.py @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,35 +31,27 @@ class WebhookApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def create_webhook(self, **kwargs): """ Create a specific webhook This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_webhook(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_webhook(async=True) + >>> result = thread.get() + + :param async bool :param Webhook 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: ResponseContainerWebhook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.create_webhook_with_http_info(**kwargs) else: (data) = self.create_webhook_with_http_info(**kwargs) @@ -71,15 +62,11 @@ def create_webhook_with_http_info(self, **kwargs): Create a specific webhook This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_webhook_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.create_webhook_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param Webhook 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: ResponseContainerWebhook If the method is called asynchronously, @@ -87,7 +74,7 @@ def create_webhook_with_http_info(self, **kwargs): """ all_params = ['body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -105,10 +92,9 @@ def create_webhook_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/webhook'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] header_params = {} @@ -129,7 +115,7 @@ def create_webhook_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api('/api/v2/webhook', 'POST', path_params, query_params, header_params, @@ -138,7 +124,7 @@ def create_webhook_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerWebhook', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -149,22 +135,18 @@ def delete_webhook(self, id, **kwargs): Delete a specific webhook This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_webhook(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_webhook(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerWebhook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.delete_webhook_with_http_info(id, **kwargs) else: (data) = self.delete_webhook_with_http_info(id, **kwargs) @@ -175,15 +157,11 @@ def delete_webhook_with_http_info(self, id, **kwargs): Delete a specific webhook This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_webhook_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_webhook_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerWebhook If the method is called asynchronously, @@ -191,7 +169,7 @@ def delete_webhook_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -212,12 +190,11 @@ def delete_webhook_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/webhook/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -232,7 +209,7 @@ def delete_webhook_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api('/api/v2/webhook/{id}', 'DELETE', path_params, query_params, header_params, @@ -241,7 +218,7 @@ def delete_webhook_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerWebhook', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -252,15 +229,11 @@ def get_all_webhooks(self, **kwargs): Get all webhooks for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_webhooks(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_webhooks(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedWebhook @@ -268,7 +241,7 @@ def get_all_webhooks(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_all_webhooks_with_http_info(**kwargs) else: (data) = self.get_all_webhooks_with_http_info(**kwargs) @@ -279,15 +252,11 @@ def get_all_webhooks_with_http_info(self, **kwargs): Get all webhooks for a customer This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_all_webhooks_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_webhooks_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int offset: :param int limit: :return: ResponseContainerPagedWebhook @@ -296,7 +265,7 @@ def get_all_webhooks_with_http_info(self, **kwargs): """ all_params = ['offset', 'limit'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -314,14 +283,13 @@ def get_all_webhooks_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v2/webhook'.replace('{format}', 'json') path_params = {} - query_params = {} + query_params = [] if 'offset' in params: - query_params['offset'] = params['offset'] + query_params.append(('offset', params['offset'])) if 'limit' in params: - query_params['limit'] = params['limit'] + query_params.append(('limit', params['limit'])) header_params = {} @@ -336,7 +304,7 @@ def get_all_webhooks_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/webhook', 'GET', path_params, query_params, header_params, @@ -345,7 +313,7 @@ def get_all_webhooks_with_http_info(self, **kwargs): files=local_var_files, response_type='ResponseContainerPagedWebhook', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -356,22 +324,18 @@ def get_webhook(self, id, **kwargs): Get a specific webhook This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_webhook(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_webhook(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerWebhook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_webhook_with_http_info(id, **kwargs) else: (data) = self.get_webhook_with_http_info(id, **kwargs) @@ -382,15 +346,11 @@ def get_webhook_with_http_info(self, id, **kwargs): Get a specific webhook This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_webhook_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_webhook_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: ResponseContainerWebhook If the method is called asynchronously, @@ -398,7 +358,7 @@ def get_webhook_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -419,12 +379,11 @@ def get_webhook_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/webhook/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -439,7 +398,7 @@ def get_webhook_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api('/api/v2/webhook/{id}', 'GET', path_params, query_params, header_params, @@ -448,7 +407,7 @@ def get_webhook_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerWebhook', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -459,15 +418,11 @@ def update_webhook(self, id, **kwargs): Update a specific webhook This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_webhook(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_webhook(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Webhook 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: ResponseContainerWebhook @@ -475,7 +430,7 @@ def update_webhook(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.update_webhook_with_http_info(id, **kwargs) else: (data) = self.update_webhook_with_http_info(id, **kwargs) @@ -486,15 +441,11 @@ def update_webhook_with_http_info(self, id, **kwargs): Update a specific webhook This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_webhook_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.update_webhook_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :param Webhook 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: ResponseContainerWebhook @@ -503,7 +454,7 @@ def update_webhook_with_http_info(self, id, **kwargs): """ all_params = ['id', 'body'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -524,12 +475,11 @@ def update_webhook_with_http_info(self, id, **kwargs): collection_formats = {} - resource_path = '/api/v2/webhook/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] - query_params = {} + query_params = [] header_params = {} @@ -550,7 +500,7 @@ def update_webhook_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api('/api/v2/webhook/{id}', 'PUT', path_params, query_params, header_params, @@ -559,7 +509,7 @@ def update_webhook_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ResponseContainerWebhook', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _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/configuration.py b/wavefront_api_client/configuration.py index 6d16f09..32f0d0c 100644 --- a/wavefront_api_client/configuration.py +++ b/wavefront_api_client/configuration.py @@ -22,17 +22,6 @@ from six.moves import http_client as httplib -def singleton(cls, *args, **kw): - instances = {} - - def _singleton(): - if cls not in instances: - instances[cls] = cls(*args, **kw) - return instances[cls] - return _singleton - - -@singleton class Configuration(object): """ NOTE: This class is auto generated by the swagger code generator program. @@ -45,9 +34,7 @@ def __init__(self): Constructor """ # Default Base url - self.host = "https://localhost/" - # Default api client - self.api_client = None + self.host = "https://localhost" # Temp file folder for downloading files self.temp_folder_path = None @@ -86,6 +73,11 @@ def __init__(self): # client key file self.key_file = None + # Proxy URL + self.proxy = None + # Safe chars for path_param + self.safe_chars_for_path_param = '' + @property def logger_file(self): """ @@ -222,5 +214,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v2\n"\ - "SDK Package Version: 2.1".\ + "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/wavefront_api_client/models/alert.py b/wavefront_api_client/models/alert.py index e2bcd37..2792eea 100644 --- a/wavefront_api_client/models/alert.py +++ b/wavefront_api_client/models/alert.py @@ -21,147 +21,232 @@ class Alert(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, minutes=None, name=None, id=None, target=None, created=None, status=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, condition=None, condition_qb_enabled=None, condition_qb_serialization=None, display_expression=None, display_expression_qb_enabled=None, display_expression_qb_serialization=None, resolve_after_minutes=None, snoozed=None, event=None, failing_host_label_pairs=None, updated=None, severity=None, query_failing=None, last_failed_time=None, last_error_message=None, additional_information=None, metrics_used=None, hosts_used=None, in_maintenance_host_label_pairs=None, active_maintenance_windows=None, update_user_id=None, prefiring_host_label_pairs=None, notificants=None, create_user_id=None, last_processed_millis=None, process_rate_minutes=None, points_scanned_at_last_query=None, last_notification_millis=None, notification_resend_frequency_minutes=None, tags=None, in_trash=None, deleted=None): + + + """ + 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 = { + 'minutes': 'int', + 'name': 'str', + 'id': 'str', + 'target': 'str', + 'created': 'int', + 'tags': 'WFTags', + 'status': 'list[str]', + 'in_trash': 'bool', + 'condition': 'str', + 'condition_qb_enabled': 'bool', + 'condition_qb_serialization': 'str', + 'display_expression': 'str', + 'display_expression_qb_enabled': 'bool', + 'display_expression_qb_serialization': 'str', + 'resolve_after_minutes': 'int', + 'snoozed': 'int', + 'event': 'Event', + 'failing_host_label_pairs': 'list[SourceLabelPair]', + 'updated': 'int', + 'severity': 'str', + 'query_failing': 'bool', + 'last_failed_time': 'int', + 'last_error_message': 'str', + 'additional_information': 'str', + 'metrics_used': 'list[str]', + 'hosts_used': 'list[str]', + 'in_maintenance_host_label_pairs': 'list[SourceLabelPair]', + 'active_maintenance_windows': 'list[str]', + 'update_user_id': 'str', + 'prefiring_host_label_pairs': 'list[SourceLabelPair]', + 'notificants': 'list[str]', + 'create_user_id': 'str', + 'last_processed_millis': 'int', + 'process_rate_minutes': 'int', + 'points_scanned_at_last_query': 'int', + 'last_notification_millis': 'int', + 'notification_resend_frequency_minutes': 'int', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'deleted': 'bool' + } + + attribute_map = { + 'minutes': 'minutes', + 'name': 'name', + 'id': 'id', + 'target': 'target', + 'created': 'created', + 'tags': 'tags', + 'status': 'status', + 'in_trash': 'inTrash', + 'condition': 'condition', + 'condition_qb_enabled': 'conditionQBEnabled', + 'condition_qb_serialization': 'conditionQBSerialization', + 'display_expression': 'displayExpression', + 'display_expression_qb_enabled': 'displayExpressionQBEnabled', + 'display_expression_qb_serialization': 'displayExpressionQBSerialization', + 'resolve_after_minutes': 'resolveAfterMinutes', + 'snoozed': 'snoozed', + 'event': 'event', + 'failing_host_label_pairs': 'failingHostLabelPairs', + 'updated': 'updated', + 'severity': 'severity', + 'query_failing': 'queryFailing', + 'last_failed_time': 'lastFailedTime', + 'last_error_message': 'lastErrorMessage', + 'additional_information': 'additionalInformation', + 'metrics_used': 'metricsUsed', + 'hosts_used': 'hostsUsed', + 'in_maintenance_host_label_pairs': 'inMaintenanceHostLabelPairs', + 'active_maintenance_windows': 'activeMaintenanceWindows', + 'update_user_id': 'updateUserId', + 'prefiring_host_label_pairs': 'prefiringHostLabelPairs', + 'notificants': 'notificants', + 'create_user_id': 'createUserId', + 'last_processed_millis': 'lastProcessedMillis', + 'process_rate_minutes': 'processRateMinutes', + 'points_scanned_at_last_query': 'pointsScannedAtLastQuery', + 'last_notification_millis': 'lastNotificationMillis', + 'notification_resend_frequency_minutes': 'notificationResendFrequencyMinutes', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'deleted': 'deleted' + } + + def __init__(self, minutes=None, name=None, id=None, target=None, created=None, tags=None, status=None, in_trash=None, condition=None, condition_qb_enabled=None, condition_qb_serialization=None, display_expression=None, display_expression_qb_enabled=None, display_expression_qb_serialization=None, resolve_after_minutes=None, snoozed=None, event=None, failing_host_label_pairs=None, updated=None, severity=None, query_failing=None, last_failed_time=None, last_error_message=None, additional_information=None, metrics_used=None, hosts_used=None, in_maintenance_host_label_pairs=None, active_maintenance_windows=None, update_user_id=None, prefiring_host_label_pairs=None, notificants=None, create_user_id=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, updater_id=None, creator_id=None, deleted=None): """ Alert - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'minutes': 'int', - 'name': 'str', - 'id': 'str', - 'target': 'str', - 'created': 'int', - 'status': 'list[str]', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'condition': 'str', - 'condition_qb_enabled': 'bool', - 'condition_qb_serialization': 'str', - 'display_expression': 'str', - 'display_expression_qb_enabled': 'bool', - 'display_expression_qb_serialization': 'str', - 'resolve_after_minutes': 'int', - 'snoozed': 'int', - 'event': 'Event', - 'failing_host_label_pairs': 'list[SourceLabelPair]', - 'updated': 'int', - 'severity': 'str', - 'query_failing': 'bool', - 'last_failed_time': 'int', - 'last_error_message': 'str', - 'additional_information': 'str', - 'metrics_used': 'list[str]', - 'hosts_used': 'list[str]', - 'in_maintenance_host_label_pairs': 'list[SourceLabelPair]', - 'active_maintenance_windows': 'list[str]', - 'update_user_id': 'str', - 'prefiring_host_label_pairs': 'list[SourceLabelPair]', - 'notificants': 'list[str]', - 'create_user_id': 'str', - 'last_processed_millis': 'int', - 'process_rate_minutes': 'int', - 'points_scanned_at_last_query': 'int', - 'last_notification_millis': 'int', - 'notification_resend_frequency_minutes': 'int', - 'tags': 'WFTags', - 'in_trash': 'bool', - 'deleted': 'bool' - } - - self.attribute_map = { - 'minutes': 'minutes', - 'name': 'name', - 'id': 'id', - 'target': 'target', - 'created': 'created', - 'status': 'status', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'condition': 'condition', - 'condition_qb_enabled': 'conditionQBEnabled', - 'condition_qb_serialization': 'conditionQBSerialization', - 'display_expression': 'displayExpression', - 'display_expression_qb_enabled': 'displayExpressionQBEnabled', - 'display_expression_qb_serialization': 'displayExpressionQBSerialization', - 'resolve_after_minutes': 'resolveAfterMinutes', - 'snoozed': 'snoozed', - 'event': 'event', - 'failing_host_label_pairs': 'failingHostLabelPairs', - 'updated': 'updated', - 'severity': 'severity', - 'query_failing': 'queryFailing', - 'last_failed_time': 'lastFailedTime', - 'last_error_message': 'lastErrorMessage', - 'additional_information': 'additionalInformation', - 'metrics_used': 'metricsUsed', - 'hosts_used': 'hostsUsed', - 'in_maintenance_host_label_pairs': 'inMaintenanceHostLabelPairs', - 'active_maintenance_windows': 'activeMaintenanceWindows', - 'update_user_id': 'updateUserId', - 'prefiring_host_label_pairs': 'prefiringHostLabelPairs', - 'notificants': 'notificants', - 'create_user_id': 'createUserId', - 'last_processed_millis': 'lastProcessedMillis', - 'process_rate_minutes': 'processRateMinutes', - 'points_scanned_at_last_query': 'pointsScannedAtLastQuery', - 'last_notification_millis': 'lastNotificationMillis', - 'notification_resend_frequency_minutes': 'notificationResendFrequencyMinutes', - 'tags': 'tags', - 'in_trash': 'inTrash', - 'deleted': 'deleted' - } - - self._minutes = minutes - self._name = name - self._id = id - self._target = target - self._created = created - self._status = status - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._condition = condition - self._condition_qb_enabled = condition_qb_enabled - self._condition_qb_serialization = condition_qb_serialization - self._display_expression = display_expression - self._display_expression_qb_enabled = display_expression_qb_enabled - self._display_expression_qb_serialization = display_expression_qb_serialization - self._resolve_after_minutes = resolve_after_minutes - self._snoozed = snoozed - self._event = event - self._failing_host_label_pairs = failing_host_label_pairs - self._updated = updated - self._severity = severity - self._query_failing = query_failing - self._last_failed_time = last_failed_time - self._last_error_message = last_error_message - self._additional_information = additional_information - self._metrics_used = metrics_used - self._hosts_used = hosts_used - self._in_maintenance_host_label_pairs = in_maintenance_host_label_pairs - self._active_maintenance_windows = active_maintenance_windows - self._update_user_id = update_user_id - self._prefiring_host_label_pairs = prefiring_host_label_pairs - self._notificants = notificants - self._create_user_id = create_user_id - self._last_processed_millis = last_processed_millis - self._process_rate_minutes = process_rate_minutes - self._points_scanned_at_last_query = points_scanned_at_last_query - self._last_notification_millis = last_notification_millis - self._notification_resend_frequency_minutes = notification_resend_frequency_minutes - self._tags = tags - self._in_trash = in_trash - self._deleted = deleted + self._minutes = None + self._name = None + self._id = None + self._target = None + self._created = None + self._tags = None + self._status = None + self._in_trash = None + self._condition = None + self._condition_qb_enabled = None + self._condition_qb_serialization = None + self._display_expression = None + self._display_expression_qb_enabled = None + self._display_expression_qb_serialization = None + self._resolve_after_minutes = None + self._snoozed = None + self._event = None + self._failing_host_label_pairs = None + self._updated = None + self._severity = None + self._query_failing = None + self._last_failed_time = None + self._last_error_message = None + self._additional_information = None + self._metrics_used = None + self._hosts_used = None + self._in_maintenance_host_label_pairs = None + self._active_maintenance_windows = None + self._update_user_id = None + self._prefiring_host_label_pairs = None + self._notificants = None + self._create_user_id = None + self._last_processed_millis = None + self._process_rate_minutes = None + self._points_scanned_at_last_query = None + self._last_notification_millis = None + self._notification_resend_frequency_minutes = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._deleted = None + + self.minutes = minutes + self.name = name + if id is not None: + self.id = id + self.target = target + if created is not None: + self.created = created + 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 + 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 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 resolve_after_minutes is not None: + self.resolve_after_minutes = resolve_after_minutes + if snoozed is not None: + self.snoozed = snoozed + if event is not None: + self.event = event + if failing_host_label_pairs is not None: + self.failing_host_label_pairs = failing_host_label_pairs + if updated is not None: + self.updated = updated + self.severity = severity + 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 additional_information is not None: + self.additional_information = additional_information + if metrics_used is not None: + self.metrics_used = metrics_used + if hosts_used is not None: + self.hosts_used = hosts_used + 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 update_user_id is not None: + self.update_user_id = update_user_id + 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 create_user_id is not None: + self.create_user_id = create_user_id + 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 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 updater_id is not None: + self.updater_id = updater_id + if creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted @property def minutes(self): @@ -280,6 +365,27 @@ def created(self, created): self._created = created + @property + def tags(self): + """ + Gets the tags of this Alert. + + :return: The tags of this Alert. + :rtype: WFTags + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this Alert. + + :param tags: The tags of this Alert. + :type: WFTags + """ + + self._tags = tags + @property def status(self): """ @@ -304,88 +410,25 @@ def status(self, status): self._status = status @property - def created_epoch_millis(self): - """ - Gets the created_epoch_millis of this Alert. - - :return: The created_epoch_millis of this Alert. - :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. - :type: int - """ - - self._created_epoch_millis = created_epoch_millis - - @property - def updated_epoch_millis(self): - """ - Gets the updated_epoch_millis of this Alert. - - :return: The updated_epoch_millis of this Alert. - :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 Alert. - - :param updated_epoch_millis: The updated_epoch_millis of this Alert. - :type: int - """ - - self._updated_epoch_millis = updated_epoch_millis - - @property - def updater_id(self): - """ - Gets the updater_id of this Alert. - - :return: The updater_id of this Alert. - :rtype: str - """ - return self._updater_id - - @updater_id.setter - def updater_id(self, updater_id): - """ - Sets the updater_id of this Alert. - - :param updater_id: The updater_id of this Alert. - :type: str - """ - - self._updater_id = updater_id - - @property - def creator_id(self): + def in_trash(self): """ - Gets the creator_id of this Alert. + Gets the in_trash of this Alert. - :return: The creator_id of this Alert. - :rtype: str + :return: The in_trash of this Alert. + :rtype: bool """ - return self._creator_id + return self._in_trash - @creator_id.setter - def creator_id(self, creator_id): + @in_trash.setter + def in_trash(self, in_trash): """ - Sets the creator_id of this Alert. + Sets the in_trash of this Alert. - :param creator_id: The creator_id of this Alert. - :type: str + :param in_trash: The in_trash of this Alert. + :type: bool """ - self._creator_id = creator_id + self._in_trash = in_trash @property def condition(self): @@ -662,6 +705,8 @@ def severity(self, severity): :param severity: The severity of this Alert. :type: str """ + if severity is None: + raise ValueError("Invalid value for `severity`, must not be `None`") allowed_values = ["INFO", "SMOKE", "WARN", "SEVERE"] if severity not in allowed_values: raise ValueError( @@ -1061,46 +1106,88 @@ def notification_resend_frequency_minutes(self, notification_resend_frequency_mi self._notification_resend_frequency_minutes = notification_resend_frequency_minutes @property - def tags(self): + def created_epoch_millis(self): """ - Gets the tags of this Alert. + Gets the created_epoch_millis of this Alert. - :return: The tags of this Alert. - :rtype: WFTags + :return: The created_epoch_millis of this Alert. + :rtype: int """ - return self._tags + return self._created_epoch_millis - @tags.setter - def tags(self, tags): + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): """ - Sets the tags of this Alert. + Sets the created_epoch_millis of this Alert. - :param tags: The tags of this Alert. - :type: WFTags + :param created_epoch_millis: The created_epoch_millis of this Alert. + :type: int """ - self._tags = tags + self._created_epoch_millis = created_epoch_millis @property - def in_trash(self): + def updated_epoch_millis(self): """ - Gets the in_trash of this Alert. + Gets the updated_epoch_millis of this Alert. - :return: The in_trash of this Alert. - :rtype: bool + :return: The updated_epoch_millis of this Alert. + :rtype: int """ - return self._in_trash + return self._updated_epoch_millis - @in_trash.setter - def in_trash(self, in_trash): + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): """ - Sets the in_trash of this Alert. + Sets the updated_epoch_millis of this Alert. - :param in_trash: The in_trash of this Alert. - :type: bool + :param updated_epoch_millis: The updated_epoch_millis of this Alert. + :type: int """ - self._in_trash = in_trash + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """ + Gets the updater_id of this Alert. + + :return: The updater_id of this Alert. + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """ + Sets the updater_id of this Alert. + + :param updater_id: The updater_id of this Alert. + :type: str + """ + + self._updater_id = updater_id + + @property + def creator_id(self): + """ + Gets the creator_id of this Alert. + + :return: The creator_id of this Alert. + :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. + :type: str + """ + + self._creator_id = creator_id @property def deleted(self): diff --git a/wavefront_api_client/models/avro_backed_standardized_dto.py b/wavefront_api_client/models/avro_backed_standardized_dto.py index 132b431..556ea79 100644 --- a/wavefront_api_client/models/avro_backed_standardized_dto.py +++ b/wavefront_api_client/models/avro_backed_standardized_dto.py @@ -21,39 +21,57 @@ class AvroBackedStandardizedDTO(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', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'deleted': 'bool' + } + + attribute_map = { + 'id': 'id', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'deleted': 'deleted' + } + def __init__(self, id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, deleted=None): """ AvroBackedStandardizedDTO - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'id': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'deleted': 'bool' - } - - self.attribute_map = { - 'id': 'id', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'deleted': 'deleted' - } - - self._id = id - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._deleted = deleted + self._id = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._deleted = None + + if id is not None: + self.id = 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 creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted @property def id(self): diff --git a/wavefront_api_client/models/aws_base_credentials.py b/wavefront_api_client/models/aws_base_credentials.py index b400f3e..6240e32 100644 --- a/wavefront_api_client/models/aws_base_credentials.py +++ b/wavefront_api_client/models/aws_base_credentials.py @@ -21,27 +21,35 @@ class AWSBaseCredentials(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 = { + 'role_arn': 'str', + 'external_id': 'str' + } + + attribute_map = { + 'role_arn': 'roleArn', + 'external_id': 'externalId' + } + def __init__(self, role_arn=None, external_id=None): """ AWSBaseCredentials - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'role_arn': 'str', - 'external_id': 'str' - } - self.attribute_map = { - 'role_arn': 'roleArn', - 'external_id': 'externalId' - } + self._role_arn = None + self._external_id = None - self._role_arn = role_arn - self._external_id = external_id + self.role_arn = role_arn + self.external_id = external_id @property def role_arn(self): diff --git a/wavefront_api_client/models/chart.py b/wavefront_api_client/models/chart.py index 5b9d3cf..433456a 100644 --- a/wavefront_api_client/models/chart.py +++ b/wavefront_api_client/models/chart.py @@ -21,51 +21,75 @@ class Chart(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, units=None, name=None, description=None, sources=None, include_obsolete_metrics=None, no_default_events=None, interpolate_points=None, chart_settings=None, summarization=None, base=None): + + + """ + 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 = { + 'units': 'str', + 'name': 'str', + 'description': 'str', + 'sources': 'list[ChartSourceQuery]', + 'no_default_events': 'bool', + 'interpolate_points': 'bool', + 'chart_settings': 'ChartSettings', + 'summarization': 'str', + 'base': 'int', + 'include_obsolete_metrics': 'bool' + } + + attribute_map = { + 'units': 'units', + 'name': 'name', + 'description': 'description', + 'sources': 'sources', + 'no_default_events': 'noDefaultEvents', + 'interpolate_points': 'interpolatePoints', + 'chart_settings': 'chartSettings', + 'summarization': 'summarization', + 'base': 'base', + 'include_obsolete_metrics': 'includeObsoleteMetrics' + } + + def __init__(self, units=None, name=None, description=None, sources=None, no_default_events=None, interpolate_points=None, chart_settings=None, summarization=None, base=None, include_obsolete_metrics=None): """ Chart - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'units': 'str', - 'name': 'str', - 'description': 'str', - 'sources': 'list[ChartSourceQuery]', - 'include_obsolete_metrics': 'bool', - 'no_default_events': 'bool', - 'interpolate_points': 'bool', - 'chart_settings': 'ChartSettings', - 'summarization': 'str', - 'base': 'int' - } - - self.attribute_map = { - 'units': 'units', - 'name': 'name', - 'description': 'description', - 'sources': 'sources', - 'include_obsolete_metrics': 'includeObsoleteMetrics', - 'no_default_events': 'noDefaultEvents', - 'interpolate_points': 'interpolatePoints', - 'chart_settings': 'chartSettings', - 'summarization': 'summarization', - 'base': 'base' - } - - self._units = units - self._name = name - self._description = description - self._sources = sources - self._include_obsolete_metrics = include_obsolete_metrics - self._no_default_events = no_default_events - self._interpolate_points = interpolate_points - self._chart_settings = chart_settings - self._summarization = summarization - self._base = base + self._units = None + self._name = None + self._description = None + self._sources = None + self._no_default_events = None + self._interpolate_points = None + self._chart_settings = None + self._summarization = None + self._base = None + self._include_obsolete_metrics = None + + if units is not None: + self.units = units + self.name = name + if description is not None: + self.description = description + self.sources = sources + if no_default_events is not None: + self.no_default_events = no_default_events + if interpolate_points is not None: + self.interpolate_points = interpolate_points + if chart_settings is not None: + self.chart_settings = chart_settings + if summarization is not None: + self.summarization = summarization + if base is not None: + self.base = base + if include_obsolete_metrics is not None: + self.include_obsolete_metrics = include_obsolete_metrics @property def units(self): @@ -163,29 +187,6 @@ def sources(self, sources): self._sources = sources - @property - def include_obsolete_metrics(self): - """ - Gets the include_obsolete_metrics of this Chart. - Whether to show obsolete metrics. Default: false - - :return: The include_obsolete_metrics of this Chart. - :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 - - :param include_obsolete_metrics: The include_obsolete_metrics of this Chart. - :type: bool - """ - - self._include_obsolete_metrics = include_obsolete_metrics - @property def no_default_events(self): """ @@ -307,6 +308,29 @@ def base(self, base): self._base = base + @property + def include_obsolete_metrics(self): + """ + Gets the include_obsolete_metrics of this Chart. + Whether to show obsolete metrics. Default: false + + :return: The include_obsolete_metrics of this Chart. + :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 + + :param include_obsolete_metrics: The include_obsolete_metrics of this Chart. + :type: bool + """ + + self._include_obsolete_metrics = include_obsolete_metrics + def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/chart_settings.py b/wavefront_api_client/models/chart_settings.py index ac8e9e1..ab2f1bb 100644 --- a/wavefront_api_client/models/chart_settings.py +++ b/wavefront_api_client/models/chart_settings.py @@ -21,195 +21,316 @@ class ChartSettings(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, type=None, max=None, y1_units=None, min=None, y1_max=None, y1_min=None, window_size=None, y0_scale_si_by1024=None, y1_scale_si_by1024=None, y0_unit_autoscaling=None, y1_unit_autoscaling=None, expected_data_spacing=None, line_type=None, group_by_source=None, stack_type=None, ymax=None, ymin=None, xmax=None, xmin=None, time_based_coloring=None, custom_tags=None, windowing=None, show_hosts=None, show_labels=None, show_raw_values=None, num_tags=None, sort_values_descending=None, tag_mode=None, fixed_legend_enabled=None, fixed_legend_position=None, fixed_legend_display_stats=None, fixed_legend_filter_field=None, fixed_legend_filter_limit=None, fixed_legend_filter_sort=None, fixed_legend_use_raw_stats=None, invert_dynamic_legend_hover_control=None, sparkline_display_value_type=None, sparkline_display_color=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_apply_to=None, sparkline_decimal_precision=None, sparkline_value_text_map_text=None, sparkline_value_text_map_thresholds=None, markdown_content=None, plain_markdown_content=None, auto_column_tags=None, column_tags=None, fixed_legend_hide_label=None, sparkline_display_vertical_position=None, sparkline_value_color_map_values=None): + + + """ + 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 = { + 'type': 'str', + 'max': 'float', + 'y1_units': 'str', + 'min': 'float', + 'y1_max': 'float', + 'y1_min': 'float', + 'window_size': 'int', + 'y0_scale_si_by1024': 'bool', + 'y1_scale_si_by1024': 'bool', + 'y0_unit_autoscaling': 'bool', + 'y1_unit_autoscaling': 'bool', + 'expected_data_spacing': 'int', + 'line_type': 'str', + 'group_by_source': 'bool', + 'stack_type': 'str', + 'ymax': 'float', + 'ymin': 'float', + 'xmax': 'float', + 'xmin': 'float', + 'time_based_coloring': 'bool', + 'custom_tags': 'list[str]', + 'sort_values_descending': 'bool', + 'windowing': 'str', + 'show_hosts': 'bool', + 'show_labels': 'bool', + 'show_raw_values': 'bool', + 'num_tags': 'int', + 'tag_mode': 'str', + 'fixed_legend_enabled': 'bool', + 'fixed_legend_position': 'str', + 'fixed_legend_display_stats': 'list[str]', + 'fixed_legend_filter_field': 'str', + 'fixed_legend_filter_limit': 'int', + 'fixed_legend_filter_sort': 'str', + 'fixed_legend_use_raw_stats': 'bool', + 'invert_dynamic_legend_hover_control': 'bool', + 'sparkline_display_value_type': 'str', + 'sparkline_display_color': 'str', + 'sparkline_display_horizontal_position': 'str', + 'sparkline_display_font_size': 'str', + 'sparkline_display_prefix': 'str', + 'sparkline_display_postfix': 'str', + 'sparkline_size': 'str', + 'sparkline_line_color': 'str', + 'sparkline_fill_color': 'str', + 'sparkline_value_color_map_colors': 'list[str]', + 'sparkline_value_color_map_values_v2': 'list[float]', + 'sparkline_value_color_map_apply_to': 'str', + 'sparkline_decimal_precision': 'int', + 'sparkline_value_text_map_text': 'list[str]', + 'sparkline_value_text_map_thresholds': 'list[float]', + 'markdown_content': 'str', + 'plain_markdown_content': 'str', + 'fixed_legend_hide_label': 'bool', + 'sparkline_display_vertical_position': 'str', + 'sparkline_value_color_map_values': 'list[int]', + 'auto_column_tags': 'bool', + 'column_tags': 'str' + } + + attribute_map = { + 'type': 'type', + 'max': 'max', + 'y1_units': 'y1Units', + 'min': 'min', + 'y1_max': 'y1Max', + 'y1_min': 'y1Min', + 'window_size': 'windowSize', + 'y0_scale_si_by1024': 'y0ScaleSIBy1024', + 'y1_scale_si_by1024': 'y1ScaleSIBy1024', + 'y0_unit_autoscaling': 'y0UnitAutoscaling', + 'y1_unit_autoscaling': 'y1UnitAutoscaling', + 'expected_data_spacing': 'expectedDataSpacing', + 'line_type': 'lineType', + 'group_by_source': 'groupBySource', + 'stack_type': 'stackType', + 'ymax': 'ymax', + 'ymin': 'ymin', + 'xmax': 'xmax', + 'xmin': 'xmin', + 'time_based_coloring': 'timeBasedColoring', + 'custom_tags': 'customTags', + 'sort_values_descending': 'sortValuesDescending', + 'windowing': 'windowing', + 'show_hosts': 'showHosts', + 'show_labels': 'showLabels', + 'show_raw_values': 'showRawValues', + 'num_tags': 'numTags', + 'tag_mode': 'tagMode', + 'fixed_legend_enabled': 'fixedLegendEnabled', + 'fixed_legend_position': 'fixedLegendPosition', + 'fixed_legend_display_stats': 'fixedLegendDisplayStats', + 'fixed_legend_filter_field': 'fixedLegendFilterField', + 'fixed_legend_filter_limit': 'fixedLegendFilterLimit', + 'fixed_legend_filter_sort': 'fixedLegendFilterSort', + 'fixed_legend_use_raw_stats': 'fixedLegendUseRawStats', + 'invert_dynamic_legend_hover_control': 'invertDynamicLegendHoverControl', + 'sparkline_display_value_type': 'sparklineDisplayValueType', + 'sparkline_display_color': 'sparklineDisplayColor', + 'sparkline_display_horizontal_position': 'sparklineDisplayHorizontalPosition', + 'sparkline_display_font_size': 'sparklineDisplayFontSize', + 'sparkline_display_prefix': 'sparklineDisplayPrefix', + 'sparkline_display_postfix': 'sparklineDisplayPostfix', + 'sparkline_size': 'sparklineSize', + 'sparkline_line_color': 'sparklineLineColor', + 'sparkline_fill_color': 'sparklineFillColor', + 'sparkline_value_color_map_colors': 'sparklineValueColorMapColors', + 'sparkline_value_color_map_values_v2': 'sparklineValueColorMapValuesV2', + 'sparkline_value_color_map_apply_to': 'sparklineValueColorMapApplyTo', + 'sparkline_decimal_precision': 'sparklineDecimalPrecision', + 'sparkline_value_text_map_text': 'sparklineValueTextMapText', + 'sparkline_value_text_map_thresholds': 'sparklineValueTextMapThresholds', + 'markdown_content': 'markdownContent', + 'plain_markdown_content': 'plainMarkdownContent', + 'fixed_legend_hide_label': 'fixedLegendHideLabel', + 'sparkline_display_vertical_position': 'sparklineDisplayVerticalPosition', + 'sparkline_value_color_map_values': 'sparklineValueColorMapValues', + 'auto_column_tags': 'autoColumnTags', + 'column_tags': 'columnTags' + } + + def __init__(self, type=None, max=None, y1_units=None, min=None, y1_max=None, y1_min=None, window_size=None, y0_scale_si_by1024=None, y1_scale_si_by1024=None, y0_unit_autoscaling=None, y1_unit_autoscaling=None, expected_data_spacing=None, line_type=None, group_by_source=None, stack_type=None, ymax=None, ymin=None, xmax=None, xmin=None, time_based_coloring=None, custom_tags=None, sort_values_descending=None, windowing=None, show_hosts=None, show_labels=None, show_raw_values=None, num_tags=None, tag_mode=None, fixed_legend_enabled=None, fixed_legend_position=None, fixed_legend_display_stats=None, fixed_legend_filter_field=None, fixed_legend_filter_limit=None, fixed_legend_filter_sort=None, fixed_legend_use_raw_stats=None, invert_dynamic_legend_hover_control=None, sparkline_display_value_type=None, sparkline_display_color=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_apply_to=None, sparkline_decimal_precision=None, sparkline_value_text_map_text=None, sparkline_value_text_map_thresholds=None, markdown_content=None, plain_markdown_content=None, fixed_legend_hide_label=None, sparkline_display_vertical_position=None, sparkline_value_color_map_values=None, auto_column_tags=None, column_tags=None): """ ChartSettings - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'type': 'str', - 'max': 'float', - 'y1_units': 'str', - 'min': 'float', - 'y1_max': 'float', - 'y1_min': 'float', - 'window_size': 'int', - 'y0_scale_si_by1024': 'bool', - 'y1_scale_si_by1024': 'bool', - 'y0_unit_autoscaling': 'bool', - 'y1_unit_autoscaling': 'bool', - 'expected_data_spacing': 'int', - 'line_type': 'str', - 'group_by_source': 'bool', - 'stack_type': 'str', - 'ymax': 'float', - 'ymin': 'float', - 'xmax': 'float', - 'xmin': 'float', - 'time_based_coloring': 'bool', - 'custom_tags': 'list[str]', - 'windowing': 'str', - 'show_hosts': 'bool', - 'show_labels': 'bool', - 'show_raw_values': 'bool', - 'num_tags': 'int', - 'sort_values_descending': 'bool', - 'tag_mode': 'str', - 'fixed_legend_enabled': 'bool', - 'fixed_legend_position': 'str', - 'fixed_legend_display_stats': 'list[str]', - 'fixed_legend_filter_field': 'str', - 'fixed_legend_filter_limit': 'int', - 'fixed_legend_filter_sort': 'str', - 'fixed_legend_use_raw_stats': 'bool', - 'invert_dynamic_legend_hover_control': 'bool', - 'sparkline_display_value_type': 'str', - 'sparkline_display_color': 'str', - 'sparkline_display_horizontal_position': 'str', - 'sparkline_display_font_size': 'str', - 'sparkline_display_prefix': 'str', - 'sparkline_display_postfix': 'str', - 'sparkline_size': 'str', - 'sparkline_line_color': 'str', - 'sparkline_fill_color': 'str', - 'sparkline_value_color_map_colors': 'list[str]', - 'sparkline_value_color_map_values_v2': 'list[float]', - 'sparkline_value_color_map_apply_to': 'str', - 'sparkline_decimal_precision': 'int', - 'sparkline_value_text_map_text': 'list[str]', - 'sparkline_value_text_map_thresholds': 'list[float]', - 'markdown_content': 'str', - 'plain_markdown_content': 'str', - 'auto_column_tags': 'bool', - 'column_tags': 'str', - 'fixed_legend_hide_label': 'bool', - 'sparkline_display_vertical_position': 'str', - 'sparkline_value_color_map_values': 'list[int]' - } - - self.attribute_map = { - 'type': 'type', - 'max': 'max', - 'y1_units': 'y1Units', - 'min': 'min', - 'y1_max': 'y1Max', - 'y1_min': 'y1Min', - 'window_size': 'windowSize', - 'y0_scale_si_by1024': 'y0ScaleSIBy1024', - 'y1_scale_si_by1024': 'y1ScaleSIBy1024', - 'y0_unit_autoscaling': 'y0UnitAutoscaling', - 'y1_unit_autoscaling': 'y1UnitAutoscaling', - 'expected_data_spacing': 'expectedDataSpacing', - 'line_type': 'lineType', - 'group_by_source': 'groupBySource', - 'stack_type': 'stackType', - 'ymax': 'ymax', - 'ymin': 'ymin', - 'xmax': 'xmax', - 'xmin': 'xmin', - 'time_based_coloring': 'timeBasedColoring', - 'custom_tags': 'customTags', - 'windowing': 'windowing', - 'show_hosts': 'showHosts', - 'show_labels': 'showLabels', - 'show_raw_values': 'showRawValues', - 'num_tags': 'numTags', - 'sort_values_descending': 'sortValuesDescending', - 'tag_mode': 'tagMode', - 'fixed_legend_enabled': 'fixedLegendEnabled', - 'fixed_legend_position': 'fixedLegendPosition', - 'fixed_legend_display_stats': 'fixedLegendDisplayStats', - 'fixed_legend_filter_field': 'fixedLegendFilterField', - 'fixed_legend_filter_limit': 'fixedLegendFilterLimit', - 'fixed_legend_filter_sort': 'fixedLegendFilterSort', - 'fixed_legend_use_raw_stats': 'fixedLegendUseRawStats', - 'invert_dynamic_legend_hover_control': 'invertDynamicLegendHoverControl', - 'sparkline_display_value_type': 'sparklineDisplayValueType', - 'sparkline_display_color': 'sparklineDisplayColor', - 'sparkline_display_horizontal_position': 'sparklineDisplayHorizontalPosition', - 'sparkline_display_font_size': 'sparklineDisplayFontSize', - 'sparkline_display_prefix': 'sparklineDisplayPrefix', - 'sparkline_display_postfix': 'sparklineDisplayPostfix', - 'sparkline_size': 'sparklineSize', - 'sparkline_line_color': 'sparklineLineColor', - 'sparkline_fill_color': 'sparklineFillColor', - 'sparkline_value_color_map_colors': 'sparklineValueColorMapColors', - 'sparkline_value_color_map_values_v2': 'sparklineValueColorMapValuesV2', - 'sparkline_value_color_map_apply_to': 'sparklineValueColorMapApplyTo', - 'sparkline_decimal_precision': 'sparklineDecimalPrecision', - 'sparkline_value_text_map_text': 'sparklineValueTextMapText', - 'sparkline_value_text_map_thresholds': 'sparklineValueTextMapThresholds', - 'markdown_content': 'markdownContent', - 'plain_markdown_content': 'plainMarkdownContent', - 'auto_column_tags': 'autoColumnTags', - 'column_tags': 'columnTags', - 'fixed_legend_hide_label': 'fixedLegendHideLabel', - 'sparkline_display_vertical_position': 'sparklineDisplayVerticalPosition', - 'sparkline_value_color_map_values': 'sparklineValueColorMapValues' - } - - self._type = type - self._max = max - self._y1_units = y1_units - self._min = min - self._y1_max = y1_max - self._y1_min = y1_min - self._window_size = window_size - self._y0_scale_si_by1024 = y0_scale_si_by1024 - self._y1_scale_si_by1024 = y1_scale_si_by1024 - self._y0_unit_autoscaling = y0_unit_autoscaling - self._y1_unit_autoscaling = y1_unit_autoscaling - self._expected_data_spacing = expected_data_spacing - self._line_type = line_type - self._group_by_source = group_by_source - self._stack_type = stack_type - self._ymax = ymax - self._ymin = ymin - self._xmax = xmax - self._xmin = xmin - self._time_based_coloring = time_based_coloring - self._custom_tags = custom_tags - self._windowing = windowing - self._show_hosts = show_hosts - self._show_labels = show_labels - self._show_raw_values = show_raw_values - self._num_tags = num_tags - self._sort_values_descending = sort_values_descending - self._tag_mode = tag_mode - self._fixed_legend_enabled = fixed_legend_enabled - self._fixed_legend_position = fixed_legend_position - self._fixed_legend_display_stats = fixed_legend_display_stats - self._fixed_legend_filter_field = fixed_legend_filter_field - self._fixed_legend_filter_limit = fixed_legend_filter_limit - self._fixed_legend_filter_sort = fixed_legend_filter_sort - self._fixed_legend_use_raw_stats = fixed_legend_use_raw_stats - self._invert_dynamic_legend_hover_control = invert_dynamic_legend_hover_control - self._sparkline_display_value_type = sparkline_display_value_type - self._sparkline_display_color = sparkline_display_color - self._sparkline_display_horizontal_position = sparkline_display_horizontal_position - self._sparkline_display_font_size = sparkline_display_font_size - self._sparkline_display_prefix = sparkline_display_prefix - self._sparkline_display_postfix = sparkline_display_postfix - self._sparkline_size = sparkline_size - self._sparkline_line_color = sparkline_line_color - self._sparkline_fill_color = sparkline_fill_color - self._sparkline_value_color_map_colors = sparkline_value_color_map_colors - self._sparkline_value_color_map_values_v2 = sparkline_value_color_map_values_v2 - self._sparkline_value_color_map_apply_to = sparkline_value_color_map_apply_to - self._sparkline_decimal_precision = sparkline_decimal_precision - self._sparkline_value_text_map_text = sparkline_value_text_map_text - self._sparkline_value_text_map_thresholds = sparkline_value_text_map_thresholds - self._markdown_content = markdown_content - self._plain_markdown_content = plain_markdown_content - self._auto_column_tags = auto_column_tags - self._column_tags = column_tags - self._fixed_legend_hide_label = fixed_legend_hide_label - self._sparkline_display_vertical_position = sparkline_display_vertical_position - self._sparkline_value_color_map_values = sparkline_value_color_map_values + self._type = None + self._max = None + self._y1_units = None + self._min = None + self._y1_max = None + self._y1_min = None + self._window_size = None + self._y0_scale_si_by1024 = None + self._y1_scale_si_by1024 = None + self._y0_unit_autoscaling = None + self._y1_unit_autoscaling = None + self._expected_data_spacing = None + self._line_type = None + self._group_by_source = None + self._stack_type = None + self._ymax = None + self._ymin = None + self._xmax = None + self._xmin = None + self._time_based_coloring = None + self._custom_tags = None + self._sort_values_descending = None + self._windowing = None + self._show_hosts = None + self._show_labels = None + self._show_raw_values = None + self._num_tags = None + self._tag_mode = None + self._fixed_legend_enabled = None + self._fixed_legend_position = None + self._fixed_legend_display_stats = None + self._fixed_legend_filter_field = None + self._fixed_legend_filter_limit = None + self._fixed_legend_filter_sort = None + self._fixed_legend_use_raw_stats = None + self._invert_dynamic_legend_hover_control = None + self._sparkline_display_value_type = None + self._sparkline_display_color = None + self._sparkline_display_horizontal_position = None + self._sparkline_display_font_size = None + self._sparkline_display_prefix = None + self._sparkline_display_postfix = None + self._sparkline_size = None + self._sparkline_line_color = None + self._sparkline_fill_color = None + self._sparkline_value_color_map_colors = None + self._sparkline_value_color_map_values_v2 = None + self._sparkline_value_color_map_apply_to = None + self._sparkline_decimal_precision = None + self._sparkline_value_text_map_text = None + self._sparkline_value_text_map_thresholds = None + self._markdown_content = None + self._plain_markdown_content = None + self._fixed_legend_hide_label = None + self._sparkline_display_vertical_position = None + self._sparkline_value_color_map_values = None + self._auto_column_tags = None + self._column_tags = None + + self.type = type + if max is not None: + self.max = max + if y1_units is not None: + self.y1_units = y1_units + if min is not None: + self.min = min + if y1_max is not None: + self.y1_max = y1_max + if y1_min is not None: + self.y1_min = y1_min + if window_size is not None: + self.window_size = window_size + 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 expected_data_spacing is not None: + self.expected_data_spacing = expected_data_spacing + if line_type is not None: + self.line_type = line_type + if group_by_source is not None: + self.group_by_source = group_by_source + if stack_type is not None: + self.stack_type = stack_type + if ymax is not None: + self.ymax = ymax + if ymin is not None: + self.ymin = ymin + if xmax is not None: + self.xmax = xmax + if xmin is not None: + self.xmin = xmin + if time_based_coloring is not None: + self.time_based_coloring = time_based_coloring + if custom_tags is not None: + self.custom_tags = custom_tags + if sort_values_descending is not None: + self.sort_values_descending = sort_values_descending + if windowing is not None: + self.windowing = windowing + 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 num_tags is not None: + self.num_tags = num_tags + if tag_mode is not None: + self.tag_mode = tag_mode + if fixed_legend_enabled is not None: + self.fixed_legend_enabled = fixed_legend_enabled + 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_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_use_raw_stats is not None: + self.fixed_legend_use_raw_stats = fixed_legend_use_raw_stats + if invert_dynamic_legend_hover_control is not None: + self.invert_dynamic_legend_hover_control = invert_dynamic_legend_hover_control + if sparkline_display_value_type is not None: + self.sparkline_display_value_type = sparkline_display_value_type + if sparkline_display_color is not None: + self.sparkline_display_color = sparkline_display_color + 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 + 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_fill_color is not None: + self.sparkline_fill_color = sparkline_fill_color + 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_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_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 markdown_content is not None: + self.markdown_content = markdown_content + if plain_markdown_content is not None: + self.plain_markdown_content = plain_markdown_content + if fixed_legend_hide_label is not None: + self.fixed_legend_hide_label = fixed_legend_hide_label + if sparkline_display_vertical_position is not None: + self.sparkline_display_vertical_position = sparkline_display_vertical_position + if sparkline_value_color_map_values is not None: + self.sparkline_value_color_map_values = sparkline_value_color_map_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 @property def type(self): @@ -231,6 +352,8 @@ def type(self, type): :param type: The type of this ChartSettings. :type: str """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") allowed_values = ["line", "scatterplot", "stacked-area", "table", "scatterplot-xy", "markdown-widget", "sparkline"] if type not in allowed_values: raise ValueError( @@ -712,6 +835,29 @@ def custom_tags(self, custom_tags): self._custom_tags = custom_tags + @property + def sort_values_descending(self): + """ + Gets the sort_values_descending of this ChartSettings. + For the tabular view, whether to display display values in descending order. Default: false + + :return: The sort_values_descending of this ChartSettings. + :rtype: bool + """ + return self._sort_values_descending + + @sort_values_descending.setter + def sort_values_descending(self, sort_values_descending): + """ + Sets the sort_values_descending of this ChartSettings. + For the tabular view, whether to display display values in descending order. Default: false + + :param sort_values_descending: The sort_values_descending of this ChartSettings. + :type: bool + """ + + self._sort_values_descending = sort_values_descending + @property def windowing(self): """ @@ -833,29 +979,6 @@ def num_tags(self, num_tags): self._num_tags = num_tags - @property - def sort_values_descending(self): - """ - Gets the sort_values_descending of this ChartSettings. - For the tabular view, whether to display display values in descending order. Default: false - - :return: The sort_values_descending of this ChartSettings. - :rtype: bool - """ - return self._sort_values_descending - - @sort_values_descending.setter - def sort_values_descending(self, sort_values_descending): - """ - Sets the sort_values_descending of this ChartSettings. - For the tabular view, whether to display display values in descending order. Default: false - - :param sort_values_descending: The sort_values_descending of this ChartSettings. - :type: bool - """ - - self._sort_values_descending = sort_values_descending - @property def tag_mode(self): """ @@ -1502,52 +1625,6 @@ def plain_markdown_content(self, plain_markdown_content): self._plain_markdown_content = plain_markdown_content - @property - def auto_column_tags(self): - """ - Gets the auto_column_tags of this ChartSettings. - deprecated - - :return: The auto_column_tags of this ChartSettings. - :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 - - :param auto_column_tags: The auto_column_tags of this ChartSettings. - :type: bool - """ - - self._auto_column_tags = auto_column_tags - - @property - def column_tags(self): - """ - Gets the column_tags of this ChartSettings. - deprecated - - :return: The column_tags of this ChartSettings. - :rtype: str - """ - return self._column_tags - - @column_tags.setter - def column_tags(self, column_tags): - """ - Sets the column_tags of this ChartSettings. - deprecated - - :param column_tags: The column_tags of this ChartSettings. - :type: str - """ - - self._column_tags = column_tags - @property def fixed_legend_hide_label(self): """ @@ -1617,6 +1694,52 @@ def sparkline_value_color_map_values(self, sparkline_value_color_map_values): self._sparkline_value_color_map_values = sparkline_value_color_map_values + @property + def auto_column_tags(self): + """ + Gets the auto_column_tags of this ChartSettings. + deprecated + + :return: The auto_column_tags of this ChartSettings. + :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 + + :param auto_column_tags: The auto_column_tags of this ChartSettings. + :type: bool + """ + + self._auto_column_tags = auto_column_tags + + @property + def column_tags(self): + """ + Gets the column_tags of this ChartSettings. + deprecated + + :return: The column_tags of this ChartSettings. + :rtype: str + """ + return self._column_tags + + @column_tags.setter + def column_tags(self, column_tags): + """ + Sets the column_tags of this ChartSettings. + deprecated + + :param column_tags: The column_tags of this ChartSettings. + :type: str + """ + + self._column_tags = column_tags + def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/chart_source_query.py b/wavefront_api_client/models/chart_source_query.py index 52ffc6a..c28cebb 100644 --- a/wavefront_api_client/models/chart_source_query.py +++ b/wavefront_api_client/models/chart_source_query.py @@ -21,45 +21,70 @@ class ChartSourceQuery(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, scatter_plot_source=None, querybuilder_serialization=None, querybuilder_enabled=None, secondary_axis=None, source_description=None, name=None, query=None, disabled=None): + + + """ + 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 = { + 'scatter_plot_source': 'str', + 'querybuilder_serialization': 'str', + 'querybuilder_enabled': 'bool', + 'secondary_axis': 'bool', + 'source_description': 'str', + 'source_color': 'str', + 'name': 'str', + 'query': 'str', + 'disabled': 'bool' + } + + attribute_map = { + 'scatter_plot_source': 'scatterPlotSource', + 'querybuilder_serialization': 'querybuilderSerialization', + 'querybuilder_enabled': 'querybuilderEnabled', + 'secondary_axis': 'secondaryAxis', + 'source_description': 'sourceDescription', + 'source_color': 'sourceColor', + 'name': 'name', + 'query': 'query', + 'disabled': 'disabled' + } + + def __init__(self, scatter_plot_source=None, querybuilder_serialization=None, querybuilder_enabled=None, secondary_axis=None, source_description=None, source_color=None, name=None, query=None, disabled=None): """ ChartSourceQuery - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'scatter_plot_source': 'str', - 'querybuilder_serialization': 'str', - 'querybuilder_enabled': 'bool', - 'secondary_axis': 'bool', - 'source_description': 'str', - 'name': 'str', - 'query': 'str', - 'disabled': 'bool' - } - - self.attribute_map = { - 'scatter_plot_source': 'scatterPlotSource', - 'querybuilder_serialization': 'querybuilderSerialization', - 'querybuilder_enabled': 'querybuilderEnabled', - 'secondary_axis': 'secondaryAxis', - 'source_description': 'sourceDescription', - 'name': 'name', - 'query': 'query', - 'disabled': 'disabled' - } - - self._scatter_plot_source = scatter_plot_source - self._querybuilder_serialization = querybuilder_serialization - self._querybuilder_enabled = querybuilder_enabled - self._secondary_axis = secondary_axis - self._source_description = source_description - self._name = name - self._query = query - self._disabled = disabled + self._scatter_plot_source = None + self._querybuilder_serialization = None + self._querybuilder_enabled = None + self._secondary_axis = None + self._source_description = None + self._source_color = None + self._name = None + self._query = None + self._disabled = None + + 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 + if querybuilder_enabled is not None: + self.querybuilder_enabled = querybuilder_enabled + if secondary_axis is not None: + self.secondary_axis = secondary_axis + if source_description is not None: + self.source_description = source_description + if source_color is not None: + self.source_color = source_color + self.name = name + self.query = query + if disabled is not None: + self.disabled = disabled @property def scatter_plot_source(self): @@ -182,6 +207,29 @@ def source_description(self, source_description): self._source_description = source_description + @property + def source_color(self): + """ + Gets the source_color of this ChartSourceQuery. + The color used to draw all results from this source (auto if unset) + + :return: The source_color of this ChartSourceQuery. + :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) + + :param source_color: The source_color of this ChartSourceQuery. + :type: str + """ + + self._source_color = source_color + @property def name(self): """ diff --git a/wavefront_api_client/models/cloud_integration.py b/wavefront_api_client/models/cloud_integration.py index c161b54..a4bc4bb 100644 --- a/wavefront_api_client/models/cloud_integration.py +++ b/wavefront_api_client/models/cloud_integration.py @@ -21,87 +21,137 @@ class CloudIntegration(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, force_save=None, name=None, id=None, last_error_event=None, ec2=None, last_error=None, last_error_ms=None, last_processor_id=None, last_processing_timestamp=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, service_refresh_rate_in_mins=None, service=None, in_trash=None, additional_tags=None, last_received_data_point_ms=None, last_metric_count=None, cloud_watch=None, cloud_trail=None, deleted=None): + + + """ + 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 = { + 'force_save': 'bool', + 'name': 'str', + 'id': 'str', + 'service': 'str', + 'in_trash': 'bool', + 'additional_tags': 'dict(str, str)', + 'last_received_data_point_ms': 'int', + 'last_metric_count': 'int', + 'cloud_watch': 'CloudWatchConfiguration', + 'cloud_trail': 'CloudTrailConfiguration', + 'last_error_event': 'Event', + 'ec2': 'EC2Configuration', + 'last_error': 'str', + 'last_error_ms': 'int', + 'last_processor_id': 'str', + 'last_processing_timestamp': 'int', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'service_refresh_rate_in_mins': 'int', + 'deleted': 'bool' + } + + attribute_map = { + 'force_save': 'forceSave', + 'name': 'name', + 'id': 'id', + 'service': 'service', + 'in_trash': 'inTrash', + 'additional_tags': 'additionalTags', + 'last_received_data_point_ms': 'lastReceivedDataPointMs', + 'last_metric_count': 'lastMetricCount', + 'cloud_watch': 'cloudWatch', + 'cloud_trail': 'cloudTrail', + 'last_error_event': 'lastErrorEvent', + 'ec2': 'ec2', + 'last_error': 'lastError', + 'last_error_ms': 'lastErrorMs', + 'last_processor_id': 'lastProcessorId', + 'last_processing_timestamp': 'lastProcessingTimestamp', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'service_refresh_rate_in_mins': 'serviceRefreshRateInMins', + 'deleted': 'deleted' + } + + def __init__(self, force_save=None, name=None, id=None, service=None, in_trash=None, additional_tags=None, last_received_data_point_ms=None, last_metric_count=None, cloud_watch=None, cloud_trail=None, last_error_event=None, ec2=None, last_error=None, last_error_ms=None, last_processor_id=None, last_processing_timestamp=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, service_refresh_rate_in_mins=None, deleted=None): """ CloudIntegration - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'force_save': 'bool', - 'name': 'str', - 'id': 'str', - 'last_error_event': 'Event', - 'ec2': 'EC2Configuration', - 'last_error': 'str', - 'last_error_ms': 'int', - 'last_processor_id': 'str', - 'last_processing_timestamp': 'int', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'service_refresh_rate_in_mins': 'int', - 'service': 'str', - 'in_trash': 'bool', - 'additional_tags': 'dict(str, str)', - 'last_received_data_point_ms': 'int', - 'last_metric_count': 'int', - 'cloud_watch': 'CloudWatchConfiguration', - 'cloud_trail': 'CloudTrailConfiguration', - 'deleted': 'bool' - } - - self.attribute_map = { - 'force_save': 'forceSave', - 'name': 'name', - 'id': 'id', - 'last_error_event': 'lastErrorEvent', - 'ec2': 'ec2', - 'last_error': 'lastError', - 'last_error_ms': 'lastErrorMs', - 'last_processor_id': 'lastProcessorId', - 'last_processing_timestamp': 'lastProcessingTimestamp', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'service_refresh_rate_in_mins': 'serviceRefreshRateInMins', - 'service': 'service', - 'in_trash': 'inTrash', - 'additional_tags': 'additionalTags', - 'last_received_data_point_ms': 'lastReceivedDataPointMs', - 'last_metric_count': 'lastMetricCount', - 'cloud_watch': 'cloudWatch', - 'cloud_trail': 'cloudTrail', - 'deleted': 'deleted' - } - - self._force_save = force_save - self._name = name - self._id = id - self._last_error_event = last_error_event - self._ec2 = ec2 - self._last_error = last_error - self._last_error_ms = last_error_ms - self._last_processor_id = last_processor_id - self._last_processing_timestamp = last_processing_timestamp - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._service_refresh_rate_in_mins = service_refresh_rate_in_mins - self._service = service - self._in_trash = in_trash - self._additional_tags = additional_tags - self._last_received_data_point_ms = last_received_data_point_ms - self._last_metric_count = last_metric_count - self._cloud_watch = cloud_watch - self._cloud_trail = cloud_trail - self._deleted = deleted + self._force_save = None + self._name = None + self._id = None + self._service = None + self._in_trash = None + self._additional_tags = None + self._last_received_data_point_ms = None + self._last_metric_count = None + self._cloud_watch = None + self._cloud_trail = None + self._last_error_event = None + self._ec2 = None + self._last_error = None + self._last_error_ms = None + self._last_processor_id = None + self._last_processing_timestamp = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._service_refresh_rate_in_mins = None + self._deleted = None + + if force_save is not None: + self.force_save = force_save + if name is not None: + self.name = name + if id is not None: + self.id = id + if service is not None: + self.service = service + if in_trash is not None: + self.in_trash = in_trash + 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 cloud_trail is not None: + self.cloud_trail = cloud_trail + if last_error_event is not None: + self.last_error_event = last_error_event + if ec2 is not None: + self.ec2 = ec2 + if last_error is not None: + self.last_error = last_error + if last_error_ms is not None: + self.last_error_ms = last_error_ms + if last_processor_id is not None: + self.last_processor_id = last_processor_id + 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 updater_id is not None: + self.updater_id = updater_id + if creator_id is not None: + self.creator_id = creator_id + if service_refresh_rate_in_mins is not None: + self.service_refresh_rate_in_mins = service_refresh_rate_in_mins + if deleted is not None: + self.deleted = deleted @property def force_save(self): @@ -168,6 +218,171 @@ def id(self, id): self._id = id + @property + def service(self): + """ + Gets the service of this CloudIntegration. + A value denoting which cloud service this integration integrates with + + :return: The service of this CloudIntegration. + :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 + + :param service: The service of this CloudIntegration. + :type: str + """ + allowed_values = ["CLOUDWATCH", "CLOUDTRAIL", "EC2"] + if service not in allowed_values: + raise ValueError( + "Invalid value for `service` ({0}), must be one of {1}" + .format(service, allowed_values) + ) + + self._service = service + + @property + def in_trash(self): + """ + Gets the in_trash of this CloudIntegration. + + :return: The in_trash of this CloudIntegration. + :rtype: bool + """ + return self._in_trash + + @in_trash.setter + def in_trash(self, in_trash): + """ + Sets the in_trash of this CloudIntegration. + + :param in_trash: The in_trash of this CloudIntegration. + :type: bool + """ + + self._in_trash = in_trash + + @property + def additional_tags(self): + """ + Gets the additional_tags of this CloudIntegration. + A list of point tag key-values to add to every point ingested using this integration + + :return: The additional_tags of this CloudIntegration. + :rtype: dict(str, str) + """ + return self._additional_tags + + @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 + + :param additional_tags: The additional_tags of this CloudIntegration. + :type: dict(str, str) + """ + + self._additional_tags = additional_tags + + @property + def last_received_data_point_ms(self): + """ + Gets the last_received_data_point_ms of this CloudIntegration. + Time that this integration last received a data point, in epoch millis + + :return: The last_received_data_point_ms of this CloudIntegration. + :rtype: int + """ + return self._last_received_data_point_ms + + @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 that this integration last received a data point, in epoch millis + + :param last_received_data_point_ms: The last_received_data_point_ms of this CloudIntegration. + :type: int + """ + + self._last_received_data_point_ms = last_received_data_point_ms + + @property + def last_metric_count(self): + """ + Gets the last_metric_count of this CloudIntegration. + Number of metrics / events ingested by this integration the last time it ran + + :return: The last_metric_count of this CloudIntegration. + :rtype: int + """ + return self._last_metric_count + + @last_metric_count.setter + def last_metric_count(self, last_metric_count): + """ + Sets the last_metric_count of this CloudIntegration. + Number of metrics / events ingested by this integration the last time it ran + + :param last_metric_count: The last_metric_count of this CloudIntegration. + :type: int + """ + + self._last_metric_count = last_metric_count + + @property + def cloud_watch(self): + """ + Gets the cloud_watch of this CloudIntegration. + CloudWatch specific configurations. Only applicable when service=CLOUDWATCH + + :return: The cloud_watch of this CloudIntegration. + :rtype: CloudWatchConfiguration + """ + return self._cloud_watch + + @cloud_watch.setter + def cloud_watch(self, cloud_watch): + """ + Sets the cloud_watch of this CloudIntegration. + CloudWatch specific configurations. Only applicable when service=CLOUDWATCH + + :param cloud_watch: The cloud_watch of this CloudIntegration. + :type: CloudWatchConfiguration + """ + + self._cloud_watch = cloud_watch + + @property + def cloud_trail(self): + """ + Gets the cloud_trail of this CloudIntegration. + CloudTrail specific configurations. Only applicable when service=CLOUDTRAIL + + :return: The cloud_trail of this CloudIntegration. + :rtype: CloudTrailConfiguration + """ + return self._cloud_trail + + @cloud_trail.setter + def cloud_trail(self, cloud_trail): + """ + Sets the cloud_trail of this CloudIntegration. + CloudTrail specific configurations. Only applicable when service=CLOUDTRAIL + + :param cloud_trail: The cloud_trail of this CloudIntegration. + :type: CloudTrailConfiguration + """ + + self._cloud_trail = cloud_trail + @property def last_error_event(self): """ @@ -411,171 +626,6 @@ 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 service(self): - """ - Gets the service of this CloudIntegration. - A value denoting which cloud service this integration integrates with - - :return: The service of this CloudIntegration. - :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 - - :param service: The service of this CloudIntegration. - :type: str - """ - allowed_values = ["CLOUDWATCH", "CLOUDTRAIL", "EC2"] - if service not in allowed_values: - raise ValueError( - "Invalid value for `service` ({0}), must be one of {1}" - .format(service, allowed_values) - ) - - self._service = service - - @property - def in_trash(self): - """ - Gets the in_trash of this CloudIntegration. - - :return: The in_trash of this CloudIntegration. - :rtype: bool - """ - return self._in_trash - - @in_trash.setter - def in_trash(self, in_trash): - """ - Sets the in_trash of this CloudIntegration. - - :param in_trash: The in_trash of this CloudIntegration. - :type: bool - """ - - self._in_trash = in_trash - - @property - def additional_tags(self): - """ - Gets the additional_tags of this CloudIntegration. - A list of point tag key-values to add to every point ingested using this integration - - :return: The additional_tags of this CloudIntegration. - :rtype: dict(str, str) - """ - return self._additional_tags - - @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 - - :param additional_tags: The additional_tags of this CloudIntegration. - :type: dict(str, str) - """ - - self._additional_tags = additional_tags - - @property - def last_received_data_point_ms(self): - """ - Gets the last_received_data_point_ms of this CloudIntegration. - Time that this integration last received a data point, in epoch millis - - :return: The last_received_data_point_ms of this CloudIntegration. - :rtype: int - """ - return self._last_received_data_point_ms - - @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 that this integration last received a data point, in epoch millis - - :param last_received_data_point_ms: The last_received_data_point_ms of this CloudIntegration. - :type: int - """ - - self._last_received_data_point_ms = last_received_data_point_ms - - @property - def last_metric_count(self): - """ - Gets the last_metric_count of this CloudIntegration. - Number of metrics / events ingested by this integration the last time it ran - - :return: The last_metric_count of this CloudIntegration. - :rtype: int - """ - return self._last_metric_count - - @last_metric_count.setter - def last_metric_count(self, last_metric_count): - """ - Sets the last_metric_count of this CloudIntegration. - Number of metrics / events ingested by this integration the last time it ran - - :param last_metric_count: The last_metric_count of this CloudIntegration. - :type: int - """ - - self._last_metric_count = last_metric_count - - @property - def cloud_watch(self): - """ - Gets the cloud_watch of this CloudIntegration. - CloudWatch specific configurations. Only applicable when service=CLOUDWATCH - - :return: The cloud_watch of this CloudIntegration. - :rtype: CloudWatchConfiguration - """ - return self._cloud_watch - - @cloud_watch.setter - def cloud_watch(self, cloud_watch): - """ - Sets the cloud_watch of this CloudIntegration. - CloudWatch specific configurations. Only applicable when service=CLOUDWATCH - - :param cloud_watch: The cloud_watch of this CloudIntegration. - :type: CloudWatchConfiguration - """ - - self._cloud_watch = cloud_watch - - @property - def cloud_trail(self): - """ - Gets the cloud_trail of this CloudIntegration. - CloudTrail specific configurations. Only applicable when service=CLOUDTRAIL - - :return: The cloud_trail of this CloudIntegration. - :rtype: CloudTrailConfiguration - """ - return self._cloud_trail - - @cloud_trail.setter - def cloud_trail(self, cloud_trail): - """ - Sets the cloud_trail of this CloudIntegration. - CloudTrail specific configurations. Only applicable when service=CLOUDTRAIL - - :param cloud_trail: The cloud_trail of this CloudIntegration. - :type: CloudTrailConfiguration - """ - - self._cloud_trail = cloud_trail - @property def deleted(self): """ diff --git a/wavefront_api_client/models/cloud_trail_configuration.py b/wavefront_api_client/models/cloud_trail_configuration.py index 2753693..27c6695 100644 --- a/wavefront_api_client/models/cloud_trail_configuration.py +++ b/wavefront_api_client/models/cloud_trail_configuration.py @@ -21,30 +21,41 @@ class CloudTrailConfiguration(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, prefix=None, base_credentials=None, bucket_name=None): + + + """ + 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 = { + 'prefix': 'str', + 'bucket_name': 'str', + 'base_credentials': 'AWSBaseCredentials' + } + + attribute_map = { + 'prefix': 'prefix', + 'bucket_name': 'bucketName', + 'base_credentials': 'baseCredentials' + } + + def __init__(self, prefix=None, bucket_name=None, base_credentials=None): """ CloudTrailConfiguration - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'prefix': 'str', - 'base_credentials': 'AWSBaseCredentials', - 'bucket_name': 'str' - } - self.attribute_map = { - 'prefix': 'prefix', - 'base_credentials': 'baseCredentials', - 'bucket_name': 'bucketName' - } + self._prefix = None + self._bucket_name = None + self._base_credentials = None - self._prefix = prefix - self._base_credentials = base_credentials - self._bucket_name = bucket_name + if prefix is not None: + self.prefix = prefix + self.bucket_name = bucket_name + if base_credentials is not None: + self.base_credentials = base_credentials @property def prefix(self): @@ -69,27 +80,6 @@ def prefix(self, prefix): self._prefix = prefix - @property - def base_credentials(self): - """ - Gets the base_credentials of this CloudTrailConfiguration. - - :return: The base_credentials of this CloudTrailConfiguration. - :rtype: AWSBaseCredentials - """ - return self._base_credentials - - @base_credentials.setter - def base_credentials(self, base_credentials): - """ - Sets the base_credentials of this CloudTrailConfiguration. - - :param base_credentials: The base_credentials of this CloudTrailConfiguration. - :type: AWSBaseCredentials - """ - - self._base_credentials = base_credentials - @property def bucket_name(self): """ @@ -115,6 +105,27 @@ def bucket_name(self, bucket_name): self._bucket_name = bucket_name + @property + def base_credentials(self): + """ + Gets the base_credentials of this CloudTrailConfiguration. + + :return: The base_credentials of this CloudTrailConfiguration. + :rtype: AWSBaseCredentials + """ + return self._base_credentials + + @base_credentials.setter + def base_credentials(self, base_credentials): + """ + Sets the base_credentials of this CloudTrailConfiguration. + + :param base_credentials: The base_credentials of this CloudTrailConfiguration. + :type: AWSBaseCredentials + """ + + self._base_credentials = base_credentials + def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/cloud_watch_configuration.py b/wavefront_api_client/models/cloud_watch_configuration.py index 6c79bda..dbdf1c4 100644 --- a/wavefront_api_client/models/cloud_watch_configuration.py +++ b/wavefront_api_client/models/cloud_watch_configuration.py @@ -21,33 +21,47 @@ class CloudWatchConfiguration(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 = { + 'metric_filter_regex': 'str', + 'base_credentials': 'AWSBaseCredentials', + 'instance_selection_tags': 'dict(str, str)', + 'volume_selection_tags': 'dict(str, str)' + } + + attribute_map = { + 'metric_filter_regex': 'metricFilterRegex', + 'base_credentials': 'baseCredentials', + 'instance_selection_tags': 'instanceSelectionTags', + 'volume_selection_tags': 'volumeSelectionTags' + } + def __init__(self, metric_filter_regex=None, base_credentials=None, instance_selection_tags=None, volume_selection_tags=None): """ CloudWatchConfiguration - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'metric_filter_regex': 'str', - 'base_credentials': 'AWSBaseCredentials', - 'instance_selection_tags': 'dict(str, str)', - 'volume_selection_tags': 'dict(str, str)' - } - - self.attribute_map = { - 'metric_filter_regex': 'metricFilterRegex', - 'base_credentials': 'baseCredentials', - 'instance_selection_tags': 'instanceSelectionTags', - 'volume_selection_tags': 'volumeSelectionTags' - } + self._metric_filter_regex = None + self._base_credentials = None + self._instance_selection_tags = None + self._volume_selection_tags = None - self._metric_filter_regex = metric_filter_regex - self._base_credentials = base_credentials - self._instance_selection_tags = instance_selection_tags - self._volume_selection_tags = volume_selection_tags + if metric_filter_regex is not None: + self.metric_filter_regex = metric_filter_regex + if base_credentials is not None: + self.base_credentials = base_credentials + 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 @property def metric_filter_regex(self): diff --git a/wavefront_api_client/models/dashboard.py b/wavefront_api_client/models/dashboard.py index cf862ed..ef3cf8a 100644 --- a/wavefront_api_client/models/dashboard.py +++ b/wavefront_api_client/models/dashboard.py @@ -21,117 +21,183 @@ class Dashboard(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, name=None, id=None, parameters=None, description=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, customer=None, url=None, event_filter_type=None, sections=None, parameter_details=None, tags=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_month=None, views_last_day=None, views_last_week=None, deleted=None, num_charts=None, system_owned=None, favorite=None, num_favorites=None): + + + """ + 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', + 'id': 'str', + 'parameters': 'dict(str, str)', + 'description': 'str', + 'tags': 'WFTags', + 'customer': 'str', + 'url': 'str', + 'event_filter_type': 'str', + 'sections': 'list[DashboardSection]', + 'parameter_details': 'dict(str, DashboardParameterValue)', + 'display_description': 'bool', + 'display_section_table_of_contents': 'bool', + 'display_query_parameters': 'bool', + 'chart_title_scalar': 'int', + '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', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'deleted': 'bool', + 'system_owned': 'bool', + 'favorite': 'bool', + 'num_favorites': 'int', + 'num_charts': 'int' + } + + attribute_map = { + 'name': 'name', + 'id': 'id', + 'parameters': 'parameters', + 'description': 'description', + 'tags': 'tags', + 'customer': 'customer', + 'url': 'url', + 'event_filter_type': 'eventFilterType', + 'sections': 'sections', + 'parameter_details': 'parameterDetails', + 'display_description': 'displayDescription', + 'display_section_table_of_contents': 'displaySectionTableOfContents', + 'display_query_parameters': 'displayQueryParameters', + 'chart_title_scalar': 'chartTitleScalar', + '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', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'deleted': 'deleted', + 'system_owned': 'systemOwned', + 'favorite': 'favorite', + 'num_favorites': 'numFavorites', + 'num_charts': 'numCharts' + } + + def __init__(self, name=None, id=None, parameters=None, description=None, tags=None, customer=None, url=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, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, deleted=None, system_owned=None, favorite=None, num_favorites=None, num_charts=None): """ Dashboard - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'name': 'str', - 'id': 'str', - 'parameters': 'dict(str, str)', - 'description': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'customer': 'str', - 'url': 'str', - 'event_filter_type': 'str', - 'sections': 'list[DashboardSection]', - 'parameter_details': 'dict(str, DashboardParameterValue)', - 'tags': 'WFTags', - 'display_description': 'bool', - 'display_section_table_of_contents': 'bool', - 'display_query_parameters': 'bool', - 'chart_title_scalar': 'int', - '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_month': 'int', - 'views_last_day': 'int', - 'views_last_week': 'int', - 'deleted': 'bool', - 'num_charts': 'int', - 'system_owned': 'bool', - 'favorite': 'bool', - 'num_favorites': 'int' - } - - self.attribute_map = { - 'name': 'name', - 'id': 'id', - 'parameters': 'parameters', - 'description': 'description', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'customer': 'customer', - 'url': 'url', - 'event_filter_type': 'eventFilterType', - 'sections': 'sections', - 'parameter_details': 'parameterDetails', - 'tags': 'tags', - 'display_description': 'displayDescription', - 'display_section_table_of_contents': 'displaySectionTableOfContents', - 'display_query_parameters': 'displayQueryParameters', - 'chart_title_scalar': 'chartTitleScalar', - '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_month': 'viewsLastMonth', - 'views_last_day': 'viewsLastDay', - 'views_last_week': 'viewsLastWeek', - 'deleted': 'deleted', - 'num_charts': 'numCharts', - 'system_owned': 'systemOwned', - 'favorite': 'favorite', - 'num_favorites': 'numFavorites' - } - - self._name = name - self._id = id - self._parameters = parameters - self._description = description - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._customer = customer - self._url = url - self._event_filter_type = event_filter_type - self._sections = sections - self._parameter_details = parameter_details - self._tags = tags - self._display_description = display_description - self._display_section_table_of_contents = display_section_table_of_contents - self._display_query_parameters = display_query_parameters - self._chart_title_scalar = chart_title_scalar - self._event_query = event_query - self._default_time_window = default_time_window - self._default_start_time = default_start_time - self._default_end_time = default_end_time - self._chart_title_color = chart_title_color - self._chart_title_bg_color = chart_title_bg_color - self._views_last_month = views_last_month - self._views_last_day = views_last_day - self._views_last_week = views_last_week - self._deleted = deleted - self._num_charts = num_charts - self._system_owned = system_owned - self._favorite = favorite - self._num_favorites = num_favorites + self._name = None + self._id = None + self._parameters = None + self._description = None + self._tags = None + self._customer = None + self._url = None + self._event_filter_type = None + self._sections = None + self._parameter_details = None + self._display_description = None + self._display_section_table_of_contents = None + self._display_query_parameters = None + self._chart_title_scalar = 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._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._deleted = None + self._system_owned = None + self._favorite = None + self._num_favorites = None + self._num_charts = None + + self.name = name + self.id = id + if parameters is not None: + self.parameters = parameters + if description is not None: + self.description = description + if tags is not None: + self.tags = tags + if customer is not None: + self.customer = customer + self.url = url + 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 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 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 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 creator_id is not None: + self.creator_id = creator_id + if deleted is not None: + self.deleted = deleted + if system_owned is not None: + self.system_owned = system_owned + if favorite is not None: + self.favorite = favorite + if num_favorites is not None: + self.num_favorites = num_favorites + if num_charts is not None: + self.num_charts = num_charts @property def name(self): @@ -230,88 +296,27 @@ def description(self, description): self._description = description @property - def created_epoch_millis(self): - """ - Gets the created_epoch_millis of this Dashboard. - - :return: The created_epoch_millis of this Dashboard. - :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 Dashboard. - - :param created_epoch_millis: The created_epoch_millis of this Dashboard. - :type: int - """ - - self._created_epoch_millis = created_epoch_millis - - @property - def updated_epoch_millis(self): - """ - Gets the updated_epoch_millis of this Dashboard. - - :return: The updated_epoch_millis of this Dashboard. - :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 Dashboard. - - :param updated_epoch_millis: The updated_epoch_millis of this Dashboard. - :type: int - """ - - self._updated_epoch_millis = updated_epoch_millis - - @property - def updater_id(self): - """ - Gets the updater_id of this Dashboard. - - :return: The updater_id of this Dashboard. - :rtype: str - """ - return self._updater_id - - @updater_id.setter - def updater_id(self, updater_id): - """ - Sets the updater_id of this Dashboard. - - :param updater_id: The updater_id of this Dashboard. - :type: str - """ - - self._updater_id = updater_id - - @property - def creator_id(self): + def tags(self): """ - Gets the creator_id of this Dashboard. + Gets the tags of this Dashboard. + Tags assigned to this dashboard - :return: The creator_id of this Dashboard. - :rtype: str + :return: The tags of this Dashboard. + :rtype: WFTags """ - return self._creator_id + return self._tags - @creator_id.setter - def creator_id(self, creator_id): + @tags.setter + def tags(self, tags): """ - Sets the creator_id of this Dashboard. + Sets the tags of this Dashboard. + Tags assigned to this dashboard - :param creator_id: The creator_id of this Dashboard. - :type: str + :param tags: The tags of this Dashboard. + :type: WFTags """ - self._creator_id = creator_id + self._tags = tags @property def customer(self): @@ -438,29 +443,6 @@ def parameter_details(self, parameter_details): self._parameter_details = parameter_details - @property - def tags(self): - """ - Gets the tags of this Dashboard. - Tags assigned to this dashboard - - :return: The tags of this Dashboard. - :rtype: WFTags - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this Dashboard. - Tags assigned to this dashboard - - :param tags: The tags of this Dashboard. - :type: WFTags - """ - - self._tags = tags - @property def display_description(self): """ @@ -691,6 +673,48 @@ def chart_title_bg_color(self, chart_title_bg_color): self._chart_title_bg_color = chart_title_bg_color + @property + def views_last_day(self): + """ + Gets the views_last_day of this Dashboard. + + :return: The views_last_day of this Dashboard. + :rtype: int + """ + return self._views_last_day + + @views_last_day.setter + def views_last_day(self, views_last_day): + """ + Sets the views_last_day of this Dashboard. + + :param views_last_day: The views_last_day of this Dashboard. + :type: int + """ + + self._views_last_day = views_last_day + + @property + def views_last_week(self): + """ + Gets the views_last_week of this Dashboard. + + :return: The views_last_week of this Dashboard. + :rtype: int + """ + return self._views_last_week + + @views_last_week.setter + def views_last_week(self, views_last_week): + """ + Sets the views_last_week of this Dashboard. + + :param views_last_week: The views_last_week of this Dashboard. + :type: int + """ + + self._views_last_week = views_last_week + @property def views_last_month(self): """ @@ -713,46 +737,88 @@ def views_last_month(self, views_last_month): self._views_last_month = views_last_month @property - def views_last_day(self): + def created_epoch_millis(self): """ - Gets the views_last_day of this Dashboard. + Gets the created_epoch_millis of this Dashboard. - :return: The views_last_day of this Dashboard. + :return: The created_epoch_millis of this Dashboard. :rtype: int """ - return self._views_last_day + return self._created_epoch_millis - @views_last_day.setter - def views_last_day(self, views_last_day): + @created_epoch_millis.setter + def created_epoch_millis(self, created_epoch_millis): """ - Sets the views_last_day of this Dashboard. + Sets the created_epoch_millis of this Dashboard. - :param views_last_day: The views_last_day of this Dashboard. + :param created_epoch_millis: The created_epoch_millis of this Dashboard. :type: int """ - self._views_last_day = views_last_day + self._created_epoch_millis = created_epoch_millis @property - def views_last_week(self): + def updated_epoch_millis(self): """ - Gets the views_last_week of this Dashboard. + Gets the updated_epoch_millis of this Dashboard. - :return: The views_last_week of this Dashboard. + :return: The updated_epoch_millis of this Dashboard. :rtype: int """ - return self._views_last_week + return self._updated_epoch_millis - @views_last_week.setter - def views_last_week(self, views_last_week): + @updated_epoch_millis.setter + def updated_epoch_millis(self, updated_epoch_millis): """ - Sets the views_last_week of this Dashboard. + Sets the updated_epoch_millis of this Dashboard. - :param views_last_week: The views_last_week of this Dashboard. + :param updated_epoch_millis: The updated_epoch_millis of this Dashboard. :type: int """ - self._views_last_week = views_last_week + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """ + Gets the updater_id of this Dashboard. + + :return: The updater_id of this Dashboard. + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """ + Sets the updater_id of this Dashboard. + + :param updater_id: The updater_id of this Dashboard. + :type: str + """ + + self._updater_id = updater_id + + @property + def creator_id(self): + """ + Gets the creator_id of this Dashboard. + + :return: The creator_id of this Dashboard. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """ + Sets the creator_id of this Dashboard. + + :param creator_id: The creator_id of this Dashboard. + :type: str + """ + + self._creator_id = creator_id @property def deleted(self): @@ -775,27 +841,6 @@ def deleted(self, deleted): self._deleted = deleted - @property - def num_charts(self): - """ - Gets the num_charts of this Dashboard. - - :return: The num_charts of this Dashboard. - :rtype: int - """ - return self._num_charts - - @num_charts.setter - def num_charts(self, num_charts): - """ - Sets the num_charts of this Dashboard. - - :param num_charts: The num_charts of this Dashboard. - :type: int - """ - - self._num_charts = num_charts - @property def system_owned(self): """ @@ -861,6 +906,27 @@ def num_favorites(self, num_favorites): self._num_favorites = num_favorites + @property + def num_charts(self): + """ + Gets the num_charts of this Dashboard. + + :return: The num_charts of this Dashboard. + :rtype: int + """ + return self._num_charts + + @num_charts.setter + def num_charts(self, num_charts): + """ + Sets the num_charts of this Dashboard. + + :param num_charts: The num_charts of this Dashboard. + :type: int + """ + + self._num_charts = num_charts + def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/dashboard_parameter_value.py b/wavefront_api_client/models/dashboard_parameter_value.py index 23ef9a8..c6580f6 100644 --- a/wavefront_api_client/models/dashboard_parameter_value.py +++ b/wavefront_api_client/models/dashboard_parameter_value.py @@ -21,54 +21,103 @@ class DashboardParameterValue(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, default_value=None, label=None, description=None, values_to_readable_strings=None, dynamic_field_type=None, query_value=None, hide_from_view=None, tag_key=None, parameter_type=None, multivalue=None, allow_all=None): + + + """ + 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 = { + 'label': 'str', + 'default_value': 'str', + 'description': 'str', + 'parameter_type': 'str', + 'values_to_readable_strings': 'dict(str, str)', + 'dynamic_field_type': 'str', + 'query_value': 'str', + 'hide_from_view': 'bool', + 'tag_key': 'str', + 'multivalue': 'bool', + 'allow_all': 'bool' + } + + attribute_map = { + 'label': 'label', + 'default_value': 'defaultValue', + 'description': 'description', + 'parameter_type': 'parameterType', + 'values_to_readable_strings': 'valuesToReadableStrings', + 'dynamic_field_type': 'dynamicFieldType', + 'query_value': 'queryValue', + 'hide_from_view': 'hideFromView', + 'tag_key': 'tagKey', + 'multivalue': 'multivalue', + 'allow_all': 'allowAll' + } + + def __init__(self, label=None, default_value=None, description=None, parameter_type=None, values_to_readable_strings=None, dynamic_field_type=None, query_value=None, hide_from_view=None, tag_key=None, multivalue=None, allow_all=None): """ DashboardParameterValue - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'default_value': 'str', - 'label': 'str', - 'description': 'str', - 'values_to_readable_strings': 'dict(str, str)', - 'dynamic_field_type': 'str', - 'query_value': 'str', - 'hide_from_view': 'bool', - 'tag_key': 'str', - 'parameter_type': 'str', - 'multivalue': 'bool', - 'allow_all': 'bool' - } - - self.attribute_map = { - 'default_value': 'defaultValue', - 'label': 'label', - 'description': 'description', - 'values_to_readable_strings': 'valuesToReadableStrings', - 'dynamic_field_type': 'dynamicFieldType', - 'query_value': 'queryValue', - 'hide_from_view': 'hideFromView', - 'tag_key': 'tagKey', - 'parameter_type': 'parameterType', - 'multivalue': 'multivalue', - 'allow_all': 'allowAll' - } + self._label = None + self._default_value = None + self._description = None + self._parameter_type = None + self._values_to_readable_strings = None + self._dynamic_field_type = None + self._query_value = None + self._hide_from_view = None + self._tag_key = None + self._multivalue = None + self._allow_all = None + + if label is not None: + self.label = label + if default_value is not None: + self.default_value = default_value + if description is not None: + self.description = description + if parameter_type is not None: + self.parameter_type = parameter_type + if values_to_readable_strings is not None: + self.values_to_readable_strings = values_to_readable_strings + if dynamic_field_type is not None: + self.dynamic_field_type = dynamic_field_type + if query_value is not None: + self.query_value = query_value + if hide_from_view is not None: + self.hide_from_view = hide_from_view + if tag_key is not None: + self.tag_key = tag_key + if multivalue is not None: + self.multivalue = multivalue + if allow_all is not None: + self.allow_all = allow_all + + @property + def label(self): + """ + Gets the label of this DashboardParameterValue. + + :return: The label of this DashboardParameterValue. + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """ + Sets the label of this DashboardParameterValue. + + :param label: The label of this DashboardParameterValue. + :type: str + """ - self._default_value = default_value self._label = label - self._description = description - self._values_to_readable_strings = values_to_readable_strings - self._dynamic_field_type = dynamic_field_type - self._query_value = query_value - self._hide_from_view = hide_from_view - self._tag_key = tag_key - self._parameter_type = parameter_type - self._multivalue = multivalue - self._allow_all = allow_all @property def default_value(self): @@ -92,46 +141,52 @@ def default_value(self, default_value): self._default_value = default_value @property - def label(self): + def description(self): """ - Gets the label of this DashboardParameterValue. + Gets the description of this DashboardParameterValue. - :return: The label of this DashboardParameterValue. + :return: The description of this DashboardParameterValue. :rtype: str """ - return self._label + return self._description - @label.setter - def label(self, label): + @description.setter + def description(self, description): """ - Sets the label of this DashboardParameterValue. + Sets the description of this DashboardParameterValue. - :param label: The label of this DashboardParameterValue. + :param description: The description of this DashboardParameterValue. :type: str """ - self._label = label + self._description = description @property - def description(self): + def parameter_type(self): """ - Gets the description of this DashboardParameterValue. + Gets the parameter_type of this DashboardParameterValue. - :return: The description of this DashboardParameterValue. + :return: The parameter_type of this DashboardParameterValue. :rtype: str """ - return self._description + return self._parameter_type - @description.setter - def description(self, description): + @parameter_type.setter + def parameter_type(self, parameter_type): """ - Sets the description of this DashboardParameterValue. + Sets the parameter_type of this DashboardParameterValue. - :param description: The description of this DashboardParameterValue. + :param parameter_type: The parameter_type of this DashboardParameterValue. :type: str """ + allowed_values = ["SIMPLE", "LIST", "DYNAMIC"] + if parameter_type not in allowed_values: + raise ValueError( + "Invalid value for `parameter_type` ({0}), must be one of {1}" + .format(parameter_type, allowed_values) + ) - self._description = description + self._parameter_type = parameter_type @property def values_to_readable_strings(self): @@ -244,33 +299,6 @@ def tag_key(self, tag_key): self._tag_key = tag_key - @property - def parameter_type(self): - """ - Gets the parameter_type of this DashboardParameterValue. - - :return: The parameter_type of this DashboardParameterValue. - :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. - :type: str - """ - allowed_values = ["SIMPLE", "LIST", "DYNAMIC"] - if parameter_type not in allowed_values: - raise ValueError( - "Invalid value for `parameter_type` ({0}), must be one of {1}" - .format(parameter_type, allowed_values) - ) - - self._parameter_type = parameter_type - @property def multivalue(self): """ diff --git a/wavefront_api_client/models/dashboard_section.py b/wavefront_api_client/models/dashboard_section.py index 0fe413f..ab3553c 100644 --- a/wavefront_api_client/models/dashboard_section.py +++ b/wavefront_api_client/models/dashboard_section.py @@ -21,27 +21,35 @@ class DashboardSection(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', + 'rows': 'list[DashboardSectionRow]' + } + + attribute_map = { + 'name': 'name', + 'rows': 'rows' + } + def __init__(self, name=None, rows=None): """ DashboardSection - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'name': 'str', - 'rows': 'list[DashboardSectionRow]' - } - self.attribute_map = { - 'name': 'name', - 'rows': 'rows' - } + self._name = None + self._rows = None - self._name = name - self._rows = rows + self.name = name + self.rows = rows @property def name(self): diff --git a/wavefront_api_client/models/dashboard_section_row.py b/wavefront_api_client/models/dashboard_section_row.py index c79e247..512e301 100644 --- a/wavefront_api_client/models/dashboard_section_row.py +++ b/wavefront_api_client/models/dashboard_section_row.py @@ -21,50 +21,36 @@ class DashboardSectionRow(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, height_factor=None, charts=None): - """ - DashboardSectionRow - a model defined in Swagger - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'height_factor': 'int', - 'charts': 'list[Chart]' - } - self.attribute_map = { - 'height_factor': 'heightFactor', - 'charts': 'charts' - } + """ + 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 = { + 'charts': 'list[Chart]', + 'height_factor': 'int' + } - self._height_factor = height_factor - self._charts = charts + attribute_map = { + 'charts': 'charts', + 'height_factor': 'heightFactor' + } - @property - def height_factor(self): + def __init__(self, charts=None, height_factor=None): """ - Gets the height_factor of this DashboardSectionRow. - Scalar for the height of this row. 100 is normal and default. 50 is half height - - :return: The height_factor of this DashboardSectionRow. - :rtype: int + DashboardSectionRow - a model defined in Swagger """ - 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 + self._charts = None + self._height_factor = None - :param height_factor: The height_factor of this DashboardSectionRow. - :type: int - """ - - self._height_factor = height_factor + self.charts = charts + if height_factor is not None: + self.height_factor = height_factor @property def charts(self): @@ -91,6 +77,29 @@ def charts(self, charts): self._charts = charts + @property + def height_factor(self): + """ + Gets the height_factor of this DashboardSectionRow. + Scalar for the height of this row. 100 is normal and default. 50 is half height + + :return: The height_factor of this DashboardSectionRow. + :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 + + :param height_factor: The height_factor of this DashboardSectionRow. + :type: int + """ + + self._height_factor = height_factor + def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/ec2_configuration.py b/wavefront_api_client/models/ec2_configuration.py index 33640b0..16092e8 100644 --- a/wavefront_api_client/models/ec2_configuration.py +++ b/wavefront_api_client/models/ec2_configuration.py @@ -21,27 +21,37 @@ class EC2Configuration(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 = { + 'base_credentials': 'AWSBaseCredentials', + 'host_name_tags': 'list[str]' + } + + attribute_map = { + 'base_credentials': 'baseCredentials', + 'host_name_tags': 'hostNameTags' + } + def __init__(self, base_credentials=None, host_name_tags=None): """ EC2Configuration - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'base_credentials': 'AWSBaseCredentials', - 'host_name_tags': 'list[str]' - } - self.attribute_map = { - 'base_credentials': 'baseCredentials', - 'host_name_tags': 'hostNameTags' - } + self._base_credentials = None + self._host_name_tags = None - self._base_credentials = base_credentials - self._host_name_tags = host_name_tags + if base_credentials is not None: + self.base_credentials = base_credentials + if host_name_tags is not None: + self.host_name_tags = host_name_tags @property def base_credentials(self): diff --git a/wavefront_api_client/models/event.py b/wavefront_api_client/models/event.py index df69794..5c21eda 100644 --- a/wavefront_api_client/models/event.py +++ b/wavefront_api_client/models/event.py @@ -21,84 +21,126 @@ class Event(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, start_time=None, end_time=None, name=None, annotations=None, id=None, table=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, tags=None, created_at=None, summarized_events=None, is_user_event=None, is_ephemeral=None, updated_at=None, hosts=None, running_state=None, can_close=None, creator_type=None, can_delete=None): + + + """ + 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 = { + 'start_time': 'int', + 'end_time': 'int', + 'name': 'str', + 'annotations': 'dict(str, str)', + 'id': 'str', + 'table': 'str', + 'tags': 'list[str]', + 'is_ephemeral': 'bool', + 'created_at': 'int', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'updated_at': 'int', + 'hosts': 'list[str]', + 'is_user_event': 'bool', + 'summarized_events': 'int', + 'running_state': 'str', + 'can_delete': 'bool', + 'can_close': 'bool', + 'creator_type': 'list[str]' + } + + attribute_map = { + 'start_time': 'startTime', + 'end_time': 'endTime', + 'name': 'name', + 'annotations': 'annotations', + 'id': 'id', + 'table': 'table', + 'tags': 'tags', + 'is_ephemeral': 'isEphemeral', + 'created_at': 'createdAt', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'updated_at': 'updatedAt', + 'hosts': 'hosts', + 'is_user_event': 'isUserEvent', + 'summarized_events': 'summarizedEvents', + 'running_state': 'runningState', + 'can_delete': 'canDelete', + 'can_close': 'canClose', + 'creator_type': 'creatorType' + } + + def __init__(self, start_time=None, end_time=None, name=None, annotations=None, id=None, table=None, tags=None, is_ephemeral=None, created_at=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, updated_at=None, hosts=None, is_user_event=None, summarized_events=None, running_state=None, can_delete=None, can_close=None, creator_type=None): """ Event - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'start_time': 'int', - 'end_time': 'int', - 'name': 'str', - 'annotations': 'dict(str, str)', - 'id': 'str', - 'table': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'tags': 'list[str]', - 'created_at': 'int', - 'summarized_events': 'int', - 'is_user_event': 'bool', - 'is_ephemeral': 'bool', - 'updated_at': 'int', - 'hosts': 'list[str]', - 'running_state': 'str', - 'can_close': 'bool', - 'creator_type': 'list[str]', - 'can_delete': 'bool' - } - - self.attribute_map = { - 'start_time': 'startTime', - 'end_time': 'endTime', - 'name': 'name', - 'annotations': 'annotations', - 'id': 'id', - 'table': 'table', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'tags': 'tags', - 'created_at': 'createdAt', - 'summarized_events': 'summarizedEvents', - 'is_user_event': 'isUserEvent', - 'is_ephemeral': 'isEphemeral', - 'updated_at': 'updatedAt', - 'hosts': 'hosts', - 'running_state': 'runningState', - 'can_close': 'canClose', - 'creator_type': 'creatorType', - 'can_delete': 'canDelete' - } - - self._start_time = start_time - self._end_time = end_time - self._name = name - self._annotations = annotations - self._id = id - self._table = table - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._tags = tags - self._created_at = created_at - self._summarized_events = summarized_events - self._is_user_event = is_user_event - self._is_ephemeral = is_ephemeral - self._updated_at = updated_at - self._hosts = hosts - self._running_state = running_state - self._can_close = can_close - self._creator_type = creator_type - self._can_delete = can_delete + self._start_time = None + self._end_time = None + self._name = None + self._annotations = None + self._id = None + self._table = None + self._tags = None + self._is_ephemeral = None + self._created_at = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._updated_at = None + self._hosts = None + self._is_user_event = None + self._summarized_events = None + self._running_state = None + self._can_delete = None + self._can_close = None + self._creator_type = None + + self.start_time = start_time + self.end_time = end_time + self.name = name + 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 is_ephemeral is not None: + self.is_ephemeral = is_ephemeral + 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 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 creator_id is not None: + self.creator_id = creator_id + if updated_at is not None: + self.updated_at = updated_at + self.hosts = hosts + if is_user_event is not None: + self.is_user_event = is_user_event + self.summarized_events = summarized_events + 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 @property def start_time(self): @@ -244,6 +286,73 @@ def table(self, table): self._table = table + @property + def tags(self): + """ + Gets the tags of this Event. + A list of event tags + + :return: The tags of this Event. + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this Event. + A list of event tags + + :param tags: The tags of this Event. + :type: list[str] + """ + + self._tags = tags + + @property + def is_ephemeral(self): + """ + Gets the is_ephemeral of this Event. + Whether the event ends immediately after it begins + + :return: The is_ephemeral of this Event. + :rtype: bool + """ + return self._is_ephemeral + + @is_ephemeral.setter + def is_ephemeral(self, is_ephemeral): + """ + Sets the is_ephemeral of this Event. + Whether the event ends immediately after it begins + + :param is_ephemeral: The is_ephemeral of this Event. + :type: bool + """ + + self._is_ephemeral = is_ephemeral + + @property + def created_at(self): + """ + Gets the created_at of this Event. + + :return: The created_at of this Event. + :rtype: int + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """ + Sets the created_at of this Event. + + :param created_at: The created_at of this Event. + :type: int + """ + + self._created_at = created_at + @property def created_epoch_millis(self): """ @@ -329,73 +438,50 @@ def creator_id(self, creator_id): self._creator_id = creator_id @property - def tags(self): - """ - Gets the tags of this Event. - A list of event tags - - :return: The tags of this Event. - :rtype: list[str] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this Event. - A list of event tags - - :param tags: The tags of this Event. - :type: list[str] - """ - - self._tags = tags - - @property - def created_at(self): + def updated_at(self): """ - Gets the created_at of this Event. + Gets the updated_at of this Event. - :return: The created_at of this Event. + :return: The updated_at of this Event. :rtype: int """ - return self._created_at + return self._updated_at - @created_at.setter - def created_at(self, created_at): + @updated_at.setter + def updated_at(self, updated_at): """ - Sets the created_at of this Event. + Sets the updated_at of this Event. - :param created_at: The created_at of this Event. + :param updated_at: The updated_at of this Event. :type: int """ - self._created_at = created_at + self._updated_at = updated_at @property - def summarized_events(self): + def hosts(self): """ - Gets the summarized_events of this Event. - 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 + Gets the hosts of this Event. + A list of sources/hosts affected by the event - :return: The summarized_events of this Event. - :rtype: int + :return: The hosts of this Event. + :rtype: list[str] """ - return self._summarized_events + return self._hosts - @summarized_events.setter - def summarized_events(self, summarized_events): + @hosts.setter + def hosts(self, hosts): """ - Sets the summarized_events of this Event. - 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 + Sets the hosts of this Event. + A list of sources/hosts affected by the event - :param summarized_events: The summarized_events of this Event. - :type: int + :param hosts: The hosts of this Event. + :type: list[str] """ - if summarized_events is None: - raise ValueError("Invalid value for `summarized_events`, must not be `None`") + if hosts is None: + raise ValueError("Invalid value for `hosts`, must not be `None`") - self._summarized_events = summarized_events + self._hosts = hosts @property def is_user_event(self): @@ -421,73 +507,29 @@ def is_user_event(self, is_user_event): self._is_user_event = is_user_event @property - def is_ephemeral(self): - """ - Gets the is_ephemeral of this Event. - Whether the event ends immediately after it begins - - :return: The is_ephemeral of this Event. - :rtype: bool - """ - return self._is_ephemeral - - @is_ephemeral.setter - def is_ephemeral(self, is_ephemeral): - """ - Sets the is_ephemeral of this Event. - Whether the event ends immediately after it begins - - :param is_ephemeral: The is_ephemeral of this Event. - :type: bool - """ - - self._is_ephemeral = is_ephemeral - - @property - def updated_at(self): + def summarized_events(self): """ - Gets the updated_at of this Event. + Gets the summarized_events of this Event. + 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 - :return: The updated_at of this Event. + :return: The summarized_events of this Event. :rtype: int """ - return self._updated_at + return self._summarized_events - @updated_at.setter - def updated_at(self, updated_at): + @summarized_events.setter + def summarized_events(self, summarized_events): """ - Sets the updated_at of this Event. + Sets the summarized_events of this Event. + 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 - :param updated_at: The updated_at of this Event. + :param summarized_events: The summarized_events of this Event. :type: int """ + if summarized_events is None: + raise ValueError("Invalid value for `summarized_events`, must not be `None`") - self._updated_at = updated_at - - @property - def hosts(self): - """ - Gets the hosts of this Event. - A list of sources/hosts affected by the event - - :return: The hosts of this Event. - :rtype: list[str] - """ - return self._hosts - - @hosts.setter - def hosts(self, hosts): - """ - Sets the hosts of this Event. - A list of sources/hosts affected by the event - - :param hosts: The hosts of this Event. - :type: list[str] - """ - if hosts is None: - raise ValueError("Invalid value for `hosts`, must not be `None`") - - self._hosts = hosts + self._summarized_events = summarized_events @property def running_state(self): @@ -516,6 +558,27 @@ def running_state(self, running_state): self._running_state = running_state + @property + def can_delete(self): + """ + Gets the can_delete of this Event. + + :return: The can_delete of this Event. + :rtype: bool + """ + return self._can_delete + + @can_delete.setter + def can_delete(self, can_delete): + """ + Sets the can_delete of this Event. + + :param can_delete: The can_delete of this Event. + :type: bool + """ + + self._can_delete = can_delete + @property def can_close(self): """ @@ -565,27 +628,6 @@ def creator_type(self, creator_type): self._creator_type = creator_type - @property - def can_delete(self): - """ - Gets the can_delete of this Event. - - :return: The can_delete of this Event. - :rtype: bool - """ - return self._can_delete - - @can_delete.setter - def can_delete(self, can_delete): - """ - Sets the can_delete of this Event. - - :param can_delete: The can_delete of this Event. - :type: bool - """ - - self._can_delete = can_delete - def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/event_search_request.py b/wavefront_api_client/models/event_search_request.py index e8d060c..13dee58 100644 --- a/wavefront_api_client/models/event_search_request.py +++ b/wavefront_api_client/models/event_search_request.py @@ -21,33 +21,47 @@ class EventSearchRequest(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', + 'limit': 'int', + 'query': 'list[SearchQuery]', + 'time_range': 'EventTimeRange' + } + + attribute_map = { + 'cursor': 'cursor', + 'limit': 'limit', + 'query': 'query', + 'time_range': 'timeRange' + } + def __init__(self, cursor=None, limit=None, query=None, time_range=None): """ EventSearchRequest - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'cursor': 'str', - 'limit': 'int', - 'query': 'list[SearchQuery]', - 'time_range': 'EventTimeRange' - } - - self.attribute_map = { - 'cursor': 'cursor', - 'limit': 'limit', - 'query': 'query', - 'time_range': 'timeRange' - } + self._cursor = None + self._limit = None + self._query = None + self._time_range = None - self._cursor = cursor - self._limit = limit - self._query = query - self._time_range = time_range + if cursor is not None: + self.cursor = cursor + if limit is not None: + self.limit = limit + if query is not None: + self.query = query + if time_range is not None: + self.time_range = time_range @property def cursor(self): diff --git a/wavefront_api_client/models/event_time_range.py b/wavefront_api_client/models/event_time_range.py index 0e4e3a4..6f1381a 100644 --- a/wavefront_api_client/models/event_time_range.py +++ b/wavefront_api_client/models/event_time_range.py @@ -21,27 +21,37 @@ class EventTimeRange(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): """ EventTimeRange - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'earliest_start_time_epoch_millis': 'int', - 'latest_start_time_epoch_millis': 'int' - } - self.attribute_map = { - 'earliest_start_time_epoch_millis': 'earliestStartTimeEpochMillis', - 'latest_start_time_epoch_millis': 'latestStartTimeEpochMillis' - } + self._earliest_start_time_epoch_millis = None + self._latest_start_time_epoch_millis = None - self._earliest_start_time_epoch_millis = earliest_start_time_epoch_millis - self._latest_start_time_epoch_millis = latest_start_time_epoch_millis + 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): diff --git a/wavefront_api_client/models/external_link.py b/wavefront_api_client/models/external_link.py index 11462cf..19aabc2 100644 --- a/wavefront_api_client/models/external_link.py +++ b/wavefront_api_client/models/external_link.py @@ -21,54 +21,79 @@ class ExternalLink(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', + 'id': 'str', + 'description': 'str', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'template': 'str', + 'metric_filter_regex': 'str', + 'source_filter_regex': 'str', + 'point_tag_filter_regexes': 'dict(str, str)' + } + + attribute_map = { + 'name': 'name', + 'id': 'id', + 'description': 'description', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'template': 'template', + 'metric_filter_regex': 'metricFilterRegex', + 'source_filter_regex': 'sourceFilterRegex', + 'point_tag_filter_regexes': 'pointTagFilterRegexes' + } + def __init__(self, name=None, id=None, description=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, template=None, metric_filter_regex=None, source_filter_regex=None, point_tag_filter_regexes=None): """ ExternalLink - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'name': 'str', - 'id': 'str', - 'description': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'template': 'str', - 'metric_filter_regex': 'str', - 'source_filter_regex': 'str', - 'point_tag_filter_regexes': 'dict(str, str)' - } - - self.attribute_map = { - 'name': 'name', - 'id': 'id', - 'description': 'description', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'template': 'template', - 'metric_filter_regex': 'metricFilterRegex', - 'source_filter_regex': 'sourceFilterRegex', - 'point_tag_filter_regexes': 'pointTagFilterRegexes' - } - - self._name = name - self._id = id - self._description = description - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._template = template - self._metric_filter_regex = metric_filter_regex - self._source_filter_regex = source_filter_regex - self._point_tag_filter_regexes = point_tag_filter_regexes + self._name = None + self._id = None + self._description = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._template = None + self._metric_filter_regex = None + self._source_filter_regex = None + self._point_tag_filter_regexes = None + + self.name = name + if id is not None: + self.id = id + self.description = description + 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 creator_id is not None: + self.creator_id = creator_id + self.template = template + 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 + if point_tag_filter_regexes is not None: + self.point_tag_filter_regexes = point_tag_filter_regexes @property def name(self): diff --git a/wavefront_api_client/models/facet_response.py b/wavefront_api_client/models/facet_response.py index fc61c7f..ca098e0 100644 --- a/wavefront_api_client/models/facet_response.py +++ b/wavefront_api_client/models/facet_response.py @@ -21,42 +21,62 @@ class FacetResponse(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 = { + 'items': 'list[str]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ FacetResponse - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[str]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/facet_search_request_container.py b/wavefront_api_client/models/facet_search_request_container.py index 4e49f77..2fa53a8 100644 --- a/wavefront_api_client/models/facet_search_request_container.py +++ b/wavefront_api_client/models/facet_search_request_container.py @@ -21,36 +21,52 @@ class FacetSearchRequestContainer(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 = { + 'limit': 'int', + 'offset': 'int', + 'query': 'list[SearchQuery]', + 'facet_query': 'str', + 'facet_query_matching_method': 'str' + } + + attribute_map = { + 'limit': 'limit', + 'offset': 'offset', + 'query': 'query', + 'facet_query': 'facetQuery', + 'facet_query_matching_method': 'facetQueryMatchingMethod' + } + def __init__(self, limit=None, offset=None, query=None, facet_query=None, facet_query_matching_method=None): """ FacetSearchRequestContainer - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'limit': 'int', - 'offset': 'int', - 'query': 'list[SearchQuery]', - 'facet_query': 'str', - 'facet_query_matching_method': 'str' - } - - self.attribute_map = { - 'limit': 'limit', - 'offset': 'offset', - 'query': 'query', - 'facet_query': 'facetQuery', - 'facet_query_matching_method': 'facetQueryMatchingMethod' - } - - self._limit = limit - self._offset = offset - self._query = query - self._facet_query = facet_query - self._facet_query_matching_method = facet_query_matching_method + self._limit = None + self._offset = None + self._query = None + self._facet_query = None + self._facet_query_matching_method = None + + 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 limit(self): diff --git a/wavefront_api_client/models/facets_response_container.py b/wavefront_api_client/models/facets_response_container.py index bebb2bd..2de4b92 100644 --- a/wavefront_api_client/models/facets_response_container.py +++ b/wavefront_api_client/models/facets_response_container.py @@ -21,27 +21,37 @@ class FacetsResponseContainer(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 = { + 'limit': 'int', + 'facets': 'dict(str, list[str])' + } + + attribute_map = { + 'limit': 'limit', + 'facets': 'facets' + } + def __init__(self, limit=None, facets=None): """ FacetsResponseContainer - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'limit': 'int', - 'facets': 'dict(str, list[str])' - } - self.attribute_map = { - 'limit': 'limit', - 'facets': 'facets' - } + self._limit = None + self._facets = None - self._limit = limit - self._facets = facets + if limit is not None: + self.limit = limit + if facets is not None: + self.facets = facets @property def limit(self): diff --git a/wavefront_api_client/models/facets_search_request_container.py b/wavefront_api_client/models/facets_search_request_container.py index 8372f22..8f07859 100644 --- a/wavefront_api_client/models/facets_search_request_container.py +++ b/wavefront_api_client/models/facets_search_request_container.py @@ -21,36 +21,51 @@ class FacetsSearchRequestContainer(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 = { + 'facets': 'list[str]', + 'facet_query': 'str', + 'facet_query_matching_method': 'str', + 'query': 'list[SearchQuery]', + 'limit': 'int' + } + + attribute_map = { + 'facets': 'facets', + 'facet_query': 'facetQuery', + 'facet_query_matching_method': 'facetQueryMatchingMethod', + 'query': 'query', + 'limit': 'limit' + } + def __init__(self, facets=None, facet_query=None, facet_query_matching_method=None, query=None, limit=None): """ FacetsSearchRequestContainer - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'facets': 'list[str]', - 'facet_query': 'str', - 'facet_query_matching_method': 'str', - 'query': 'list[SearchQuery]', - 'limit': 'int' - } - - self.attribute_map = { - 'facets': 'facets', - 'facet_query': 'facetQuery', - 'facet_query_matching_method': 'facetQueryMatchingMethod', - 'query': 'query', - 'limit': 'limit' - } - - self._facets = facets - self._facet_query = facet_query - self._facet_query_matching_method = facet_query_matching_method - self._query = query - self._limit = limit + self._facets = None + self._facet_query = None + self._facet_query_matching_method = None + self._query = None + self._limit = None + + 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 + if query is not None: + self.query = query + if limit is not None: + self.limit = limit @property def facets(self): diff --git a/wavefront_api_client/models/history_entry.py b/wavefront_api_client/models/history_entry.py index 6beef7d..43d7e26 100644 --- a/wavefront_api_client/models/history_entry.py +++ b/wavefront_api_client/models/history_entry.py @@ -21,39 +21,57 @@ class HistoryEntry(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', + 'in_trash': 'bool', + 'version': 'int', + 'update_user': 'str', + 'update_time': 'int', + 'change_description': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'in_trash': 'inTrash', + 'version': 'version', + 'update_user': 'updateUser', + 'update_time': 'updateTime', + 'change_description': 'changeDescription' + } + def __init__(self, id=None, in_trash=None, version=None, update_user=None, update_time=None, change_description=None): """ HistoryEntry - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'id': 'str', - 'in_trash': 'bool', - 'version': 'int', - 'update_user': 'str', - 'update_time': 'int', - 'change_description': 'list[str]' - } - - self.attribute_map = { - 'id': 'id', - 'in_trash': 'inTrash', - 'version': 'version', - 'update_user': 'updateUser', - 'update_time': 'updateTime', - 'change_description': 'changeDescription' - } - - self._id = id - self._in_trash = in_trash - self._version = version - self._update_user = update_user - self._update_time = update_time - self._change_description = change_description + self._id = None + self._in_trash = None + self._version = None + self._update_user = None + self._update_time = None + self._change_description = None + + 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 @property def id(self): diff --git a/wavefront_api_client/models/history_response.py b/wavefront_api_client/models/history_response.py index 16e9276..a5708d9 100644 --- a/wavefront_api_client/models/history_response.py +++ b/wavefront_api_client/models/history_response.py @@ -21,42 +21,62 @@ class HistoryResponse(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 = { + 'items': 'list[HistoryEntry]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ HistoryResponse - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[HistoryEntry]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/iterator_entry_string_json_node.py b/wavefront_api_client/models/iterator_entry_string_json_node.py index 43c0701..ff5a4f5 100644 --- a/wavefront_api_client/models/iterator_entry_string_json_node.py +++ b/wavefront_api_client/models/iterator_entry_string_json_node.py @@ -21,22 +21,28 @@ class IteratorEntryStringJsonNode(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): """ IteratorEntryStringJsonNode - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - - } - self.attribute_map = { - - } def to_dict(self): diff --git a/wavefront_api_client/models/iterator_json_node.py b/wavefront_api_client/models/iterator_json_node.py index 14a4e0f..3c722f9 100644 --- a/wavefront_api_client/models/iterator_json_node.py +++ b/wavefront_api_client/models/iterator_json_node.py @@ -21,22 +21,28 @@ class IteratorJsonNode(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): """ IteratorJsonNode - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - - } - self.attribute_map = { - - } def to_dict(self): diff --git a/wavefront_api_client/models/iterator_string.py b/wavefront_api_client/models/iterator_string.py index 2e731e9..67743df 100644 --- a/wavefront_api_client/models/iterator_string.py +++ b/wavefront_api_client/models/iterator_string.py @@ -21,22 +21,28 @@ class IteratorString(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): """ IteratorString - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - - } - self.attribute_map = { - - } def to_dict(self): diff --git a/wavefront_api_client/models/maintenance_window.py b/wavefront_api_client/models/maintenance_window.py index 3df0bc5..9ae3658 100644 --- a/wavefront_api_client/models/maintenance_window.py +++ b/wavefront_api_client/models/maintenance_window.py @@ -21,72 +21,108 @@ class MaintenanceWindow(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, id=None, reason=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, title=None, start_time_in_seconds=None, end_time_in_seconds=None, relevant_customer_tags=None, relevant_host_names=None, relevant_host_tags=None, relevant_host_tags_anded=None, host_tag_group_host_names_group_anded=None, event_name=None, customer_id=None, running_state=None): + + + """ + 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', + 'reason': 'str', + 'customer_id': 'str', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'relevant_host_tags_anded': 'bool', + 'event_name': 'str', + 'title': 'str', + 'start_time_in_seconds': 'int', + 'end_time_in_seconds': 'int', + 'relevant_customer_tags': 'list[str]', + 'relevant_host_names': 'list[str]', + 'relevant_host_tags': 'list[str]', + 'host_tag_group_host_names_group_anded': 'bool', + 'running_state': 'str' + } + + attribute_map = { + 'id': 'id', + 'reason': 'reason', + 'customer_id': 'customerId', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'relevant_host_tags_anded': 'relevantHostTagsAnded', + 'event_name': 'eventName', + 'title': 'title', + 'start_time_in_seconds': 'startTimeInSeconds', + 'end_time_in_seconds': 'endTimeInSeconds', + 'relevant_customer_tags': 'relevantCustomerTags', + 'relevant_host_names': 'relevantHostNames', + 'relevant_host_tags': 'relevantHostTags', + 'host_tag_group_host_names_group_anded': 'hostTagGroupHostNamesGroupAnded', + 'running_state': 'runningState' + } + + def __init__(self, id=None, reason=None, customer_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, relevant_host_tags_anded=None, event_name=None, title=None, start_time_in_seconds=None, end_time_in_seconds=None, relevant_customer_tags=None, relevant_host_names=None, relevant_host_tags=None, host_tag_group_host_names_group_anded=None, running_state=None): """ MaintenanceWindow - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'id': 'str', - 'reason': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'title': 'str', - 'start_time_in_seconds': 'int', - 'end_time_in_seconds': 'int', - 'relevant_customer_tags': 'list[str]', - 'relevant_host_names': 'list[str]', - 'relevant_host_tags': 'list[str]', - 'relevant_host_tags_anded': 'bool', - 'host_tag_group_host_names_group_anded': 'bool', - 'event_name': 'str', - 'customer_id': 'str', - 'running_state': 'str' - } - - self.attribute_map = { - 'id': 'id', - 'reason': 'reason', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'title': 'title', - 'start_time_in_seconds': 'startTimeInSeconds', - 'end_time_in_seconds': 'endTimeInSeconds', - 'relevant_customer_tags': 'relevantCustomerTags', - 'relevant_host_names': 'relevantHostNames', - 'relevant_host_tags': 'relevantHostTags', - 'relevant_host_tags_anded': 'relevantHostTagsAnded', - 'host_tag_group_host_names_group_anded': 'hostTagGroupHostNamesGroupAnded', - 'event_name': 'eventName', - 'customer_id': 'customerId', - 'running_state': 'runningState' - } - - self._id = id - self._reason = reason - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._title = title - self._start_time_in_seconds = start_time_in_seconds - self._end_time_in_seconds = end_time_in_seconds - self._relevant_customer_tags = relevant_customer_tags - self._relevant_host_names = relevant_host_names - self._relevant_host_tags = relevant_host_tags - self._relevant_host_tags_anded = relevant_host_tags_anded - self._host_tag_group_host_names_group_anded = host_tag_group_host_names_group_anded - self._event_name = event_name - self._customer_id = customer_id - self._running_state = running_state + self._id = None + self._reason = None + self._customer_id = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._relevant_host_tags_anded = None + self._event_name = None + self._title = None + self._start_time_in_seconds = None + self._end_time_in_seconds = None + self._relevant_customer_tags = None + self._relevant_host_names = None + self._relevant_host_tags = None + self._host_tag_group_host_names_group_anded = None + self._running_state = None + + if id is not None: + self.id = id + self.reason = reason + if customer_id is not None: + self.customer_id = customer_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 creator_id is not None: + self.creator_id = creator_id + if relevant_host_tags_anded is not None: + self.relevant_host_tags_anded = relevant_host_tags_anded + if event_name is not None: + self.event_name = event_name + if title is not None: + self.title = title + self.start_time_in_seconds = start_time_in_seconds + self.end_time_in_seconds = end_time_in_seconds + self.relevant_customer_tags = relevant_customer_tags + 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 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 running_state is not None: + self.running_state = running_state @property def id(self): @@ -134,6 +170,27 @@ def reason(self, reason): self._reason = reason + @property + def customer_id(self): + """ + Gets the customer_id of this MaintenanceWindow. + + :return: The customer_id of this MaintenanceWindow. + :rtype: str + """ + return self._customer_id + + @customer_id.setter + def customer_id(self, customer_id): + """ + Sets the customer_id of this MaintenanceWindow. + + :param customer_id: The customer_id of this MaintenanceWindow. + :type: str + """ + + self._customer_id = customer_id + @property def created_epoch_millis(self): """ @@ -218,6 +275,52 @@ def creator_id(self, creator_id): self._creator_id = creator_id + @property + def relevant_host_tags_anded(self): + """ + Gets the relevant_host_tags_anded of this MaintenanceWindow. + Whether to AND source/host tags listed in relevantHostTags. If true, a source/host must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a source/host must contain one of the tags. Default: false + + :return: The relevant_host_tags_anded of this MaintenanceWindow. + :rtype: bool + """ + return self._relevant_host_tags_anded + + @relevant_host_tags_anded.setter + def relevant_host_tags_anded(self, relevant_host_tags_anded): + """ + Sets the relevant_host_tags_anded of this MaintenanceWindow. + Whether to AND source/host tags listed in relevantHostTags. If true, a source/host must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a source/host must contain one of the tags. Default: false + + :param relevant_host_tags_anded: The relevant_host_tags_anded of this MaintenanceWindow. + :type: bool + """ + + self._relevant_host_tags_anded = relevant_host_tags_anded + + @property + def event_name(self): + """ + Gets the event_name of this MaintenanceWindow. + The name of an event associated with the creation/update of this maintenance window + + :return: The event_name of this MaintenanceWindow. + :rtype: str + """ + return self._event_name + + @event_name.setter + def event_name(self, event_name): + """ + Sets the event_name of this MaintenanceWindow. + The name of an event associated with the creation/update of this maintenance window + + :param event_name: The event_name of this MaintenanceWindow. + :type: str + """ + + self._event_name = event_name + @property def title(self): """ @@ -362,29 +465,6 @@ def relevant_host_tags(self, relevant_host_tags): self._relevant_host_tags = relevant_host_tags - @property - def relevant_host_tags_anded(self): - """ - Gets the relevant_host_tags_anded of this MaintenanceWindow. - Whether to AND source/host tags listed in relevantHostTags. If true, a source/host must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a source/host must contain one of the tags. Default: false - - :return: The relevant_host_tags_anded of this MaintenanceWindow. - :rtype: bool - """ - return self._relevant_host_tags_anded - - @relevant_host_tags_anded.setter - def relevant_host_tags_anded(self, relevant_host_tags_anded): - """ - Sets the relevant_host_tags_anded of this MaintenanceWindow. - Whether to AND source/host tags listed in relevantHostTags. If true, a source/host must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a source/host must contain one of the tags. Default: false - - :param relevant_host_tags_anded: The relevant_host_tags_anded of this MaintenanceWindow. - :type: bool - """ - - self._relevant_host_tags_anded = relevant_host_tags_anded - @property def host_tag_group_host_names_group_anded(self): """ @@ -408,50 +488,6 @@ def host_tag_group_host_names_group_anded(self, host_tag_group_host_names_group_ self._host_tag_group_host_names_group_anded = host_tag_group_host_names_group_anded - @property - def event_name(self): - """ - Gets the event_name of this MaintenanceWindow. - The name of an event associated with the creation/update of this maintenance window - - :return: The event_name of this MaintenanceWindow. - :rtype: str - """ - return self._event_name - - @event_name.setter - def event_name(self, event_name): - """ - Sets the event_name of this MaintenanceWindow. - The name of an event associated with the creation/update of this maintenance window - - :param event_name: The event_name of this MaintenanceWindow. - :type: str - """ - - self._event_name = event_name - - @property - def customer_id(self): - """ - Gets the customer_id of this MaintenanceWindow. - - :return: The customer_id of this MaintenanceWindow. - :rtype: str - """ - return self._customer_id - - @customer_id.setter - def customer_id(self, customer_id): - """ - Sets the customer_id of this MaintenanceWindow. - - :param customer_id: The customer_id of this MaintenanceWindow. - :type: str - """ - - self._customer_id = customer_id - @property def running_state(self): """ diff --git a/wavefront_api_client/models/message.py b/wavefront_api_client/models/message.py index fe05fa9..b18bb47 100644 --- a/wavefront_api_client/models/message.py +++ b/wavefront_api_client/models/message.py @@ -21,57 +21,102 @@ class Message(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, scope=None, attributes=None, source=None, id=None, target=None, content=None, severity=None, start_epoch_millis=None, end_epoch_millis=None, display=None, title=None, read=None): + + + """ + 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 = { + 'attributes': 'dict(str, str)', + 'scope': 'str', + 'source': 'str', + 'id': 'str', + 'target': 'str', + 'content': 'str', + 'severity': 'str', + 'title': 'str', + 'end_epoch_millis': 'int', + 'start_epoch_millis': 'int', + 'display': 'str', + 'read': 'bool' + } + + attribute_map = { + 'attributes': 'attributes', + 'scope': 'scope', + 'source': 'source', + 'id': 'id', + 'target': 'target', + 'content': 'content', + 'severity': 'severity', + 'title': 'title', + 'end_epoch_millis': 'endEpochMillis', + 'start_epoch_millis': 'startEpochMillis', + 'display': 'display', + 'read': 'read' + } + + def __init__(self, attributes=None, scope=None, source=None, id=None, target=None, content=None, severity=None, title=None, end_epoch_millis=None, start_epoch_millis=None, display=None, read=None): """ Message - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'scope': 'str', - 'attributes': 'dict(str, str)', - 'source': 'str', - 'id': 'str', - 'target': 'str', - 'content': 'str', - 'severity': 'str', - 'start_epoch_millis': 'int', - 'end_epoch_millis': 'int', - 'display': 'str', - 'title': 'str', - 'read': 'bool' - } - - self.attribute_map = { - 'scope': 'scope', - 'attributes': 'attributes', - 'source': 'source', - 'id': 'id', - 'target': 'target', - 'content': 'content', - 'severity': 'severity', - 'start_epoch_millis': 'startEpochMillis', - 'end_epoch_millis': 'endEpochMillis', - 'display': 'display', - 'title': 'title', - 'read': 'read' - } + self._attributes = None + self._scope = None + self._source = None + self._id = None + self._target = None + self._content = None + self._severity = None + self._title = None + self._end_epoch_millis = None + self._start_epoch_millis = None + self._display = None + self._read = None + + if attributes is not None: + self.attributes = attributes + self.scope = scope + self.source = source + if id is not None: + self.id = id + if target is not None: + self.target = target + self.content = content + self.severity = severity + self.title = title + self.end_epoch_millis = end_epoch_millis + self.start_epoch_millis = start_epoch_millis + self.display = display + if read is not None: + self.read = read + + @property + def attributes(self): + """ + Gets the attributes of this Message. + A string->string map of additional properties associated with this message + + :return: The attributes of this Message. + :rtype: dict(str, str) + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """ + Sets the attributes of this Message. + A string->string map of additional properties associated with this message + + :param attributes: The attributes of this Message. + :type: dict(str, str) + """ - self._scope = scope self._attributes = attributes - self._source = source - self._id = id - self._target = target - self._content = content - self._severity = severity - self._start_epoch_millis = start_epoch_millis - self._end_epoch_millis = end_epoch_millis - self._display = display - self._title = title - self._read = read @property def scope(self): @@ -93,6 +138,8 @@ def scope(self, scope): :param scope: The scope of this Message. :type: str """ + if scope is None: + raise ValueError("Invalid value for `scope`, must not be `None`") allowed_values = ["CLUSTER", "CUSTOMER", "USER"] if scope not in allowed_values: raise ValueError( @@ -102,29 +149,6 @@ def scope(self, scope): self._scope = scope - @property - def attributes(self): - """ - Gets the attributes of this Message. - A string->string map of additional properties associated with this message - - :return: The attributes of this Message. - :rtype: dict(str, str) - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """ - Sets the attributes of this Message. - A string->string map of additional properties associated with this message - - :param attributes: The attributes of this Message. - :type: dict(str, str) - """ - - self._attributes = attributes - @property def source(self): """ @@ -239,6 +263,8 @@ def severity(self, severity): :param severity: The severity of this Message. :type: str """ + if severity is None: + raise ValueError("Invalid value for `severity`, must not be `None`") allowed_values = ["MARKETING", "INFO", "WARN", "SEVERE"] if severity not in allowed_values: raise ValueError( @@ -249,29 +275,29 @@ def severity(self, severity): self._severity = severity @property - def start_epoch_millis(self): + def title(self): """ - Gets the start_epoch_millis of this Message. - When this message will begin to be displayed, in epoch millis + Gets the title of this Message. + Title of this message - :return: The start_epoch_millis of this Message. - :rtype: int + :return: The title of this Message. + :rtype: str """ - return self._start_epoch_millis + return self._title - @start_epoch_millis.setter - def start_epoch_millis(self, start_epoch_millis): + @title.setter + def title(self, title): """ - Sets the start_epoch_millis of this Message. - When this message will begin to be displayed, in epoch millis + Sets the title of this Message. + Title of this message - :param start_epoch_millis: The start_epoch_millis of this Message. - :type: int + :param title: The title of this Message. + :type: str """ - if start_epoch_millis is None: - raise ValueError("Invalid value for `start_epoch_millis`, must not be `None`") + if title is None: + raise ValueError("Invalid value for `title`, must not be `None`") - self._start_epoch_millis = start_epoch_millis + self._title = title @property def end_epoch_millis(self): @@ -298,6 +324,31 @@ def end_epoch_millis(self, end_epoch_millis): self._end_epoch_millis = end_epoch_millis + @property + def start_epoch_millis(self): + """ + Gets the start_epoch_millis of this Message. + When this message will begin to be displayed, in epoch millis + + :return: The start_epoch_millis of this Message. + :rtype: int + """ + return self._start_epoch_millis + + @start_epoch_millis.setter + def start_epoch_millis(self, start_epoch_millis): + """ + Sets the start_epoch_millis of this Message. + When this message will begin to be displayed, in epoch millis + + :param start_epoch_millis: The start_epoch_millis of this Message. + :type: int + """ + if start_epoch_millis is None: + raise ValueError("Invalid value for `start_epoch_millis`, must not be `None`") + + self._start_epoch_millis = start_epoch_millis + @property def display(self): """ @@ -318,6 +369,8 @@ def display(self, display): :param display: The display of this Message. :type: str """ + if display is None: + raise ValueError("Invalid value for `display`, must not be `None`") allowed_values = ["BANNER", "TOASTER"] if display not in allowed_values: raise ValueError( @@ -327,31 +380,6 @@ def display(self, display): self._display = display - @property - def title(self): - """ - Gets the title of this Message. - Title of this message - - :return: The title of this Message. - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """ - Sets the title of this Message. - Title of this message - - :param title: The title of this Message. - :type: str - """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") - - self._title = title - @property def read(self): """ diff --git a/wavefront_api_client/models/metric_details.py b/wavefront_api_client/models/metric_details.py index 140857a..8c432a1 100644 --- a/wavefront_api_client/models/metric_details.py +++ b/wavefront_api_client/models/metric_details.py @@ -21,30 +21,42 @@ class MetricDetails(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 = { + 'host': 'str', + 'last_update': 'int', + 'tags': 'dict(str, str)' + } + + attribute_map = { + 'host': 'host', + 'last_update': 'last_update', + 'tags': 'tags' + } + def __init__(self, host=None, last_update=None, tags=None): """ MetricDetails - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'host': 'str', - 'last_update': 'int', - 'tags': 'dict(str, str)' - } - self.attribute_map = { - 'host': 'host', - 'last_update': 'last_update', - 'tags': 'tags' - } + self._host = None + self._last_update = None + self._tags = None - self._host = host - self._last_update = last_update - self._tags = tags + if host is not None: + self.host = host + if last_update is not None: + self.last_update = last_update + if tags is not None: + self.tags = tags @property def host(self): diff --git a/wavefront_api_client/models/metric_details_response.py b/wavefront_api_client/models/metric_details_response.py index eb8b83b..0decf6d 100644 --- a/wavefront_api_client/models/metric_details_response.py +++ b/wavefront_api_client/models/metric_details_response.py @@ -21,24 +21,32 @@ class MetricDetailsResponse(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 = { + 'hosts': 'list[MetricDetails]' + } + + attribute_map = { + 'hosts': 'hosts' + } + def __init__(self, hosts=None): """ MetricDetailsResponse - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'hosts': 'list[MetricDetails]' - } - self.attribute_map = { - 'hosts': 'hosts' - } + self._hosts = None - self._hosts = hosts + if hosts is not None: + self.hosts = hosts @property def hosts(self): diff --git a/wavefront_api_client/models/number.py b/wavefront_api_client/models/number.py index 22a3658..63a6b12 100644 --- a/wavefront_api_client/models/number.py +++ b/wavefront_api_client/models/number.py @@ -21,22 +21,28 @@ class Number(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): """ Number - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - - } - self.attribute_map = { - - } def to_dict(self): diff --git a/wavefront_api_client/models/paged.py b/wavefront_api_client/models/paged.py index 5d9aafb..d589521 100644 --- a/wavefront_api_client/models/paged.py +++ b/wavefront_api_client/models/paged.py @@ -21,45 +21,67 @@ 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 = { + 'items': 'list[Alert]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting', + 'alert_counts': 'dict(str, int)' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort', + 'alert_counts': 'alertCounts' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None, alert_counts=None): """ Paged - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[Alert]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting', - 'alert_counts': 'dict(str, int)' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort', - 'alert_counts': 'alertCounts' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort - self._alert_counts = alert_counts + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + self._alert_counts = None + + 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 sort is not None: + self.sort = sort + if alert_counts is not None: + self.alert_counts = alert_counts @property def items(self): diff --git a/wavefront_api_client/models/paged_alert.py b/wavefront_api_client/models/paged_alert.py index 2d21246..15a2b87 100644 --- a/wavefront_api_client/models/paged_alert.py +++ b/wavefront_api_client/models/paged_alert.py @@ -21,42 +21,62 @@ class PagedAlert(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 = { + 'items': 'list[Alert]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedAlert - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[Alert]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_cloud_integration.py b/wavefront_api_client/models/paged_cloud_integration.py index 9742eaf..a81ce82 100644 --- a/wavefront_api_client/models/paged_cloud_integration.py +++ b/wavefront_api_client/models/paged_cloud_integration.py @@ -21,42 +21,62 @@ class PagedCloudIntegration(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 = { + 'items': 'list[CloudIntegration]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedCloudIntegration - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[CloudIntegration]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_dashboard.py b/wavefront_api_client/models/paged_dashboard.py index 77d418e..2152d98 100644 --- a/wavefront_api_client/models/paged_dashboard.py +++ b/wavefront_api_client/models/paged_dashboard.py @@ -21,42 +21,62 @@ class PagedDashboard(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 = { + 'items': 'list[Dashboard]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedDashboard - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[Dashboard]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_event.py b/wavefront_api_client/models/paged_event.py index 636d0b8..d00a099 100644 --- a/wavefront_api_client/models/paged_event.py +++ b/wavefront_api_client/models/paged_event.py @@ -21,42 +21,62 @@ class PagedEvent(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 = { + 'items': 'list[Event]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedEvent - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[Event]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_external_link.py b/wavefront_api_client/models/paged_external_link.py index 038334a..c3e7f36 100644 --- a/wavefront_api_client/models/paged_external_link.py +++ b/wavefront_api_client/models/paged_external_link.py @@ -21,42 +21,62 @@ class PagedExternalLink(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 = { + 'items': 'list[ExternalLink]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedExternalLink - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[ExternalLink]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_maintenance_window.py b/wavefront_api_client/models/paged_maintenance_window.py index ef89d4e..045008d 100644 --- a/wavefront_api_client/models/paged_maintenance_window.py +++ b/wavefront_api_client/models/paged_maintenance_window.py @@ -21,42 +21,62 @@ class PagedMaintenanceWindow(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 = { + 'items': 'list[MaintenanceWindow]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedMaintenanceWindow - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[MaintenanceWindow]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_message.py b/wavefront_api_client/models/paged_message.py index d981fb4..4e376dc 100644 --- a/wavefront_api_client/models/paged_message.py +++ b/wavefront_api_client/models/paged_message.py @@ -21,42 +21,62 @@ class PagedMessage(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 = { + 'items': 'list[Message]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedMessage - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[Message]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_proxy.py b/wavefront_api_client/models/paged_proxy.py index 4af0fac..0011c79 100644 --- a/wavefront_api_client/models/paged_proxy.py +++ b/wavefront_api_client/models/paged_proxy.py @@ -21,42 +21,62 @@ class PagedProxy(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 = { + 'items': 'list[Proxy]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedProxy - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[Proxy]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_saved_search.py b/wavefront_api_client/models/paged_saved_search.py index d9d73d3..27082b4 100644 --- a/wavefront_api_client/models/paged_saved_search.py +++ b/wavefront_api_client/models/paged_saved_search.py @@ -21,42 +21,62 @@ class PagedSavedSearch(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 = { + 'items': 'list[SavedSearch]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedSavedSearch - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[SavedSearch]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_source.py b/wavefront_api_client/models/paged_source.py index 6cdd7e2..c87b34a 100644 --- a/wavefront_api_client/models/paged_source.py +++ b/wavefront_api_client/models/paged_source.py @@ -21,42 +21,62 @@ class PagedSource(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 = { + 'items': 'list[Source]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedSource - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[Source]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/paged_webhook.py b/wavefront_api_client/models/paged_webhook.py index 469391b..392bc28 100644 --- a/wavefront_api_client/models/paged_webhook.py +++ b/wavefront_api_client/models/paged_webhook.py @@ -21,42 +21,62 @@ class PagedWebhook(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 = { + 'items': 'list[Webhook]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ PagedWebhook - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[Webhook]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/point.py b/wavefront_api_client/models/point.py index b4b7e32..5560cae 100644 --- a/wavefront_api_client/models/point.py +++ b/wavefront_api_client/models/point.py @@ -21,27 +21,35 @@ class Point(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 = { + 'value': 'float', + 'timestamp': 'int' + } + + attribute_map = { + 'value': 'value', + 'timestamp': 'timestamp' + } + def __init__(self, value=None, timestamp=None): """ Point - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'value': 'float', - 'timestamp': 'int' - } - self.attribute_map = { - 'value': 'value', - 'timestamp': 'timestamp' - } + self._value = None + self._timestamp = None - self._value = value - self._timestamp = timestamp + self.value = value + self.timestamp = timestamp @property def value(self): diff --git a/wavefront_api_client/models/proxy.py b/wavefront_api_client/models/proxy.py index ec9f74e..8bfbd0c 100644 --- a/wavefront_api_client/models/proxy.py +++ b/wavefront_api_client/models/proxy.py @@ -21,72 +21,112 @@ class Proxy(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, name=None, id=None, version=None, last_check_in_time=None, hostname=None, last_known_error=None, last_error_time=None, last_error_event=None, time_drift=None, bytes_left_for_buffer=None, bytes_per_minute_for_buffer=None, local_queue_size=None, ssh_agent=None, ephemeral=None, in_trash=None, customer_id=None, deleted=None): + + + """ + 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', + 'id': 'str', + 'version': 'str', + 'in_trash': 'bool', + 'customer_id': 'str', + 'ephemeral': 'bool', + 'last_check_in_time': 'int', + 'hostname': 'str', + 'last_known_error': 'str', + 'last_error_time': 'int', + 'last_error_event': 'Event', + 'time_drift': 'int', + 'bytes_left_for_buffer': 'int', + 'bytes_per_minute_for_buffer': 'int', + 'local_queue_size': 'int', + 'ssh_agent': 'bool', + 'deleted': 'bool' + } + + attribute_map = { + 'name': 'name', + 'id': 'id', + 'version': 'version', + 'in_trash': 'inTrash', + 'customer_id': 'customerId', + 'ephemeral': 'ephemeral', + 'last_check_in_time': 'lastCheckInTime', + 'hostname': 'hostname', + 'last_known_error': 'lastKnownError', + 'last_error_time': 'lastErrorTime', + 'last_error_event': 'lastErrorEvent', + 'time_drift': 'timeDrift', + 'bytes_left_for_buffer': 'bytesLeftForBuffer', + 'bytes_per_minute_for_buffer': 'bytesPerMinuteForBuffer', + 'local_queue_size': 'localQueueSize', + 'ssh_agent': 'sshAgent', + 'deleted': 'deleted' + } + + def __init__(self, name=None, id=None, version=None, in_trash=None, customer_id=None, ephemeral=None, last_check_in_time=None, hostname=None, last_known_error=None, last_error_time=None, last_error_event=None, time_drift=None, bytes_left_for_buffer=None, bytes_per_minute_for_buffer=None, local_queue_size=None, ssh_agent=None, deleted=None): """ Proxy - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'name': 'str', - 'id': 'str', - 'version': 'str', - 'last_check_in_time': 'int', - 'hostname': 'str', - 'last_known_error': 'str', - 'last_error_time': 'int', - 'last_error_event': 'Event', - 'time_drift': 'int', - 'bytes_left_for_buffer': 'int', - 'bytes_per_minute_for_buffer': 'int', - 'local_queue_size': 'int', - 'ssh_agent': 'bool', - 'ephemeral': 'bool', - 'in_trash': 'bool', - 'customer_id': 'str', - 'deleted': 'bool' - } - - self.attribute_map = { - 'name': 'name', - 'id': 'id', - 'version': 'version', - 'last_check_in_time': 'lastCheckInTime', - 'hostname': 'hostname', - 'last_known_error': 'lastKnownError', - 'last_error_time': 'lastErrorTime', - 'last_error_event': 'lastErrorEvent', - 'time_drift': 'timeDrift', - 'bytes_left_for_buffer': 'bytesLeftForBuffer', - 'bytes_per_minute_for_buffer': 'bytesPerMinuteForBuffer', - 'local_queue_size': 'localQueueSize', - 'ssh_agent': 'sshAgent', - 'ephemeral': 'ephemeral', - 'in_trash': 'inTrash', - 'customer_id': 'customerId', - 'deleted': 'deleted' - } - - self._name = name - self._id = id - self._version = version - self._last_check_in_time = last_check_in_time - self._hostname = hostname - self._last_known_error = last_known_error - self._last_error_time = last_error_time - self._last_error_event = last_error_event - self._time_drift = time_drift - self._bytes_left_for_buffer = bytes_left_for_buffer - self._bytes_per_minute_for_buffer = bytes_per_minute_for_buffer - self._local_queue_size = local_queue_size - self._ssh_agent = ssh_agent - self._ephemeral = ephemeral - self._in_trash = in_trash - self._customer_id = customer_id - self._deleted = deleted + self._name = None + self._id = None + self._version = None + self._in_trash = None + self._customer_id = None + self._ephemeral = None + self._last_check_in_time = None + self._hostname = None + self._last_known_error = None + self._last_error_time = None + self._last_error_event = None + self._time_drift = None + self._bytes_left_for_buffer = None + self._bytes_per_minute_for_buffer = None + self._local_queue_size = None + self._ssh_agent = None + self._deleted = None + + if name is not None: + self.name = name + if id is not None: + self.id = id + if version is not None: + self.version = version + if in_trash is not None: + self.in_trash = in_trash + if customer_id is not None: + self.customer_id = customer_id + if ephemeral is not None: + self.ephemeral = ephemeral + if last_check_in_time is not None: + self.last_check_in_time = last_check_in_time + if hostname is not None: + self.hostname = hostname + if last_known_error is not None: + self.last_known_error = last_known_error + if last_error_time is not None: + self.last_error_time = last_error_time + if last_error_event is not None: + self.last_error_event = last_error_event + 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 ssh_agent is not None: + self.ssh_agent = ssh_agent + if deleted is not None: + self.deleted = deleted @property def name(self): @@ -153,6 +193,71 @@ def version(self, version): self._version = version + @property + def in_trash(self): + """ + Gets the in_trash of this Proxy. + + :return: The in_trash of this Proxy. + :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. + :type: bool + """ + + self._in_trash = in_trash + + @property + def customer_id(self): + """ + Gets the customer_id of this Proxy. + + :return: The customer_id of this Proxy. + :rtype: str + """ + return self._customer_id + + @customer_id.setter + def customer_id(self, customer_id): + """ + Sets the customer_id of this Proxy. + + :param customer_id: The customer_id of this Proxy. + :type: str + """ + + self._customer_id = customer_id + + @property + def ephemeral(self): + """ + Gets 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) + + :return: The ephemeral of this Proxy. + :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) + + :param ephemeral: The ephemeral of this Proxy. + :type: bool + """ + + self._ephemeral = ephemeral + @property def last_check_in_time(self): """ @@ -381,71 +486,6 @@ def ssh_agent(self, ssh_agent): self._ssh_agent = ssh_agent - @property - def ephemeral(self): - """ - Gets 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) - - :return: The ephemeral of this Proxy. - :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) - - :param ephemeral: The ephemeral of this Proxy. - :type: bool - """ - - self._ephemeral = ephemeral - - @property - def in_trash(self): - """ - Gets the in_trash of this Proxy. - - :return: The in_trash of this Proxy. - :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. - :type: bool - """ - - self._in_trash = in_trash - - @property - def customer_id(self): - """ - Gets the customer_id of this Proxy. - - :return: The customer_id of this Proxy. - :rtype: str - """ - return self._customer_id - - @customer_id.setter - def customer_id(self, customer_id): - """ - Sets the customer_id of this Proxy. - - :param customer_id: The customer_id of this Proxy. - :type: str - """ - - self._customer_id = customer_id - @property def deleted(self): """ diff --git a/wavefront_api_client/models/query_key_container.py b/wavefront_api_client/models/query_key_container.py index 48b01a3..fa0785d 100644 --- a/wavefront_api_client/models/query_key_container.py +++ b/wavefront_api_client/models/query_key_container.py @@ -21,36 +21,52 @@ class QueryKeyContainer(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', + 'metric': 'str', + 'host': 'str', + 'tags': 'dict(str, str)', + 'host_tag': 'str' + } + + attribute_map = { + 'name': 'name', + 'metric': 'metric', + 'host': 'host', + 'tags': 'tags', + 'host_tag': 'hostTag' + } + def __init__(self, name=None, metric=None, host=None, tags=None, host_tag=None): """ QueryKeyContainer - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'name': 'str', - 'metric': 'str', - 'host': 'str', - 'tags': 'dict(str, str)', - 'host_tag': 'str' - } - - self.attribute_map = { - 'name': 'name', - 'metric': 'metric', - 'host': 'host', - 'tags': 'tags', - 'host_tag': 'hostTag' - } - - self._name = name - self._metric = metric - self._host = host - self._tags = tags - self._host_tag = host_tag + self._name = None + self._metric = None + self._host = None + self._tags = None + self._host_tag = None + + if name is not None: + self.name = name + if metric is not None: + self.metric = metric + if host is not None: + self.host = host + if tags is not None: + self.tags = tags + if host_tag is not None: + self.host_tag = host_tag @property def name(self): diff --git a/wavefront_api_client/models/query_result.py b/wavefront_api_client/models/query_result.py index 4a92269..ad1780a 100644 --- a/wavefront_api_client/models/query_result.py +++ b/wavefront_api_client/models/query_result.py @@ -21,66 +21,102 @@ class QueryResult(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 = { + 'query': 'str', + 'name': 'str', + 'skip': 'int', + 'stats': 'StatsModel', + 'warnings': 'str', + 'metrics_used': 'list[str]', + 'hosts_used': 'list[str]', + 'host_tags_used': 'list[str]', + 'granularity': 'int', + 'num_compilation_tasks': 'int', + 'query_keys': 'list[QueryKeyContainer]', + 'raw_points_stats': 'list[TimeseriesStatsContainer]', + 'summarized_points_stats': 'list[TimeseriesStatsContainer]', + 'timeseries': 'list[Timeseries]', + 'events': 'list[ReportEvent]' + } + + attribute_map = { + 'query': 'query', + 'name': 'name', + 'skip': 'skip', + 'stats': 'stats', + 'warnings': 'warnings', + 'metrics_used': 'metricsUsed', + 'hosts_used': 'hostsUsed', + 'host_tags_used': 'hostTagsUsed', + 'granularity': 'granularity', + 'num_compilation_tasks': 'numCompilationTasks', + 'query_keys': 'queryKeys', + 'raw_points_stats': 'rawPointsStats', + 'summarized_points_stats': 'summarizedPointsStats', + 'timeseries': 'timeseries', + 'events': 'events' + } + def __init__(self, query=None, name=None, skip=None, stats=None, warnings=None, metrics_used=None, hosts_used=None, host_tags_used=None, granularity=None, num_compilation_tasks=None, query_keys=None, raw_points_stats=None, summarized_points_stats=None, timeseries=None, events=None): """ QueryResult - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'query': 'str', - 'name': 'str', - 'skip': 'int', - 'stats': 'StatsModel', - 'warnings': 'str', - 'metrics_used': 'list[str]', - 'hosts_used': 'list[str]', - 'host_tags_used': 'list[str]', - 'granularity': 'int', - 'num_compilation_tasks': 'int', - 'query_keys': 'list[QueryKeyContainer]', - 'raw_points_stats': 'list[TimeseriesStatsContainer]', - 'summarized_points_stats': 'list[TimeseriesStatsContainer]', - 'timeseries': 'list[Timeseries]', - 'events': 'list[ReportEvent]' - } - - self.attribute_map = { - 'query': 'query', - 'name': 'name', - 'skip': 'skip', - 'stats': 'stats', - 'warnings': 'warnings', - 'metrics_used': 'metricsUsed', - 'hosts_used': 'hostsUsed', - 'host_tags_used': 'hostTagsUsed', - 'granularity': 'granularity', - 'num_compilation_tasks': 'numCompilationTasks', - 'query_keys': 'queryKeys', - 'raw_points_stats': 'rawPointsStats', - 'summarized_points_stats': 'summarizedPointsStats', - 'timeseries': 'timeseries', - 'events': 'events' - } - - self._query = query - self._name = name - self._skip = skip - self._stats = stats - self._warnings = warnings - self._metrics_used = metrics_used - self._hosts_used = hosts_used - self._host_tags_used = host_tags_used - self._granularity = granularity - self._num_compilation_tasks = num_compilation_tasks - self._query_keys = query_keys - self._raw_points_stats = raw_points_stats - self._summarized_points_stats = summarized_points_stats - self._timeseries = timeseries - self._events = events + self._query = None + self._name = None + self._skip = None + self._stats = None + self._warnings = None + self._metrics_used = None + self._hosts_used = None + self._host_tags_used = None + self._granularity = None + self._num_compilation_tasks = None + self._query_keys = None + self._raw_points_stats = None + self._summarized_points_stats = None + self._timeseries = None + self._events = None + + if query is not None: + self.query = query + if name is not None: + self.name = name + if skip is not None: + self.skip = skip + if stats is not None: + self.stats = stats + if warnings is not None: + self.warnings = warnings + if metrics_used is not None: + self.metrics_used = metrics_used + if hosts_used is not None: + self.hosts_used = hosts_used + if host_tags_used is not None: + self.host_tags_used = host_tags_used + if granularity is not None: + self.granularity = granularity + if num_compilation_tasks is not None: + self.num_compilation_tasks = num_compilation_tasks + if query_keys is not None: + self.query_keys = query_keys + if raw_points_stats is not None: + self.raw_points_stats = raw_points_stats + if summarized_points_stats is not None: + self.summarized_points_stats = summarized_points_stats + if timeseries is not None: + self.timeseries = timeseries + if events is not None: + self.events = events @property def query(self): diff --git a/wavefront_api_client/models/report_event.py b/wavefront_api_client/models/report_event.py index 7f073a6..c00c32c 100644 --- a/wavefront_api_client/models/report_event.py +++ b/wavefront_api_client/models/report_event.py @@ -21,63 +21,95 @@ class ReportEvent(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', + 'start_time': 'int', + 'end_time': 'int', + 'annotations': 'dict(str, str)', + 'hosts': 'list[str]', + 'summarized_events': 'int', + 'tags': 'list[str]', + 'is_user_event': 'bool', + 'is_ephemeral': 'bool', + 'table': 'str', + 'creator_id': 'str', + 'updater_id': 'str', + 'created_at': 'int', + 'updated_at': 'int' + } + + attribute_map = { + 'name': 'name', + 'start_time': 'startTime', + 'end_time': 'endTime', + 'annotations': 'annotations', + 'hosts': 'hosts', + 'summarized_events': 'summarizedEvents', + 'tags': 'tags', + 'is_user_event': 'isUserEvent', + 'is_ephemeral': 'isEphemeral', + 'table': 'table', + 'creator_id': 'creatorId', + 'updater_id': 'updaterId', + 'created_at': 'createdAt', + 'updated_at': 'updatedAt' + } + def __init__(self, name=None, start_time=None, end_time=None, annotations=None, hosts=None, summarized_events=None, tags=None, is_user_event=None, is_ephemeral=None, table=None, creator_id=None, updater_id=None, created_at=None, updated_at=None): """ ReportEvent - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'name': 'str', - 'start_time': 'int', - 'end_time': 'int', - 'annotations': 'dict(str, str)', - 'hosts': 'list[str]', - 'summarized_events': 'int', - 'tags': 'list[str]', - 'is_user_event': 'bool', - 'is_ephemeral': 'bool', - 'table': 'str', - 'creator_id': 'str', - 'updater_id': 'str', - 'created_at': 'int', - 'updated_at': 'int' - } - - self.attribute_map = { - 'name': 'name', - 'start_time': 'startTime', - 'end_time': 'endTime', - 'annotations': 'annotations', - 'hosts': 'hosts', - 'summarized_events': 'summarizedEvents', - 'tags': 'tags', - 'is_user_event': 'isUserEvent', - 'is_ephemeral': 'isEphemeral', - 'table': 'table', - 'creator_id': 'creatorId', - 'updater_id': 'updaterId', - 'created_at': 'createdAt', - 'updated_at': 'updatedAt' - } - - self._name = name - self._start_time = start_time - self._end_time = end_time - self._annotations = annotations - self._hosts = hosts - self._summarized_events = summarized_events - self._tags = tags - self._is_user_event = is_user_event - self._is_ephemeral = is_ephemeral - self._table = table - self._creator_id = creator_id - self._updater_id = updater_id - self._created_at = created_at - self._updated_at = updated_at + self._name = None + self._start_time = None + self._end_time = None + self._annotations = None + self._hosts = None + self._summarized_events = None + self._tags = None + self._is_user_event = None + self._is_ephemeral = None + self._table = None + self._creator_id = None + self._updater_id = None + self._created_at = None + self._updated_at = None + + self.name = name + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if annotations is not None: + self.annotations = annotations + if hosts is not None: + self.hosts = hosts + if summarized_events is not None: + self.summarized_events = summarized_events + if tags is not None: + self.tags = tags + if is_user_event is not None: + self.is_user_event = is_user_event + if is_ephemeral is not None: + self.is_ephemeral = is_ephemeral + if table is not None: + self.table = table + if creator_id is not None: + self.creator_id = creator_id + if updater_id is not None: + self.updater_id = updater_id + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at @property def name(self): diff --git a/wavefront_api_client/models/response_container.py b/wavefront_api_client/models/response_container.py index 307144d..44307ef 100644 --- a/wavefront_api_client/models/response_container.py +++ b/wavefront_api_client/models/response_container.py @@ -21,27 +21,36 @@ class ResponseContainer(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 = { + 'status': 'ResponseStatus', + 'response': 'object' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainer - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'object' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_alert.py b/wavefront_api_client/models/response_container_alert.py index 70cdd8b..6d0ed9b 100644 --- a/wavefront_api_client/models/response_container_alert.py +++ b/wavefront_api_client/models/response_container_alert.py @@ -21,27 +21,36 @@ class ResponseContainerAlert(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 = { + 'status': 'ResponseStatus', + 'response': 'Alert' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerAlert - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Alert' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_cloud_integration.py b/wavefront_api_client/models/response_container_cloud_integration.py index 84e290c..8061d13 100644 --- a/wavefront_api_client/models/response_container_cloud_integration.py +++ b/wavefront_api_client/models/response_container_cloud_integration.py @@ -21,27 +21,36 @@ class ResponseContainerCloudIntegration(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 = { + 'status': 'ResponseStatus', + 'response': 'CloudIntegration' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerCloudIntegration - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'CloudIntegration' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_dashboard.py b/wavefront_api_client/models/response_container_dashboard.py index 0f636e1..7b20b43 100644 --- a/wavefront_api_client/models/response_container_dashboard.py +++ b/wavefront_api_client/models/response_container_dashboard.py @@ -21,27 +21,36 @@ class ResponseContainerDashboard(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 = { + 'status': 'ResponseStatus', + 'response': 'Dashboard' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerDashboard - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Dashboard' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_event.py b/wavefront_api_client/models/response_container_event.py index 556bd4c..4e43c77 100644 --- a/wavefront_api_client/models/response_container_event.py +++ b/wavefront_api_client/models/response_container_event.py @@ -21,27 +21,36 @@ class ResponseContainerEvent(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 = { + 'status': 'ResponseStatus', + 'response': 'Event' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerEvent - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Event' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_external_link.py b/wavefront_api_client/models/response_container_external_link.py index 5f2e56a..d578477 100644 --- a/wavefront_api_client/models/response_container_external_link.py +++ b/wavefront_api_client/models/response_container_external_link.py @@ -21,27 +21,36 @@ class ResponseContainerExternalLink(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 = { + 'status': 'ResponseStatus', + 'response': 'ExternalLink' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerExternalLink - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'ExternalLink' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_facet_response.py b/wavefront_api_client/models/response_container_facet_response.py index 16f6530..88d74aa 100644 --- a/wavefront_api_client/models/response_container_facet_response.py +++ b/wavefront_api_client/models/response_container_facet_response.py @@ -21,27 +21,36 @@ class ResponseContainerFacetResponse(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 = { + 'status': 'ResponseStatus', + 'response': 'FacetResponse' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerFacetResponse - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'FacetResponse' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): 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 28fadb9..aee0d5b 100644 --- a/wavefront_api_client/models/response_container_facets_response_container.py +++ b/wavefront_api_client/models/response_container_facets_response_container.py @@ -21,27 +21,36 @@ class ResponseContainerFacetsResponseContainer(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 = { + 'status': 'ResponseStatus', + 'response': 'FacetsResponseContainer' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerFacetsResponseContainer - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'FacetsResponseContainer' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_history_response.py b/wavefront_api_client/models/response_container_history_response.py index 0156a29..1126c76 100644 --- a/wavefront_api_client/models/response_container_history_response.py +++ b/wavefront_api_client/models/response_container_history_response.py @@ -21,27 +21,36 @@ class ResponseContainerHistoryResponse(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 = { + 'status': 'ResponseStatus', + 'response': 'HistoryResponse' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerHistoryResponse - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'HistoryResponse' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_maintenance_window.py b/wavefront_api_client/models/response_container_maintenance_window.py index 4d5194e..c91fa56 100644 --- a/wavefront_api_client/models/response_container_maintenance_window.py +++ b/wavefront_api_client/models/response_container_maintenance_window.py @@ -21,27 +21,36 @@ class ResponseContainerMaintenanceWindow(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 = { + 'status': 'ResponseStatus', + 'response': 'MaintenanceWindow' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerMaintenanceWindow - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'MaintenanceWindow' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): 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 6baa549..5326ae4 100644 --- a/wavefront_api_client/models/response_container_map_string_integer.py +++ b/wavefront_api_client/models/response_container_map_string_integer.py @@ -21,27 +21,36 @@ class ResponseContainerMapStringInteger(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 = { + 'status': 'ResponseStatus', + 'response': 'dict(str, int)' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerMapStringInteger - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'dict(str, int)' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_message.py b/wavefront_api_client/models/response_container_message.py index ca92993..9f65b19 100644 --- a/wavefront_api_client/models/response_container_message.py +++ b/wavefront_api_client/models/response_container_message.py @@ -21,27 +21,36 @@ class ResponseContainerMessage(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 = { + 'status': 'ResponseStatus', + 'response': 'Message' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerMessage - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Message' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_paged.py b/wavefront_api_client/models/response_container_paged.py index 3b07dec..ebca46e 100644 --- a/wavefront_api_client/models/response_container_paged.py +++ b/wavefront_api_client/models/response_container_paged.py @@ -21,27 +21,36 @@ class ResponseContainerPaged(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 = { + 'status': 'ResponseStatus', + 'response': 'Paged' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPaged - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Paged' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_paged_alert.py b/wavefront_api_client/models/response_container_paged_alert.py index 4eeaebb..a7035e8 100644 --- a/wavefront_api_client/models/response_container_paged_alert.py +++ b/wavefront_api_client/models/response_container_paged_alert.py @@ -21,27 +21,36 @@ class ResponseContainerPagedAlert(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedAlert' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedAlert - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedAlert' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): 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 fb4b475..3d02e3c 100644 --- a/wavefront_api_client/models/response_container_paged_cloud_integration.py +++ b/wavefront_api_client/models/response_container_paged_cloud_integration.py @@ -21,27 +21,36 @@ class ResponseContainerPagedCloudIntegration(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedCloudIntegration' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedCloudIntegration - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedCloudIntegration' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_paged_dashboard.py b/wavefront_api_client/models/response_container_paged_dashboard.py index 9c4f858..482dd05 100644 --- a/wavefront_api_client/models/response_container_paged_dashboard.py +++ b/wavefront_api_client/models/response_container_paged_dashboard.py @@ -21,27 +21,36 @@ class ResponseContainerPagedDashboard(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedDashboard' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedDashboard - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedDashboard' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_paged_event.py b/wavefront_api_client/models/response_container_paged_event.py index a84639b..d750127 100644 --- a/wavefront_api_client/models/response_container_paged_event.py +++ b/wavefront_api_client/models/response_container_paged_event.py @@ -21,27 +21,36 @@ class ResponseContainerPagedEvent(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedEvent' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedEvent - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedEvent' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): 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 10381c5..91746b8 100644 --- a/wavefront_api_client/models/response_container_paged_external_link.py +++ b/wavefront_api_client/models/response_container_paged_external_link.py @@ -21,27 +21,36 @@ class ResponseContainerPagedExternalLink(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedExternalLink' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedExternalLink - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedExternalLink' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): 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 3686d9e..40ac949 100644 --- a/wavefront_api_client/models/response_container_paged_maintenance_window.py +++ b/wavefront_api_client/models/response_container_paged_maintenance_window.py @@ -21,27 +21,36 @@ class ResponseContainerPagedMaintenanceWindow(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedMaintenanceWindow' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedMaintenanceWindow - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedMaintenanceWindow' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_paged_message.py b/wavefront_api_client/models/response_container_paged_message.py index a007a48..e57c7c4 100644 --- a/wavefront_api_client/models/response_container_paged_message.py +++ b/wavefront_api_client/models/response_container_paged_message.py @@ -21,27 +21,36 @@ class ResponseContainerPagedMessage(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedMessage' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedMessage - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedMessage' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_paged_proxy.py b/wavefront_api_client/models/response_container_paged_proxy.py index 65257c3..6deea0e 100644 --- a/wavefront_api_client/models/response_container_paged_proxy.py +++ b/wavefront_api_client/models/response_container_paged_proxy.py @@ -21,27 +21,36 @@ class ResponseContainerPagedProxy(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedProxy' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedProxy - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedProxy' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): 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 7f6f533..42784f7 100644 --- a/wavefront_api_client/models/response_container_paged_saved_search.py +++ b/wavefront_api_client/models/response_container_paged_saved_search.py @@ -21,27 +21,36 @@ class ResponseContainerPagedSavedSearch(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedSavedSearch' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedSavedSearch - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedSavedSearch' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_paged_source.py b/wavefront_api_client/models/response_container_paged_source.py index 28ecff6..e3da308 100644 --- a/wavefront_api_client/models/response_container_paged_source.py +++ b/wavefront_api_client/models/response_container_paged_source.py @@ -21,27 +21,36 @@ class ResponseContainerPagedSource(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedSource' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedSource' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_paged_webhook.py b/wavefront_api_client/models/response_container_paged_webhook.py index 300cf47..3ecdbdd 100644 --- a/wavefront_api_client/models/response_container_paged_webhook.py +++ b/wavefront_api_client/models/response_container_paged_webhook.py @@ -21,27 +21,36 @@ class ResponseContainerPagedWebhook(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedWebhook' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerPagedWebhook - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'PagedWebhook' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_proxy.py b/wavefront_api_client/models/response_container_proxy.py index 343dcd7..d281eb9 100644 --- a/wavefront_api_client/models/response_container_proxy.py +++ b/wavefront_api_client/models/response_container_proxy.py @@ -21,27 +21,36 @@ class ResponseContainerProxy(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 = { + 'status': 'ResponseStatus', + 'response': 'Proxy' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerProxy - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Proxy' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_saved_search.py b/wavefront_api_client/models/response_container_saved_search.py index d4bd80b..a39cf16 100644 --- a/wavefront_api_client/models/response_container_saved_search.py +++ b/wavefront_api_client/models/response_container_saved_search.py @@ -21,27 +21,36 @@ class ResponseContainerSavedSearch(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 = { + 'status': 'ResponseStatus', + 'response': 'SavedSearch' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerSavedSearch - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'SavedSearch' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_source.py b/wavefront_api_client/models/response_container_source.py index 37f9471..ea51fd6 100644 --- a/wavefront_api_client/models/response_container_source.py +++ b/wavefront_api_client/models/response_container_source.py @@ -21,27 +21,36 @@ class ResponseContainerSource(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 = { + 'status': 'ResponseStatus', + 'response': 'Source' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Source' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_tags_response.py b/wavefront_api_client/models/response_container_tags_response.py index ba38891..03cc4b8 100644 --- a/wavefront_api_client/models/response_container_tags_response.py +++ b/wavefront_api_client/models/response_container_tags_response.py @@ -21,27 +21,36 @@ class ResponseContainerTagsResponse(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 = { + 'status': 'ResponseStatus', + 'response': 'TagsResponse' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerTagsResponse - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'TagsResponse' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_container_webhook.py b/wavefront_api_client/models/response_container_webhook.py index bbe5b58..c7a3fd6 100644 --- a/wavefront_api_client/models/response_container_webhook.py +++ b/wavefront_api_client/models/response_container_webhook.py @@ -21,27 +21,36 @@ class ResponseContainerWebhook(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 = { + 'status': 'ResponseStatus', + 'response': 'Webhook' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + def __init__(self, status=None, response=None): """ ResponseContainerWebhook - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'status': 'ResponseStatus', - 'response': 'Webhook' - } - self.attribute_map = { - 'status': 'status', - 'response': 'response' - } + self._status = None + self._response = None - self._status = status - self._response = response + self.status = status + if response is not None: + self.response = response @property def status(self): diff --git a/wavefront_api_client/models/response_status.py b/wavefront_api_client/models/response_status.py index 75969f9..4865d30 100644 --- a/wavefront_api_client/models/response_status.py +++ b/wavefront_api_client/models/response_status.py @@ -21,30 +21,40 @@ class ResponseStatus(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 = { + 'result': 'str', + 'message': 'str', + 'code': 'int' + } + + attribute_map = { + 'result': 'result', + 'message': 'message', + 'code': 'code' + } + def __init__(self, result=None, message=None, code=None): """ ResponseStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'result': 'str', - 'message': 'str', - 'code': 'int' - } - self.attribute_map = { - 'result': 'result', - 'message': 'message', - 'code': 'code' - } + self._result = None + self._message = None + self._code = None - self._result = result - self._message = message - self._code = code + self.result = result + if message is not None: + self.message = message + self.code = code @property def result(self): @@ -64,6 +74,8 @@ def result(self, result): :param result: The result of this ResponseStatus. :type: str """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") allowed_values = ["OK", "ERROR"] if result not in allowed_values: raise ValueError( diff --git a/wavefront_api_client/models/saved_search.py b/wavefront_api_client/models/saved_search.py index 2958c34..8179ffd 100644 --- a/wavefront_api_client/models/saved_search.py +++ b/wavefront_api_client/models/saved_search.py @@ -21,45 +21,64 @@ class SavedSearch(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, id=None, query=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, user_id=None, entity_type=None): + + + """ + 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', + 'query': 'dict(str, str)', + 'entity_type': 'str', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'user_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'query': 'query', + 'entity_type': 'entityType', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'user_id': 'userId' + } + + def __init__(self, id=None, query=None, entity_type=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, user_id=None): """ SavedSearch - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'id': 'str', - 'query': 'dict(str, str)', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'user_id': 'str', - 'entity_type': 'str' - } - - self.attribute_map = { - 'id': 'id', - 'query': 'query', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'user_id': 'userId', - 'entity_type': 'entityType' - } - - self._id = id - self._query = query - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._user_id = user_id - self._entity_type = entity_type + self._id = None + self._query = None + self._entity_type = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._user_id = None + + if id is not None: + self.id = id + self.query = query + self.entity_type = entity_type + 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 creator_id is not None: + self.creator_id = creator_id + self.user_id = user_id @property def id(self): @@ -107,6 +126,37 @@ def query(self, query): self._query = query + @property + def entity_type(self): + """ + Gets the entity_type of this SavedSearch. + The Wavefront entity type over which to search + + :return: The entity_type of this SavedSearch. + :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 + + :param entity_type: The entity_type of this SavedSearch. + :type: str + """ + if entity_type is None: + raise ValueError("Invalid value for `entity_type`, must not be `None`") + allowed_values = ["DASHBOARD", "ALERT", "MAINTENANCE_WINDOW", "NOTIFICANT", "EVENT", "SOURCE", "EXTERNAL_LINK", "AGENT", "CLOUD_INTEGRATION"] + if entity_type not in allowed_values: + raise ValueError( + "Invalid value for `entity_type` ({0}), must be one of {1}" + .format(entity_type, allowed_values) + ) + + self._entity_type = entity_type + @property def created_epoch_millis(self): """ @@ -216,35 +266,6 @@ def user_id(self, user_id): self._user_id = user_id - @property - def entity_type(self): - """ - Gets the entity_type of this SavedSearch. - The Wavefront entity type over which to search - - :return: The entity_type of this SavedSearch. - :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 - - :param entity_type: The entity_type of this SavedSearch. - :type: str - """ - allowed_values = ["DASHBOARD", "ALERT", "MAINTENANCE_WINDOW", "NOTIFICANT", "EVENT", "SOURCE", "EXTERNAL_LINK", "AGENT", "CLOUD_INTEGRATION"] - if entity_type not in allowed_values: - raise ValueError( - "Invalid value for `entity_type` ({0}), must be one of {1}" - .format(entity_type, allowed_values) - ) - - self._entity_type = entity_type - def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/scoped_dto_converter.py b/wavefront_api_client/models/scoped_dto_converter.py index 61d0cca..5562607 100644 --- a/wavefront_api_client/models/scoped_dto_converter.py +++ b/wavefront_api_client/models/scoped_dto_converter.py @@ -21,22 +21,28 @@ class ScopedDTOConverter(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): """ ScopedDTOConverter - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - - } - self.attribute_map = { - - } def to_dict(self): diff --git a/wavefront_api_client/models/search_query.py b/wavefront_api_client/models/search_query.py index 329c332..9a9a008 100644 --- a/wavefront_api_client/models/search_query.py +++ b/wavefront_api_client/models/search_query.py @@ -21,30 +21,40 @@ class SearchQuery(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', + 'matching_method': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value', + 'matching_method': 'matchingMethod' + } + def __init__(self, key=None, value=None, matching_method=None): """ SearchQuery - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'key': 'str', - 'value': 'str', - 'matching_method': 'str' - } - self.attribute_map = { - 'key': 'key', - 'value': 'value', - 'matching_method': 'matchingMethod' - } + self._key = None + self._value = None + self._matching_method = None - self._key = key - self._value = value - self._matching_method = matching_method + self.key = key + self.value = value + if matching_method is not None: + self.matching_method = matching_method @property def key(self): diff --git a/wavefront_api_client/models/sortable_search_request.py b/wavefront_api_client/models/sortable_search_request.py index 222799a..50f7fce 100644 --- a/wavefront_api_client/models/sortable_search_request.py +++ b/wavefront_api_client/models/sortable_search_request.py @@ -21,33 +21,47 @@ class SortableSearchRequest(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 = { + 'limit': 'int', + 'offset': 'int', + 'query': 'list[SearchQuery]', + 'sort': 'Sorting' + } + + attribute_map = { + 'limit': 'limit', + 'offset': 'offset', + 'query': 'query', + 'sort': 'sort' + } + def __init__(self, limit=None, offset=None, query=None, sort=None): """ SortableSearchRequest - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'limit': 'int', - 'offset': 'int', - 'query': 'list[SearchQuery]', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'limit': 'limit', - 'offset': 'offset', - 'query': 'query', - 'sort': 'sort' - } + self._limit = None + self._offset = None + self._query = None + self._sort = None - self._limit = limit - self._offset = offset - self._query = query - self._sort = sort + 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 sort is not None: + self.sort = sort @property def limit(self): diff --git a/wavefront_api_client/models/sorting.py b/wavefront_api_client/models/sorting.py index b0eb260..f1bbc2c 100644 --- a/wavefront_api_client/models/sorting.py +++ b/wavefront_api_client/models/sorting.py @@ -21,27 +21,35 @@ class Sorting(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 = { + 'field': 'str', + 'ascending': 'bool' + } + + attribute_map = { + 'field': 'field', + 'ascending': 'ascending' + } + def __init__(self, field=None, ascending=None): """ Sorting - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'field': 'str', - 'ascending': 'bool' - } - self.attribute_map = { - 'field': 'field', - 'ascending': 'ascending' - } + self._field = None + self._ascending = None - self._field = field - self._ascending = ascending + self.field = field + self.ascending = ascending @property def field(self): diff --git a/wavefront_api_client/models/source.py b/wavefront_api_client/models/source.py index b8ef589..f15127f 100644 --- a/wavefront_api_client/models/source.py +++ b/wavefront_api_client/models/source.py @@ -21,48 +21,70 @@ class Source(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, hidden=None, id=None, description=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, tags=None, source_name=None): + + + """ + 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 = { + 'hidden': 'bool', + 'id': 'str', + 'description': 'str', + 'tags': 'dict(str, bool)', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'source_name': 'str' + } + + attribute_map = { + 'hidden': 'hidden', + 'id': 'id', + 'description': 'description', + 'tags': 'tags', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'source_name': 'sourceName' + } + + def __init__(self, hidden=None, id=None, description=None, tags=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, source_name=None): """ Source - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'hidden': 'bool', - 'id': 'str', - 'description': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'tags': 'dict(str, bool)', - 'source_name': 'str' - } - - self.attribute_map = { - 'hidden': 'hidden', - 'id': 'id', - 'description': 'description', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'tags': 'tags', - 'source_name': 'sourceName' - } - - self._hidden = hidden - self._id = id - self._description = description - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._tags = tags - self._source_name = source_name + self._hidden = None + self._id = None + self._description = None + self._tags = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._source_name = None + + if hidden is not None: + self.hidden = hidden + self.id = id + if description is not None: + self.description = description + if tags is not None: + self.tags = tags + 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 creator_id is not None: + self.creator_id = creator_id + self.source_name = source_name @property def hidden(self): @@ -135,6 +157,29 @@ def description(self, description): self._description = description + @property + def tags(self): + """ + Gets 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 + + :return: The tags of this Source. + :rtype: dict(str, bool) + """ + return self._tags + + @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 + + :param tags: The tags of this Source. + :type: dict(str, bool) + """ + + self._tags = tags + @property def created_epoch_millis(self): """ @@ -219,29 +264,6 @@ def creator_id(self, creator_id): self._creator_id = creator_id - @property - def tags(self): - """ - Gets 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 - - :return: The tags of this Source. - :rtype: dict(str, bool) - """ - return self._tags - - @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 - - :param tags: The tags of this Source. - :type: dict(str, bool) - """ - - self._tags = tags - @property def source_name(self): """ diff --git a/wavefront_api_client/models/source_label_pair.py b/wavefront_api_client/models/source_label_pair.py index db45c7a..23825a2 100644 --- a/wavefront_api_client/models/source_label_pair.py +++ b/wavefront_api_client/models/source_label_pair.py @@ -21,80 +21,96 @@ class SourceLabelPair(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, host=None, label=None, tags=None, observed=None, firing=None): + + + """ + 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 = { + 'label': 'str', + 'host': 'str', + 'tags': 'dict(str, str)', + 'observed': 'int', + 'firing': 'int' + } + + attribute_map = { + 'label': 'label', + 'host': 'host', + 'tags': 'tags', + 'observed': 'observed', + 'firing': 'firing' + } + + def __init__(self, label=None, host=None, tags=None, observed=None, firing=None): """ SourceLabelPair - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'host': 'str', - 'label': 'str', - 'tags': 'dict(str, str)', - 'observed': 'int', - 'firing': 'int' - } - - self.attribute_map = { - 'host': 'host', - 'label': 'label', - 'tags': 'tags', - 'observed': 'observed', - 'firing': 'firing' - } + self._label = None + self._host = None + self._tags = None + self._observed = None + self._firing = None - self._host = host - self._label = label - self._tags = tags - self._observed = observed - self._firing = firing + if label is not None: + self.label = label + if host is not None: + self.host = host + if tags is not None: + self.tags = tags + if observed is not None: + self.observed = observed + if firing is not None: + self.firing = firing @property - def host(self): + def label(self): """ - Gets the host of this SourceLabelPair. - Source (or host). \"Source\" and \"host\" are synonyms in current versions of wavefront, but the host terminology is deprecated + Gets the label of this SourceLabelPair. - :return: The host of this SourceLabelPair. + :return: The label of this SourceLabelPair. :rtype: str """ - return self._host + return self._label - @host.setter - def host(self, host): + @label.setter + def label(self, label): """ - Sets the host of this SourceLabelPair. - Source (or host). \"Source\" and \"host\" are synonyms in current versions of wavefront, but the host terminology is deprecated + Sets the label of this SourceLabelPair. - :param host: The host of this SourceLabelPair. + :param label: The label of this SourceLabelPair. :type: str """ - self._host = host + self._label = label @property - def label(self): + def host(self): """ - Gets the label of this SourceLabelPair. + Gets the host of this SourceLabelPair. + Source (or host). \"Source\" and \"host\" are synonyms in current versions of wavefront, but the host terminology is deprecated - :return: The label of this SourceLabelPair. + :return: The host of this SourceLabelPair. :rtype: str """ - return self._label + return self._host - @label.setter - def label(self, label): + @host.setter + def host(self, host): """ - Sets the label of this SourceLabelPair. + Sets the host of this SourceLabelPair. + Source (or host). \"Source\" and \"host\" are synonyms in current versions of wavefront, but the host terminology is deprecated - :param label: The label of this SourceLabelPair. + :param host: The host of this SourceLabelPair. :type: str """ - self._label = label + self._host = host @property def tags(self): diff --git a/wavefront_api_client/models/source_search_request_container.py b/wavefront_api_client/models/source_search_request_container.py index c08014f..a9ea98d 100644 --- a/wavefront_api_client/models/source_search_request_container.py +++ b/wavefront_api_client/models/source_search_request_container.py @@ -21,33 +21,47 @@ class SourceSearchRequestContainer(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', + 'limit': 'int', + 'query': 'list[SearchQuery]', + 'sort_sources_ascending': 'bool' + } + + attribute_map = { + 'cursor': 'cursor', + 'limit': 'limit', + 'query': 'query', + 'sort_sources_ascending': 'sortSourcesAscending' + } + def __init__(self, cursor=None, limit=None, query=None, sort_sources_ascending=None): """ SourceSearchRequestContainer - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'cursor': 'str', - 'limit': 'int', - 'query': 'list[SearchQuery]', - 'sort_sources_ascending': 'bool' - } - - self.attribute_map = { - 'cursor': 'cursor', - 'limit': 'limit', - 'query': 'query', - 'sort_sources_ascending': 'sortSourcesAscending' - } + self._cursor = None + self._limit = None + self._query = None + self._sort_sources_ascending = None - self._cursor = cursor - self._limit = limit - self._query = query - self._sort_sources_ascending = sort_sources_ascending + if cursor is not None: + self.cursor = cursor + if limit is not None: + self.limit = limit + if query is not None: + self.query = query + if sort_sources_ascending is not None: + self.sort_sources_ascending = sort_sources_ascending @property def cursor(self): diff --git a/wavefront_api_client/models/stats_model.py b/wavefront_api_client/models/stats_model.py index 942c25d..02508e8 100644 --- a/wavefront_api_client/models/stats_model.py +++ b/wavefront_api_client/models/stats_model.py @@ -21,75 +21,117 @@ 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', + 'summarized_points': 'int', + 'summarized_summaries': 'int', + 'queries': 'int', + 'buffer_keys': 'int', + 'compacted_keys': 'int', + 'skipped_compacted_keys': 'int', + 'compacted_points': 'int', + 'cached_compacted_points': 'int', + 'latency': 'int', + 's3_keys': 'int', + 'cpu_ns': 'int', + 'metrics_used': 'int', + 'hosts_used': 'int', + 'query_tasks': 'int', + 'missing_s3_keys': 'int' + } + + attribute_map = { + 'keys': 'keys', + 'points': 'points', + 'summaries': 'summaries', + 'summarized_points': 'summarizedPoints', + 'summarized_summaries': 'summarizedSummaries', + 'queries': 'queries', + 'buffer_keys': 'bufferKeys', + 'compacted_keys': 'compactedKeys', + 'skipped_compacted_keys': 'skippedCompactedKeys', + 'compacted_points': 'compactedPoints', + 'cached_compacted_points': 'cachedCompactedPoints', + 'latency': 'latency', + 's3_keys': 's3Keys', + 'cpu_ns': 'cpuNs', + 'metrics_used': 'metricsUsed', + 'hosts_used': 'hostsUsed', + 'query_tasks': 'queryTasks', + 'missing_s3_keys': 'missingS3Keys' + } + def __init__(self, keys=None, points=None, summaries=None, summarized_points=None, summarized_summaries=None, queries=None, buffer_keys=None, compacted_keys=None, skipped_compacted_keys=None, compacted_points=None, cached_compacted_points=None, latency=None, s3_keys=None, cpu_ns=None, metrics_used=None, hosts_used=None, query_tasks=None, missing_s3_keys=None): """ StatsModel - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'keys': 'int', - 'points': 'int', - 'summaries': 'int', - 'summarized_points': 'int', - 'summarized_summaries': 'int', - 'queries': 'int', - 'buffer_keys': 'int', - 'compacted_keys': 'int', - 'skipped_compacted_keys': 'int', - 'compacted_points': 'int', - 'cached_compacted_points': 'int', - 'latency': 'int', - 's3_keys': 'int', - 'cpu_ns': 'int', - 'metrics_used': 'int', - 'hosts_used': 'int', - 'query_tasks': 'int', - 'missing_s3_keys': 'int' - } - - self.attribute_map = { - 'keys': 'keys', - 'points': 'points', - 'summaries': 'summaries', - 'summarized_points': 'summarizedPoints', - 'summarized_summaries': 'summarizedSummaries', - 'queries': 'queries', - 'buffer_keys': 'bufferKeys', - 'compacted_keys': 'compactedKeys', - 'skipped_compacted_keys': 'skippedCompactedKeys', - 'compacted_points': 'compactedPoints', - 'cached_compacted_points': 'cachedCompactedPoints', - 'latency': 'latency', - 's3_keys': 's3Keys', - 'cpu_ns': 'cpuNs', - 'metrics_used': 'metricsUsed', - 'hosts_used': 'hostsUsed', - 'query_tasks': 'queryTasks', - 'missing_s3_keys': 'missingS3Keys' - } - - self._keys = keys - self._points = points - self._summaries = summaries - self._summarized_points = summarized_points - self._summarized_summaries = summarized_summaries - self._queries = queries - self._buffer_keys = buffer_keys - self._compacted_keys = compacted_keys - self._skipped_compacted_keys = skipped_compacted_keys - self._compacted_points = compacted_points - self._cached_compacted_points = cached_compacted_points - self._latency = latency - self._s3_keys = s3_keys - self._cpu_ns = cpu_ns - self._metrics_used = metrics_used - self._hosts_used = hosts_used - self._query_tasks = query_tasks - self._missing_s3_keys = missing_s3_keys + self._keys = None + self._points = None + self._summaries = None + self._summarized_points = None + self._summarized_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_points = 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._missing_s3_keys = 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 summarized_points is not None: + self.summarized_points = summarized_points + if summarized_summaries is not None: + self.summarized_summaries = summarized_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_points is not None: + self.cached_compacted_points = cached_compacted_points + 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 + if missing_s3_keys is not None: + self.missing_s3_keys = missing_s3_keys @property def keys(self): diff --git a/wavefront_api_client/models/tags_response.py b/wavefront_api_client/models/tags_response.py index e9fbdef..cb091d1 100644 --- a/wavefront_api_client/models/tags_response.py +++ b/wavefront_api_client/models/tags_response.py @@ -21,42 +21,62 @@ class TagsResponse(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 = { + 'items': 'list[str]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ TagsResponse - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[str]', - 'offset': 'int', - 'limit': 'int', - 'cursor': 'str', - 'total_items': 'int', - 'more_items': 'bool', - 'sort': 'Sorting' - } - - self.attribute_map = { - 'items': 'items', - 'offset': 'offset', - 'limit': 'limit', - 'cursor': 'cursor', - 'total_items': 'totalItems', - 'more_items': 'moreItems', - 'sort': 'sort' - } - - self._items = items - self._offset = offset - self._limit = limit - self._cursor = cursor - self._total_items = total_items - self._more_items = more_items - self._sort = sort + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + + 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 sort is not None: + self.sort = sort @property def items(self): diff --git a/wavefront_api_client/models/timeseries.py b/wavefront_api_client/models/timeseries.py index bfbbef7..22cf36b 100644 --- a/wavefront_api_client/models/timeseries.py +++ b/wavefront_api_client/models/timeseries.py @@ -21,27 +21,36 @@ class Timeseries(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 = { + 'tags': 'dict(str, str)', + 'points': 'list[Point]' + } + + attribute_map = { + 'tags': 'tags', + 'points': 'points' + } + def __init__(self, tags=None, points=None): """ Timeseries - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'tags': 'dict(str, str)', - 'points': 'list[Point]' - } - self.attribute_map = { - 'tags': 'tags', - 'points': 'points' - } + self._tags = None + self._points = None - self._tags = tags - self._points = points + if tags is not None: + self.tags = tags + self.points = points @property def tags(self): diff --git a/wavefront_api_client/models/timeseries_stats_container.py b/wavefront_api_client/models/timeseries_stats_container.py index 1751cdc..058e06d 100644 --- a/wavefront_api_client/models/timeseries_stats_container.py +++ b/wavefront_api_client/models/timeseries_stats_container.py @@ -21,45 +21,67 @@ class TimeseriesStatsContainer(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 = { + 'query_key': 'QueryKeyContainer', + 'sum': 'float', + 'count': 'int', + 'last_value': 'float', + 'mean': 'float', + 'max': 'float', + 'min': 'float', + 'median': 'float' + } + + attribute_map = { + 'query_key': 'queryKey', + 'sum': 'sum', + 'count': 'count', + 'last_value': 'lastValue', + 'mean': 'mean', + 'max': 'max', + 'min': 'min', + 'median': 'median' + } + def __init__(self, query_key=None, sum=None, count=None, last_value=None, mean=None, max=None, min=None, median=None): """ TimeseriesStatsContainer - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'query_key': 'QueryKeyContainer', - 'sum': 'float', - 'count': 'int', - 'last_value': 'float', - 'mean': 'float', - 'max': 'float', - 'min': 'float', - 'median': 'float' - } - - self.attribute_map = { - 'query_key': 'queryKey', - 'sum': 'sum', - 'count': 'count', - 'last_value': 'lastValue', - 'mean': 'mean', - 'max': 'max', - 'min': 'min', - 'median': 'median' - } - - self._query_key = query_key - self._sum = sum - self._count = count - self._last_value = last_value - self._mean = mean - self._max = max - self._min = min - self._median = median + self._query_key = None + self._sum = None + self._count = None + self._last_value = None + self._mean = None + self._max = None + self._min = None + self._median = None + + if query_key is not None: + self.query_key = query_key + if sum is not None: + self.sum = sum + if count is not None: + self.count = count + if last_value is not None: + self.last_value = last_value + if mean is not None: + self.mean = mean + if max is not None: + self.max = max + if min is not None: + self.min = min + if median is not None: + self.median = median @property def query_key(self): diff --git a/wavefront_api_client/models/user_model.py b/wavefront_api_client/models/user_model.py index ca79d11..f9191dc 100644 --- a/wavefront_api_client/models/user_model.py +++ b/wavefront_api_client/models/user_model.py @@ -21,30 +21,42 @@ class UserModel(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 = { + 'identifier': 'str', + 'customer': 'str', + 'groups': 'list[str]' + } + + attribute_map = { + 'identifier': 'identifier', + 'customer': 'customer', + 'groups': 'groups' + } + def __init__(self, identifier=None, customer=None, groups=None): """ UserModel - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'identifier': 'str', - 'customer': 'str', - 'groups': 'list[str]' - } - self.attribute_map = { - 'identifier': 'identifier', - 'customer': 'customer', - 'groups': 'groups' - } + self._identifier = None + self._customer = None + self._groups = None - self._identifier = identifier - self._customer = customer - self._groups = groups + if identifier is not None: + self.identifier = identifier + if customer is not None: + self.customer = customer + if groups is not None: + self.groups = groups @property def identifier(self): diff --git a/wavefront_api_client/models/user_to_create.py b/wavefront_api_client/models/user_to_create.py index 5a6e69b..70a1d97 100644 --- a/wavefront_api_client/models/user_to_create.py +++ b/wavefront_api_client/models/user_to_create.py @@ -21,27 +21,35 @@ class UserToCreate(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 = { + 'email_address': 'str', + 'groups': 'list[str]' + } + + attribute_map = { + 'email_address': 'emailAddress', + 'groups': 'groups' + } + def __init__(self, email_address=None, groups=None): """ UserToCreate - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'email_address': 'str', - 'groups': 'list[str]' - } - self.attribute_map = { - 'email_address': 'emailAddress', - 'groups': 'groups' - } + self._email_address = None + self._groups = None - self._email_address = email_address - self._groups = groups + self.email_address = email_address + self.groups = groups @property def email_address(self): diff --git a/wavefront_api_client/models/webhook.py b/wavefront_api_client/models/webhook.py index 1fb23c5..6cf22e9 100644 --- a/wavefront_api_client/models/webhook.py +++ b/wavefront_api_client/models/webhook.py @@ -21,60 +21,87 @@ class Webhook(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, id=None, content_type=None, description=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, triggers=None, recipient=None, custom_http_headers=None, title=None, template=None, customer_id=None): + + + """ + 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', + 'content_type': 'str', + 'description': 'str', + 'customer_id': 'str', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'creator_id': 'str', + 'template': 'str', + 'title': 'str', + 'triggers': 'list[str]', + 'recipient': 'str', + 'custom_http_headers': 'dict(str, str)' + } + + attribute_map = { + 'id': 'id', + 'content_type': 'contentType', + 'description': 'description', + 'customer_id': 'customerId', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'creator_id': 'creatorId', + 'template': 'template', + 'title': 'title', + 'triggers': 'triggers', + 'recipient': 'recipient', + 'custom_http_headers': 'customHttpHeaders' + } + + def __init__(self, id=None, content_type=None, description=None, customer_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, template=None, title=None, triggers=None, recipient=None, custom_http_headers=None): """ Webhook - a model defined in Swagger + """ - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'id': 'str', - 'content_type': 'str', - 'description': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'triggers': 'list[str]', - 'recipient': 'str', - 'custom_http_headers': 'dict(str, str)', - 'title': 'str', - 'template': 'str', - 'customer_id': 'str' - } - - self.attribute_map = { - 'id': 'id', - 'content_type': 'contentType', - 'description': 'description', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'triggers': 'triggers', - 'recipient': 'recipient', - 'custom_http_headers': 'customHttpHeaders', - 'title': 'title', - 'template': 'template', - 'customer_id': 'customerId' - } - - self._id = id - self._content_type = content_type - self._description = description - self._created_epoch_millis = created_epoch_millis - self._updated_epoch_millis = updated_epoch_millis - self._updater_id = updater_id - self._creator_id = creator_id - self._triggers = triggers - self._recipient = recipient - self._custom_http_headers = custom_http_headers - self._title = title - self._template = template - self._customer_id = customer_id + self._id = None + self._content_type = None + self._description = None + self._customer_id = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._creator_id = None + self._template = None + self._title = None + self._triggers = None + self._recipient = None + self._custom_http_headers = None + + if id is not None: + self.id = id + if content_type is not None: + self.content_type = content_type + self.description = description + if customer_id is not None: + self.customer_id = customer_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 creator_id is not None: + self.creator_id = creator_id + self.template = template + self.title = title + self.triggers = triggers + self.recipient = recipient + if custom_http_headers is not None: + self.custom_http_headers = custom_http_headers @property def id(self): @@ -151,6 +178,27 @@ def description(self, description): self._description = description + @property + def customer_id(self): + """ + Gets the customer_id of this Webhook. + + :return: The customer_id of this Webhook. + :rtype: str + """ + return self._customer_id + + @customer_id.setter + def customer_id(self, customer_id): + """ + Sets the customer_id of this Webhook. + + :param customer_id: The customer_id of this Webhook. + :type: str + """ + + self._customer_id = customer_id + @property def created_epoch_millis(self): """ @@ -235,6 +283,56 @@ def creator_id(self, creator_id): self._creator_id = creator_id + @property + def template(self): + """ + Gets the template of this Webhook. + A mustache template that will form the body of the POST request sent as the web hook. + + :return: The template of this Webhook. + :rtype: str + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this Webhook. + A mustache template that will form the body of the POST request sent as the web hook. + + :param template: The template of this Webhook. + :type: str + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + @property + def title(self): + """ + Gets the title of this Webhook. + Webhook Title + + :return: The title of this Webhook. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """ + Sets the title of this Webhook. + Webhook Title + + :param title: The title of this Webhook. + :type: str + """ + if title is None: + raise ValueError("Invalid value for `title`, must not be `None`") + + self._title = title + @property def triggers(self): """ @@ -255,6 +353,8 @@ def triggers(self, triggers): :param triggers: The triggers of this Webhook. :type: list[str] """ + if triggers is None: + raise ValueError("Invalid value for `triggers`, must not be `None`") allowed_values = ["ALERT_OPENED", "ALERT_UPDATED", "ALERT_RESOLVED", "ALERT_MAINTENANCE", "ALERT_SNOOZED", "ALERT_INVALID", "ALERT_NO_LONGER_INVALID", "ALERT_TESTING", "ALERT_RETRIGGERED"] if not set(triggers).issubset(set(allowed_values)): raise ValueError( @@ -313,77 +413,6 @@ def custom_http_headers(self, custom_http_headers): self._custom_http_headers = custom_http_headers - @property - def title(self): - """ - Gets the title of this Webhook. - Webhook Title - - :return: The title of this Webhook. - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """ - Sets the title of this Webhook. - Webhook Title - - :param title: The title of this Webhook. - :type: str - """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") - - self._title = title - - @property - def template(self): - """ - Gets the template of this Webhook. - A mustache template that will form the body of the POST request sent as the web hook. - - :return: The template of this Webhook. - :rtype: str - """ - return self._template - - @template.setter - def template(self, template): - """ - Sets the template of this Webhook. - A mustache template that will form the body of the POST request sent as the web hook. - - :param template: The template of this Webhook. - :type: str - """ - if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") - - self._template = template - - @property - def customer_id(self): - """ - Gets the customer_id of this Webhook. - - :return: The customer_id of this Webhook. - :rtype: str - """ - return self._customer_id - - @customer_id.setter - def customer_id(self, customer_id): - """ - Sets the customer_id of this Webhook. - - :param customer_id: The customer_id of this Webhook. - :type: str - """ - - self._customer_id = customer_id - def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/wf_tags.py b/wavefront_api_client/models/wf_tags.py index 5df7027..9ed0dbf 100644 --- a/wavefront_api_client/models/wf_tags.py +++ b/wavefront_api_client/models/wf_tags.py @@ -21,24 +21,32 @@ class WFTags(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_tags': 'list[str]' + } + + attribute_map = { + 'customer_tags': 'customerTags' + } + def __init__(self, customer_tags=None): """ WFTags - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. """ - self.swagger_types = { - 'customer_tags': 'list[str]' - } - self.attribute_map = { - 'customer_tags': 'customerTags' - } + self._customer_tags = None - self._customer_tags = customer_tags + if customer_tags is not None: + self.customer_tags = customer_tags @property def customer_tags(self): diff --git a/wavefront_api_client/rest.py b/wavefront_api_client/rest.py index 8da6cf4..4353ee2 100644 --- a/wavefront_api_client/rest.py +++ b/wavefront_api_client/rest.py @@ -24,8 +24,6 @@ from six import PY3 from six.moves.urllib.parse import urlencode -from .configuration import Configuration - try: import urllib3 except ImportError: @@ -58,7 +56,7 @@ def getheader(self, name, default=None): class RESTClientObject(object): - def __init__(self, pools_size=4, maxsize=4): + def __init__(self, configuration, pools_size=4, maxsize=4): # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 @@ -67,33 +65,38 @@ def __init__(self, pools_size=4, maxsize=4): # http://stackoverflow.com/a/23957365/2985775 # cert_reqs - if Configuration().verify_ssl: + if configuration.verify_ssl: cert_reqs = ssl.CERT_REQUIRED else: cert_reqs = ssl.CERT_NONE # ca_certs - if Configuration().ssl_ca_cert: - ca_certs = Configuration().ssl_ca_cert + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert else: # if not set certificate file, use Mozilla's root certificates. ca_certs = certifi.where() - # cert_file - cert_file = Configuration().cert_file - - # key file - key_file = Configuration().key_file - # https pool manager - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=cert_file, - key_file=key_file - ) + if configuration.proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file + ) def request(self, method, url, query_params=None, headers=None, body=None, post_params=None, _preload_content=True, _request_timeout=None): @@ -200,7 +203,7 @@ def request(self, method, url, query_params=None, headers=None, # log response body logger.debug("response body: %s", r.data) - if r.status not in range(200, 206): + if not 200 <= r.status <= 299: raise ApiException(http_resp=r) return r From 0d40ba06a606799e2783c30524cb64e3512c8dca Mon Sep 17 00:00:00 2001 From: basilisk487 Date: Thu, 29 Jun 2017 12:59:30 -0500 Subject: [PATCH 2/3] Update example in readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 847c8fa..500e54a 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,9 @@ import wavefront_api_client as wave_api base_url = 'https://YOUR_INSTANCE.wavefront.com' api_key = 'YOUR_API_TOKEN' -client = wave_api.ApiClient(host=base_url, header_name='Authorization', header_value='Bearer ' + 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) From aa3cd4b6c7403fb9897f008abca2ed618044476a Mon Sep 17 00:00:00 2001 From: basilisk487 Date: Tue, 3 Oct 2017 22:05:14 -0500 Subject: [PATCH 3/3] Version 2.2.1 --- setup.py | 6 +- wavefront_api_client/__init__.py | 33 +- wavefront_api_client/api_client.py | 42 +- wavefront_api_client/apis/__init__.py | 2 + wavefront_api_client/apis/alert_api.py | 10 +- .../apis/cloud_integration_api.py | 198 ++- wavefront_api_client/apis/dashboard_api.py | 2 +- wavefront_api_client/apis/event_api.py | 18 +- .../apis/external_link_api.py | 2 +- wavefront_api_client/apis/integration_api.py | 679 ++++++++ .../apis/maintenance_window_api.py | 2 +- wavefront_api_client/apis/message_api.py | 2 +- wavefront_api_client/apis/metric_api.py | 2 +- wavefront_api_client/apis/notificant_api.py | 610 +++++++ wavefront_api_client/apis/proxy_api.py | 2 +- wavefront_api_client/apis/query_api.py | 8 +- wavefront_api_client/apis/saved_search_api.py | 2 +- wavefront_api_client/apis/search_api.py | 318 +++- wavefront_api_client/apis/source_api.py | 206 ++- wavefront_api_client/apis/user_api.py | 8 +- wavefront_api_client/apis/webhook_api.py | 40 +- wavefront_api_client/configuration.py | 34 +- wavefront_api_client/models/__init__.py | 31 +- wavefront_api_client/models/alert.py | 851 +++++----- .../models/avro_backed_standardized_dto.py | 57 +- .../models/aws_base_credentials.py | 3 +- wavefront_api_client/models/chart.py | 115 +- wavefront_api_client/models/chart_settings.py | 1435 ++++++++--------- .../models/chart_source_query.py | 181 +-- .../models/cloud_integration.py | 181 ++- .../models/cloud_trail_configuration.py | 3 +- .../models/cloud_watch_configuration.py | 37 +- wavefront_api_client/models/dashboard.py | 123 +- .../models/dashboard_parameter_value.py | 57 +- .../models/dashboard_section.py | 3 +- .../models/dashboard_section_row.py | 63 +- .../models/ec2_configuration.py | 3 +- wavefront_api_client/models/event.py | 303 ++-- .../models/event_search_request.py | 5 +- .../models/event_time_range.py | 3 +- wavefront_api_client/models/external_link.py | 57 +- wavefront_api_client/models/facet_response.py | 5 +- .../models/facet_search_request_container.py | 3 +- .../models/facets_response_container.py | 3 +- .../models/facets_search_request_container.py | 121 +- .../models/gcp_configuration.py | 219 +++ wavefront_api_client/models/history_entry.py | 3 +- .../models/history_response.py | 5 +- wavefront_api_client/models/integration.py | 534 ++++++ .../models/integration_dashboard.py | 211 +++ .../models/integration_manifest_group.py | 213 +++ .../models/integration_metrics.py | 270 ++++ .../models/integration_status.py | 197 +++ .../models/iterator_entry_string_json_node.py | 3 +- .../models/iterator_json_node.py | 3 +- .../models/iterator_string.py | 3 +- ...coped_dto_converter.py => logical_type.py} | 39 +- .../models/maintenance_window.py | 434 ++--- wavefront_api_client/models/message.py | 157 +- wavefront_api_client/models/metric_details.py | 3 +- .../models/metric_details_response.py | 3 +- wavefront_api_client/models/metric_status.py | 208 +++ .../models/{webhook.py => notificant.py} | 332 ++-- wavefront_api_client/models/number.py | 3 +- wavefront_api_client/models/paged.py | 5 +- wavefront_api_client/models/paged_alert.py | 5 +- .../models/paged_cloud_integration.py | 5 +- .../models/paged_dashboard.py | 5 +- wavefront_api_client/models/paged_event.py | 5 +- .../models/paged_external_link.py | 5 +- .../models/paged_integration.py | 288 ++++ .../models/paged_maintenance_window.py | 5 +- wavefront_api_client/models/paged_message.py | 5 +- .../{paged_webhook.py => paged_notificant.py} | 73 +- wavefront_api_client/models/paged_proxy.py | 5 +- .../models/paged_saved_search.py | 5 +- wavefront_api_client/models/paged_source.py | 5 +- wavefront_api_client/models/point.py | 3 +- wavefront_api_client/models/proxy.py | 146 +- wavefront_api_client/models/query_event.py | 294 ++++ .../models/query_key_container.py | 227 --- wavefront_api_client/models/query_result.py | 297 +--- wavefront_api_client/models/raw_timeseries.py | 153 ++ wavefront_api_client/models/report_event.py | 475 ------ .../models/response_container.py | 10 +- .../models/response_container_alert.py | 10 +- .../response_container_cloud_integration.py | 10 +- .../models/response_container_dashboard.py | 10 +- .../models/response_container_event.py | 10 +- .../response_container_external_link.py | 10 +- .../response_container_facet_response.py | 10 +- ...nse_container_facets_response_container.py | 10 +- .../response_container_history_response.py | 10 +- .../models/response_container_integration.py | 152 ++ .../response_container_integration_status.py | 152 ++ ...ntainer_list_integration_manifest_group.py | 152 ++ .../response_container_maintenance_window.py | 10 +- .../response_container_map_string_integer.py | 10 +- ...container_map_string_integration_status.py | 152 ++ .../models/response_container_message.py | 10 +- ...ok.py => response_container_notificant.py} | 38 +- .../models/response_container_paged.py | 10 +- .../models/response_container_paged_alert.py | 10 +- ...ponse_container_paged_cloud_integration.py | 10 +- .../response_container_paged_dashboard.py | 10 +- .../models/response_container_paged_event.py | 10 +- .../response_container_paged_external_link.py | 10 +- .../response_container_paged_integration.py | 152 ++ ...onse_container_paged_maintenance_window.py | 10 +- .../response_container_paged_message.py | 10 +- ...=> response_container_paged_notificant.py} | 38 +- .../models/response_container_paged_proxy.py | 10 +- .../response_container_paged_saved_search.py | 10 +- .../models/response_container_paged_source.py | 10 +- .../models/response_container_proxy.py | 10 +- .../models/response_container_saved_search.py | 10 +- .../models/response_container_source.py | 10 +- .../response_container_tags_response.py | 10 +- .../models/response_status.py | 3 +- wavefront_api_client/models/saved_search.py | 84 +- wavefront_api_client/models/search_query.py | 3 +- .../models/sortable_search_request.py | 5 +- wavefront_api_client/models/sorting.py | 67 +- wavefront_api_client/models/source.py | 57 +- .../models/source_label_pair.py | 3 +- .../models/source_search_request_container.py | 3 +- wavefront_api_client/models/stats_model.py | 131 +- wavefront_api_client/models/tags_response.py | 5 +- wavefront_api_client/models/target_info.py | 188 +++ wavefront_api_client/models/timeseries.py | 100 +- .../models/timeseries_stats_container.py | 305 ---- wavefront_api_client/models/user_model.py | 18 +- wavefront_api_client/models/user_to_create.py | 3 +- wavefront_api_client/models/wf_tags.py | 3 +- wavefront_api_client/rest.py | 25 +- 135 files changed, 8714 insertions(+), 4115 deletions(-) create mode 100644 wavefront_api_client/apis/integration_api.py create mode 100644 wavefront_api_client/apis/notificant_api.py create mode 100644 wavefront_api_client/models/gcp_configuration.py create mode 100644 wavefront_api_client/models/integration.py create mode 100644 wavefront_api_client/models/integration_dashboard.py create mode 100644 wavefront_api_client/models/integration_manifest_group.py create mode 100644 wavefront_api_client/models/integration_metrics.py create mode 100644 wavefront_api_client/models/integration_status.py rename wavefront_api_client/models/{scoped_dto_converter.py => logical_type.py} (63%) create mode 100644 wavefront_api_client/models/metric_status.py rename wavefront_api_client/models/{webhook.py => notificant.py} (63%) create mode 100644 wavefront_api_client/models/paged_integration.py rename wavefront_api_client/models/{paged_webhook.py => paged_notificant.py} (71%) create mode 100644 wavefront_api_client/models/query_event.py delete mode 100644 wavefront_api_client/models/query_key_container.py create mode 100644 wavefront_api_client/models/raw_timeseries.py delete mode 100644 wavefront_api_client/models/report_event.py create mode 100644 wavefront_api_client/models/response_container_integration.py create mode 100644 wavefront_api_client/models/response_container_integration_status.py create mode 100644 wavefront_api_client/models/response_container_list_integration_manifest_group.py create mode 100644 wavefront_api_client/models/response_container_map_string_integration_status.py rename wavefront_api_client/models/{response_container_webhook.py => response_container_notificant.py} (66%) create mode 100644 wavefront_api_client/models/response_container_paged_integration.py rename wavefront_api_client/models/{response_container_paged_webhook.py => response_container_paged_notificant.py} (68%) create mode 100644 wavefront_api_client/models/target_info.py delete mode 100644 wavefront_api_client/models/timeseries_stats_container.py diff --git a/setup.py b/setup.py index 563c78d..d1c74e2 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "wavefront-client" -VERSION = "2.2.0" +VERSION = "2.2.1" # To install the library, run the following # # python setup.py install @@ -37,6 +37,6 @@ packages=find_packages(), include_package_data=True, long_description="""\ - <p>Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.</p><p>When you make API calls outside the Wavefront UI you must add the header \"Authorization: Bearer &lt;&lt;API-TOKEN&gt;&gt;\" 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> + <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 &lt;&lt;API-TOKEN&gt;&gt;\" 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> """ ) diff --git a/wavefront_api_client/__init__.py b/wavefront_api_client/__init__.py index 82da6e7..103894c 100644 --- a/wavefront_api_client/__init__.py +++ b/wavefront_api_client/__init__.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -36,15 +36,24 @@ from .models.facet_search_request_container import FacetSearchRequestContainer from .models.facets_response_container import FacetsResponseContainer from .models.facets_search_request_container import FacetsSearchRequestContainer +from .models.gcp_configuration import GCPConfiguration from .models.history_entry import HistoryEntry from .models.history_response import HistoryResponse +from .models.integration import Integration +from .models.integration_dashboard import IntegrationDashboard +from .models.integration_manifest_group import IntegrationManifestGroup +from .models.integration_metrics import IntegrationMetrics +from .models.integration_status import IntegrationStatus from .models.iterator_entry_string_json_node import IteratorEntryStringJsonNode from .models.iterator_json_node import IteratorJsonNode from .models.iterator_string import IteratorString +from .models.logical_type import LogicalType from .models.maintenance_window import MaintenanceWindow from .models.message import Message from .models.metric_details import MetricDetails from .models.metric_details_response import MetricDetailsResponse +from .models.metric_status import MetricStatus +from .models.notificant import Notificant from .models.number import Number from .models.paged import Paged from .models.paged_alert import PagedAlert @@ -52,17 +61,18 @@ from .models.paged_dashboard import PagedDashboard from .models.paged_event import PagedEvent from .models.paged_external_link import PagedExternalLink +from .models.paged_integration import PagedIntegration from .models.paged_maintenance_window import PagedMaintenanceWindow from .models.paged_message import PagedMessage +from .models.paged_notificant import PagedNotificant from .models.paged_proxy import PagedProxy from .models.paged_saved_search import PagedSavedSearch from .models.paged_source import PagedSource -from .models.paged_webhook import PagedWebhook from .models.point import Point from .models.proxy import Proxy -from .models.query_key_container import QueryKeyContainer +from .models.query_event import QueryEvent from .models.query_result import QueryResult -from .models.report_event import ReportEvent +from .models.raw_timeseries import RawTimeseries from .models.response_container import ResponseContainer from .models.response_container_alert import ResponseContainerAlert from .models.response_container_cloud_integration import ResponseContainerCloudIntegration @@ -72,29 +82,33 @@ from .models.response_container_facet_response import ResponseContainerFacetResponse from .models.response_container_facets_response_container import ResponseContainerFacetsResponseContainer from .models.response_container_history_response import ResponseContainerHistoryResponse +from .models.response_container_integration import ResponseContainerIntegration +from .models.response_container_integration_status import ResponseContainerIntegrationStatus +from .models.response_container_list_integration_manifest_group import ResponseContainerListIntegrationManifestGroup from .models.response_container_maintenance_window import ResponseContainerMaintenanceWindow from .models.response_container_map_string_integer import ResponseContainerMapStringInteger +from .models.response_container_map_string_integration_status import ResponseContainerMapStringIntegrationStatus from .models.response_container_message import ResponseContainerMessage +from .models.response_container_notificant import ResponseContainerNotificant from .models.response_container_paged import ResponseContainerPaged from .models.response_container_paged_alert import ResponseContainerPagedAlert from .models.response_container_paged_cloud_integration import ResponseContainerPagedCloudIntegration from .models.response_container_paged_dashboard import ResponseContainerPagedDashboard from .models.response_container_paged_event import ResponseContainerPagedEvent from .models.response_container_paged_external_link import ResponseContainerPagedExternalLink +from .models.response_container_paged_integration import ResponseContainerPagedIntegration from .models.response_container_paged_maintenance_window import ResponseContainerPagedMaintenanceWindow from .models.response_container_paged_message import ResponseContainerPagedMessage +from .models.response_container_paged_notificant import ResponseContainerPagedNotificant from .models.response_container_paged_proxy import ResponseContainerPagedProxy from .models.response_container_paged_saved_search import ResponseContainerPagedSavedSearch from .models.response_container_paged_source import ResponseContainerPagedSource -from .models.response_container_paged_webhook import ResponseContainerPagedWebhook from .models.response_container_proxy import ResponseContainerProxy from .models.response_container_saved_search import ResponseContainerSavedSearch from .models.response_container_source import ResponseContainerSource from .models.response_container_tags_response import ResponseContainerTagsResponse -from .models.response_container_webhook import ResponseContainerWebhook from .models.response_status import ResponseStatus from .models.saved_search import SavedSearch -from .models.scoped_dto_converter import ScopedDTOConverter from .models.search_query import SearchQuery from .models.sortable_search_request import SortableSearchRequest from .models.sorting import Sorting @@ -103,12 +117,11 @@ from .models.source_search_request_container import SourceSearchRequestContainer from .models.stats_model import StatsModel from .models.tags_response import TagsResponse +from .models.target_info import TargetInfo from .models.timeseries import Timeseries -from .models.timeseries_stats_container import TimeseriesStatsContainer from .models.user_model import UserModel from .models.user_to_create import UserToCreate from .models.wf_tags import WFTags -from .models.webhook import Webhook # import apis into sdk package from .apis.alert_api import AlertApi @@ -116,9 +129,11 @@ from .apis.dashboard_api import DashboardApi from .apis.event_api import EventApi from .apis.external_link_api import ExternalLinkApi +from .apis.integration_api import IntegrationApi from .apis.maintenance_window_api import MaintenanceWindowApi from .apis.message_api import MessageApi from .apis.metric_api import MetricApi +from .apis.notificant_api import NotificantApi from .apis.proxy_api import ProxyApi from .apis.query_api import QueryApi from .apis.saved_search_api import SavedSearchApi diff --git a/wavefront_api_client/api_client.py b/wavefront_api_client/api_client.py index e7f2da3..14dae76 100644 --- a/wavefront_api_client/api_client.py +++ b/wavefront_api_client/api_client.py @@ -2,7 +2,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -71,7 +71,11 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.2.0/python' + self.user_agent = 'Swagger-Codegen/2.2.1/python' + + def __del__(self): + self.pool.close() + self.pool.join() @property def user_agent(self): @@ -97,7 +101,7 @@ def __call_api(self, resource_path, method, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): - config = Configuration() + config = self.configuration # header parameters header_params = header_params or {} @@ -279,7 +283,7 @@ def call_api(self, resource_path, method, _request_timeout=None): """ Makes the HTTP request (synchronous) and return the deserialized data. - To make an async request, define a function for callback. + To make an async request, set the async parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -303,10 +307,10 @@ def call_api(self, resource_path, method, :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: - If provide parameter callback, + If async parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter callback is None, + If parameter async is False or missing, then the method will return the response directly. """ if not async: @@ -602,17 +606,23 @@ def __deserialize_model(self, data, klass): :param klass: class literal. :return: model object. """ - if not klass.swagger_types: + + if not klass.swagger_types and not hasattr(klass, 'get_real_child_model'): return data kwargs = {} - for attr, attr_type in iteritems(klass.swagger_types): - if data is not None \ - and klass.attribute_map[attr] in data \ - and isinstance(data, (list, dict)): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - + if klass.swagger_types is not None: + for attr, attr_type in iteritems(klass.swagger_types): + if data is not None \ + and klass.attribute_map[attr] in data \ + and isinstance(data, (list, dict)): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) return instance diff --git a/wavefront_api_client/apis/__init__.py b/wavefront_api_client/apis/__init__.py index d50572d..aa86121 100644 --- a/wavefront_api_client/apis/__init__.py +++ b/wavefront_api_client/apis/__init__.py @@ -6,9 +6,11 @@ from .dashboard_api import DashboardApi from .event_api import EventApi from .external_link_api import ExternalLinkApi +from .integration_api import IntegrationApi from .maintenance_window_api import MaintenanceWindowApi from .message_api import MessageApi from .metric_api import MetricApi +from .notificant_api import NotificantApi from .proxy_api import ProxyApi from .query_api import QueryApi from .saved_search_api import SavedSearchApi diff --git a/wavefront_api_client/apis/alert_api.py b/wavefront_api_client/apis/alert_api.py index 456f5e1..7702805 100644 --- a/wavefront_api_client/apis/alert_api.py +++ b/wavefront_api_client/apis/alert_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -150,7 +150,7 @@ def create_alert(self, **kwargs): >>> result = thread.get() :param async bool - :param Alert body: Example Body:
{   \"name\": \"Alert Name\",   \"target\": \"user@example.com\",   \"condition\": \"ts() > 1\",   \"displayExpression\": \"ts()\",   \"minutes\": 5,   \"resolveAfterMinutes\": 2,   \"severity\": \"INFO\",   \"additionalInformation\": \"Additional Info\" }
+ :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\" }
:return: ResponseContainerAlert If the method is called asynchronously, returns the request thread. @@ -172,7 +172,7 @@ def create_alert_with_http_info(self, **kwargs): >>> result = thread.get() :param async bool - :param Alert body: Example Body:
{   \"name\": \"Alert Name\",   \"target\": \"user@example.com\",   \"condition\": \"ts() > 1\",   \"displayExpression\": \"ts()\",   \"minutes\": 5,   \"resolveAfterMinutes\": 2,   \"severity\": \"INFO\",   \"additionalInformation\": \"Additional Info\" }
+ :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\" }
:return: ResponseContainerAlert If the method is called asynchronously, returns the request thread. @@ -1401,7 +1401,7 @@ def update_alert(self, id, **kwargs): :param async bool :param str id: (required) - :param Alert body: Example Body:
{   \"id\": \"1459375928549\",   \"name\": \"Alert Name\",   \"target\": \"user@example.com\",   \"condition\": \"ts() > 1\",   \"displayExpression\": \"ts()\",   \"minutes\": 5,   \"resolveAfterMinutes\": 2,   \"severity\": \"INFO\",   \"additionalInformation\": \"Additional Info\" }
+ :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\" }
:return: ResponseContainerAlert If the method is called asynchronously, returns the request thread. @@ -1424,7 +1424,7 @@ def update_alert_with_http_info(self, id, **kwargs): :param async bool :param str id: (required) - :param Alert body: Example Body:
{   \"id\": \"1459375928549\",   \"name\": \"Alert Name\",   \"target\": \"user@example.com\",   \"condition\": \"ts() > 1\",   \"displayExpression\": \"ts()\",   \"minutes\": 5,   \"resolveAfterMinutes\": 2,   \"severity\": \"INFO\",   \"additionalInformation\": \"Additional Info\" }
+ :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\" }
:return: ResponseContainerAlert If the method is called asynchronously, returns the request thread. diff --git a/wavefront_api_client/apis/cloud_integration_api.py b/wavefront_api_client/apis/cloud_integration_api.py index 964a60d..225fe8d 100644 --- a/wavefront_api_client/apis/cloud_integration_api.py +++ b/wavefront_api_client/apis/cloud_integration_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -45,7 +45,7 @@ def create_cloud_integration(self, **kwargs): >>> 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).*$\",     \"serviceRefreshRateInMins\":0,     \"forceSave\":false   } }
+ :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 }
:return: ResponseContainerCloudIntegration If the method is called asynchronously, returns the request thread. @@ -67,7 +67,7 @@ def create_cloud_integration_with_http_info(self, **kwargs): >>> 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).*$\",     \"serviceRefreshRateInMins\":0,     \"forceSave\":false   } }
+ :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 }
:return: ResponseContainerCloudIntegration If the method is called asynchronously, returns the request thread. @@ -224,6 +224,194 @@ def delete_cloud_integration_with_http_info(self, id, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def disable_cloud_integration(self, id, **kwargs): + """ + Disable a specific cloud integration + + 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) + >>> result = thread.get() + + :param async 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'): + return self.disable_cloud_integration_with_http_info(id, **kwargs) + else: + (data) = self.disable_cloud_integration_with_http_info(id, **kwargs) + return data + + def disable_cloud_integration_with_http_info(self, id, **kwargs): + """ + Disable a specific cloud integration + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerCloudIntegration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method disable_cloud_integration" % 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 `disable_cloud_integration`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/cloudintegration/{id}/disable', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerCloudIntegration', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def enable_cloud_integration(self, id, **kwargs): + """ + Enable a specific cloud integration + + 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) + >>> result = thread.get() + + :param async 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'): + return self.enable_cloud_integration_with_http_info(id, **kwargs) + else: + (data) = self.enable_cloud_integration_with_http_info(id, **kwargs) + return data + + def enable_cloud_integration_with_http_info(self, id, **kwargs): + """ + Enable a specific cloud integration + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerCloudIntegration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method enable_cloud_integration" % 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 `enable_cloud_integration`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/cloudintegration/{id}/enable', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerCloudIntegration', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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_cloud_integration(self, **kwargs): """ Get all cloud integrations for a customer @@ -518,7 +706,7 @@ def update_cloud_integration(self, id, **kwargs): :param async 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).*$\",     \"serviceRefreshRateInMins\":0,     \"forceSave\":false   } }
+ :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 }
:return: ResponseContainerCloudIntegration If the method is called asynchronously, returns the request thread. @@ -541,7 +729,7 @@ def update_cloud_integration_with_http_info(self, id, **kwargs): :param async 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).*$\",     \"serviceRefreshRateInMins\":0,     \"forceSave\":false   } }
+ :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 }
:return: ResponseContainerCloudIntegration If the method is called asynchronously, returns the request thread. diff --git a/wavefront_api_client/apis/dashboard_api.py b/wavefront_api_client/apis/dashboard_api.py index 35e53e8..5723d2c 100644 --- a/wavefront_api_client/apis/dashboard_api.py +++ b/wavefront_api_client/apis/dashboard_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 diff --git a/wavefront_api_client/apis/event_api.py b/wavefront_api_client/apis/event_api.py index 06c9667..2235be2 100644 --- a/wavefront_api_client/apis/event_api.py +++ b/wavefront_api_client/apis/event_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -237,14 +237,14 @@ def close_event_with_http_info(self, id, **kwargs): def create_event(self, **kwargs): """ Create a specific 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 method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.create_event(async=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\": 0 }
+ :param Event body: Example Body:
{   \"name\": \"Event API Example\",   \"annotations\": {     \"severity\": \"info\",     \"type\": \"event type\",     \"details\": \"description\"   },   \"startTime\": 1490000000000,   \"endTime\": 1490000000001 }
:return: ResponseContainerEvent If the method is called asynchronously, returns the request thread. @@ -259,14 +259,14 @@ def create_event(self, **kwargs): def create_event_with_http_info(self, **kwargs): """ Create a specific 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 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) >>> result = thread.get() :param async bool - :param Event body: Example Body:
{   \"name\": \"Event API Example\",   \"annotations\": {     \"severity\": \"info\",     \"type\": \"event type\",     \"details\": \"description\"   },   \"startTime\": 0 }
+ :param Event body: Example Body:
{   \"name\": \"Event API Example\",   \"annotations\": {     \"severity\": \"info\",     \"type\": \"event type\",     \"details\": \"description\"   },   \"startTime\": 1490000000000,   \"endTime\": 1490000000001 }
:return: ResponseContainerEvent If the method is called asynchronously, returns the request thread. @@ -924,7 +924,7 @@ def set_event_tags_with_http_info(self, id, **kwargs): def update_event(self, id, **kwargs): """ Update a specific 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 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) @@ -932,7 +932,7 @@ def update_event(self, id, **kwargs): :param async bool :param str id: (required) - :param Event body: Example Body:
{   \"name\": \"Event API Example\",   \"annotations\": {     \"severity\": \"info\",     \"type\": \"event type\",     \"details\": \"description\"   },   \"startTime\": 0 }
+ :param Event body: Example Body:
{   \"name\": \"Event API Example\",   \"annotations\": {     \"severity\": \"info\",     \"type\": \"event type\",     \"details\": \"description\"   },   \"startTime\": 1490000000000,   \"endTime\": 1490000000001 }
:return: ResponseContainerEvent If the method is called asynchronously, returns the request thread. @@ -947,7 +947,7 @@ def update_event(self, id, **kwargs): def update_event_with_http_info(self, id, **kwargs): """ Update a specific 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 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) @@ -955,7 +955,7 @@ def update_event_with_http_info(self, id, **kwargs): :param async bool :param str id: (required) - :param Event body: Example Body:
{   \"name\": \"Event API Example\",   \"annotations\": {     \"severity\": \"info\",     \"type\": \"event type\",     \"details\": \"description\"   },   \"startTime\": 0 }
+ :param Event body: Example Body:
{   \"name\": \"Event API Example\",   \"annotations\": {     \"severity\": \"info\",     \"type\": \"event type\",     \"details\": \"description\"   },   \"startTime\": 1490000000000,   \"endTime\": 1490000000001 }
:return: ResponseContainerEvent If the method is called asynchronously, returns the request thread. diff --git a/wavefront_api_client/apis/external_link_api.py b/wavefront_api_client/apis/external_link_api.py index ea7cd4d..2585a86 100644 --- a/wavefront_api_client/apis/external_link_api.py +++ b/wavefront_api_client/apis/external_link_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 diff --git a/wavefront_api_client/apis/integration_api.py b/wavefront_api_client/apis/integration_api.py new file mode 100644 index 0000000..d80a07c --- /dev/null +++ b/wavefront_api_client/apis/integration_api.py @@ -0,0 +1,679 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..api_client import ApiClient + + +class IntegrationApi(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_integration(self, **kwargs): + """ + Gets a flat list of all Wavefront integrations available, along with their status + + 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) + >>> result = thread.get() + + :param async bool + :param int offset: + :param int limit: + :return: ResponseContainerPagedIntegration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_all_integration_with_http_info(**kwargs) + else: + (data) = self.get_all_integration_with_http_info(**kwargs) + return data + + def get_all_integration_with_http_info(self, **kwargs): + """ + Gets a flat list of all Wavefront integrations available, along with their status + + 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) + >>> result = thread.get() + + :param async bool + :param int offset: + :param int limit: + :return: ResponseContainerPagedIntegration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['offset', 'limit'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_all_integration" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in params: + query_params.append(('offset', params['offset'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/integration', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedIntegration', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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): + """ + Gets all Wavefront integrations as structured in their integration manifests, along with their status + + 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) + >>> result = thread.get() + + :param async bool + :return: ResponseContainerListIntegrationManifestGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_all_integration_in_manifests_with_http_info(**kwargs) + else: + (data) = self.get_all_integration_in_manifests_with_http_info(**kwargs) + return data + + def get_all_integration_in_manifests_with_http_info(self, **kwargs): + """ + Gets all Wavefront integrations as structured in their integration manifests, along with their status + + 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) + >>> result = thread.get() + + :param async bool + :return: ResponseContainerListIntegrationManifestGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_all_integration_in_manifests" % 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/integration/manifests', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerListIntegrationManifestGroup', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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): + """ + Gets the status of all Wavefront integrations + + 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) + >>> result = thread.get() + + :param async bool + :return: ResponseContainerMapStringIntegrationStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_all_integration_statuses_with_http_info(**kwargs) + else: + (data) = self.get_all_integration_statuses_with_http_info(**kwargs) + return data + + def get_all_integration_statuses_with_http_info(self, **kwargs): + """ + Gets the status of all Wavefront integrations + + 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) + >>> result = thread.get() + + :param async bool + :return: ResponseContainerMapStringIntegrationStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_all_integration_statuses" % 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/integration/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerMapStringIntegrationStatus', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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): + """ + Gets a single Wavefront integration by its id, along with its status + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerIntegration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_integration_with_http_info(id, **kwargs) + else: + (data) = self.get_integration_with_http_info(id, **kwargs) + return data + + def get_integration_with_http_info(self, id, **kwargs): + """ + Gets a single Wavefront integration by its id, along with its status + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerIntegration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_integration" % 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_integration`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/integration/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerIntegration', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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): + """ + Gets the status of a single Wavefront integration + + 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) + >>> result = thread.get() + + :param async 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'): + return self.get_integration_status_with_http_info(id, **kwargs) + else: + (data) = self.get_integration_status_with_http_info(id, **kwargs) + return data + + def get_integration_status_with_http_info(self, id, **kwargs): + """ + Gets the status of a single Wavefront integration + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerIntegrationStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_integration_status" % 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_integration_status`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/integration/{id}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerIntegrationStatus', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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): + """ + Installs a Wavefront integration + + 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) + >>> result = thread.get() + + :param async 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'): + return self.install_integration_with_http_info(id, **kwargs) + else: + (data) = self.install_integration_with_http_info(id, **kwargs) + return data + + def install_integration_with_http_info(self, id, **kwargs): + """ + Installs a Wavefront integration + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerIntegrationStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method install_integration" % 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 `install_integration`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/integration/{id}/install', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerIntegrationStatus', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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): + """ + Uninstalls a Wavefront integration + + 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) + >>> result = thread.get() + + :param async 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'): + return self.uninstall_integration_with_http_info(id, **kwargs) + else: + (data) = self.uninstall_integration_with_http_info(id, **kwargs) + return data + + def uninstall_integration_with_http_info(self, id, **kwargs): + """ + Uninstalls a Wavefront integration + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerIntegrationStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method uninstall_integration" % 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 `uninstall_integration`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/integration/{id}/uninstall', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerIntegrationStatus', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_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/apis/maintenance_window_api.py b/wavefront_api_client/apis/maintenance_window_api.py index 7c60dec..9ef19b5 100644 --- a/wavefront_api_client/apis/maintenance_window_api.py +++ b/wavefront_api_client/apis/maintenance_window_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 diff --git a/wavefront_api_client/apis/message_api.py b/wavefront_api_client/apis/message_api.py index e5ee841..efebce1 100644 --- a/wavefront_api_client/apis/message_api.py +++ b/wavefront_api_client/apis/message_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 diff --git a/wavefront_api_client/apis/metric_api.py b/wavefront_api_client/apis/metric_api.py index 38ffeec..7d83c3c 100644 --- a/wavefront_api_client/apis/metric_api.py +++ b/wavefront_api_client/apis/metric_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 diff --git a/wavefront_api_client/apis/notificant_api.py b/wavefront_api_client/apis/notificant_api.py new file mode 100644 index 0000000..179c40d --- /dev/null +++ b/wavefront_api_client/apis/notificant_api.py @@ -0,0 +1,610 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..api_client import ApiClient + + +class NotificantApi(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_notificant(self, **kwargs): + """ + Create a notification target + + 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) + >>> result = thread.get() + + :param async 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'): + return self.create_notificant_with_http_info(**kwargs) + else: + (data) = self.create_notificant_with_http_info(**kwargs) + return data + + def create_notificant_with_http_info(self, **kwargs): + """ + Create a notification target + + 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) + >>> result = thread.get() + + :param async 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. + """ + + all_params = ['body'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_notificant" % 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/notificant', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerNotificant', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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_notificant(self, id, **kwargs): + """ + Delete a specific notification target + + 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) + >>> result = thread.get() + + :param async 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'): + return self.delete_notificant_with_http_info(id, **kwargs) + else: + (data) = self.delete_notificant_with_http_info(id, **kwargs) + return data + + def delete_notificant_with_http_info(self, id, **kwargs): + """ + Delete a specific notification target + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_notificant_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerNotificant + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_notificant" % 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_notificant`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/notificant/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerNotificant', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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_notificants(self, **kwargs): + """ + Get all notification targets for a customer + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_notificants(async=True) + >>> result = thread.get() + + :param async bool + :param int offset: + :param int limit: + :return: ResponseContainerPagedNotificant + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_all_notificants_with_http_info(**kwargs) + else: + (data) = self.get_all_notificants_with_http_info(**kwargs) + return data + + def get_all_notificants_with_http_info(self, **kwargs): + """ + Get all notification targets for a customer + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_all_notificants_with_http_info(async=True) + >>> result = thread.get() + + :param async bool + :param int offset: + :param int limit: + :return: ResponseContainerPagedNotificant + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['offset', 'limit'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_all_notificants" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in params: + query_params.append(('offset', params['offset'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/notificant', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedNotificant', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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_notificant(self, id, **kwargs): + """ + Get a specific notification target + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_notificant(id, async=True) + >>> result = thread.get() + + :param async 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'): + return self.get_notificant_with_http_info(id, **kwargs) + else: + (data) = self.get_notificant_with_http_info(id, **kwargs) + return data + + def get_notificant_with_http_info(self, id, **kwargs): + """ + Get a specific notification target + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_notificant_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerNotificant + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_notificant" % 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_notificant`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/notificant/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerNotificant', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def test_notificant(self, id, **kwargs): + """ + Test a specific notification target + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.test_notificant(id, async=True) + >>> result = thread.get() + + :param async 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'): + return self.test_notificant_with_http_info(id, **kwargs) + else: + (data) = self.test_notificant_with_http_info(id, **kwargs) + return data + + def test_notificant_with_http_info(self, id, **kwargs): + """ + Test a specific notification target + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.test_notificant_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainerNotificant + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method test_notificant" % 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 `test_notificant`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/notificant/test/{id}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerNotificant', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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_notificant(self, id, **kwargs): + """ + Update a specific notification target + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.update_notificant(id, async=True) + >>> result = thread.get() + + :param async 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 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.update_notificant_with_http_info(id, **kwargs) + else: + (data) = self.update_notificant_with_http_info(id, **kwargs) + return data + + def update_notificant_with_http_info(self, id, **kwargs): + """ + Update a specific notification target + + 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) + >>> result = thread.get() + + :param async 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 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_notificant" % 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_notificant`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/notificant/{id}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerNotificant', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_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/apis/proxy_api.py b/wavefront_api_client/apis/proxy_api.py index 2c43e2b..9e710cc 100644 --- a/wavefront_api_client/apis/proxy_api.py +++ b/wavefront_api_client/apis/proxy_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 diff --git a/wavefront_api_client/apis/query_api.py b/wavefront_api_client/apis/query_api.py index 53f8572..ca8cf6e 100644 --- a/wavefront_api_client/apis/query_api.py +++ b/wavefront_api_client/apis/query_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -198,7 +198,7 @@ def query_raw(self, metric, **kwargs): :param str source: source to query ingested points for (cannot contain wildcards). host or source is equivalent, only one should be used. :param int start_time: start time in epoch milliseconds (cannot be more than a day in the past) null to use an hour before endTime :param int end_time: end time in epoch milliseconds (cannot be more than a day in the past) null to use now - :return: list[Timeseries] + :return: list[RawTimeseries] If the method is called asynchronously, returns the request thread. """ @@ -224,7 +224,7 @@ def query_raw_with_http_info(self, metric, **kwargs): :param str source: source to query ingested points for (cannot contain wildcards). host or source is equivalent, only one should be used. :param int start_time: start time in epoch milliseconds (cannot be more than a day in the past) null to use an hour before endTime :param int end_time: end time in epoch milliseconds (cannot be more than a day in the past) null to use now - :return: list[Timeseries] + :return: list[RawTimeseries] If the method is called asynchronously, returns the request thread. """ @@ -285,7 +285,7 @@ def query_raw_with_http_info(self, metric, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='list[Timeseries]', + response_type='list[RawTimeseries]', auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/wavefront_api_client/apis/saved_search_api.py b/wavefront_api_client/apis/saved_search_api.py index acac2eb..bf93eb6 100644 --- a/wavefront_api_client/apis/saved_search_api.py +++ b/wavefront_api_client/apis/saved_search_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 diff --git a/wavefront_api_client/apis/search_api.py b/wavefront_api_client/apis/search_api.py index 8129138..0f94c4c 100644 --- a/wavefront_api_client/apis/search_api.py +++ b/wavefront_api_client/apis/search_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -2373,7 +2373,7 @@ def search_maintenance_window_for_facets_with_http_info(self, **kwargs): def search_notficant_for_facets(self, **kwargs): """ - Lists the values of one or more facets over the customer's webhooks + Lists the values of one or more facets over the customer's notificants This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True @@ -2395,7 +2395,7 @@ def search_notficant_for_facets(self, **kwargs): def search_notficant_for_facets_with_http_info(self, **kwargs): """ - Lists the values of one or more facets over the customer's webhooks + Lists the values of one or more facets over the customer's notificants This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True @@ -2451,7 +2451,7 @@ def search_notficant_for_facets_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api('/api/v2/search/webhook/facets', 'POST', + return self.api_client.call_api('/api/v2/search/notificant/facets', 'POST', path_params, query_params, header_params, @@ -2468,7 +2468,7 @@ def search_notficant_for_facets_with_http_info(self, **kwargs): def search_notificant_entities(self, **kwargs): """ - Search over a customer's webhooks + Search over a customer's notificants This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True @@ -2477,7 +2477,7 @@ def search_notificant_entities(self, **kwargs): :param async bool :param SortableSearchRequest body: - :return: ResponseContainerPagedWebhook + :return: ResponseContainerPagedNotificant If the method is called asynchronously, returns the request thread. """ @@ -2490,7 +2490,7 @@ def search_notificant_entities(self, **kwargs): def search_notificant_entities_with_http_info(self, **kwargs): """ - Search over a customer's webhooks + Search over a customer's notificants This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True @@ -2499,7 +2499,7 @@ def search_notificant_entities_with_http_info(self, **kwargs): :param async bool :param SortableSearchRequest body: - :return: ResponseContainerPagedWebhook + :return: ResponseContainerPagedNotificant If the method is called asynchronously, returns the request thread. """ @@ -2546,14 +2546,14 @@ def search_notificant_entities_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api('/api/v2/search/webhook', 'POST', + return self.api_client.call_api('/api/v2/search/notificant', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedWebhook', + response_type='ResponseContainerPagedNotificant', auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2563,7 +2563,7 @@ def search_notificant_entities_with_http_info(self, **kwargs): def search_notificant_for_facet(self, facet, **kwargs): """ - Lists the values of a specific facet over the customer's webhooks + Lists the values of a specific facet over the customer's notificants This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True @@ -2586,7 +2586,7 @@ def search_notificant_for_facet(self, facet, **kwargs): def search_notificant_for_facet_with_http_info(self, facet, **kwargs): """ - Lists the values of a specific facet over the customer's webhooks + Lists the values of a specific facet over the customer's notificants This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True @@ -2648,7 +2648,7 @@ def search_notificant_for_facet_with_http_info(self, facet, **kwargs): # Authentication setting auth_settings = ['api_key'] - return self.api_client.call_api('/api/v2/search/webhook/{facet}', 'POST', + return self.api_client.call_api('/api/v2/search/notificant/{facet}', 'POST', path_params, query_params, header_params, @@ -3830,3 +3830,295 @@ def search_tagged_source_for_facets_with_http_info(self, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def search_web_hook_entities(self, **kwargs): + """ + Search over a customer's webhooks + + 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) + >>> result = thread.get() + + :param async 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_web_hook_entities_with_http_info(**kwargs) + else: + (data) = self.search_web_hook_entities_with_http_info(**kwargs) + return data + + def search_web_hook_entities_with_http_info(self, **kwargs): + """ + Search over a customer's webhooks + + 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) + >>> result = thread.get() + + :param async bool + :param SortableSearchRequest body: + :return: ResponseContainerPagedNotificant + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method search_web_hook_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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/search/webhook', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerPagedNotificant', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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): + """ + Lists the values of a specific facet over the customer's webhooks + + 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) + >>> result = thread.get() + + :param async 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_web_hook_for_facet_with_http_info(facet, **kwargs) + else: + (data) = self.search_web_hook_for_facet_with_http_info(facet, **kwargs) + return data + + def search_web_hook_for_facet_with_http_info(self, facet, **kwargs): + """ + Lists the values of a specific facet over the customer's webhooks + + 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) + >>> result = thread.get() + + :param async bool + :param str facet: (required) + :param FacetSearchRequestContainer body: + :return: ResponseContainerFacetResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['facet', 'body'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method search_web_hook_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_web_hook_for_facet`") + + + collection_formats = {} + + path_params = {} + if 'facet' in params: + path_params['facet'] = params['facet'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/search/webhook/{facet}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerFacetResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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): + """ + Lists the values of one or more facets over the customer's webhooks + + 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) + >>> result = thread.get() + + :param async 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_webhook_for_facets_with_http_info(**kwargs) + else: + (data) = self.search_webhook_for_facets_with_http_info(**kwargs) + return data + + def search_webhook_for_facets_with_http_info(self, **kwargs): + """ + Lists the values of one or more facets over the customer's webhooks + + 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) + >>> result = thread.get() + + :param async bool + :param FacetsSearchRequestContainer body: + :return: ResponseContainerFacetsResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method search_webhook_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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/search/webhook/facets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainerFacetsResponseContainer', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_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/apis/source_api.py b/wavefront_api_client/apis/source_api.py index c77968f..e74f6e2 100644 --- a/wavefront_api_client/apis/source_api.py +++ b/wavefront_api_client/apis/source_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -608,6 +608,100 @@ def get_source_tags_with_http_info(self, id, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def remove_description(self, id, **kwargs): + """ + Remove description from a specific source + + 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) + >>> result = thread.get() + + :param async 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'): + return self.remove_description_with_http_info(id, **kwargs) + else: + (data) = self.remove_description_with_http_info(id, **kwargs) + return data + + def remove_description_with_http_info(self, id, **kwargs): + """ + Remove description from a specific source + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: ResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method remove_description" % 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_description`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/source/{id}/description', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainer', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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_source_tag(self, id, tag_value, **kwargs): """ Remove a tag from a specific source @@ -713,6 +807,108 @@ def remove_source_tag_with_http_info(self, id, tag_value, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def set_description(self, id, **kwargs): + """ + Set description associated with a specific source + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :param str body: + :return: ResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.set_description_with_http_info(id, **kwargs) + else: + (data) = self.set_description_with_http_info(id, **kwargs) + return data + + def set_description_with_http_info(self, id, **kwargs): + """ + Set description associated with a specific source + + 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) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :param str body: + :return: ResponseContainer + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_description" % 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_description`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['api_key'] + + return self.api_client.call_api('/api/v2/source/{id}/description', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseContainer', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=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_source_tags(self, id, **kwargs): """ Set all tags associated with a specific source @@ -817,8 +1013,8 @@ def set_source_tags_with_http_info(self, id, **kwargs): def update_source(self, id, **kwargs): """ - Update metadata (description or tags) for a specific source - + Update metadata (description or tags) for a specific source. + The \"hidden\" property is stored as a tag. To set the value, add \"hidden\": <value> to the list of tags. 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) @@ -840,8 +1036,8 @@ def update_source(self, id, **kwargs): def update_source_with_http_info(self, id, **kwargs): """ - Update metadata (description or tags) for a specific source - + Update metadata (description or tags) for a specific source. + The \"hidden\" property is stored as a tag. To set the value, add \"hidden\": <value> to the list of tags. 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) diff --git a/wavefront_api_client/apis/user_api.py b/wavefront_api_client/apis/user_api.py index 37bcea4..056dfb6 100644 --- a/wavefront_api_client/apis/user_api.py +++ b/wavefront_api_client/apis/user_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -522,7 +522,6 @@ def revoke_user_permission(self, id, **kwargs): :param async bool :param str id: (required) :param str group: - :param ScopedDTOConverter body: :return: UserModel If the method is called asynchronously, returns the request thread. @@ -546,13 +545,12 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): :param async bool :param str id: (required) :param str group: - :param ScopedDTOConverter body: :return: UserModel If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'group', 'body'] + all_params = ['id', 'group'] all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -588,8 +586,6 @@ def revoke_user_permission_with_http_info(self, id, **kwargs): form_params.append(('group', params['group'])) 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']) diff --git a/wavefront_api_client/apis/webhook_api.py b/wavefront_api_client/apis/webhook_api.py index 3c9e1e5..e90bdb8 100644 --- a/wavefront_api_client/apis/webhook_api.py +++ b/wavefront_api_client/apis/webhook_api.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -45,8 +45,8 @@ def create_webhook(self, **kwargs): >>> result = thread.get() :param async bool - :param Webhook 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: ResponseContainerWebhook + :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. """ @@ -67,8 +67,8 @@ def create_webhook_with_http_info(self, **kwargs): >>> result = thread.get() :param async bool - :param Webhook 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: ResponseContainerWebhook + :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. """ @@ -122,7 +122,7 @@ def create_webhook_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerWebhook', + response_type='ResponseContainerNotificant', auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -141,7 +141,7 @@ def delete_webhook(self, id, **kwargs): :param async bool :param str id: (required) - :return: ResponseContainerWebhook + :return: ResponseContainerNotificant If the method is called asynchronously, returns the request thread. """ @@ -163,7 +163,7 @@ def delete_webhook_with_http_info(self, id, **kwargs): :param async bool :param str id: (required) - :return: ResponseContainerWebhook + :return: ResponseContainerNotificant If the method is called asynchronously, returns the request thread. """ @@ -216,7 +216,7 @@ def delete_webhook_with_http_info(self, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerWebhook', + response_type='ResponseContainerNotificant', auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -236,7 +236,7 @@ def get_all_webhooks(self, **kwargs): :param async bool :param int offset: :param int limit: - :return: ResponseContainerPagedWebhook + :return: ResponseContainerPagedNotificant If the method is called asynchronously, returns the request thread. """ @@ -259,7 +259,7 @@ def get_all_webhooks_with_http_info(self, **kwargs): :param async bool :param int offset: :param int limit: - :return: ResponseContainerPagedWebhook + :return: ResponseContainerPagedNotificant If the method is called asynchronously, returns the request thread. """ @@ -311,7 +311,7 @@ def get_all_webhooks_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerPagedWebhook', + response_type='ResponseContainerPagedNotificant', auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -330,7 +330,7 @@ def get_webhook(self, id, **kwargs): :param async bool :param str id: (required) - :return: ResponseContainerWebhook + :return: ResponseContainerNotificant If the method is called asynchronously, returns the request thread. """ @@ -352,7 +352,7 @@ def get_webhook_with_http_info(self, id, **kwargs): :param async bool :param str id: (required) - :return: ResponseContainerWebhook + :return: ResponseContainerNotificant If the method is called asynchronously, returns the request thread. """ @@ -405,7 +405,7 @@ def get_webhook_with_http_info(self, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerWebhook', + response_type='ResponseContainerNotificant', auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -424,8 +424,8 @@ def update_webhook(self, id, **kwargs): :param async bool :param str id: (required) - :param Webhook 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: ResponseContainerWebhook + :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. """ @@ -447,8 +447,8 @@ def update_webhook_with_http_info(self, id, **kwargs): :param async bool :param str id: (required) - :param Webhook 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: ResponseContainerWebhook + :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. """ @@ -507,7 +507,7 @@ def update_webhook_with_http_info(self, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='ResponseContainerWebhook', + response_type='ResponseContainerNotificant', auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/wavefront_api_client/configuration.py b/wavefront_api_client/configuration.py index 32f0d0c..ea4d836 100644 --- a/wavefront_api_client/configuration.py +++ b/wavefront_api_client/configuration.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -15,14 +15,30 @@ import urllib3 -import sys +import copy import logging +import multiprocessing +import sys from six import iteritems +from six import with_metaclass 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 == None: + cls._default = type.__call__(cls) + return copy.copy(cls._default) + + def set_default(cls, default): + cls._default = copy.copy(default) -class Configuration(object): + +class Configuration(with_metaclass(TypeWithDefault, object)): """ NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen @@ -72,6 +88,16 @@ def __init__(self): self.cert_file = None # client key file self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + # Proxy URL self.proxy = None @@ -214,5 +240,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v2\n"\ - "SDK Package Version: 1.0.0".\ + "SDK Package Version: 2.2.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 1c0256b..4e63d32 100644 --- a/wavefront_api_client/models/__init__.py +++ b/wavefront_api_client/models/__init__.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -36,15 +36,24 @@ from .facet_search_request_container import FacetSearchRequestContainer from .facets_response_container import FacetsResponseContainer from .facets_search_request_container import FacetsSearchRequestContainer +from .gcp_configuration import GCPConfiguration from .history_entry import HistoryEntry from .history_response import HistoryResponse +from .integration import Integration +from .integration_dashboard import IntegrationDashboard +from .integration_manifest_group import IntegrationManifestGroup +from .integration_metrics import IntegrationMetrics +from .integration_status import IntegrationStatus from .iterator_entry_string_json_node import IteratorEntryStringJsonNode from .iterator_json_node import IteratorJsonNode from .iterator_string import IteratorString +from .logical_type import LogicalType from .maintenance_window import MaintenanceWindow from .message import Message from .metric_details import MetricDetails from .metric_details_response import MetricDetailsResponse +from .metric_status import MetricStatus +from .notificant import Notificant from .number import Number from .paged import Paged from .paged_alert import PagedAlert @@ -52,17 +61,18 @@ from .paged_dashboard import PagedDashboard from .paged_event import PagedEvent from .paged_external_link import PagedExternalLink +from .paged_integration import PagedIntegration from .paged_maintenance_window import PagedMaintenanceWindow from .paged_message import PagedMessage +from .paged_notificant import PagedNotificant from .paged_proxy import PagedProxy from .paged_saved_search import PagedSavedSearch from .paged_source import PagedSource -from .paged_webhook import PagedWebhook from .point import Point from .proxy import Proxy -from .query_key_container import QueryKeyContainer +from .query_event import QueryEvent from .query_result import QueryResult -from .report_event import ReportEvent +from .raw_timeseries import RawTimeseries from .response_container import ResponseContainer from .response_container_alert import ResponseContainerAlert from .response_container_cloud_integration import ResponseContainerCloudIntegration @@ -72,29 +82,33 @@ from .response_container_facet_response import ResponseContainerFacetResponse from .response_container_facets_response_container import ResponseContainerFacetsResponseContainer from .response_container_history_response import ResponseContainerHistoryResponse +from .response_container_integration import ResponseContainerIntegration +from .response_container_integration_status import ResponseContainerIntegrationStatus +from .response_container_list_integration_manifest_group import ResponseContainerListIntegrationManifestGroup from .response_container_maintenance_window import ResponseContainerMaintenanceWindow from .response_container_map_string_integer import ResponseContainerMapStringInteger +from .response_container_map_string_integration_status import ResponseContainerMapStringIntegrationStatus from .response_container_message import ResponseContainerMessage +from .response_container_notificant import ResponseContainerNotificant from .response_container_paged import ResponseContainerPaged from .response_container_paged_alert import ResponseContainerPagedAlert from .response_container_paged_cloud_integration import ResponseContainerPagedCloudIntegration from .response_container_paged_dashboard import ResponseContainerPagedDashboard from .response_container_paged_event import ResponseContainerPagedEvent from .response_container_paged_external_link import ResponseContainerPagedExternalLink +from .response_container_paged_integration import ResponseContainerPagedIntegration from .response_container_paged_maintenance_window import ResponseContainerPagedMaintenanceWindow from .response_container_paged_message import ResponseContainerPagedMessage +from .response_container_paged_notificant import ResponseContainerPagedNotificant from .response_container_paged_proxy import ResponseContainerPagedProxy from .response_container_paged_saved_search import ResponseContainerPagedSavedSearch from .response_container_paged_source import ResponseContainerPagedSource -from .response_container_paged_webhook import ResponseContainerPagedWebhook from .response_container_proxy import ResponseContainerProxy from .response_container_saved_search import ResponseContainerSavedSearch from .response_container_source import ResponseContainerSource from .response_container_tags_response import ResponseContainerTagsResponse -from .response_container_webhook import ResponseContainerWebhook from .response_status import ResponseStatus from .saved_search import SavedSearch -from .scoped_dto_converter import ScopedDTOConverter from .search_query import SearchQuery from .sortable_search_request import SortableSearchRequest from .sorting import Sorting @@ -103,9 +117,8 @@ from .source_search_request_container import SourceSearchRequestContainer from .stats_model import StatsModel from .tags_response import TagsResponse +from .target_info import TargetInfo from .timeseries import Timeseries -from .timeseries_stats_container import TimeseriesStatsContainer from .user_model import UserModel from .user_to_create import UserToCreate from .wf_tags import WFTags -from .webhook import Webhook diff --git a/wavefront_api_client/models/alert.py b/wavefront_api_client/models/alert.py index 2792eea..0dd734c 100644 --- a/wavefront_api_client/models/alert.py +++ b/wavefront_api_client/models/alert.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -31,206 +31,227 @@ class Alert(object): and the value is json key in definition. """ swagger_types = { - 'minutes': 'int', 'name': 'str', 'id': 'str', 'target': 'str', 'created': 'int', + 'minutes': 'int', 'tags': 'WFTags', 'status': 'list[str]', - 'in_trash': 'bool', - 'condition': 'str', - 'condition_qb_enabled': 'bool', - 'condition_qb_serialization': 'str', + 'event': 'Event', + 'updated': 'int', 'display_expression': 'str', + 'condition_qb_enabled': 'bool', 'display_expression_qb_enabled': 'bool', + 'condition': 'str', + 'condition_qb_serialization': 'str', 'display_expression_qb_serialization': 'str', - 'resolve_after_minutes': 'int', - 'snoozed': 'int', - 'event': 'Event', - 'failing_host_label_pairs': 'list[SourceLabelPair]', - 'updated': 'int', 'severity': 'str', + 'failing_host_label_pairs': 'list[SourceLabelPair]', + 'in_maintenance_host_label_pairs': 'list[SourceLabelPair]', + 'process_rate_minutes': 'int', + 'last_processed_millis': 'int', + 'update_user_id': 'str', + 'alerts_last_day': 'int', + 'alerts_last_week': 'int', + 'alerts_last_month': 'int', + 'snoozed': 'int', + 'additional_information': 'str', + 'in_trash': 'bool', + 'resolve_after_minutes': 'int', + 'creator_id': 'str', 'query_failing': 'bool', 'last_failed_time': 'int', 'last_error_message': 'str', - 'additional_information': 'str', 'metrics_used': 'list[str]', 'hosts_used': 'list[str]', - 'in_maintenance_host_label_pairs': 'list[SourceLabelPair]', 'active_maintenance_windows': 'list[str]', - 'update_user_id': 'str', 'prefiring_host_label_pairs': 'list[SourceLabelPair]', 'notificants': 'list[str]', 'create_user_id': 'str', - 'last_processed_millis': 'int', - 'process_rate_minutes': 'int', 'points_scanned_at_last_query': 'int', 'last_notification_millis': 'int', 'notification_resend_frequency_minutes': 'int', 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'creator_id': 'str', - 'deleted': 'bool' + 'deleted': 'bool', + 'target_info': 'list[TargetInfo]' } attribute_map = { - 'minutes': 'minutes', 'name': 'name', 'id': 'id', 'target': 'target', 'created': 'created', + 'minutes': 'minutes', 'tags': 'tags', 'status': 'status', - 'in_trash': 'inTrash', - 'condition': 'condition', - 'condition_qb_enabled': 'conditionQBEnabled', - 'condition_qb_serialization': 'conditionQBSerialization', + 'event': 'event', + 'updated': 'updated', 'display_expression': 'displayExpression', + 'condition_qb_enabled': 'conditionQBEnabled', 'display_expression_qb_enabled': 'displayExpressionQBEnabled', + 'condition': 'condition', + 'condition_qb_serialization': 'conditionQBSerialization', 'display_expression_qb_serialization': 'displayExpressionQBSerialization', - 'resolve_after_minutes': 'resolveAfterMinutes', - 'snoozed': 'snoozed', - 'event': 'event', - 'failing_host_label_pairs': 'failingHostLabelPairs', - 'updated': 'updated', 'severity': 'severity', + 'failing_host_label_pairs': 'failingHostLabelPairs', + 'in_maintenance_host_label_pairs': 'inMaintenanceHostLabelPairs', + 'process_rate_minutes': 'processRateMinutes', + 'last_processed_millis': 'lastProcessedMillis', + 'update_user_id': 'updateUserId', + 'alerts_last_day': 'alertsLastDay', + 'alerts_last_week': 'alertsLastWeek', + 'alerts_last_month': 'alertsLastMonth', + 'snoozed': 'snoozed', + 'additional_information': 'additionalInformation', + 'in_trash': 'inTrash', + 'resolve_after_minutes': 'resolveAfterMinutes', + 'creator_id': 'creatorId', 'query_failing': 'queryFailing', 'last_failed_time': 'lastFailedTime', 'last_error_message': 'lastErrorMessage', - 'additional_information': 'additionalInformation', 'metrics_used': 'metricsUsed', 'hosts_used': 'hostsUsed', - 'in_maintenance_host_label_pairs': 'inMaintenanceHostLabelPairs', 'active_maintenance_windows': 'activeMaintenanceWindows', - 'update_user_id': 'updateUserId', 'prefiring_host_label_pairs': 'prefiringHostLabelPairs', 'notificants': 'notificants', 'create_user_id': 'createUserId', - 'last_processed_millis': 'lastProcessedMillis', - 'process_rate_minutes': 'processRateMinutes', 'points_scanned_at_last_query': 'pointsScannedAtLastQuery', 'last_notification_millis': 'lastNotificationMillis', 'notification_resend_frequency_minutes': 'notificationResendFrequencyMinutes', 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'deleted': 'deleted' + 'deleted': 'deleted', + 'target_info': 'targetInfo' } - def __init__(self, minutes=None, name=None, id=None, target=None, created=None, tags=None, status=None, in_trash=None, condition=None, condition_qb_enabled=None, condition_qb_serialization=None, display_expression=None, display_expression_qb_enabled=None, display_expression_qb_serialization=None, resolve_after_minutes=None, snoozed=None, event=None, failing_host_label_pairs=None, updated=None, severity=None, query_failing=None, last_failed_time=None, last_error_message=None, additional_information=None, metrics_used=None, hosts_used=None, in_maintenance_host_label_pairs=None, active_maintenance_windows=None, update_user_id=None, prefiring_host_label_pairs=None, notificants=None, create_user_id=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, updater_id=None, creator_id=None, deleted=None): + def __init__(self, name=None, id=None, target=None, created=None, minutes=None, tags=None, status=None, event=None, updated=None, display_expression=None, condition_qb_enabled=None, display_expression_qb_enabled=None, condition=None, condition_qb_serialization=None, display_expression_qb_serialization=None, severity=None, failing_host_label_pairs=None, in_maintenance_host_label_pairs=None, process_rate_minutes=None, last_processed_millis=None, update_user_id=None, alerts_last_day=None, alerts_last_week=None, alerts_last_month=None, snoozed=None, additional_information=None, in_trash=None, resolve_after_minutes=None, creator_id=None, query_failing=None, last_failed_time=None, last_error_message=None, metrics_used=None, hosts_used=None, active_maintenance_windows=None, prefiring_host_label_pairs=None, notificants=None, create_user_id=None, points_scanned_at_last_query=None, last_notification_millis=None, notification_resend_frequency_minutes=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, deleted=None, target_info=None): """ Alert - a model defined in Swagger """ - self._minutes = None self._name = None self._id = None self._target = None self._created = None + self._minutes = None self._tags = None self._status = None - self._in_trash = None - self._condition = None - self._condition_qb_enabled = None - self._condition_qb_serialization = None + self._event = None + self._updated = None self._display_expression = None + self._condition_qb_enabled = None self._display_expression_qb_enabled = None + self._condition = None + self._condition_qb_serialization = None self._display_expression_qb_serialization = None - self._resolve_after_minutes = None - self._snoozed = None - self._event = None - self._failing_host_label_pairs = None - self._updated = None self._severity = None + self._failing_host_label_pairs = None + self._in_maintenance_host_label_pairs = None + self._process_rate_minutes = None + self._last_processed_millis = None + self._update_user_id = None + self._alerts_last_day = None + self._alerts_last_week = None + self._alerts_last_month = None + self._snoozed = None + self._additional_information = None + self._in_trash = None + self._resolve_after_minutes = None + self._creator_id = None self._query_failing = None self._last_failed_time = None self._last_error_message = None - self._additional_information = None self._metrics_used = None self._hosts_used = None - self._in_maintenance_host_label_pairs = None self._active_maintenance_windows = None - self._update_user_id = None self._prefiring_host_label_pairs = None self._notificants = None self._create_user_id = None - self._last_processed_millis = None - self._process_rate_minutes = None self._points_scanned_at_last_query = None self._last_notification_millis = None self._notification_resend_frequency_minutes = None self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._creator_id = None self._deleted = None + self._target_info = None + self.discriminator = None - self.minutes = minutes self.name = name if id is not None: self.id = id self.target = target if created is not None: self.created = created + self.minutes = minutes 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 - 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 event is not None: + self.event = event + if updated is not None: + self.updated = updated 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 resolve_after_minutes is not None: - self.resolve_after_minutes = resolve_after_minutes - if snoozed is not None: - self.snoozed = snoozed - if event is not None: - self.event = event + self.severity = severity if failing_host_label_pairs is not None: self.failing_host_label_pairs = failing_host_label_pairs - if updated is not None: - self.updated = updated - self.severity = severity + if in_maintenance_host_label_pairs is not None: + self.in_maintenance_host_label_pairs = in_maintenance_host_label_pairs + if process_rate_minutes is not None: + self.process_rate_minutes = process_rate_minutes + if last_processed_millis is not None: + self.last_processed_millis = last_processed_millis + if update_user_id is not None: + self.update_user_id = update_user_id + 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 additional_information is not None: + self.additional_information = additional_information + if in_trash is not None: + self.in_trash = in_trash + if resolve_after_minutes is not None: + self.resolve_after_minutes = resolve_after_minutes + if creator_id is not None: + self.creator_id = creator_id 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 additional_information is not None: - self.additional_information = additional_information if metrics_used is not None: self.metrics_used = metrics_used if hosts_used is not None: self.hosts_used = hosts_used - 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 update_user_id is not None: - self.update_user_id = update_user_id 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 create_user_id is not None: self.create_user_id = create_user_id - 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 last_notification_millis is not None: @@ -243,35 +264,10 @@ def __init__(self, minutes=None, name=None, id=None, target=None, created=None, self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id - if creator_id is not None: - self.creator_id = creator_id if deleted is not None: self.deleted = deleted - - @property - def minutes(self): - """ - Gets the minutes of this Alert. - The number of consecutive minutes that a series matching the condition query must evaluate to \"true\" (non-zero value) before the alert fires - - :return: The minutes of this Alert. - :rtype: int - """ - return self._minutes - - @minutes.setter - def minutes(self, minutes): - """ - Sets the minutes of this Alert. - The number of consecutive minutes that a series matching the condition query must evaluate to \"true\" (non-zero value) before the alert fires - - :param minutes: The minutes of this Alert. - :type: int - """ - if minutes is None: - raise ValueError("Invalid value for `minutes`, must not be `None`") - - self._minutes = minutes + if target_info is not None: + self.target_info = target_info @property def name(self): @@ -365,6 +361,31 @@ def created(self, created): self._created = created + @property + def minutes(self): + """ + Gets the minutes of this Alert. + The number of consecutive minutes that a series matching the condition query must evaluate to \"true\" (non-zero value) before the alert fires + + :return: The minutes of this Alert. + :rtype: int + """ + return self._minutes + + @minutes.setter + def minutes(self, minutes): + """ + Sets the minutes of this Alert. + The number of consecutive minutes that a series matching the condition query must evaluate to \"true\" (non-zero value) before the alert fires + + :param minutes: The minutes of this Alert. + :type: int + """ + if minutes is None: + raise ValueError("Invalid value for `minutes`, must not be `None`") + + self._minutes = minutes + @property def tags(self): """ @@ -390,7 +411,7 @@ def tags(self, tags): def status(self): """ Gets the status of this Alert. - Lists the current state of the alert. Can be one or more of: FIRING, SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH + Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA :return: The status of this Alert. :rtype: list[str] @@ -401,7 +422,7 @@ def status(self): def status(self, status): """ Sets the status of this Alert. - Lists the current state of the alert. Can be one or more of: FIRING, SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH + Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA :param status: The status of this Alert. :type: list[str] @@ -410,53 +431,74 @@ def status(self, status): self._status = status @property - def in_trash(self): + def event(self): """ - Gets the in_trash of this Alert. + Gets the event of this Alert. - :return: The in_trash of this Alert. - :rtype: bool + :return: The event of this Alert. + :rtype: Event """ - return self._in_trash + return self._event - @in_trash.setter - def in_trash(self, in_trash): + @event.setter + def event(self, event): """ - Sets the in_trash of this Alert. + Sets the event of this Alert. - :param in_trash: The in_trash of this Alert. - :type: bool + :param event: The event of this Alert. + :type: Event """ - self._in_trash = in_trash + self._event = event @property - def condition(self): + def updated(self): """ - Gets 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 + Gets the updated of this Alert. + When the alert was last updated, in epoch millis - :return: The condition of this Alert. - :rtype: str + :return: The updated of this Alert. + :rtype: int """ - return self._condition + return self._updated - @condition.setter - def condition(self, condition): + @updated.setter + def updated(self, updated): """ - 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 + Sets the updated of this Alert. + When the alert was last updated, in epoch millis - :param condition: The condition of this Alert. - :type: str + :param updated: The updated of this Alert. + :type: int """ - if condition is None: - raise ValueError("Invalid value for `condition`, must not be `None`") - self._condition = condition + self._updated = updated @property - def condition_qb_enabled(self): + def display_expression(self): + """ + Gets 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 + + :return: The display_expression of this Alert. + :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 + + :param display_expression: The display_expression of this Alert. + :type: str + """ + + self._display_expression = display_expression + + @property + def condition_qb_enabled(self): """ Gets the condition_qb_enabled of this Alert. Whether the condition query was created using the Query Builder. Default false @@ -478,6 +520,54 @@ def condition_qb_enabled(self, condition_qb_enabled): self._condition_qb_enabled = condition_qb_enabled + @property + def display_expression_qb_enabled(self): + """ + Gets the display_expression_qb_enabled of this Alert. + Whether the display expression query was created using the Query Builder. Default false + + :return: The display_expression_qb_enabled of this Alert. + :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 + + :param display_expression_qb_enabled: The display_expression_qb_enabled of this Alert. + :type: bool + """ + + self._display_expression_qb_enabled = display_expression_qb_enabled + + @property + def condition(self): + """ + Gets 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 + + :return: The condition of this Alert. + :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 + + :param condition: The condition of this Alert. + :type: str + """ + if condition is None: + raise ValueError("Invalid value for `condition`, must not be `None`") + + self._condition = condition + @property def condition_qb_serialization(self): """ @@ -502,96 +592,236 @@ def condition_qb_serialization(self, condition_qb_serialization): self._condition_qb_serialization = condition_qb_serialization @property - def display_expression(self): + def display_expression_qb_serialization(self): """ - Gets 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 + Gets 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 - :return: The display_expression of this Alert. + :return: The display_expression_qb_serialization of this Alert. :rtype: str """ - return self._display_expression + return self._display_expression_qb_serialization - @display_expression.setter - def display_expression(self, display_expression): + @display_expression_qb_serialization.setter + def display_expression_qb_serialization(self, display_expression_qb_serialization): """ - 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 + 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 - :param display_expression: The display_expression of this Alert. + :param display_expression_qb_serialization: The display_expression_qb_serialization of this Alert. :type: str """ - self._display_expression = display_expression + self._display_expression_qb_serialization = display_expression_qb_serialization @property - def display_expression_qb_enabled(self): + def severity(self): """ - Gets the display_expression_qb_enabled of this Alert. - Whether the display expression query was created using the Query Builder. Default false + Gets the severity of this Alert. + Severity of the alert - :return: The display_expression_qb_enabled of this Alert. - :rtype: bool + :return: The severity of this Alert. + :rtype: str """ - return self._display_expression_qb_enabled + return self._severity - @display_expression_qb_enabled.setter - def display_expression_qb_enabled(self, display_expression_qb_enabled): + @severity.setter + def severity(self, severity): """ - Sets the display_expression_qb_enabled of this Alert. - Whether the display expression query was created using the Query Builder. Default false + Sets the severity of this Alert. + Severity of the alert - :param display_expression_qb_enabled: The display_expression_qb_enabled of this Alert. - :type: bool + :param severity: The severity of this Alert. + :type: str """ + if severity is None: + raise ValueError("Invalid value for `severity`, must not be `None`") + allowed_values = ["INFO", "SMOKE", "WARN", "SEVERE"] + if severity not in allowed_values: + raise ValueError( + "Invalid value for `severity` ({0}), must be one of {1}" + .format(severity, allowed_values) + ) - self._display_expression_qb_enabled = display_expression_qb_enabled + self._severity = severity @property - def display_expression_qb_serialization(self): + def failing_host_label_pairs(self): """ - Gets 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 + Gets the failing_host_label_pairs of this Alert. + Failing host/metric pairs - :return: The display_expression_qb_serialization of this Alert. + :return: The failing_host_label_pairs of this Alert. + :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 Alert. + Failing host/metric pairs + + :param failing_host_label_pairs: The failing_host_label_pairs of this Alert. + :type: list[SourceLabelPair] + """ + + self._failing_host_label_pairs = failing_host_label_pairs + + @property + def in_maintenance_host_label_pairs(self): + """ + Gets the in_maintenance_host_label_pairs of this Alert. + Lists the sources that will not be checked for this alert, due to matching a maintenance window + + :return: The in_maintenance_host_label_pairs of this Alert. + :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 Alert. + Lists the sources that will not be checked for this alert, due to matching a maintenance window + + :param in_maintenance_host_label_pairs: The in_maintenance_host_label_pairs of this Alert. + :type: list[SourceLabelPair] + """ + + self._in_maintenance_host_label_pairs = in_maintenance_host_label_pairs + + @property + def process_rate_minutes(self): + """ + Gets the process_rate_minutes of this Alert. + The interval between checks for this alert, in minutes. Defaults to 1 minute + + :return: The process_rate_minutes of this Alert. + :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 Alert. + The interval between checks for this alert, in minutes. Defaults to 1 minute + + :param process_rate_minutes: The process_rate_minutes of this Alert. + :type: int + """ + + self._process_rate_minutes = process_rate_minutes + + @property + def last_processed_millis(self): + """ + Gets the last_processed_millis of this Alert. + The time when this alert was last checked, in epoch millis + + :return: The last_processed_millis of this Alert. + :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 Alert. + The time when this alert was last checked, in epoch millis + + :param last_processed_millis: The last_processed_millis of this Alert. + :type: int + """ + + self._last_processed_millis = last_processed_millis + + @property + def update_user_id(self): + """ + Gets the update_user_id of this Alert. + The user that last updated this alert + + :return: The update_user_id of this Alert. :rtype: str """ - return self._display_expression_qb_serialization + return self._update_user_id - @display_expression_qb_serialization.setter - def display_expression_qb_serialization(self, display_expression_qb_serialization): + @update_user_id.setter + def update_user_id(self, update_user_id): """ - 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 + Sets the update_user_id of this Alert. + The user that last updated this alert - :param display_expression_qb_serialization: The display_expression_qb_serialization of this Alert. + :param update_user_id: The update_user_id of this Alert. :type: str """ - self._display_expression_qb_serialization = display_expression_qb_serialization + self._update_user_id = update_user_id + + @property + def alerts_last_day(self): + """ + Gets the alerts_last_day of this Alert. + + :return: The alerts_last_day of this Alert. + :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. + :type: int + """ + + self._alerts_last_day = alerts_last_day + + @property + def alerts_last_week(self): + """ + Gets the alerts_last_week of this Alert. + + :return: The alerts_last_week of this Alert. + :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. + :type: int + """ + + self._alerts_last_week = alerts_last_week @property - def resolve_after_minutes(self): + def alerts_last_month(self): """ - Gets the resolve_after_minutes 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\" + Gets the alerts_last_month of this Alert. - :return: The resolve_after_minutes of this Alert. + :return: The alerts_last_month of this Alert. :rtype: int """ - return self._resolve_after_minutes + return self._alerts_last_month - @resolve_after_minutes.setter - def resolve_after_minutes(self, resolve_after_minutes): + @alerts_last_month.setter + def alerts_last_month(self, alerts_last_month): """ - Sets the resolve_after_minutes 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\" + Sets the alerts_last_month of this Alert. - :param resolve_after_minutes: The resolve_after_minutes of this Alert. + :param alerts_last_month: The alerts_last_month of this Alert. :type: int """ - self._resolve_after_minutes = resolve_after_minutes + self._alerts_last_month = alerts_last_month @property def snoozed(self): @@ -617,104 +847,92 @@ def snoozed(self, snoozed): self._snoozed = snoozed @property - def event(self): + def additional_information(self): """ - Gets the event of this Alert. - The event associated with the firing of the alert. Can be null if the alert has never fired. If the alert is not currently firing, the event holds the last known firing of the alert + Gets the additional_information of this Alert. + User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc - :return: The event of this Alert. - :rtype: Event + :return: The additional_information of this Alert. + :rtype: str """ - return self._event + return self._additional_information - @event.setter - def event(self, event): + @additional_information.setter + def additional_information(self, additional_information): """ - Sets the event of this Alert. - The event associated with the firing of the alert. Can be null if the alert has never fired. If the alert is not currently firing, the event holds the last known firing of the alert + Sets the additional_information of this Alert. + User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc - :param event: The event of this Alert. - :type: Event + :param additional_information: The additional_information of this Alert. + :type: str """ - self._event = event + self._additional_information = additional_information @property - def failing_host_label_pairs(self): + def in_trash(self): """ - Gets the failing_host_label_pairs of this Alert. - Failing host/metric pairs + Gets the in_trash of this Alert. - :return: The failing_host_label_pairs of this Alert. - :rtype: list[SourceLabelPair] + :return: The in_trash of this Alert. + :rtype: bool """ - return self._failing_host_label_pairs + return self._in_trash - @failing_host_label_pairs.setter - def failing_host_label_pairs(self, failing_host_label_pairs): + @in_trash.setter + def in_trash(self, in_trash): """ - Sets the failing_host_label_pairs of this Alert. - Failing host/metric pairs + Sets the in_trash of this Alert. - :param failing_host_label_pairs: The failing_host_label_pairs of this Alert. - :type: list[SourceLabelPair] + :param in_trash: The in_trash of this Alert. + :type: bool """ - self._failing_host_label_pairs = failing_host_label_pairs + self._in_trash = in_trash @property - def updated(self): + def resolve_after_minutes(self): """ - Gets the updated of this Alert. - When the alert was last updated, in epoch millis + Gets the resolve_after_minutes 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\" - :return: The updated of this Alert. + :return: The resolve_after_minutes of this Alert. :rtype: int """ - return self._updated + return self._resolve_after_minutes - @updated.setter - def updated(self, updated): + @resolve_after_minutes.setter + def resolve_after_minutes(self, resolve_after_minutes): """ - Sets the updated of this Alert. - When the alert was last updated, in epoch millis + Sets the resolve_after_minutes 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\" - :param updated: The updated of this Alert. + :param resolve_after_minutes: The resolve_after_minutes of this Alert. :type: int """ - self._updated = updated + self._resolve_after_minutes = resolve_after_minutes @property - def severity(self): + def creator_id(self): """ - Gets the severity of this Alert. - Severity of the alert + Gets the creator_id of this Alert. - :return: The severity of this Alert. + :return: The creator_id of this Alert. :rtype: str """ - return self._severity + return self._creator_id - @severity.setter - def severity(self, severity): + @creator_id.setter + def creator_id(self, creator_id): """ - Sets the severity of this Alert. - Severity of the alert + Sets the creator_id of this Alert. - :param severity: The severity of this Alert. + :param creator_id: The creator_id of this Alert. :type: str """ - if severity is None: - raise ValueError("Invalid value for `severity`, must not be `None`") - allowed_values = ["INFO", "SMOKE", "WARN", "SEVERE"] - if severity not in allowed_values: - raise ValueError( - "Invalid value for `severity` ({0}), must be one of {1}" - .format(severity, allowed_values) - ) - self._severity = severity + self._creator_id = creator_id @property def query_failing(self): @@ -785,29 +1003,6 @@ def last_error_message(self, last_error_message): self._last_error_message = last_error_message - @property - def additional_information(self): - """ - Gets the additional_information of this Alert. - User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc - - :return: The additional_information of this Alert. - :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 - - :param additional_information: The additional_information of this Alert. - :type: str - """ - - self._additional_information = additional_information - @property def metrics_used(self): """ @@ -854,29 +1049,6 @@ def hosts_used(self, hosts_used): self._hosts_used = hosts_used - @property - def in_maintenance_host_label_pairs(self): - """ - Gets the in_maintenance_host_label_pairs of this Alert. - Lists the sources that will not be checked for this alert, due to matching a maintenance window - - :return: The in_maintenance_host_label_pairs of this Alert. - :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 Alert. - Lists the sources that will not be checked for this alert, due to matching a maintenance window - - :param in_maintenance_host_label_pairs: The in_maintenance_host_label_pairs of this Alert. - :type: list[SourceLabelPair] - """ - - self._in_maintenance_host_label_pairs = in_maintenance_host_label_pairs - @property def active_maintenance_windows(self): """ @@ -900,29 +1072,6 @@ def active_maintenance_windows(self, active_maintenance_windows): self._active_maintenance_windows = active_maintenance_windows - @property - def update_user_id(self): - """ - Gets the update_user_id of this Alert. - The user that last updated this alert - - :return: The update_user_id of this Alert. - :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 Alert. - The user that last updated this alert - - :param update_user_id: The update_user_id of this Alert. - :type: str - """ - - self._update_user_id = update_user_id - @property def prefiring_host_label_pairs(self): """ @@ -990,52 +1139,6 @@ def create_user_id(self, create_user_id): self._create_user_id = create_user_id - @property - def last_processed_millis(self): - """ - Gets the last_processed_millis of this Alert. - The time when this alert was last checked, in epoch millis - - :return: The last_processed_millis of this Alert. - :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 Alert. - The time when this alert was last checked, in epoch millis - - :param last_processed_millis: The last_processed_millis of this Alert. - :type: int - """ - - self._last_processed_millis = last_processed_millis - - @property - def process_rate_minutes(self): - """ - Gets the process_rate_minutes of this Alert. - The interval between checks for this alert, in minutes. Defaults to 1 minute - - :return: The process_rate_minutes of this Alert. - :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 Alert. - The interval between checks for this alert, in minutes. Defaults to 1 minute - - :param process_rate_minutes: The process_rate_minutes of this Alert. - :type: int - """ - - self._process_rate_minutes = process_rate_minutes - @property def points_scanned_at_last_query(self): """ @@ -1168,27 +1271,6 @@ def updater_id(self, updater_id): self._updater_id = updater_id - @property - def creator_id(self): - """ - Gets the creator_id of this Alert. - - :return: The creator_id of this Alert. - :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. - :type: str - """ - - self._creator_id = creator_id - @property def deleted(self): """ @@ -1210,6 +1292,29 @@ def deleted(self, deleted): self._deleted = deleted + @property + def target_info(self): + """ + Gets the target_info of this Alert. + List of alert targets display information that includes name, id and type. + + :return: The target_info of this Alert. + :rtype: list[TargetInfo] + """ + return self._target_info + + @target_info.setter + def target_info(self, target_info): + """ + Sets the target_info of this Alert. + List of alert targets display information that includes name, id and type. + + :param target_info: The target_info of this Alert. + :type: list[TargetInfo] + """ + + self._target_info = target_info + def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/avro_backed_standardized_dto.py b/wavefront_api_client/models/avro_backed_standardized_dto.py index 556ea79..66c3ddd 100644 --- a/wavefront_api_client/models/avro_backed_standardized_dto.py +++ b/wavefront_api_client/models/avro_backed_standardized_dto.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -32,44 +32,45 @@ class AvroBackedStandardizedDTO(object): """ swagger_types = { 'id': 'str', + 'creator_id': 'str', 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'creator_id': 'str', 'deleted': 'bool' } attribute_map = { 'id': 'id', + 'creator_id': 'creatorId', 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'creator_id': 'creatorId', 'deleted': 'deleted' } - def __init__(self, id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, deleted=None): + def __init__(self, id=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, deleted=None): """ AvroBackedStandardizedDTO - a model defined in Swagger """ self._id = None + self._creator_id = None self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._creator_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 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 creator_id is not None: - self.creator_id = creator_id if deleted is not None: self.deleted = deleted @@ -94,6 +95,27 @@ def id(self, id): self._id = id + @property + def creator_id(self): + """ + Gets the creator_id of this AvroBackedStandardizedDTO. + + :return: The creator_id of this AvroBackedStandardizedDTO. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """ + Sets the creator_id of this AvroBackedStandardizedDTO. + + :param creator_id: The creator_id of this AvroBackedStandardizedDTO. + :type: str + """ + + self._creator_id = creator_id + @property def created_epoch_millis(self): """ @@ -157,27 +179,6 @@ def updater_id(self, updater_id): self._updater_id = updater_id - @property - def creator_id(self): - """ - Gets the creator_id of this AvroBackedStandardizedDTO. - - :return: The creator_id of this AvroBackedStandardizedDTO. - :rtype: str - """ - return self._creator_id - - @creator_id.setter - def creator_id(self, creator_id): - """ - Sets the creator_id of this AvroBackedStandardizedDTO. - - :param creator_id: The creator_id of this AvroBackedStandardizedDTO. - :type: str - """ - - self._creator_id = creator_id - @property def deleted(self): """ diff --git a/wavefront_api_client/models/aws_base_credentials.py b/wavefront_api_client/models/aws_base_credentials.py index 6240e32..12a5d18 100644 --- a/wavefront_api_client/models/aws_base_credentials.py +++ b/wavefront_api_client/models/aws_base_credentials.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,6 +47,7 @@ def __init__(self, role_arn=None, external_id=None): self._role_arn = None self._external_id = None + self.discriminator = None self.role_arn = role_arn self.external_id = external_id diff --git a/wavefront_api_client/models/chart.py b/wavefront_api_client/models/chart.py index 433456a..10aa2ca 100644 --- a/wavefront_api_client/models/chart.py +++ b/wavefront_api_client/models/chart.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -34,12 +34,12 @@ class Chart(object): 'units': 'str', 'name': 'str', 'description': 'str', + 'base': 'int', + 'chart_settings': 'ChartSettings', 'sources': 'list[ChartSourceQuery]', 'no_default_events': 'bool', 'interpolate_points': 'bool', - 'chart_settings': 'ChartSettings', 'summarization': 'str', - 'base': 'int', 'include_obsolete_metrics': 'bool' } @@ -47,16 +47,16 @@ class Chart(object): 'units': 'units', 'name': 'name', 'description': 'description', + 'base': 'base', + 'chart_settings': 'chartSettings', 'sources': 'sources', 'no_default_events': 'noDefaultEvents', 'interpolate_points': 'interpolatePoints', - 'chart_settings': 'chartSettings', 'summarization': 'summarization', - 'base': 'base', 'include_obsolete_metrics': 'includeObsoleteMetrics' } - def __init__(self, units=None, name=None, description=None, sources=None, no_default_events=None, interpolate_points=None, chart_settings=None, summarization=None, base=None, include_obsolete_metrics=None): + def __init__(self, units=None, name=None, description=None, base=None, chart_settings=None, sources=None, no_default_events=None, interpolate_points=None, summarization=None, include_obsolete_metrics=None): """ Chart - a model defined in Swagger """ @@ -64,30 +64,31 @@ def __init__(self, units=None, name=None, description=None, sources=None, no_def self._units = None self._name = None self._description = None + self._base = None + self._chart_settings = None self._sources = None self._no_default_events = None self._interpolate_points = None - self._chart_settings = None self._summarization = None - self._base = None self._include_obsolete_metrics = None + self.discriminator = None if units is not None: self.units = units self.name = name if description is not None: self.description = description + if base is not None: + self.base = base + if chart_settings is not None: + self.chart_settings = chart_settings self.sources = sources if no_default_events is not None: self.no_default_events = no_default_events if interpolate_points is not None: self.interpolate_points = interpolate_points - if chart_settings is not None: - self.chart_settings = chart_settings if summarization is not None: self.summarization = summarization - if base is not None: - self.base = base if include_obsolete_metrics is not None: self.include_obsolete_metrics = include_obsolete_metrics @@ -162,6 +163,50 @@ def description(self, description): self._description = description + @property + def base(self): + """ + Gets the base of this Chart. + If the chart has a log-scale Y-axis, the base for the logarithms + + :return: The base of this Chart. + :rtype: int + """ + return self._base + + @base.setter + def base(self, base): + """ + Sets the base of this Chart. + If the chart has a log-scale Y-axis, the base for the logarithms + + :param base: The base of this Chart. + :type: int + """ + + self._base = base + + @property + def chart_settings(self): + """ + Gets the chart_settings of this Chart. + + :return: The chart_settings of this Chart. + :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. + :type: ChartSettings + """ + + self._chart_settings = chart_settings + @property def sources(self): """ @@ -233,29 +278,6 @@ def interpolate_points(self, interpolate_points): self._interpolate_points = interpolate_points - @property - def chart_settings(self): - """ - Gets the chart_settings of this Chart. - Chart settings - - :return: The chart_settings of this Chart. - :rtype: ChartSettings - """ - return self._chart_settings - - @chart_settings.setter - def chart_settings(self, chart_settings): - """ - Sets the chart_settings of this Chart. - Chart settings - - :param chart_settings: The chart_settings of this Chart. - :type: ChartSettings - """ - - self._chart_settings = chart_settings - @property def summarization(self): """ @@ -285,29 +307,6 @@ def summarization(self, summarization): self._summarization = summarization - @property - def base(self): - """ - Gets the base of this Chart. - If the chart has a log-scale Y-axis, the base for the logarithms - - :return: The base of this Chart. - :rtype: int - """ - return self._base - - @base.setter - def base(self, base): - """ - Sets the base of this Chart. - If the chart has a log-scale Y-axis, the base for the logarithms - - :param base: The base of this Chart. - :type: int - """ - - self._base = base - @property def include_obsolete_metrics(self): """ diff --git a/wavefront_api_client/models/chart_settings.py b/wavefront_api_client/models/chart_settings.py index ab2f1bb..db9361b 100644 --- a/wavefront_api_client/models/chart_settings.py +++ b/wavefront_api_client/models/chart_settings.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -32,43 +32,48 @@ class ChartSettings(object): """ swagger_types = { 'type': 'str', - 'max': 'float', - 'y1_units': 'str', 'min': 'float', - 'y1_max': 'float', - 'y1_min': 'float', - 'window_size': 'int', - 'y0_scale_si_by1024': 'bool', - 'y1_scale_si_by1024': 'bool', - 'y0_unit_autoscaling': 'bool', - 'y1_unit_autoscaling': 'bool', - 'expected_data_spacing': 'int', + 'max': 'float', + 'plain_markdown_content': 'str', 'line_type': 'str', - 'group_by_source': 'bool', 'stack_type': 'str', - 'ymax': 'float', - 'ymin': 'float', - 'xmax': 'float', - 'xmin': 'float', - 'time_based_coloring': 'bool', - 'custom_tags': 'list[str]', - 'sort_values_descending': 'bool', + 'expected_data_spacing': 'int', 'windowing': 'str', + 'window_size': 'int', 'show_hosts': 'bool', 'show_labels': 'bool', 'show_raw_values': 'bool', - 'num_tags': 'int', + 'auto_column_tags': 'bool', + 'column_tags': 'str', 'tag_mode': 'str', + 'num_tags': 'int', + 'custom_tags': 'list[str]', + 'group_by_source': '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_enabled': 'bool', + 'fixed_legend_use_raw_stats': 'bool', 'fixed_legend_position': 'str', 'fixed_legend_display_stats': 'list[str]', - 'fixed_legend_filter_field': 'str', - 'fixed_legend_filter_limit': 'int', 'fixed_legend_filter_sort': 'str', - 'fixed_legend_use_raw_stats': 'bool', - 'invert_dynamic_legend_hover_control': 'bool', + '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_display_color': 'str', + 'sparkline_display_vertical_position': 'str', 'sparkline_display_horizontal_position': 'str', 'sparkline_display_font_size': 'str', 'sparkline_display_prefix': 'str', @@ -78,58 +83,57 @@ class ChartSettings(object): 'sparkline_fill_color': '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_text_map_text': 'list[str]', - 'sparkline_value_text_map_thresholds': 'list[float]', - 'markdown_content': 'str', - 'plain_markdown_content': 'str', - 'fixed_legend_hide_label': 'bool', - 'sparkline_display_vertical_position': 'str', - 'sparkline_value_color_map_values': 'list[int]', - 'auto_column_tags': 'bool', - 'column_tags': 'str' + 'sparkline_value_text_map_thresholds': 'list[float]' } attribute_map = { 'type': 'type', - 'max': 'max', - 'y1_units': 'y1Units', 'min': 'min', - 'y1_max': 'y1Max', - 'y1_min': 'y1Min', - 'window_size': 'windowSize', - 'y0_scale_si_by1024': 'y0ScaleSIBy1024', - 'y1_scale_si_by1024': 'y1ScaleSIBy1024', - 'y0_unit_autoscaling': 'y0UnitAutoscaling', - 'y1_unit_autoscaling': 'y1UnitAutoscaling', - 'expected_data_spacing': 'expectedDataSpacing', + 'max': 'max', + 'plain_markdown_content': 'plainMarkdownContent', 'line_type': 'lineType', - 'group_by_source': 'groupBySource', 'stack_type': 'stackType', - 'ymax': 'ymax', - 'ymin': 'ymin', - 'xmax': 'xmax', - 'xmin': 'xmin', - 'time_based_coloring': 'timeBasedColoring', - 'custom_tags': 'customTags', - 'sort_values_descending': 'sortValuesDescending', + 'expected_data_spacing': 'expectedDataSpacing', 'windowing': 'windowing', + 'window_size': 'windowSize', 'show_hosts': 'showHosts', 'show_labels': 'showLabels', 'show_raw_values': 'showRawValues', - 'num_tags': 'numTags', + 'auto_column_tags': 'autoColumnTags', + 'column_tags': 'columnTags', 'tag_mode': 'tagMode', + 'num_tags': 'numTags', + 'custom_tags': 'customTags', + 'group_by_source': 'groupBySource', + '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_enabled': 'fixedLegendEnabled', + 'fixed_legend_use_raw_stats': 'fixedLegendUseRawStats', 'fixed_legend_position': 'fixedLegendPosition', 'fixed_legend_display_stats': 'fixedLegendDisplayStats', - 'fixed_legend_filter_field': 'fixedLegendFilterField', - 'fixed_legend_filter_limit': 'fixedLegendFilterLimit', 'fixed_legend_filter_sort': 'fixedLegendFilterSort', - 'fixed_legend_use_raw_stats': 'fixedLegendUseRawStats', - 'invert_dynamic_legend_hover_control': 'invertDynamicLegendHoverControl', + '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_display_color': 'sparklineDisplayColor', + 'sparkline_display_vertical_position': 'sparklineDisplayVerticalPosition', 'sparkline_display_horizontal_position': 'sparklineDisplayHorizontalPosition', 'sparkline_display_font_size': 'sparklineDisplayFontSize', 'sparkline_display_prefix': 'sparklineDisplayPrefix', @@ -139,62 +143,61 @@ class ChartSettings(object): 'sparkline_fill_color': 'sparklineFillColor', '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_text_map_text': 'sparklineValueTextMapText', - 'sparkline_value_text_map_thresholds': 'sparklineValueTextMapThresholds', - 'markdown_content': 'markdownContent', - 'plain_markdown_content': 'plainMarkdownContent', - 'fixed_legend_hide_label': 'fixedLegendHideLabel', - 'sparkline_display_vertical_position': 'sparklineDisplayVerticalPosition', - 'sparkline_value_color_map_values': 'sparklineValueColorMapValues', - 'auto_column_tags': 'autoColumnTags', - 'column_tags': 'columnTags' + 'sparkline_value_text_map_thresholds': 'sparklineValueTextMapThresholds' } - def __init__(self, type=None, max=None, y1_units=None, min=None, y1_max=None, y1_min=None, window_size=None, y0_scale_si_by1024=None, y1_scale_si_by1024=None, y0_unit_autoscaling=None, y1_unit_autoscaling=None, expected_data_spacing=None, line_type=None, group_by_source=None, stack_type=None, ymax=None, ymin=None, xmax=None, xmin=None, time_based_coloring=None, custom_tags=None, sort_values_descending=None, windowing=None, show_hosts=None, show_labels=None, show_raw_values=None, num_tags=None, tag_mode=None, fixed_legend_enabled=None, fixed_legend_position=None, fixed_legend_display_stats=None, fixed_legend_filter_field=None, fixed_legend_filter_limit=None, fixed_legend_filter_sort=None, fixed_legend_use_raw_stats=None, invert_dynamic_legend_hover_control=None, sparkline_display_value_type=None, sparkline_display_color=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_apply_to=None, sparkline_decimal_precision=None, sparkline_value_text_map_text=None, sparkline_value_text_map_thresholds=None, markdown_content=None, plain_markdown_content=None, fixed_legend_hide_label=None, sparkline_display_vertical_position=None, sparkline_value_color_map_values=None, auto_column_tags=None, column_tags=None): + def __init__(self, type=None, min=None, max=None, plain_markdown_content=None, line_type=None, stack_type=None, expected_data_spacing=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_enabled=None, fixed_legend_use_raw_stats=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): """ ChartSettings - a model defined in Swagger """ self._type = None - self._max = None - self._y1_units = None self._min = None - self._y1_max = None - self._y1_min = None - self._window_size = None - self._y0_scale_si_by1024 = None - self._y1_scale_si_by1024 = None - self._y0_unit_autoscaling = None - self._y1_unit_autoscaling = None - self._expected_data_spacing = None + self._max = None + self._plain_markdown_content = None self._line_type = None - self._group_by_source = None self._stack_type = None - self._ymax = None - self._ymin = None - self._xmax = None - self._xmin = None - self._time_based_coloring = None - self._custom_tags = None - self._sort_values_descending = None + self._expected_data_spacing = None self._windowing = None + self._window_size = None self._show_hosts = None self._show_labels = None self._show_raw_values = None - self._num_tags = 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._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_enabled = None + self._fixed_legend_use_raw_stats = None self._fixed_legend_position = None self._fixed_legend_display_stats = None - self._fixed_legend_filter_field = None - self._fixed_legend_filter_limit = None self._fixed_legend_filter_sort = None - self._fixed_legend_use_raw_stats = None - self._invert_dynamic_legend_hover_control = 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_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 @@ -204,93 +207,98 @@ def __init__(self, type=None, max=None, y1_units=None, min=None, y1_max=None, y1 self._sparkline_fill_color = 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_text_map_text = None self._sparkline_value_text_map_thresholds = None - self._markdown_content = None - self._plain_markdown_content = None - self._fixed_legend_hide_label = None - self._sparkline_display_vertical_position = None - self._sparkline_value_color_map_values = None - self._auto_column_tags = None - self._column_tags = None + self.discriminator = None self.type = type - if max is not None: - self.max = max - if y1_units is not None: - self.y1_units = y1_units if min is not None: self.min = min - if y1_max is not None: - self.y1_max = y1_max - if y1_min is not None: - self.y1_min = y1_min - if window_size is not None: - self.window_size = window_size - 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 expected_data_spacing is not None: - self.expected_data_spacing = expected_data_spacing + if max is not None: + self.max = max + if plain_markdown_content is not None: + self.plain_markdown_content = plain_markdown_content if line_type is not None: self.line_type = line_type - if group_by_source is not None: - self.group_by_source = group_by_source if stack_type is not None: self.stack_type = stack_type - if ymax is not None: - self.ymax = ymax - if ymin is not None: - self.ymin = ymin - if xmax is not None: - self.xmax = xmax - if xmin is not None: - self.xmin = xmin - if time_based_coloring is not None: - self.time_based_coloring = time_based_coloring - if custom_tags is not None: - self.custom_tags = custom_tags - if sort_values_descending is not None: - self.sort_values_descending = sort_values_descending + if expected_data_spacing is not None: + self.expected_data_spacing = expected_data_spacing if windowing is not None: self.windowing = windowing + if window_size is not None: + self.window_size = window_size 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 num_tags is not None: - self.num_tags = num_tags + 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 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_enabled is not None: self.fixed_legend_enabled = fixed_legend_enabled + if fixed_legend_use_raw_stats is not None: + self.fixed_legend_use_raw_stats = fixed_legend_use_raw_stats 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_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_use_raw_stats is not None: - self.fixed_legend_use_raw_stats = fixed_legend_use_raw_stats - if invert_dynamic_legend_hover_control is not None: - self.invert_dynamic_legend_hover_control = invert_dynamic_legend_hover_control - if sparkline_display_value_type is not None: - self.sparkline_display_value_type = sparkline_display_value_type + 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_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: @@ -309,6 +317,8 @@ def __init__(self, type=None, max=None, y1_units=None, min=None, y1_max=None, y1 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: @@ -317,20 +327,6 @@ def __init__(self, type=None, max=None, y1_units=None, min=None, y1_max=None, y1 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 markdown_content is not None: - self.markdown_content = markdown_content - if plain_markdown_content is not None: - self.plain_markdown_content = plain_markdown_content - if fixed_legend_hide_label is not None: - self.fixed_legend_hide_label = fixed_legend_hide_label - if sparkline_display_vertical_position is not None: - self.sparkline_display_vertical_position = sparkline_display_vertical_position - if sparkline_value_color_map_values is not None: - self.sparkline_value_color_map_values = sparkline_value_color_map_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 @property def type(self): @@ -363,52 +359,6 @@ def type(self, type): self._type = type - @property - def max(self): - """ - Gets the max of this ChartSettings. - Max value of Y-axis. Set to null or leave blank for auto - - :return: The max of this ChartSettings. - :rtype: float - """ - return self._max - - @max.setter - def max(self, max): - """ - Sets the max of this ChartSettings. - Max value of Y-axis. Set to null or leave blank for auto - - :param max: The max of this ChartSettings. - :type: float - """ - - self._max = max - - @property - def y1_units(self): - """ - Gets the y1_units of this ChartSettings. - For plots with multiple Y-axes, units for right-side Y-axis - - :return: The y1_units of this ChartSettings. - :rtype: str - """ - return self._y1_units - - @y1_units.setter - def y1_units(self, y1_units): - """ - Sets the y1_units of this ChartSettings. - For plots with multiple Y-axes, units for right-side Y-axis - - :param y1_units: The y1_units of this ChartSettings. - :type: str - """ - - self._y1_units = y1_units - @property def min(self): """ @@ -433,165 +383,108 @@ def min(self, min): self._min = min @property - def y1_max(self): - """ - Gets the y1_max of this ChartSettings. - For plots with multiple Y-axes, max value for right-side Y-axis. Set null for auto - - :return: The y1_max of this ChartSettings. - :rtype: float - """ - return self._y1_max - - @y1_max.setter - def y1_max(self, y1_max): - """ - Sets the y1_max of this ChartSettings. - For plots with multiple Y-axes, max value for right-side Y-axis. Set null for auto - - :param y1_max: The y1_max of this ChartSettings. - :type: float - """ - - self._y1_max = y1_max - - @property - def y1_min(self): + def max(self): """ - Gets the y1_min of this ChartSettings. - For plots with multiple Y-axes, min value for right-side Y-axis. Set null for auto + Gets the max of this ChartSettings. + Max value of Y-axis. Set to null or leave blank for auto - :return: The y1_min of this ChartSettings. + :return: The max of this ChartSettings. :rtype: float """ - return self._y1_min + return self._max - @y1_min.setter - def y1_min(self, y1_min): + @max.setter + def max(self, max): """ - Sets the y1_min of this ChartSettings. - For plots with multiple Y-axes, min value for right-side Y-axis. Set null for auto + Sets the max of this ChartSettings. + Max value of Y-axis. Set to null or leave blank for auto - :param y1_min: The y1_min of this ChartSettings. + :param max: The max of this ChartSettings. :type: float """ - self._y1_min = y1_min - - @property - def window_size(self): - """ - Gets the window_size of this ChartSettings. - Width, in minutes, of the time window to use for \"last\" windowing - - :return: The window_size of this ChartSettings. - :rtype: int - """ - return self._window_size - - @window_size.setter - def window_size(self, window_size): - """ - Sets the window_size of this ChartSettings. - Width, in minutes, of the time window to use for \"last\" windowing - - :param window_size: The window_size of this ChartSettings. - :type: int - """ - - self._window_size = window_size - - @property - def y0_scale_si_by1024(self): - """ - Gets the y0_scale_si_by1024 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) - - :return: The y0_scale_si_by1024 of this ChartSettings. - :rtype: bool - """ - return self._y0_scale_si_by1024 - - @y0_scale_si_by1024.setter - def y0_scale_si_by1024(self, y0_scale_si_by1024): - """ - Sets the y0_scale_si_by1024 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) - - :param y0_scale_si_by1024: The y0_scale_si_by1024 of this ChartSettings. - :type: bool - """ - - self._y0_scale_si_by1024 = y0_scale_si_by1024 + self._max = max @property - def y1_scale_si_by1024(self): + def plain_markdown_content(self): """ - Gets the y1_scale_si_by1024 of this ChartSettings. - 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) + Gets the plain_markdown_content of this ChartSettings. + The Markdown content for a Markdown display, in plain text. Use this field instead of `markdownContent`. - :return: The y1_scale_si_by1024 of this ChartSettings. - :rtype: bool + :return: The plain_markdown_content of this ChartSettings. + :rtype: str """ - return self._y1_scale_si_by1024 + return self._plain_markdown_content - @y1_scale_si_by1024.setter - def y1_scale_si_by1024(self, y1_scale_si_by1024): + @plain_markdown_content.setter + def plain_markdown_content(self, plain_markdown_content): """ - Sets the y1_scale_si_by1024 of this ChartSettings. - 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) + Sets the plain_markdown_content of this ChartSettings. + The Markdown content for a Markdown display, in plain text. Use this field instead of `markdownContent`. - :param y1_scale_si_by1024: The y1_scale_si_by1024 of this ChartSettings. - :type: bool + :param plain_markdown_content: The plain_markdown_content of this ChartSettings. + :type: str """ - self._y1_scale_si_by1024 = y1_scale_si_by1024 + self._plain_markdown_content = plain_markdown_content @property - def y0_unit_autoscaling(self): + def line_type(self): """ - Gets the y0_unit_autoscaling 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 + Gets the line_type of this ChartSettings. + Plot interpolation type. linear is default - :return: The y0_unit_autoscaling of this ChartSettings. - :rtype: bool + :return: The line_type of this ChartSettings. + :rtype: str """ - return self._y0_unit_autoscaling + return self._line_type - @y0_unit_autoscaling.setter - def y0_unit_autoscaling(self, y0_unit_autoscaling): + @line_type.setter + def line_type(self, line_type): """ - Sets the y0_unit_autoscaling 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 + Sets the line_type of this ChartSettings. + Plot interpolation type. linear is default - :param y0_unit_autoscaling: The y0_unit_autoscaling of this ChartSettings. - :type: bool + :param line_type: The line_type of this ChartSettings. + :type: str """ + allowed_values = ["linear", "step-before", "step-after", "basis", "cardinal", "monotone"] + if line_type not in allowed_values: + raise ValueError( + "Invalid value for `line_type` ({0}), must be one of {1}" + .format(line_type, allowed_values) + ) - self._y0_unit_autoscaling = y0_unit_autoscaling + self._line_type = line_type @property - def y1_unit_autoscaling(self): + def stack_type(self): """ - Gets the y1_unit_autoscaling 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 + Gets the stack_type 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 - :return: The y1_unit_autoscaling of this ChartSettings. - :rtype: bool + :return: The stack_type of this ChartSettings. + :rtype: str """ - return self._y1_unit_autoscaling + return self._stack_type - @y1_unit_autoscaling.setter - def y1_unit_autoscaling(self, y1_unit_autoscaling): + @stack_type.setter + def stack_type(self, stack_type): """ - Sets the y1_unit_autoscaling 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 + Sets the stack_type 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 - :param y1_unit_autoscaling: The y1_unit_autoscaling of this ChartSettings. - :type: bool + :param stack_type: The stack_type of this ChartSettings. + :type: str """ + allowed_values = ["zero", "expand", "wiggle", "silhouette"] + if stack_type not in allowed_values: + raise ValueError( + "Invalid value for `stack_type` ({0}), must be one of {1}" + .format(stack_type, allowed_values) + ) - self._y1_unit_autoscaling = y1_unit_autoscaling + self._stack_type = stack_type @property def expected_data_spacing(self): @@ -617,200 +510,223 @@ def expected_data_spacing(self, expected_data_spacing): self._expected_data_spacing = expected_data_spacing @property - def line_type(self): + def windowing(self): """ - Gets the line_type of this ChartSettings. - Plot interpolation type. linear is default + Gets the windowing of this ChartSettings. + For the tabular view, whether to use the full time window for the query or the last X minutes - :return: The line_type of this ChartSettings. + :return: The windowing of this ChartSettings. :rtype: str """ - return self._line_type + return self._windowing - @line_type.setter - def line_type(self, line_type): + @windowing.setter + def windowing(self, windowing): """ - Sets the line_type of this ChartSettings. - Plot interpolation type. linear is default + Sets the windowing of this ChartSettings. + For the tabular view, whether to use the full time window for the query or the last X minutes - :param line_type: The line_type of this ChartSettings. + :param windowing: The windowing of this ChartSettings. :type: str """ - allowed_values = ["linear", "step-before", "step-after", "basis", "cardinal", "monotone"] - if line_type not in allowed_values: + allowed_values = ["full", "last"] + if windowing not in allowed_values: raise ValueError( - "Invalid value for `line_type` ({0}), must be one of {1}" - .format(line_type, allowed_values) + "Invalid value for `windowing` ({0}), must be one of {1}" + .format(windowing, allowed_values) ) - self._line_type = line_type + self._windowing = windowing @property - def group_by_source(self): + def window_size(self): """ - Gets the group_by_source 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 + Gets the window_size of this ChartSettings. + Width, in minutes, of the time window to use for \"last\" windowing - :return: The group_by_source of this ChartSettings. + :return: The window_size of this ChartSettings. + :rtype: int + """ + return self._window_size + + @window_size.setter + def window_size(self, window_size): + """ + Sets the window_size of this ChartSettings. + Width, in minutes, of the time window to use for \"last\" windowing + + :param window_size: The window_size of this ChartSettings. + :type: int + """ + + self._window_size = window_size + + @property + def show_hosts(self): + """ + Gets the show_hosts of this ChartSettings. + For the tabular view, whether to display sources. Default: true + + :return: The show_hosts of this ChartSettings. :rtype: bool """ - return self._group_by_source + return self._show_hosts - @group_by_source.setter - def group_by_source(self, group_by_source): + @show_hosts.setter + def show_hosts(self, show_hosts): """ - Sets the group_by_source 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 + Sets the show_hosts of this ChartSettings. + For the tabular view, whether to display sources. Default: true - :param group_by_source: The group_by_source of this ChartSettings. + :param show_hosts: The show_hosts of this ChartSettings. :type: bool """ - self._group_by_source = group_by_source + self._show_hosts = show_hosts @property - def stack_type(self): + def show_labels(self): """ - Gets the stack_type 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 + Gets the show_labels of this ChartSettings. + For the tabular view, whether to display labels. Default: true - :return: The stack_type of this ChartSettings. - :rtype: str + :return: The show_labels of this ChartSettings. + :rtype: bool """ - return self._stack_type + return self._show_labels - @stack_type.setter - def stack_type(self, stack_type): + @show_labels.setter + def show_labels(self, show_labels): """ - Sets the stack_type 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 + Sets the show_labels of this ChartSettings. + For the tabular view, whether to display labels. Default: true - :param stack_type: The stack_type of this ChartSettings. - :type: str + :param show_labels: The show_labels of this ChartSettings. + :type: bool """ - allowed_values = ["zero", "expand", "wiggle", "silhouette"] - if stack_type not in allowed_values: - raise ValueError( - "Invalid value for `stack_type` ({0}), must be one of {1}" - .format(stack_type, allowed_values) - ) - self._stack_type = stack_type + self._show_labels = show_labels @property - def ymax(self): + def show_raw_values(self): """ - Gets the ymax of this ChartSettings. - For x-y scatterplots, max value for Y-axis. Set null for auto + Gets the show_raw_values of this ChartSettings. + For the tabular view, whether to display raw values. Default: false - :return: The ymax of this ChartSettings. - :rtype: float + :return: The show_raw_values of this ChartSettings. + :rtype: bool """ - return self._ymax + return self._show_raw_values - @ymax.setter - def ymax(self, ymax): + @show_raw_values.setter + def show_raw_values(self, show_raw_values): """ - Sets the ymax of this ChartSettings. - For x-y scatterplots, max value for Y-axis. Set null for auto + Sets the show_raw_values of this ChartSettings. + For the tabular view, whether to display raw values. Default: false - :param ymax: The ymax of this ChartSettings. - :type: float + :param show_raw_values: The show_raw_values of this ChartSettings. + :type: bool """ - self._ymax = ymax + self._show_raw_values = show_raw_values @property - def ymin(self): + def auto_column_tags(self): """ - Gets the ymin of this ChartSettings. - For x-y scatterplots, min value for Y-axis. Set null for auto + Gets the auto_column_tags of this ChartSettings. + deprecated - :return: The ymin of this ChartSettings. - :rtype: float + :return: The auto_column_tags of this ChartSettings. + :rtype: bool """ - return self._ymin + return self._auto_column_tags - @ymin.setter - def ymin(self, ymin): + @auto_column_tags.setter + def auto_column_tags(self, auto_column_tags): """ - Sets the ymin of this ChartSettings. - For x-y scatterplots, min value for Y-axis. Set null for auto + Sets the auto_column_tags of this ChartSettings. + deprecated - :param ymin: The ymin of this ChartSettings. - :type: float + :param auto_column_tags: The auto_column_tags of this ChartSettings. + :type: bool """ - self._ymin = ymin + self._auto_column_tags = auto_column_tags @property - def xmax(self): + def column_tags(self): """ - Gets the xmax of this ChartSettings. - For x-y scatterplots, max value for X-axis. Set null for auto + Gets the column_tags of this ChartSettings. + deprecated - :return: The xmax of this ChartSettings. - :rtype: float + :return: The column_tags of this ChartSettings. + :rtype: str """ - return self._xmax + return self._column_tags - @xmax.setter - def xmax(self, xmax): + @column_tags.setter + def column_tags(self, column_tags): """ - Sets the xmax of this ChartSettings. - For x-y scatterplots, max value for X-axis. Set null for auto + Sets the column_tags of this ChartSettings. + deprecated - :param xmax: The xmax of this ChartSettings. - :type: float + :param column_tags: The column_tags of this ChartSettings. + :type: str """ - self._xmax = xmax + self._column_tags = column_tags @property - def xmin(self): + def tag_mode(self): """ - Gets the xmin of this ChartSettings. - For x-y scatterplots, min value for X-axis. Set null for auto + Gets the tag_mode of this ChartSettings. + For the tabular view, which mode to use to determine which point tags to display - :return: The xmin of this ChartSettings. - :rtype: float + :return: The tag_mode of this ChartSettings. + :rtype: str """ - return self._xmin + return self._tag_mode - @xmin.setter - def xmin(self, xmin): + @tag_mode.setter + def tag_mode(self, tag_mode): """ - Sets the xmin of this ChartSettings. - For x-y scatterplots, min value for X-axis. Set null for auto + Sets the tag_mode of this ChartSettings. + For the tabular view, which mode to use to determine which point tags to display - :param xmin: The xmin of this ChartSettings. - :type: float + :param tag_mode: The tag_mode of this ChartSettings. + :type: str """ + allowed_values = ["all", "top", "custom"] + if tag_mode not in allowed_values: + raise ValueError( + "Invalid value for `tag_mode` ({0}), must be one of {1}" + .format(tag_mode, allowed_values) + ) - self._xmin = xmin + self._tag_mode = tag_mode @property - def time_based_coloring(self): + def num_tags(self): """ - Gets the time_based_coloring of this ChartSettings. - Fox x-y scatterplots, whether to color more recent points as darker than older points. Default: false + Gets the num_tags of this ChartSettings. + For the tabular view, how many point tags to display - :return: The time_based_coloring of this ChartSettings. - :rtype: bool + :return: The num_tags of this ChartSettings. + :rtype: int """ - return self._time_based_coloring + return self._num_tags - @time_based_coloring.setter - def time_based_coloring(self, time_based_coloring): + @num_tags.setter + def num_tags(self, num_tags): """ - Sets the time_based_coloring of this ChartSettings. - Fox x-y scatterplots, whether to color more recent points as darker than older points. Default: false + Sets the num_tags of this ChartSettings. + For the tabular view, how many point tags to display - :param time_based_coloring: The time_based_coloring of this ChartSettings. - :type: bool + :param num_tags: The num_tags of this ChartSettings. + :type: int """ - self._time_based_coloring = time_based_coloring + self._num_tags = num_tags @property def custom_tags(self): @@ -835,6 +751,29 @@ def custom_tags(self, custom_tags): self._custom_tags = custom_tags + @property + def group_by_source(self): + """ + Gets the group_by_source 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 + + :return: The group_by_source of this ChartSettings. + :rtype: bool + """ + return self._group_by_source + + @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 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 + + :param group_by_source: The group_by_source of this ChartSettings. + :type: bool + """ + + self._group_by_source = group_by_source + @property def sort_values_descending(self): """ @@ -859,154 +798,188 @@ def sort_values_descending(self, sort_values_descending): self._sort_values_descending = sort_values_descending @property - def windowing(self): + def y1_max(self): """ - Gets the windowing of this ChartSettings. - For the tabular view, whether to use the full time window for the query or the last X minutes + Gets the y1_max of this ChartSettings. + For plots with multiple Y-axes, max value for right-side Y-axis. Set null for auto - :return: The windowing of this ChartSettings. + :return: The y1_max of this ChartSettings. + :rtype: float + """ + return self._y1_max + + @y1_max.setter + def y1_max(self, y1_max): + """ + Sets the y1_max of this ChartSettings. + For plots with multiple Y-axes, max value for right-side Y-axis. Set null for auto + + :param y1_max: The y1_max of this ChartSettings. + :type: float + """ + + self._y1_max = y1_max + + @property + def y1_min(self): + """ + Gets the y1_min of this ChartSettings. + For plots with multiple Y-axes, min value for right-side Y-axis. Set null for auto + + :return: The y1_min of this ChartSettings. + :rtype: float + """ + return self._y1_min + + @y1_min.setter + def y1_min(self, y1_min): + """ + Sets the y1_min of this ChartSettings. + For plots with multiple Y-axes, min value for right-side Y-axis. Set null for auto + + :param y1_min: The y1_min of this ChartSettings. + :type: float + """ + + self._y1_min = y1_min + + @property + def y1_units(self): + """ + Gets the y1_units of this ChartSettings. + For plots with multiple Y-axes, units for right-side Y-axis + + :return: The y1_units of this ChartSettings. :rtype: str """ - return self._windowing + return self._y1_units - @windowing.setter - def windowing(self, windowing): + @y1_units.setter + def y1_units(self, y1_units): """ - Sets the windowing of this ChartSettings. - For the tabular view, whether to use the full time window for the query or the last X minutes + Sets the y1_units of this ChartSettings. + For plots with multiple Y-axes, units for right-side Y-axis - :param windowing: The windowing of this ChartSettings. + :param y1_units: The y1_units of this ChartSettings. :type: str """ - allowed_values = ["full", "last"] - if windowing not in allowed_values: - raise ValueError( - "Invalid value for `windowing` ({0}), must be one of {1}" - .format(windowing, allowed_values) - ) - self._windowing = windowing + self._y1_units = y1_units @property - def show_hosts(self): + def y0_scale_si_by1024(self): """ - Gets the show_hosts of this ChartSettings. - For the tabular view, whether to display sources. Default: true + Gets the y0_scale_si_by1024 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) - :return: The show_hosts of this ChartSettings. + :return: The y0_scale_si_by1024 of this ChartSettings. :rtype: bool """ - return self._show_hosts + return self._y0_scale_si_by1024 - @show_hosts.setter - def show_hosts(self, show_hosts): + @y0_scale_si_by1024.setter + def y0_scale_si_by1024(self, y0_scale_si_by1024): """ - Sets the show_hosts of this ChartSettings. - For the tabular view, whether to display sources. Default: true + Sets the y0_scale_si_by1024 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) - :param show_hosts: The show_hosts of this ChartSettings. + :param y0_scale_si_by1024: The y0_scale_si_by1024 of this ChartSettings. :type: bool """ - self._show_hosts = show_hosts + self._y0_scale_si_by1024 = y0_scale_si_by1024 @property - def show_labels(self): + def y1_scale_si_by1024(self): """ - Gets the show_labels of this ChartSettings. - For the tabular view, whether to display labels. Default: true + Gets the y1_scale_si_by1024 of this ChartSettings. + 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) - :return: The show_labels of this ChartSettings. + :return: The y1_scale_si_by1024 of this ChartSettings. :rtype: bool """ - return self._show_labels - - @show_labels.setter - def show_labels(self, show_labels): + return self._y1_scale_si_by1024 + + @y1_scale_si_by1024.setter + def y1_scale_si_by1024(self, y1_scale_si_by1024): """ - Sets the show_labels of this ChartSettings. - For the tabular view, whether to display labels. Default: true + Sets the y1_scale_si_by1024 of this ChartSettings. + 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) - :param show_labels: The show_labels of this ChartSettings. + :param y1_scale_si_by1024: The y1_scale_si_by1024 of this ChartSettings. :type: bool """ - self._show_labels = show_labels + self._y1_scale_si_by1024 = y1_scale_si_by1024 @property - def show_raw_values(self): + def y0_unit_autoscaling(self): """ - Gets the show_raw_values of this ChartSettings. - For the tabular view, whether to display raw values. Default: false + Gets the y0_unit_autoscaling 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 - :return: The show_raw_values of this ChartSettings. + :return: The y0_unit_autoscaling of this ChartSettings. :rtype: bool """ - return self._show_raw_values + return self._y0_unit_autoscaling - @show_raw_values.setter - def show_raw_values(self, show_raw_values): + @y0_unit_autoscaling.setter + def y0_unit_autoscaling(self, y0_unit_autoscaling): """ - Sets the show_raw_values of this ChartSettings. - For the tabular view, whether to display raw values. Default: false + Sets the y0_unit_autoscaling 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 - :param show_raw_values: The show_raw_values of this ChartSettings. + :param y0_unit_autoscaling: The y0_unit_autoscaling of this ChartSettings. :type: bool """ - self._show_raw_values = show_raw_values + self._y0_unit_autoscaling = y0_unit_autoscaling @property - def num_tags(self): + def y1_unit_autoscaling(self): """ - Gets the num_tags of this ChartSettings. - For the tabular view, how many point tags to display + Gets the y1_unit_autoscaling 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 - :return: The num_tags of this ChartSettings. - :rtype: int + :return: The y1_unit_autoscaling of this ChartSettings. + :rtype: bool """ - return self._num_tags + return self._y1_unit_autoscaling - @num_tags.setter - def num_tags(self, num_tags): + @y1_unit_autoscaling.setter + def y1_unit_autoscaling(self, y1_unit_autoscaling): """ - Sets the num_tags of this ChartSettings. - For the tabular view, how many point tags to display + Sets the y1_unit_autoscaling 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 - :param num_tags: The num_tags of this ChartSettings. - :type: int + :param y1_unit_autoscaling: The y1_unit_autoscaling of this ChartSettings. + :type: bool """ - self._num_tags = num_tags + self._y1_unit_autoscaling = y1_unit_autoscaling @property - def tag_mode(self): + def invert_dynamic_legend_hover_control(self): """ - Gets the tag_mode of this ChartSettings. - For the tabular view, which mode to use to determine which point tags to display + Gets the invert_dynamic_legend_hover_control of this ChartSettings. + Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) - :return: The tag_mode of this ChartSettings. - :rtype: str + :return: The invert_dynamic_legend_hover_control of this ChartSettings. + :rtype: bool """ - return self._tag_mode + return self._invert_dynamic_legend_hover_control - @tag_mode.setter - def tag_mode(self, tag_mode): + @invert_dynamic_legend_hover_control.setter + def invert_dynamic_legend_hover_control(self, invert_dynamic_legend_hover_control): """ - Sets the tag_mode of this ChartSettings. - For the tabular view, which mode to use to determine which point tags to display + Sets the invert_dynamic_legend_hover_control of this ChartSettings. + Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) - :param tag_mode: The tag_mode of this ChartSettings. - :type: str + :param invert_dynamic_legend_hover_control: The invert_dynamic_legend_hover_control of this ChartSettings. + :type: bool """ - allowed_values = ["all", "top", "custom"] - if tag_mode not in allowed_values: - raise ValueError( - "Invalid value for `tag_mode` ({0}), must be one of {1}" - .format(tag_mode, allowed_values) - ) - self._tag_mode = tag_mode + self._invert_dynamic_legend_hover_control = invert_dynamic_legend_hover_control @property def fixed_legend_enabled(self): @@ -1031,6 +1004,29 @@ def fixed_legend_enabled(self, fixed_legend_enabled): self._fixed_legend_enabled = fixed_legend_enabled + @property + def fixed_legend_use_raw_stats(self): + """ + Gets the fixed_legend_use_raw_stats of this ChartSettings. + If true, the legend uses non-summarized stats instead of summarized + + :return: The fixed_legend_use_raw_stats of this ChartSettings. + :rtype: bool + """ + return self._fixed_legend_use_raw_stats + + @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. + If true, the legend uses non-summarized stats instead of summarized + + :param fixed_legend_use_raw_stats: The fixed_legend_use_raw_stats of this ChartSettings. + :type: bool + """ + + self._fixed_legend_use_raw_stats = fixed_legend_use_raw_stats + @property def fixed_legend_position(self): """ @@ -1083,6 +1079,58 @@ def fixed_legend_display_stats(self, fixed_legend_display_stats): self._fixed_legend_display_stats = fixed_legend_display_stats + @property + def fixed_legend_filter_sort(self): + """ + Gets the fixed_legend_filter_sort of this ChartSettings. + Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend + + :return: The fixed_legend_filter_sort of this ChartSettings. + :rtype: str + """ + return self._fixed_legend_filter_sort + + @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 display \"Top\"- or \"Bottom\"-ranked series in the fixed legend + + :param fixed_legend_filter_sort: The fixed_legend_filter_sort of this ChartSettings. + :type: str + """ + allowed_values = ["TOP", "BOTTOM"] + if fixed_legend_filter_sort not in allowed_values: + raise ValueError( + "Invalid value for `fixed_legend_filter_sort` ({0}), must be one of {1}" + .format(fixed_legend_filter_sort, allowed_values) + ) + + self._fixed_legend_filter_sort = fixed_legend_filter_sort + + @property + def fixed_legend_filter_limit(self): + """ + Gets the fixed_legend_filter_limit of this ChartSettings. + Number of series to include in the fixed legend + + :return: The fixed_legend_filter_limit of this ChartSettings. + :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 + + :param fixed_legend_filter_limit: The fixed_legend_filter_limit of this ChartSettings. + :type: int + """ + + self._fixed_legend_filter_limit = fixed_legend_filter_limit + @property def fixed_legend_filter_field(self): """ @@ -1113,102 +1161,142 @@ def fixed_legend_filter_field(self, fixed_legend_filter_field): self._fixed_legend_filter_field = fixed_legend_filter_field @property - def fixed_legend_filter_limit(self): + def fixed_legend_hide_label(self): """ - Gets the fixed_legend_filter_limit of this ChartSettings. - Number of series to include in the fixed legend + Gets the fixed_legend_hide_label of this ChartSettings. + deprecated - :return: The fixed_legend_filter_limit of this ChartSettings. - :rtype: int + :return: The fixed_legend_hide_label of this ChartSettings. + :rtype: bool """ - return self._fixed_legend_filter_limit + return self._fixed_legend_hide_label - @fixed_legend_filter_limit.setter - def fixed_legend_filter_limit(self, fixed_legend_filter_limit): + @fixed_legend_hide_label.setter + def fixed_legend_hide_label(self, fixed_legend_hide_label): """ - Sets the fixed_legend_filter_limit of this ChartSettings. - Number of series to include in the fixed legend + Sets the fixed_legend_hide_label of this ChartSettings. + deprecated - :param fixed_legend_filter_limit: The fixed_legend_filter_limit of this ChartSettings. - :type: int + :param fixed_legend_hide_label: The fixed_legend_hide_label of this ChartSettings. + :type: bool """ - self._fixed_legend_filter_limit = fixed_legend_filter_limit + self._fixed_legend_hide_label = fixed_legend_hide_label @property - def fixed_legend_filter_sort(self): + def xmax(self): """ - Gets the fixed_legend_filter_sort of this ChartSettings. - Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend + Gets the xmax of this ChartSettings. + For x-y scatterplots, max value for X-axis. Set null for auto - :return: The fixed_legend_filter_sort of this ChartSettings. - :rtype: str + :return: The xmax of this ChartSettings. + :rtype: float """ - return self._fixed_legend_filter_sort + return self._xmax - @fixed_legend_filter_sort.setter - def fixed_legend_filter_sort(self, fixed_legend_filter_sort): + @xmax.setter + def xmax(self, xmax): """ - Sets the fixed_legend_filter_sort of this ChartSettings. - Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend + Sets the xmax of this ChartSettings. + For x-y scatterplots, max value for X-axis. Set null for auto + + :param xmax: The xmax of this ChartSettings. + :type: float + """ + + self._xmax = xmax + + @property + def xmin(self): + """ + Gets the xmin of this ChartSettings. + For x-y scatterplots, min value for X-axis. Set null for auto + + :return: The xmin of this ChartSettings. + :rtype: float + """ + return self._xmin + + @xmin.setter + def xmin(self, xmin): + """ + Sets the xmin of this ChartSettings. + For x-y scatterplots, min value for X-axis. Set null for auto + + :param xmin: The xmin of this ChartSettings. + :type: float + """ + + self._xmin = xmin + + @property + def ymax(self): + """ + Gets the ymax of this ChartSettings. + For x-y scatterplots, max value for Y-axis. Set null for auto + + :return: The ymax of this ChartSettings. + :rtype: float + """ + return self._ymax + + @ymax.setter + def ymax(self, ymax): + """ + Sets the ymax of this ChartSettings. + For x-y scatterplots, max value for Y-axis. Set null for auto - :param fixed_legend_filter_sort: The fixed_legend_filter_sort of this ChartSettings. - :type: str + :param ymax: The ymax of this ChartSettings. + :type: float """ - allowed_values = ["TOP", "BOTTOM"] - if fixed_legend_filter_sort not in allowed_values: - raise ValueError( - "Invalid value for `fixed_legend_filter_sort` ({0}), must be one of {1}" - .format(fixed_legend_filter_sort, allowed_values) - ) - self._fixed_legend_filter_sort = fixed_legend_filter_sort + self._ymax = ymax @property - def fixed_legend_use_raw_stats(self): + def ymin(self): """ - Gets the fixed_legend_use_raw_stats of this ChartSettings. - If true, the legend uses non-summarized stats instead of summarized + Gets the ymin of this ChartSettings. + For x-y scatterplots, min value for Y-axis. Set null for auto - :return: The fixed_legend_use_raw_stats of this ChartSettings. - :rtype: bool + :return: The ymin of this ChartSettings. + :rtype: float """ - return self._fixed_legend_use_raw_stats + return self._ymin - @fixed_legend_use_raw_stats.setter - def fixed_legend_use_raw_stats(self, fixed_legend_use_raw_stats): + @ymin.setter + def ymin(self, ymin): """ - Sets the fixed_legend_use_raw_stats of this ChartSettings. - If true, the legend uses non-summarized stats instead of summarized + Sets the ymin of this ChartSettings. + For x-y scatterplots, min value for Y-axis. Set null for auto - :param fixed_legend_use_raw_stats: The fixed_legend_use_raw_stats of this ChartSettings. - :type: bool + :param ymin: The ymin of this ChartSettings. + :type: float """ - self._fixed_legend_use_raw_stats = fixed_legend_use_raw_stats + self._ymin = ymin @property - def invert_dynamic_legend_hover_control(self): + def time_based_coloring(self): """ - Gets the invert_dynamic_legend_hover_control of this ChartSettings. - Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) + Gets the time_based_coloring of this ChartSettings. + Fox x-y scatterplots, whether to color more recent points as darker than older points. Default: false - :return: The invert_dynamic_legend_hover_control of this ChartSettings. + :return: The time_based_coloring of this ChartSettings. :rtype: bool """ - return self._invert_dynamic_legend_hover_control + return self._time_based_coloring - @invert_dynamic_legend_hover_control.setter - def invert_dynamic_legend_hover_control(self, invert_dynamic_legend_hover_control): + @time_based_coloring.setter + def time_based_coloring(self, time_based_coloring): """ - Sets the invert_dynamic_legend_hover_control of this ChartSettings. - Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) + Sets the time_based_coloring of this ChartSettings. + Fox x-y scatterplots, whether to color more recent points as darker than older points. Default: false - :param invert_dynamic_legend_hover_control: The invert_dynamic_legend_hover_control of this ChartSettings. + :param time_based_coloring: The time_based_coloring of this ChartSettings. :type: bool """ - self._invert_dynamic_legend_hover_control = invert_dynamic_legend_hover_control + self._time_based_coloring = time_based_coloring @property def sparkline_display_value_type(self): @@ -1262,6 +1350,29 @@ def sparkline_display_color(self, sparkline_display_color): self._sparkline_display_color = sparkline_display_color + @property + def sparkline_display_vertical_position(self): + """ + Gets the sparkline_display_vertical_position of this ChartSettings. + deprecated + + :return: The sparkline_display_vertical_position of this ChartSettings. + :rtype: str + """ + return self._sparkline_display_vertical_position + + @sparkline_display_vertical_position.setter + def sparkline_display_vertical_position(self, sparkline_display_vertical_position): + """ + Sets the sparkline_display_vertical_position of this ChartSettings. + deprecated + + :param sparkline_display_vertical_position: The sparkline_display_vertical_position of this ChartSettings. + :type: str + """ + + self._sparkline_display_vertical_position = sparkline_display_vertical_position + @property def sparkline_display_horizontal_position(self): """ @@ -1481,6 +1592,29 @@ def sparkline_value_color_map_values_v2(self, sparkline_value_color_map_values_v self._sparkline_value_color_map_values_v2 = sparkline_value_color_map_values_v2 + @property + def sparkline_value_color_map_values(self): + """ + Gets the sparkline_value_color_map_values of this ChartSettings. + deprecated + + :return: The sparkline_value_color_map_values of this ChartSettings. + :rtype: list[int] + """ + return self._sparkline_value_color_map_values + + @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. + deprecated + + :param sparkline_value_color_map_values: The sparkline_value_color_map_values of this ChartSettings. + :type: list[int] + """ + + self._sparkline_value_color_map_values = sparkline_value_color_map_values + @property def sparkline_value_color_map_apply_to(self): """ @@ -1579,167 +1713,6 @@ def sparkline_value_text_map_thresholds(self, sparkline_value_text_map_threshold self._sparkline_value_text_map_thresholds = sparkline_value_text_map_thresholds - @property - def markdown_content(self): - """ - Gets the markdown_content of this ChartSettings. - The Markdown content for a Markdown display, base64-encoded - - :return: The markdown_content of this ChartSettings. - :rtype: str - """ - return self._markdown_content - - @markdown_content.setter - def markdown_content(self, markdown_content): - """ - Sets the markdown_content of this ChartSettings. - The Markdown content for a Markdown display, base64-encoded - - :param markdown_content: The markdown_content of this ChartSettings. - :type: str - """ - - self._markdown_content = markdown_content - - @property - def plain_markdown_content(self): - """ - Gets the plain_markdown_content of this ChartSettings. - The Markdown content for a Markdown display, in plain text. This is a derived field used for search and will not be persisted. - - :return: The plain_markdown_content of this ChartSettings. - :rtype: str - """ - return self._plain_markdown_content - - @plain_markdown_content.setter - def plain_markdown_content(self, plain_markdown_content): - """ - Sets the plain_markdown_content of this ChartSettings. - The Markdown content for a Markdown display, in plain text. This is a derived field used for search and will not be persisted. - - :param plain_markdown_content: The plain_markdown_content of this ChartSettings. - :type: str - """ - - self._plain_markdown_content = plain_markdown_content - - @property - def fixed_legend_hide_label(self): - """ - Gets the fixed_legend_hide_label of this ChartSettings. - deprecated - - :return: The fixed_legend_hide_label of this ChartSettings. - :rtype: bool - """ - return self._fixed_legend_hide_label - - @fixed_legend_hide_label.setter - def fixed_legend_hide_label(self, fixed_legend_hide_label): - """ - Sets the fixed_legend_hide_label of this ChartSettings. - deprecated - - :param fixed_legend_hide_label: The fixed_legend_hide_label of this ChartSettings. - :type: bool - """ - - self._fixed_legend_hide_label = fixed_legend_hide_label - - @property - def sparkline_display_vertical_position(self): - """ - Gets the sparkline_display_vertical_position of this ChartSettings. - deprecated - - :return: The sparkline_display_vertical_position of this ChartSettings. - :rtype: str - """ - return self._sparkline_display_vertical_position - - @sparkline_display_vertical_position.setter - def sparkline_display_vertical_position(self, sparkline_display_vertical_position): - """ - Sets the sparkline_display_vertical_position of this ChartSettings. - deprecated - - :param sparkline_display_vertical_position: The sparkline_display_vertical_position of this ChartSettings. - :type: str - """ - - self._sparkline_display_vertical_position = sparkline_display_vertical_position - - @property - def sparkline_value_color_map_values(self): - """ - Gets the sparkline_value_color_map_values of this ChartSettings. - deprecated - - :return: The sparkline_value_color_map_values of this ChartSettings. - :rtype: list[int] - """ - return self._sparkline_value_color_map_values - - @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. - deprecated - - :param sparkline_value_color_map_values: The sparkline_value_color_map_values of this ChartSettings. - :type: list[int] - """ - - self._sparkline_value_color_map_values = sparkline_value_color_map_values - - @property - def auto_column_tags(self): - """ - Gets the auto_column_tags of this ChartSettings. - deprecated - - :return: The auto_column_tags of this ChartSettings. - :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 - - :param auto_column_tags: The auto_column_tags of this ChartSettings. - :type: bool - """ - - self._auto_column_tags = auto_column_tags - - @property - def column_tags(self): - """ - Gets the column_tags of this ChartSettings. - deprecated - - :return: The column_tags of this ChartSettings. - :rtype: str - """ - return self._column_tags - - @column_tags.setter - def column_tags(self, column_tags): - """ - Sets the column_tags of this ChartSettings. - deprecated - - :param column_tags: The column_tags of this ChartSettings. - :type: str - """ - - self._column_tags = column_tags - def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/chart_source_query.py b/wavefront_api_client/models/chart_source_query.py index c28cebb..507cb8e 100644 --- a/wavefront_api_client/models/chart_source_query.py +++ b/wavefront_api_client/models/chart_source_query.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -31,44 +31,49 @@ class ChartSourceQuery(object): and the value is json key in definition. """ swagger_types = { + 'name': 'str', + 'query': 'str', + 'disabled': 'bool', 'scatter_plot_source': 'str', 'querybuilder_serialization': 'str', 'querybuilder_enabled': 'bool', 'secondary_axis': 'bool', 'source_description': 'str', - 'source_color': 'str', - 'name': 'str', - 'query': 'str', - 'disabled': 'bool' + 'source_color': 'str' } attribute_map = { + 'name': 'name', + 'query': 'query', + 'disabled': 'disabled', 'scatter_plot_source': 'scatterPlotSource', 'querybuilder_serialization': 'querybuilderSerialization', 'querybuilder_enabled': 'querybuilderEnabled', 'secondary_axis': 'secondaryAxis', 'source_description': 'sourceDescription', - 'source_color': 'sourceColor', - 'name': 'name', - 'query': 'query', - 'disabled': 'disabled' + 'source_color': 'sourceColor' } - def __init__(self, scatter_plot_source=None, querybuilder_serialization=None, querybuilder_enabled=None, secondary_axis=None, source_description=None, source_color=None, name=None, query=None, disabled=None): + def __init__(self, name=None, query=None, disabled=None, scatter_plot_source=None, querybuilder_serialization=None, querybuilder_enabled=None, secondary_axis=None, source_description=None, source_color=None): """ ChartSourceQuery - a model defined in Swagger """ + self._name = None + self._query = None + self._disabled = None self._scatter_plot_source = None self._querybuilder_serialization = None self._querybuilder_enabled = None self._secondary_axis = None self._source_description = None self._source_color = None - self._name = None - self._query = None - self._disabled = None + self.discriminator = None + self.name = name + self.query = query + if disabled is not None: + self.disabled = disabled if scatter_plot_source is not None: self.scatter_plot_source = scatter_plot_source if querybuilder_serialization is not None: @@ -81,10 +86,79 @@ def __init__(self, scatter_plot_source=None, querybuilder_serialization=None, qu self.source_description = source_description if source_color is not None: self.source_color = source_color - self.name = name - self.query = query - if disabled is not None: - self.disabled = disabled + + @property + def name(self): + """ + Gets the name of this ChartSourceQuery. + Name of the source + + :return: The name of this ChartSourceQuery. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ChartSourceQuery. + Name of the source + + :param name: The name of this ChartSourceQuery. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def query(self): + """ + Gets the query of this ChartSourceQuery. + Query expression to plot on the chart + + :return: The query of this ChartSourceQuery. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """ + Sets the query of this ChartSourceQuery. + Query expression to plot on the chart + + :param query: The query of this ChartSourceQuery. + :type: str + """ + if query is None: + raise ValueError("Invalid value for `query`, must not be `None`") + + self._query = query + + @property + def disabled(self): + """ + Gets the disabled of this ChartSourceQuery. + Whether the source is disabled + + :return: The disabled of this ChartSourceQuery. + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """ + Sets the disabled of this ChartSourceQuery. + Whether the source is disabled + + :param disabled: The disabled of this ChartSourceQuery. + :type: bool + """ + + self._disabled = disabled @property def scatter_plot_source(self): @@ -230,79 +304,6 @@ def source_color(self, source_color): self._source_color = source_color - @property - def name(self): - """ - Gets the name of this ChartSourceQuery. - Name of the source - - :return: The name of this ChartSourceQuery. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this ChartSourceQuery. - Name of the source - - :param name: The name of this ChartSourceQuery. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def query(self): - """ - Gets the query of this ChartSourceQuery. - Query expression to plot on the chart - - :return: The query of this ChartSourceQuery. - :rtype: str - """ - return self._query - - @query.setter - def query(self, query): - """ - Sets the query of this ChartSourceQuery. - Query expression to plot on the chart - - :param query: The query of this ChartSourceQuery. - :type: str - """ - if query is None: - raise ValueError("Invalid value for `query`, must not be `None`") - - self._query = query - - @property - def disabled(self): - """ - Gets the disabled of this ChartSourceQuery. - Whether the source is disabled - - :return: The disabled of this ChartSourceQuery. - :rtype: bool - """ - return self._disabled - - @disabled.setter - def disabled(self, disabled): - """ - Sets the disabled of this ChartSourceQuery. - Whether the source is disabled - - :param disabled: The disabled of this ChartSourceQuery. - :type: bool - """ - - self._disabled = disabled - def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/cloud_integration.py b/wavefront_api_client/models/cloud_integration.py index a4bc4bb..5237e4f 100644 --- a/wavefront_api_client/models/cloud_integration.py +++ b/wavefront_api_client/models/cloud_integration.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -36,22 +36,24 @@ class CloudIntegration(object): 'id': 'str', 'service': 'str', 'in_trash': 'bool', + 'creator_id': 'str', 'additional_tags': 'dict(str, str)', 'last_received_data_point_ms': 'int', 'last_metric_count': 'int', 'cloud_watch': 'CloudWatchConfiguration', 'cloud_trail': 'CloudTrailConfiguration', - 'last_error_event': 'Event', 'ec2': 'EC2Configuration', + 'gcp': 'GCPConfiguration', 'last_error': 'str', 'last_error_ms': 'int', + 'disabled': 'bool', 'last_processor_id': 'str', 'last_processing_timestamp': 'int', 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'creator_id': 'str', 'service_refresh_rate_in_mins': 'int', + 'last_error_event': 'Event', 'deleted': 'bool' } @@ -61,26 +63,28 @@ class CloudIntegration(object): 'id': 'id', 'service': 'service', 'in_trash': 'inTrash', + 'creator_id': 'creatorId', 'additional_tags': 'additionalTags', 'last_received_data_point_ms': 'lastReceivedDataPointMs', 'last_metric_count': 'lastMetricCount', 'cloud_watch': 'cloudWatch', 'cloud_trail': 'cloudTrail', - 'last_error_event': 'lastErrorEvent', 'ec2': 'ec2', + 'gcp': 'gcp', 'last_error': 'lastError', 'last_error_ms': 'lastErrorMs', + 'disabled': 'disabled', 'last_processor_id': 'lastProcessorId', 'last_processing_timestamp': 'lastProcessingTimestamp', 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'creator_id': 'creatorId', 'service_refresh_rate_in_mins': 'serviceRefreshRateInMins', + 'last_error_event': 'lastErrorEvent', 'deleted': 'deleted' } - def __init__(self, force_save=None, name=None, id=None, service=None, in_trash=None, additional_tags=None, last_received_data_point_ms=None, last_metric_count=None, cloud_watch=None, cloud_trail=None, last_error_event=None, ec2=None, last_error=None, last_error_ms=None, last_processor_id=None, last_processing_timestamp=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, service_refresh_rate_in_mins=None, deleted=None): + def __init__(self, force_save=None, name=None, id=None, service=None, in_trash=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, 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, updater_id=None, service_refresh_rate_in_mins=None, last_error_event=None, deleted=None): """ CloudIntegration - a model defined in Swagger """ @@ -90,34 +94,37 @@ def __init__(self, force_save=None, name=None, id=None, service=None, in_trash=N self._id = None self._service = None self._in_trash = 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._cloud_trail = None - self._last_error_event = None self._ec2 = None + self._gcp = None self._last_error = None self._last_error_ms = None + self._disabled = None self._last_processor_id = None self._last_processing_timestamp = None self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._creator_id = None self._service_refresh_rate_in_mins = None + self._last_error_event = None self._deleted = None + self.discriminator = None if force_save is not None: self.force_save = force_save - if name is not None: - self.name = name + self.name = name if id is not None: self.id = id - if service is not None: - self.service = service + self.service = service if in_trash is not None: self.in_trash = in_trash + 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: @@ -128,14 +135,16 @@ def __init__(self, force_save=None, name=None, id=None, service=None, in_trash=N self.cloud_watch = cloud_watch if cloud_trail is not None: self.cloud_trail = cloud_trail - if last_error_event is not None: - self.last_error_event = last_error_event if ec2 is not None: self.ec2 = ec2 + if gcp is not None: + self.gcp = gcp if last_error is not None: self.last_error = last_error 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_processing_timestamp is not None: @@ -146,10 +155,10 @@ def __init__(self, force_save=None, name=None, id=None, service=None, in_trash=N self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id - if creator_id is not None: - self.creator_id = creator_id if service_refresh_rate_in_mins is not None: self.service_refresh_rate_in_mins = service_refresh_rate_in_mins + if last_error_event is not None: + self.last_error_event = last_error_event if deleted is not None: self.deleted = deleted @@ -194,6 +203,8 @@ def name(self, name): :param name: The name of this CloudIntegration. :type: str """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") self._name = name @@ -238,7 +249,9 @@ def service(self, service): :param service: The service of this CloudIntegration. :type: str """ - allowed_values = ["CLOUDWATCH", "CLOUDTRAIL", "EC2"] + if service is None: + raise ValueError("Invalid value for `service`, must not be `None`") + allowed_values = ["CLOUDWATCH", "CLOUDTRAIL", "EC2", "GCP"] if service not in allowed_values: raise ValueError( "Invalid value for `service` ({0}), must be one of {1}" @@ -268,6 +281,27 @@ def in_trash(self, in_trash): self._in_trash = in_trash + @property + def creator_id(self): + """ + Gets the creator_id of this CloudIntegration. + + :return: The creator_id of this CloudIntegration. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """ + Sets the creator_id of this CloudIntegration. + + :param creator_id: The creator_id of this CloudIntegration. + :type: str + """ + + self._creator_id = creator_id + @property def additional_tags(self): """ @@ -341,7 +375,6 @@ def last_metric_count(self, last_metric_count): def cloud_watch(self): """ Gets the cloud_watch of this CloudIntegration. - CloudWatch specific configurations. Only applicable when service=CLOUDWATCH :return: The cloud_watch of this CloudIntegration. :rtype: CloudWatchConfiguration @@ -352,7 +385,6 @@ def cloud_watch(self): def cloud_watch(self, cloud_watch): """ Sets the cloud_watch of this CloudIntegration. - CloudWatch specific configurations. Only applicable when service=CLOUDWATCH :param cloud_watch: The cloud_watch of this CloudIntegration. :type: CloudWatchConfiguration @@ -364,7 +396,6 @@ def cloud_watch(self, cloud_watch): def cloud_trail(self): """ Gets the cloud_trail of this CloudIntegration. - CloudTrail specific configurations. Only applicable when service=CLOUDTRAIL :return: The cloud_trail of this CloudIntegration. :rtype: CloudTrailConfiguration @@ -375,7 +406,6 @@ def cloud_trail(self): def cloud_trail(self, cloud_trail): """ Sets the cloud_trail of this CloudIntegration. - CloudTrail specific configurations. Only applicable when service=CLOUDTRAIL :param cloud_trail: The cloud_trail of this CloudIntegration. :type: CloudTrailConfiguration @@ -383,32 +413,10 @@ def cloud_trail(self, cloud_trail): self._cloud_trail = cloud_trail - @property - def last_error_event(self): - """ - Gets the last_error_event of this CloudIntegration. - - :return: The last_error_event of this CloudIntegration. - :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. - :type: Event - """ - - self._last_error_event = last_error_event - @property def ec2(self): """ Gets the ec2 of this CloudIntegration. - EC2 specific configurations. Only applicable when service=EC2 :return: The ec2 of this CloudIntegration. :rtype: EC2Configuration @@ -419,7 +427,6 @@ def ec2(self): def ec2(self, ec2): """ Sets the ec2 of this CloudIntegration. - EC2 specific configurations. Only applicable when service=EC2 :param ec2: The ec2 of this CloudIntegration. :type: EC2Configuration @@ -427,6 +434,27 @@ def ec2(self, ec2): self._ec2 = ec2 + @property + def gcp(self): + """ + Gets the gcp of this CloudIntegration. + + :return: The gcp of this CloudIntegration. + :rtype: GCPConfiguration + """ + return self._gcp + + @gcp.setter + def gcp(self, gcp): + """ + Sets the gcp of this CloudIntegration. + + :param gcp: The gcp of this CloudIntegration. + :type: GCPConfiguration + """ + + self._gcp = gcp + @property def last_error(self): """ @@ -473,6 +501,29 @@ 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. + True when an aws credential failed to authenticate. + + :return: The disabled of this CloudIntegration. + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """ + Sets the disabled of this CloudIntegration. + True when an aws credential failed to authenticate. + + :param disabled: The disabled of this CloudIntegration. + :type: bool + """ + + self._disabled = disabled + @property def last_processor_id(self): """ @@ -582,27 +633,6 @@ def updater_id(self, updater_id): self._updater_id = updater_id - @property - def creator_id(self): - """ - Gets the creator_id of this CloudIntegration. - - :return: The creator_id of this CloudIntegration. - :rtype: str - """ - return self._creator_id - - @creator_id.setter - def creator_id(self, creator_id): - """ - Sets the creator_id of this CloudIntegration. - - :param creator_id: The creator_id of this CloudIntegration. - :type: str - """ - - self._creator_id = creator_id - @property def service_refresh_rate_in_mins(self): """ @@ -626,6 +656,27 @@ 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 last_error_event(self): + """ + Gets the last_error_event of this CloudIntegration. + + :return: The last_error_event of this CloudIntegration. + :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. + :type: Event + """ + + self._last_error_event = last_error_event + @property def deleted(self): """ diff --git a/wavefront_api_client/models/cloud_trail_configuration.py b/wavefront_api_client/models/cloud_trail_configuration.py index 27c6695..19e57cf 100644 --- a/wavefront_api_client/models/cloud_trail_configuration.py +++ b/wavefront_api_client/models/cloud_trail_configuration.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -50,6 +50,7 @@ def __init__(self, prefix=None, bucket_name=None, base_credentials=None): self._prefix = None self._bucket_name = None self._base_credentials = None + self.discriminator = None if prefix is not None: self.prefix = prefix diff --git a/wavefront_api_client/models/cloud_watch_configuration.py b/wavefront_api_client/models/cloud_watch_configuration.py index dbdf1c4..8cb701a 100644 --- a/wavefront_api_client/models/cloud_watch_configuration.py +++ b/wavefront_api_client/models/cloud_watch_configuration.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -34,17 +34,19 @@ class CloudWatchConfiguration(object): 'metric_filter_regex': 'str', 'base_credentials': 'AWSBaseCredentials', 'instance_selection_tags': 'dict(str, str)', - 'volume_selection_tags': 'dict(str, str)' + 'volume_selection_tags': 'dict(str, str)', + 'point_tag_filter_regex': 'str' } attribute_map = { 'metric_filter_regex': 'metricFilterRegex', 'base_credentials': 'baseCredentials', 'instance_selection_tags': 'instanceSelectionTags', - 'volume_selection_tags': 'volumeSelectionTags' + 'volume_selection_tags': 'volumeSelectionTags', + 'point_tag_filter_regex': 'pointTagFilterRegex' } - def __init__(self, metric_filter_regex=None, base_credentials=None, instance_selection_tags=None, volume_selection_tags=None): + def __init__(self, metric_filter_regex=None, base_credentials=None, instance_selection_tags=None, volume_selection_tags=None, point_tag_filter_regex=None): """ CloudWatchConfiguration - a model defined in Swagger """ @@ -53,6 +55,8 @@ def __init__(self, metric_filter_regex=None, base_credentials=None, instance_sel self._base_credentials = None self._instance_selection_tags = None self._volume_selection_tags = None + self._point_tag_filter_regex = None + self.discriminator = None if metric_filter_regex is not None: self.metric_filter_regex = metric_filter_regex @@ -62,6 +66,8 @@ def __init__(self, metric_filter_regex=None, base_credentials=None, instance_sel 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 @property def metric_filter_regex(self): @@ -153,6 +159,29 @@ def volume_selection_tags(self, volume_selection_tags): self._volume_selection_tags = volume_selection_tags + @property + def point_tag_filter_regex(self): + """ + Gets 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 + + :return: The point_tag_filter_regex of this CloudWatchConfiguration. + :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 + + :param point_tag_filter_regex: The point_tag_filter_regex of this CloudWatchConfiguration. + :type: str + """ + + self._point_tag_filter_regex = point_tag_filter_regex + def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/dashboard.py b/wavefront_api_client/models/dashboard.py index ef3cf8a..732809b 100644 --- a/wavefront_api_client/models/dashboard.py +++ b/wavefront_api_client/models/dashboard.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -37,6 +37,7 @@ class Dashboard(object): 'description': 'str', 'tags': 'WFTags', 'customer': 'str', + 'creator_id': 'str', 'url': 'str', 'event_filter_type': 'str', 'sections': 'list[DashboardSection]', @@ -57,12 +58,11 @@ class Dashboard(object): 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'creator_id': 'str', 'deleted': 'bool', 'system_owned': 'bool', - 'favorite': 'bool', + 'num_charts': 'int', 'num_favorites': 'int', - 'num_charts': 'int' + 'favorite': 'bool' } attribute_map = { @@ -72,6 +72,7 @@ class Dashboard(object): 'description': 'description', 'tags': 'tags', 'customer': 'customer', + 'creator_id': 'creatorId', 'url': 'url', 'event_filter_type': 'eventFilterType', 'sections': 'sections', @@ -92,15 +93,14 @@ class Dashboard(object): 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'creator_id': 'creatorId', 'deleted': 'deleted', 'system_owned': 'systemOwned', - 'favorite': 'favorite', + 'num_charts': 'numCharts', 'num_favorites': 'numFavorites', - 'num_charts': 'numCharts' + 'favorite': 'favorite' } - def __init__(self, name=None, id=None, parameters=None, description=None, tags=None, customer=None, url=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, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, deleted=None, system_owned=None, favorite=None, num_favorites=None, num_charts=None): + def __init__(self, name=None, id=None, parameters=None, description=None, tags=None, customer=None, creator_id=None, url=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, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, deleted=None, system_owned=None, num_charts=None, num_favorites=None, favorite=None): """ Dashboard - a model defined in Swagger """ @@ -111,6 +111,7 @@ def __init__(self, name=None, id=None, parameters=None, description=None, tags=N self._description = None self._tags = None self._customer = None + self._creator_id = None self._url = None self._event_filter_type = None self._sections = None @@ -131,12 +132,12 @@ def __init__(self, name=None, id=None, parameters=None, description=None, tags=N self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._creator_id = None self._deleted = None self._system_owned = None - self._favorite = None - self._num_favorites = None self._num_charts = None + self._num_favorites = None + self._favorite = None + self.discriminator = None self.name = name self.id = id @@ -148,6 +149,8 @@ def __init__(self, name=None, id=None, parameters=None, description=None, tags=N self.tags = tags if customer is not None: self.customer = customer + if creator_id is not None: + self.creator_id = creator_id self.url = url if event_filter_type is not None: self.event_filter_type = event_filter_type @@ -186,18 +189,16 @@ def __init__(self, name=None, id=None, parameters=None, description=None, tags=N self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id - if creator_id is not None: - self.creator_id = creator_id if deleted is not None: self.deleted = deleted if system_owned is not None: self.system_owned = system_owned - if favorite is not None: - self.favorite = favorite - if num_favorites is not None: - self.num_favorites = num_favorites 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 @property def name(self): @@ -299,7 +300,6 @@ def description(self, description): def tags(self): """ Gets the tags of this Dashboard. - Tags assigned to this dashboard :return: The tags of this Dashboard. :rtype: WFTags @@ -310,7 +310,6 @@ def tags(self): def tags(self, tags): """ Sets the tags of this Dashboard. - Tags assigned to this dashboard :param tags: The tags of this Dashboard. :type: WFTags @@ -341,6 +340,27 @@ def customer(self, customer): self._customer = customer + @property + def creator_id(self): + """ + Gets the creator_id of this Dashboard. + + :return: The creator_id of this Dashboard. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """ + Sets the creator_id of this Dashboard. + + :param creator_id: The creator_id of this Dashboard. + :type: str + """ + + self._creator_id = creator_id + @property def url(self): """ @@ -799,27 +819,6 @@ def updater_id(self, updater_id): self._updater_id = updater_id - @property - def creator_id(self): - """ - Gets the creator_id of this Dashboard. - - :return: The creator_id of this Dashboard. - :rtype: str - """ - return self._creator_id - - @creator_id.setter - def creator_id(self, creator_id): - """ - Sets the creator_id of this Dashboard. - - :param creator_id: The creator_id of this Dashboard. - :type: str - """ - - self._creator_id = creator_id - @property def deleted(self): """ @@ -865,25 +864,25 @@ def system_owned(self, system_owned): self._system_owned = system_owned @property - def favorite(self): + def num_charts(self): """ - Gets the favorite of this Dashboard. + Gets the num_charts of this Dashboard. - :return: The favorite of this Dashboard. - :rtype: bool + :return: The num_charts of this Dashboard. + :rtype: int """ - return self._favorite + return self._num_charts - @favorite.setter - def favorite(self, favorite): + @num_charts.setter + def num_charts(self, num_charts): """ - Sets the favorite of this Dashboard. + Sets the num_charts of this Dashboard. - :param favorite: The favorite of this Dashboard. - :type: bool + :param num_charts: The num_charts of this Dashboard. + :type: int """ - self._favorite = favorite + self._num_charts = num_charts @property def num_favorites(self): @@ -907,25 +906,25 @@ def num_favorites(self, num_favorites): self._num_favorites = num_favorites @property - def num_charts(self): + def favorite(self): """ - Gets the num_charts of this Dashboard. + Gets the favorite of this Dashboard. - :return: The num_charts of this Dashboard. - :rtype: int + :return: The favorite of this Dashboard. + :rtype: bool """ - return self._num_charts + return self._favorite - @num_charts.setter - def num_charts(self, num_charts): + @favorite.setter + def favorite(self, favorite): """ - Sets the num_charts of this Dashboard. + Sets the favorite of this Dashboard. - :param num_charts: The num_charts of this Dashboard. - :type: int + :param favorite: The favorite of this Dashboard. + :type: bool """ - self._num_charts = num_charts + self._favorite = favorite def to_dict(self): """ diff --git a/wavefront_api_client/models/dashboard_parameter_value.py b/wavefront_api_client/models/dashboard_parameter_value.py index c6580f6..584f20e 100644 --- a/wavefront_api_client/models/dashboard_parameter_value.py +++ b/wavefront_api_client/models/dashboard_parameter_value.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -36,11 +36,11 @@ class DashboardParameterValue(object): 'description': 'str', 'parameter_type': 'str', 'values_to_readable_strings': 'dict(str, str)', + 'multivalue': 'bool', 'dynamic_field_type': 'str', 'query_value': 'str', 'hide_from_view': 'bool', 'tag_key': 'str', - 'multivalue': 'bool', 'allow_all': 'bool' } @@ -50,15 +50,15 @@ class DashboardParameterValue(object): 'description': 'description', 'parameter_type': 'parameterType', 'values_to_readable_strings': 'valuesToReadableStrings', + 'multivalue': 'multivalue', 'dynamic_field_type': 'dynamicFieldType', 'query_value': 'queryValue', 'hide_from_view': 'hideFromView', 'tag_key': 'tagKey', - 'multivalue': 'multivalue', 'allow_all': 'allowAll' } - def __init__(self, label=None, default_value=None, description=None, parameter_type=None, values_to_readable_strings=None, dynamic_field_type=None, query_value=None, hide_from_view=None, tag_key=None, multivalue=None, allow_all=None): + def __init__(self, label=None, default_value=None, description=None, parameter_type=None, values_to_readable_strings=None, multivalue=None, dynamic_field_type=None, query_value=None, hide_from_view=None, tag_key=None, allow_all=None): """ DashboardParameterValue - a model defined in Swagger """ @@ -68,12 +68,13 @@ def __init__(self, label=None, default_value=None, description=None, parameter_t self._description = None self._parameter_type = None self._values_to_readable_strings = None + self._multivalue = None self._dynamic_field_type = None self._query_value = None self._hide_from_view = None self._tag_key = None - self._multivalue = None self._allow_all = None + self.discriminator = None if label is not None: self.label = label @@ -85,6 +86,8 @@ def __init__(self, label=None, default_value=None, description=None, parameter_t self.parameter_type = parameter_type 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 if dynamic_field_type is not None: self.dynamic_field_type = dynamic_field_type if query_value is not None: @@ -93,8 +96,6 @@ def __init__(self, label=None, default_value=None, description=None, parameter_t self.hide_from_view = hide_from_view if tag_key is not None: self.tag_key = tag_key - if multivalue is not None: - self.multivalue = multivalue if allow_all is not None: self.allow_all = allow_all @@ -209,6 +210,27 @@ 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. + + :return: The multivalue of this DashboardParameterValue. + :rtype: bool + """ + return self._multivalue + + @multivalue.setter + def multivalue(self, multivalue): + """ + Sets the multivalue of this DashboardParameterValue. + + :param multivalue: The multivalue of this DashboardParameterValue. + :type: bool + """ + + self._multivalue = multivalue + @property def dynamic_field_type(self): """ @@ -299,27 +321,6 @@ def tag_key(self, tag_key): self._tag_key = tag_key - @property - def multivalue(self): - """ - Gets the multivalue of this DashboardParameterValue. - - :return: The multivalue of this DashboardParameterValue. - :rtype: bool - """ - return self._multivalue - - @multivalue.setter - def multivalue(self, multivalue): - """ - Sets the multivalue of this DashboardParameterValue. - - :param multivalue: The multivalue of this DashboardParameterValue. - :type: bool - """ - - self._multivalue = multivalue - @property def allow_all(self): """ diff --git a/wavefront_api_client/models/dashboard_section.py b/wavefront_api_client/models/dashboard_section.py index ab3553c..4faacf7 100644 --- a/wavefront_api_client/models/dashboard_section.py +++ b/wavefront_api_client/models/dashboard_section.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,6 +47,7 @@ def __init__(self, name=None, rows=None): self._name = None self._rows = None + self.discriminator = None self.name = name self.rows = rows diff --git a/wavefront_api_client/models/dashboard_section_row.py b/wavefront_api_client/models/dashboard_section_row.py index 512e301..f8ffbaf 100644 --- a/wavefront_api_client/models/dashboard_section_row.py +++ b/wavefront_api_client/models/dashboard_section_row.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -31,26 +31,50 @@ class DashboardSectionRow(object): and the value is json key in definition. """ swagger_types = { - 'charts': 'list[Chart]', - 'height_factor': 'int' + 'height_factor': 'int', + 'charts': 'list[Chart]' } attribute_map = { - 'charts': 'charts', - 'height_factor': 'heightFactor' + 'height_factor': 'heightFactor', + 'charts': 'charts' } - def __init__(self, charts=None, height_factor=None): + def __init__(self, height_factor=None, charts=None): """ DashboardSectionRow - a model defined in Swagger """ - self._charts = None self._height_factor = None + self._charts = 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. + Scalar for the height of this row. 100 is normal and default. 50 is half height + + :return: The height_factor of this DashboardSectionRow. + :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 + + :param height_factor: The height_factor of this DashboardSectionRow. + :type: int + """ + + self._height_factor = height_factor @property def charts(self): @@ -77,29 +101,6 @@ def charts(self, charts): self._charts = charts - @property - def height_factor(self): - """ - Gets the height_factor of this DashboardSectionRow. - Scalar for the height of this row. 100 is normal and default. 50 is half height - - :return: The height_factor of this DashboardSectionRow. - :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 - - :param height_factor: The height_factor of this DashboardSectionRow. - :type: int - """ - - self._height_factor = height_factor - def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/ec2_configuration.py b/wavefront_api_client/models/ec2_configuration.py index 16092e8..395c105 100644 --- a/wavefront_api_client/models/ec2_configuration.py +++ b/wavefront_api_client/models/ec2_configuration.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,6 +47,7 @@ def __init__(self, base_credentials=None, host_name_tags=None): self._base_credentials = None self._host_name_tags = None + self.discriminator = None if base_credentials is not None: self.base_credentials = base_credentials diff --git a/wavefront_api_client/models/event.py b/wavefront_api_client/models/event.py index 5c21eda..237e354 100644 --- a/wavefront_api_client/models/event.py +++ b/wavefront_api_client/models/event.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -38,20 +38,20 @@ class Event(object): 'id': 'str', 'table': 'str', 'tags': 'list[str]', - 'is_ephemeral': 'bool', + 'running_state': 'str', 'created_at': 'int', + 'hosts': 'list[str]', + 'is_ephemeral': 'bool', + 'creator_id': 'str', 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'creator_id': 'str', 'updated_at': 'int', - 'hosts': 'list[str]', - 'is_user_event': 'bool', 'summarized_events': 'int', - 'running_state': 'str', - 'can_delete': 'bool', + 'is_user_event': 'bool', 'can_close': 'bool', - 'creator_type': 'list[str]' + 'creator_type': 'list[str]', + 'can_delete': 'bool' } attribute_map = { @@ -62,23 +62,23 @@ class Event(object): 'id': 'id', 'table': 'table', 'tags': 'tags', - 'is_ephemeral': 'isEphemeral', + 'running_state': 'runningState', 'created_at': 'createdAt', + 'hosts': 'hosts', + 'is_ephemeral': 'isEphemeral', + 'creator_id': 'creatorId', 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'creator_id': 'creatorId', 'updated_at': 'updatedAt', - 'hosts': 'hosts', - 'is_user_event': 'isUserEvent', 'summarized_events': 'summarizedEvents', - 'running_state': 'runningState', - 'can_delete': 'canDelete', + 'is_user_event': 'isUserEvent', 'can_close': 'canClose', - 'creator_type': 'creatorType' + 'creator_type': 'creatorType', + 'can_delete': 'canDelete' } - def __init__(self, start_time=None, end_time=None, name=None, annotations=None, id=None, table=None, tags=None, is_ephemeral=None, created_at=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, updated_at=None, hosts=None, is_user_event=None, summarized_events=None, running_state=None, can_delete=None, can_close=None, creator_type=None): + def __init__(self, start_time=None, end_time=None, name=None, annotations=None, id=None, table=None, tags=None, running_state=None, created_at=None, hosts=None, is_ephemeral=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, updated_at=None, summarized_events=None, is_user_event=None, can_close=None, creator_type=None, can_delete=None): """ Event - a model defined in Swagger """ @@ -90,20 +90,21 @@ def __init__(self, start_time=None, end_time=None, name=None, annotations=None, self._id = None self._table = None self._tags = None - self._is_ephemeral = None + self._running_state = None self._created_at = None + self._hosts = None + self._is_ephemeral = None + self._creator_id = None self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._creator_id = None self._updated_at = None - self._hosts = None - self._is_user_event = None self._summarized_events = None - self._running_state = None - self._can_delete = None + self._is_user_event = None self._can_close = None self._creator_type = None + self._can_delete = None + self.discriminator = None self.start_time = start_time self.end_time = end_time @@ -115,32 +116,34 @@ def __init__(self, start_time=None, end_time=None, name=None, annotations=None, self.table = table if tags is not None: self.tags = tags - if is_ephemeral is not None: - self.is_ephemeral = is_ephemeral + if running_state is not None: + self.running_state = running_state if created_at is not None: self.created_at = created_at + if hosts is not None: + self.hosts = hosts + 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 updater_id is not None: self.updater_id = updater_id - if creator_id is not None: - self.creator_id = creator_id if updated_at is not None: self.updated_at = updated_at - self.hosts = hosts + if summarized_events is not None: + self.summarized_events = summarized_events if is_user_event is not None: self.is_user_event = is_user_event - self.summarized_events = summarized_events - 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 can_delete is not None: + self.can_delete = can_delete @property def start_time(self): @@ -310,27 +313,31 @@ def tags(self, tags): self._tags = tags @property - def is_ephemeral(self): + def running_state(self): """ - Gets the is_ephemeral of this Event. - Whether the event ends immediately after it begins + Gets the running_state of this Event. - :return: The is_ephemeral of this Event. - :rtype: bool + :return: The running_state of this Event. + :rtype: str """ - return self._is_ephemeral + return self._running_state - @is_ephemeral.setter - def is_ephemeral(self, is_ephemeral): + @running_state.setter + def running_state(self, running_state): """ - Sets the is_ephemeral of this Event. - Whether the event ends immediately after it begins + Sets the running_state of this Event. - :param is_ephemeral: The is_ephemeral of this Event. - :type: bool + :param running_state: The running_state of this Event. + :type: str """ + allowed_values = ["ONGOING", "PENDING", "ENDED"] + if running_state not in allowed_values: + raise ValueError( + "Invalid value for `running_state` ({0}), must be one of {1}" + .format(running_state, allowed_values) + ) - self._is_ephemeral = is_ephemeral + self._running_state = running_state @property def created_at(self): @@ -353,6 +360,73 @@ def created_at(self, created_at): self._created_at = created_at + @property + def hosts(self): + """ + Gets the hosts of this Event. + A list of sources/hosts affected by the event + + :return: The hosts of this Event. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """ + Sets the hosts of this Event. + A list of sources/hosts affected by the event + + :param hosts: The hosts of this Event. + :type: list[str] + """ + + self._hosts = hosts + + @property + def is_ephemeral(self): + """ + Gets the is_ephemeral 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 + + :return: The is_ephemeral of this Event. + :rtype: bool + """ + return self._is_ephemeral + + @is_ephemeral.setter + def is_ephemeral(self, is_ephemeral): + """ + Sets the is_ephemeral 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 + + :param is_ephemeral: The is_ephemeral of this Event. + :type: bool + """ + + self._is_ephemeral = is_ephemeral + + @property + def creator_id(self): + """ + Gets the creator_id of this Event. + + :return: The creator_id of this Event. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """ + Sets the creator_id of this Event. + + :param creator_id: The creator_id of this Event. + :type: str + """ + + self._creator_id = creator_id + @property def created_epoch_millis(self): """ @@ -416,27 +490,6 @@ def updater_id(self, updater_id): self._updater_id = updater_id - @property - def creator_id(self): - """ - Gets the creator_id of this Event. - - :return: The creator_id of this Event. - :rtype: str - """ - return self._creator_id - - @creator_id.setter - def creator_id(self, creator_id): - """ - Sets the creator_id of this Event. - - :param creator_id: The creator_id of this Event. - :type: str - """ - - self._creator_id = creator_id - @property def updated_at(self): """ @@ -458,54 +511,6 @@ def updated_at(self, updated_at): self._updated_at = updated_at - @property - def hosts(self): - """ - Gets the hosts of this Event. - A list of sources/hosts affected by the event - - :return: The hosts of this Event. - :rtype: list[str] - """ - return self._hosts - - @hosts.setter - def hosts(self, hosts): - """ - Sets the hosts of this Event. - A list of sources/hosts affected by the event - - :param hosts: The hosts of this Event. - :type: list[str] - """ - if hosts is None: - raise ValueError("Invalid value for `hosts`, must not be `None`") - - self._hosts = hosts - - @property - def is_user_event(self): - """ - Gets the is_user_event of this Event. - Whether this event was created by a user, versus the system. Default: system - - :return: The is_user_event of this Event. - :rtype: bool - """ - return self._is_user_event - - @is_user_event.setter - def is_user_event(self, is_user_event): - """ - Sets the is_user_event of this Event. - Whether this event was created by a user, versus the system. Default: system - - :param is_user_event: The is_user_event of this Event. - :type: bool - """ - - self._is_user_event = is_user_event - @property def summarized_events(self): """ @@ -526,58 +531,31 @@ def summarized_events(self, summarized_events): :param summarized_events: The summarized_events of this Event. :type: int """ - if summarized_events is None: - raise ValueError("Invalid value for `summarized_events`, must not be `None`") self._summarized_events = summarized_events @property - def running_state(self): - """ - Gets the running_state of this Event. - - :return: The running_state of this Event. - :rtype: str - """ - return self._running_state - - @running_state.setter - def running_state(self, running_state): - """ - Sets the running_state of this Event. - - :param running_state: The running_state of this Event. - :type: str - """ - allowed_values = ["ONGOING", "PENDING", "ENDED"] - if running_state not in allowed_values: - raise ValueError( - "Invalid value for `running_state` ({0}), must be one of {1}" - .format(running_state, allowed_values) - ) - - self._running_state = running_state - - @property - def can_delete(self): + def is_user_event(self): """ - Gets the can_delete of this Event. + Gets the is_user_event of this Event. + Whether this event was created by a user, versus the system. Default: system - :return: The can_delete of this Event. + :return: The is_user_event of this Event. :rtype: bool """ - return self._can_delete + return self._is_user_event - @can_delete.setter - def can_delete(self, can_delete): + @is_user_event.setter + def is_user_event(self, is_user_event): """ - Sets the can_delete of this Event. + Sets the is_user_event of this Event. + Whether this event was created by a user, versus the system. Default: system - :param can_delete: The can_delete of this Event. + :param is_user_event: The is_user_event of this Event. :type: bool """ - self._can_delete = can_delete + self._is_user_event = is_user_event @property def can_close(self): @@ -628,6 +606,27 @@ def creator_type(self, creator_type): self._creator_type = creator_type + @property + def can_delete(self): + """ + Gets the can_delete of this Event. + + :return: The can_delete of this Event. + :rtype: bool + """ + return self._can_delete + + @can_delete.setter + def can_delete(self, can_delete): + """ + Sets the can_delete of this Event. + + :param can_delete: The can_delete of this Event. + :type: bool + """ + + self._can_delete = can_delete + def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/event_search_request.py b/wavefront_api_client/models/event_search_request.py index 13dee58..2e53e37 100644 --- a/wavefront_api_client/models/event_search_request.py +++ b/wavefront_api_client/models/event_search_request.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -53,6 +53,7 @@ def __init__(self, cursor=None, limit=None, query=None, time_range=None): self._limit = None self._query = None self._time_range = None + self.discriminator = None if cursor is not None: self.cursor = cursor @@ -134,7 +135,6 @@ def query(self, query): def time_range(self): """ Gets the time_range of this EventSearchRequest. - Time range for refining the event search. Operates on the *starting time* of each event :return: The time_range of this EventSearchRequest. :rtype: EventTimeRange @@ -145,7 +145,6 @@ def time_range(self): def time_range(self, time_range): """ Sets the time_range of this EventSearchRequest. - Time range for refining the event search. Operates on the *starting time* of each event :param time_range: The time_range of this EventSearchRequest. :type: EventTimeRange diff --git a/wavefront_api_client/models/event_time_range.py b/wavefront_api_client/models/event_time_range.py index 6f1381a..5a469c8 100644 --- a/wavefront_api_client/models/event_time_range.py +++ b/wavefront_api_client/models/event_time_range.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,6 +47,7 @@ def __init__(self, earliest_start_time_epoch_millis=None, latest_start_time_epoc 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 diff --git a/wavefront_api_client/models/external_link.py b/wavefront_api_client/models/external_link.py index 19aabc2..c6d28b2 100644 --- a/wavefront_api_client/models/external_link.py +++ b/wavefront_api_client/models/external_link.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -34,10 +34,10 @@ class ExternalLink(object): 'name': 'str', 'id': 'str', 'description': 'str', + 'creator_id': 'str', 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'creator_id': 'str', 'template': 'str', 'metric_filter_regex': 'str', 'source_filter_regex': 'str', @@ -48,17 +48,17 @@ class ExternalLink(object): 'name': 'name', 'id': 'id', 'description': 'description', + 'creator_id': 'creatorId', 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'creator_id': 'creatorId', 'template': 'template', 'metric_filter_regex': 'metricFilterRegex', 'source_filter_regex': 'sourceFilterRegex', 'point_tag_filter_regexes': 'pointTagFilterRegexes' } - def __init__(self, name=None, id=None, description=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, template=None, metric_filter_regex=None, source_filter_regex=None, point_tag_filter_regexes=None): + def __init__(self, name=None, id=None, description=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, template=None, metric_filter_regex=None, source_filter_regex=None, point_tag_filter_regexes=None): """ ExternalLink - a model defined in Swagger """ @@ -66,27 +66,28 @@ def __init__(self, name=None, id=None, description=None, created_epoch_millis=No self._name = None self._id = None self._description = None + self._creator_id = None self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._creator_id = None self._template = None self._metric_filter_regex = None self._source_filter_regex = None self._point_tag_filter_regexes = 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 if updater_id is not None: self.updater_id = updater_id - if creator_id is not None: - self.creator_id = creator_id self.template = template if metric_filter_regex is not None: self.metric_filter_regex = metric_filter_regex @@ -166,6 +167,27 @@ def description(self, description): self._description = description + @property + def creator_id(self): + """ + Gets the creator_id of this ExternalLink. + + :return: The creator_id of this ExternalLink. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """ + Sets the creator_id of this ExternalLink. + + :param creator_id: The creator_id of this ExternalLink. + :type: str + """ + + self._creator_id = creator_id + @property def created_epoch_millis(self): """ @@ -229,27 +251,6 @@ def updater_id(self, updater_id): self._updater_id = updater_id - @property - def creator_id(self): - """ - Gets the creator_id of this ExternalLink. - - :return: The creator_id of this ExternalLink. - :rtype: str - """ - return self._creator_id - - @creator_id.setter - def creator_id(self, creator_id): - """ - Sets the creator_id of this ExternalLink. - - :param creator_id: The creator_id of this ExternalLink. - :type: str - """ - - self._creator_id = creator_id - @property def template(self): """ diff --git a/wavefront_api_client/models/facet_response.py b/wavefront_api_client/models/facet_response.py index ca098e0..f82c035 100644 --- a/wavefront_api_client/models/facet_response.py +++ b/wavefront_api_client/models/facet_response.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this FacetResponse. - How returned items have been sorted :return: The sort of this FacetResponse. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this FacetResponse. - How returned items have been sorted :param sort: The sort of this FacetResponse. :type: Sorting diff --git a/wavefront_api_client/models/facet_search_request_container.py b/wavefront_api_client/models/facet_search_request_container.py index 2fa53a8..2bfc16e 100644 --- a/wavefront_api_client/models/facet_search_request_container.py +++ b/wavefront_api_client/models/facet_search_request_container.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -56,6 +56,7 @@ def __init__(self, limit=None, offset=None, query=None, facet_query=None, facet_ self._query = None self._facet_query = None self._facet_query_matching_method = None + self.discriminator = None if limit is not None: self.limit = limit diff --git a/wavefront_api_client/models/facets_response_container.py b/wavefront_api_client/models/facets_response_container.py index 2de4b92..b368758 100644 --- a/wavefront_api_client/models/facets_response_container.py +++ b/wavefront_api_client/models/facets_response_container.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,6 +47,7 @@ def __init__(self, limit=None, facets=None): self._limit = None self._facets = None + self.discriminator = None if limit is not None: self.limit = limit diff --git a/wavefront_api_client/models/facets_search_request_container.py b/wavefront_api_client/models/facets_search_request_container.py index 8f07859..4e9440b 100644 --- a/wavefront_api_client/models/facets_search_request_container.py +++ b/wavefront_api_client/models/facets_search_request_container.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -31,41 +31,88 @@ 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', - 'query': 'list[SearchQuery]', - 'limit': 'int' + 'facet_query_matching_method': 'str' } attribute_map = { + 'query': 'query', + 'limit': 'limit', 'facets': 'facets', 'facet_query': 'facetQuery', - 'facet_query_matching_method': 'facetQueryMatchingMethod', - 'query': 'query', - 'limit': 'limit' + 'facet_query_matching_method': 'facetQueryMatchingMethod' } - def __init__(self, facets=None, facet_query=None, facet_query_matching_method=None, query=None, limit=None): + def __init__(self, query=None, limit=None, facets=None, facet_query=None, facet_query_matching_method=None): """ FacetsSearchRequestContainer - a model defined in Swagger """ + self._query = None + self._limit = None self._facets = None self._facet_query = None self._facet_query_matching_method = None - self._query = None - self._limit = 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 - if query is not None: - self.query = query - if limit is not None: - self.limit = limit + + @property + def query(self): + """ + Gets the 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). + + :return: The query of this FacetsSearchRequestContainer. + :rtype: list[SearchQuery] + """ + return self._query + + @query.setter + def query(self, query): + """ + Sets the 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). + + :param query: The query of this FacetsSearchRequestContainer. + :type: list[SearchQuery] + """ + + self._query = query + + @property + def limit(self): + """ + Gets the limit of this FacetsSearchRequestContainer. + The number of results to return. Default 100 + + :return: The limit of this FacetsSearchRequestContainer. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """ + Sets the limit of this FacetsSearchRequestContainer. + The number of results to return. Default 100 + + :param limit: The limit of this FacetsSearchRequestContainer. + :type: int + """ + + self._limit = limit @property def facets(self): @@ -144,52 +191,6 @@ def facet_query_matching_method(self, facet_query_matching_method): self._facet_query_matching_method = facet_query_matching_method - @property - def query(self): - """ - Gets the 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). - - :return: The query of this FacetsSearchRequestContainer. - :rtype: list[SearchQuery] - """ - return self._query - - @query.setter - def query(self, query): - """ - Sets the 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). - - :param query: The query of this FacetsSearchRequestContainer. - :type: list[SearchQuery] - """ - - self._query = query - - @property - def limit(self): - """ - Gets the limit of this FacetsSearchRequestContainer. - The number of results to return. Default 100 - - :return: The limit of this FacetsSearchRequestContainer. - :rtype: int - """ - return self._limit - - @limit.setter - def limit(self, limit): - """ - Sets the limit of this FacetsSearchRequestContainer. - The number of results to return. Default 100 - - :param limit: The limit of this FacetsSearchRequestContainer. - :type: int - """ - - self._limit = limit - def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/gcp_configuration.py b/wavefront_api_client/models/gcp_configuration.py new file mode 100644 index 0000000..e22e70f --- /dev/null +++ b/wavefront_api_client/models/gcp_configuration.py @@ -0,0 +1,219 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class GCPConfiguration(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 = { + 'metric_filter_regex': 'str', + 'gcp_json_key': 'str', + 'project_id': 'str', + 'categories_to_fetch': 'list[str]' + } + + attribute_map = { + 'metric_filter_regex': 'metricFilterRegex', + 'gcp_json_key': 'gcpJsonKey', + 'project_id': 'projectId', + 'categories_to_fetch': 'categoriesToFetch' + } + + def __init__(self, metric_filter_regex=None, gcp_json_key=None, project_id=None, categories_to_fetch=None): + """ + GCPConfiguration - a model defined in Swagger + """ + + self._metric_filter_regex = None + self._gcp_json_key = None + self._project_id = None + self._categories_to_fetch = None + self.discriminator = None + + if metric_filter_regex is not None: + self.metric_filter_regex = metric_filter_regex + self.gcp_json_key = gcp_json_key + self.project_id = project_id + if categories_to_fetch is not None: + self.categories_to_fetch = categories_to_fetch + + @property + def metric_filter_regex(self): + """ + Gets the metric_filter_regex of this GCPConfiguration. + A regular expression that a metric name must match (case-insensitively) in order to be ingested + + :return: The metric_filter_regex of this GCPConfiguration. + :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 GCPConfiguration. + A regular expression that a metric name must match (case-insensitively) in order to be ingested + + :param metric_filter_regex: The metric_filter_regex of this GCPConfiguration. + :type: str + """ + + self._metric_filter_regex = metric_filter_regex + + @property + def gcp_json_key(self): + """ + Gets 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. + + :return: The gcp_json_key of this GCPConfiguration. + :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 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. + + :param gcp_json_key: The gcp_json_key of this GCPConfiguration. + :type: str + """ + if gcp_json_key is None: + raise ValueError("Invalid value for `gcp_json_key`, must not be `None`") + + self._gcp_json_key = gcp_json_key + + @property + def project_id(self): + """ + Gets the project_id of this GCPConfiguration. + The Google Cloud Platform (GCP) project id. + + :return: The project_id of this GCPConfiguration. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """ + Sets the project_id of this GCPConfiguration. + The Google Cloud Platform (GCP) project id. + + :param project_id: The project_id of this GCPConfiguration. + :type: str + """ + if project_id is None: + raise ValueError("Invalid value for `project_id`, must not be `None`") + + self._project_id = project_id + + @property + def categories_to_fetch(self): + """ + Gets 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, DATASTORE, FIREBASEDATABASE, FIREBASEHOSTING, LOGGING, ML, PUBSUB, ROUTER, SPANNER, STORAGE, VPN + + :return: The categories_to_fetch of this GCPConfiguration. + :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, DATASTORE, FIREBASEDATABASE, FIREBASEHOSTING, LOGGING, ML, PUBSUB, ROUTER, SPANNER, STORAGE, VPN + + :param categories_to_fetch: The categories_to_fetch of this GCPConfiguration. + :type: list[str] + """ + allowed_values = ["APPENGINE", "BIGQUERY", "BIGTABLE", "CLOUDFUNCTIONS", "CLOUDIOT", "CLOUDSQL", "CLOUDTASKS", "COMPUTE", "CONTAINER", "DATAFLOW", "DATASTORE", "FIREBASEDATABASE", "FIREBASEHOSTING", "LOGGING", "ML", "PUBSUB", "ROUTER", "SPANNER", "STORAGE", "VPN"] + 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}]" + .format(", ".join(map(str, set(categories_to_fetch)-set(allowed_values))), + ", ".join(map(str, allowed_values))) + ) + + self._categories_to_fetch = categories_to_fetch + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, GCPConfiguration): + 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/history_entry.py b/wavefront_api_client/models/history_entry.py index 43d7e26..bed3cce 100644 --- a/wavefront_api_client/models/history_entry.py +++ b/wavefront_api_client/models/history_entry.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -59,6 +59,7 @@ def __init__(self, id=None, in_trash=None, version=None, update_user=None, updat self._update_user = None self._update_time = None self._change_description = None + self.discriminator = None if id is not None: self.id = id diff --git a/wavefront_api_client/models/history_response.py b/wavefront_api_client/models/history_response.py index a5708d9..9aefce3 100644 --- a/wavefront_api_client/models/history_response.py +++ b/wavefront_api_client/models/history_response.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this HistoryResponse. - How returned items have been sorted :return: The sort of this HistoryResponse. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this HistoryResponse. - How returned items have been sorted :param sort: The sort of this HistoryResponse. :type: Sorting diff --git a/wavefront_api_client/models/integration.py b/wavefront_api_client/models/integration.py new file mode 100644 index 0000000..133e6d4 --- /dev/null +++ b/wavefront_api_client/models/integration.py @@ -0,0 +1,534 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Integration(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 = { + 'icon': 'str', + 'metrics': 'IntegrationMetrics', + 'version': 'str', + 'name': 'str', + 'id': 'str', + 'description': 'str', + 'overview': 'str', + 'setup': 'str', + 'dashboards': 'list[IntegrationDashboard]', + 'base_url': 'str', + 'status': 'IntegrationStatus', + 'creator_id': 'str', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'deleted': 'bool' + } + + attribute_map = { + 'icon': 'icon', + 'metrics': 'metrics', + 'version': 'version', + 'name': 'name', + 'id': 'id', + 'description': 'description', + 'overview': 'overview', + 'setup': 'setup', + 'dashboards': 'dashboards', + 'base_url': 'baseUrl', + 'status': 'status', + 'creator_id': 'creatorId', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'deleted': 'deleted' + } + + def __init__(self, icon=None, metrics=None, version=None, name=None, id=None, description=None, overview=None, setup=None, dashboards=None, base_url=None, status=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, deleted=None): + """ + Integration - a model defined in Swagger + """ + + self._icon = None + self._metrics = None + self._version = None + self._name = None + self._id = None + self._description = None + self._overview = None + self._setup = None + self._dashboards = None + self._base_url = None + self._status = None + self._creator_id = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._deleted = None + self.discriminator = None + + self.icon = icon + if metrics is not None: + self.metrics = metrics + self.version = version + self.name = name + if id is not None: + self.id = id + self.description = description + if overview is not None: + self.overview = overview + if setup is not None: + self.setup = setup + if dashboards is not None: + self.dashboards = dashboards + if base_url is not None: + self.base_url = base_url + if status is not None: + self.status = status + 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 deleted is not None: + self.deleted = deleted + + @property + def icon(self): + """ + Gets the icon of this Integration. + URI path to the integration icon + + :return: The icon of this Integration. + :rtype: str + """ + return self._icon + + @icon.setter + def icon(self, icon): + """ + Sets the icon of this Integration. + URI path to the integration icon + + :param icon: The icon of this Integration. + :type: str + """ + if icon is None: + raise ValueError("Invalid value for `icon`, must not be `None`") + + self._icon = icon + + @property + def metrics(self): + """ + Gets the metrics of this Integration. + + :return: The metrics of this Integration. + :rtype: IntegrationMetrics + """ + return self._metrics + + @metrics.setter + def metrics(self, metrics): + """ + Sets the metrics of this Integration. + + :param metrics: The metrics of this Integration. + :type: IntegrationMetrics + """ + + self._metrics = metrics + + @property + def version(self): + """ + Gets the version of this Integration. + Integration version string + + :return: The version of this Integration. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this Integration. + Integration version string + + :param version: The version of this Integration. + :type: str + """ + if version is None: + raise ValueError("Invalid value for `version`, must not be `None`") + + self._version = version + + @property + def name(self): + """ + Gets the name of this Integration. + Integration name + + :return: The name of this Integration. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Integration. + Integration name + + :param name: The name of this Integration. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def id(self): + """ + Gets the id of this Integration. + + :return: The id of this Integration. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Integration. + + :param id: The id of this Integration. + :type: str + """ + + self._id = id + + @property + def description(self): + """ + Gets the description of this Integration. + Integration description + + :return: The description of this Integration. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this Integration. + Integration description + + :param description: The description of this Integration. + :type: str + """ + if description is None: + raise ValueError("Invalid value for `description`, must not be `None`") + + self._description = description + + @property + def overview(self): + """ + Gets the overview of this Integration. + Descriptive text giving an overview of integration functionality + + :return: The overview of this Integration. + :rtype: str + """ + return self._overview + + @overview.setter + def overview(self, overview): + """ + Sets the overview of this Integration. + Descriptive text giving an overview of integration functionality + + :param overview: The overview of this Integration. + :type: str + """ + + self._overview = overview + + @property + def setup(self): + """ + Gets the setup of this Integration. + How the integration will be set-up + + :return: The setup of this Integration. + :rtype: str + """ + return self._setup + + @setup.setter + def setup(self, setup): + """ + Sets the setup of this Integration. + How the integration will be set-up + + :param setup: The setup of this Integration. + :type: str + """ + + self._setup = setup + + @property + def dashboards(self): + """ + Gets the dashboards of this Integration. + A list of dashboards belonging to this integration + + :return: The dashboards of this Integration. + :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 + + :param dashboards: The dashboards of this Integration. + :type: list[IntegrationDashboard] + """ + + self._dashboards = dashboards + + @property + def base_url(self): + """ + Gets the base_url of this Integration. + Base URL for this integration's assets + + :return: The base_url of this Integration. + :rtype: str + """ + return self._base_url + + @base_url.setter + def base_url(self, base_url): + """ + Sets the base_url of this Integration. + Base URL for this integration's assets + + :param base_url: The base_url of this Integration. + :type: str + """ + + self._base_url = base_url + + @property + def status(self): + """ + Gets the status of this Integration. + + :return: The status of this Integration. + :rtype: IntegrationStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this Integration. + + :param status: The status of this Integration. + :type: IntegrationStatus + """ + + self._status = status + + @property + def creator_id(self): + """ + Gets the creator_id of this Integration. + + :return: The creator_id of this Integration. + :rtype: str + """ + 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. + :type: str + """ + + self._creator_id = creator_id + + @property + def created_epoch_millis(self): + """ + Gets the created_epoch_millis of this Integration. + + :return: The created_epoch_millis of this Integration. + :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 Integration. + + :param created_epoch_millis: The created_epoch_millis of this Integration. + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def updated_epoch_millis(self): + """ + Gets the updated_epoch_millis of this Integration. + + :return: The updated_epoch_millis of this Integration. + :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 Integration. + + :param updated_epoch_millis: The updated_epoch_millis of this Integration. + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """ + Gets the updater_id of this Integration. + + :return: The updater_id of this Integration. + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """ + Sets the updater_id of this Integration. + + :param updater_id: The updater_id of this Integration. + :type: str + """ + + self._updater_id = updater_id + + @property + def deleted(self): + """ + Gets the deleted of this Integration. + + :return: The deleted of this Integration. + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """ + Sets the deleted of this Integration. + + :param deleted: The deleted of this Integration. + :type: bool + """ + + self._deleted = deleted + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, Integration): + 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/integration_dashboard.py b/wavefront_api_client/models/integration_dashboard.py new file mode 100644 index 0000000..5c20937 --- /dev/null +++ b/wavefront_api_client/models/integration_dashboard.py @@ -0,0 +1,211 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IntegrationDashboard(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', + 'description': 'str', + 'url': 'str', + 'dashboard_obj': 'Dashboard' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'url': 'url', + 'dashboard_obj': 'dashboardObj' + } + + def __init__(self, name=None, description=None, url=None, dashboard_obj=None): + """ + IntegrationDashboard - a model defined in Swagger + """ + + self._name = None + self._description = None + self._url = None + self._dashboard_obj = None + self.discriminator = None + + self.name = name + self.description = description + self.url = url + if dashboard_obj is not None: + self.dashboard_obj = dashboard_obj + + @property + def name(self): + """ + Gets the name of this IntegrationDashboard. + Dashboard name + + :return: The name of this IntegrationDashboard. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this IntegrationDashboard. + Dashboard name + + :param name: The name of this IntegrationDashboard. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def description(self): + """ + Gets the description of this IntegrationDashboard. + Dashboard description + + :return: The description of this IntegrationDashboard. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this IntegrationDashboard. + Dashboard description + + :param description: The description of this IntegrationDashboard. + :type: str + """ + if description is None: + raise ValueError("Invalid value for `description`, must not be `None`") + + self._description = description + + @property + def url(self): + """ + Gets the url of this IntegrationDashboard. + URL path to the JSON definition of this dashboard + + :return: The url of this IntegrationDashboard. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this IntegrationDashboard. + URL path to the JSON definition of this dashboard + + :param url: The url of this IntegrationDashboard. + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") + + self._url = url + + @property + def dashboard_obj(self): + """ + Gets the dashboard_obj of this IntegrationDashboard. + + :return: The dashboard_obj of this IntegrationDashboard. + :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. + :type: Dashboard + """ + + self._dashboard_obj = dashboard_obj + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, IntegrationDashboard): + 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/integration_manifest_group.py b/wavefront_api_client/models/integration_manifest_group.py new file mode 100644 index 0000000..28bf3b6 --- /dev/null +++ b/wavefront_api_client/models/integration_manifest_group.py @@ -0,0 +1,213 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IntegrationManifestGroup(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 = { + 'title': 'str', + 'integrations': 'list[str]', + 'integration_objs': 'list[Integration]', + 'subtitle': 'str' + } + + attribute_map = { + 'title': 'title', + 'integrations': 'integrations', + 'integration_objs': 'integrationObjs', + 'subtitle': 'subtitle' + } + + def __init__(self, title=None, integrations=None, integration_objs=None, subtitle=None): + """ + IntegrationManifestGroup - a model defined in Swagger + """ + + self._title = None + self._integrations = None + self._integration_objs = None + self._subtitle = None + self.discriminator = None + + self.title = title + self.integrations = integrations + if integration_objs is not None: + self.integration_objs = integration_objs + self.subtitle = subtitle + + @property + def title(self): + """ + Gets the title of this IntegrationManifestGroup. + Title of this integration group + + :return: The title of this IntegrationManifestGroup. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """ + Sets the title of this IntegrationManifestGroup. + Title of this integration group + + :param title: The title of this IntegrationManifestGroup. + :type: str + """ + if title is None: + raise ValueError("Invalid value for `title`, must not be `None`") + + self._title = title + + @property + def integrations(self): + """ + Gets the integrations of this IntegrationManifestGroup. + A list of paths to JSON definitions for integrations in this group + + :return: The integrations of this IntegrationManifestGroup. + :rtype: list[str] + """ + return self._integrations + + @integrations.setter + def integrations(self, integrations): + """ + Sets the integrations of this IntegrationManifestGroup. + A list of paths to JSON definitions for integrations in this group + + :param integrations: The integrations of this IntegrationManifestGroup. + :type: list[str] + """ + if integrations is None: + raise ValueError("Invalid value for `integrations`, must not be `None`") + + self._integrations = integrations + + @property + def integration_objs(self): + """ + Gets the integration_objs of this IntegrationManifestGroup. + Materialized JSONs for integrations belonging to this group, as referenced by `integrations` + + :return: The integration_objs of this IntegrationManifestGroup. + :rtype: list[Integration] + """ + return self._integration_objs + + @integration_objs.setter + def integration_objs(self, integration_objs): + """ + Sets the integration_objs of this IntegrationManifestGroup. + Materialized JSONs for integrations belonging to this group, as referenced by `integrations` + + :param integration_objs: The integration_objs of this IntegrationManifestGroup. + :type: list[Integration] + """ + + self._integration_objs = integration_objs + + @property + def subtitle(self): + """ + Gets the subtitle of this IntegrationManifestGroup. + Subtitle of this integration group + + :return: The subtitle of this IntegrationManifestGroup. + :rtype: str + """ + return self._subtitle + + @subtitle.setter + def subtitle(self, subtitle): + """ + Sets the subtitle of this IntegrationManifestGroup. + Subtitle of this integration group + + :param subtitle: The subtitle of this IntegrationManifestGroup. + :type: str + """ + if subtitle is None: + raise ValueError("Invalid value for `subtitle`, must not be `None`") + + self._subtitle = subtitle + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, IntegrationManifestGroup): + 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/integration_metrics.py b/wavefront_api_client/models/integration_metrics.py new file mode 100644 index 0000000..aae4273 --- /dev/null +++ b/wavefront_api_client/models/integration_metrics.py @@ -0,0 +1,270 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IntegrationMetrics(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 = { + 'required': 'list[str]', + 'display': 'list[str]', + 'prefixes': 'list[str]', + 'charts': 'list[str]', + 'chart_objs': 'list[Chart]', + 'pps_dimensions': 'list[str]' + } + + attribute_map = { + 'required': 'required', + 'display': 'display', + 'prefixes': 'prefixes', + 'charts': 'charts', + 'chart_objs': 'chartObjs', + 'pps_dimensions': 'ppsDimensions' + } + + def __init__(self, required=None, display=None, prefixes=None, charts=None, chart_objs=None, pps_dimensions=None): + """ + IntegrationMetrics - a model defined in Swagger + """ + + self._required = None + self._display = None + self._prefixes = None + self._charts = None + self._chart_objs = None + self._pps_dimensions = None + self.discriminator = None + + self.required = required + self.display = display + self.prefixes = prefixes + self.charts = charts + if chart_objs is not None: + self.chart_objs = chart_objs + if pps_dimensions is not None: + self.pps_dimensions = pps_dimensions + + @property + def required(self): + """ + Gets the required of this IntegrationMetrics. + Set of \"canary\" metrics that define the \"liveness\" of this integration's metric ingestion + + :return: The required of this IntegrationMetrics. + :rtype: list[str] + """ + return self._required + + @required.setter + def required(self, required): + """ + Sets the required of this IntegrationMetrics. + Set of \"canary\" metrics that define the \"liveness\" of this integration's metric ingestion + + :param required: The required of this IntegrationMetrics. + :type: list[str] + """ + if required is None: + raise ValueError("Invalid value for `required`, must not be `None`") + + self._required = required + + @property + def display(self): + """ + Gets the display of this IntegrationMetrics. + Set of metrics that are displayed in the metric panel during integration setup + + :return: The display of this IntegrationMetrics. + :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 + + :param display: The display of this IntegrationMetrics. + :type: list[str] + """ + if display is None: + raise ValueError("Invalid value for `display`, must not be `None`") + + self._display = display + + @property + def prefixes(self): + """ + Gets the prefixes of this IntegrationMetrics. + Set of metric prefix namespaces belonging to this integration + + :return: The prefixes of this IntegrationMetrics. + :rtype: list[str] + """ + return self._prefixes + + @prefixes.setter + def prefixes(self, prefixes): + """ + Sets the prefixes of this IntegrationMetrics. + Set of metric prefix namespaces belonging to this integration + + :param prefixes: The prefixes of this IntegrationMetrics. + :type: list[str] + """ + if prefixes is None: + raise ValueError("Invalid value for `prefixes`, must not be `None`") + + self._prefixes = prefixes + + @property + def charts(self): + """ + Gets the charts of this IntegrationMetrics. + URLs for JSON definitions of charts that display info about this integration's metrics + + :return: The charts of this IntegrationMetrics. + :rtype: list[str] + """ + return self._charts + + @charts.setter + def charts(self, charts): + """ + Sets the charts of this IntegrationMetrics. + URLs for JSON definitions of charts that display info about this integration's metrics + + :param charts: The charts of this IntegrationMetrics. + :type: list[str] + """ + if charts is None: + raise ValueError("Invalid value for `charts`, must not be `None`") + + self._charts = charts + + @property + def chart_objs(self): + """ + Gets the chart_objs of this IntegrationMetrics. + Chart JSONs materialized from the links in `charts` + + :return: The chart_objs of this IntegrationMetrics. + :rtype: list[Chart] + """ + return self._chart_objs + + @chart_objs.setter + def chart_objs(self, chart_objs): + """ + Sets the chart_objs of this IntegrationMetrics. + Chart JSONs materialized from the links in `charts` + + :param chart_objs: The chart_objs of this IntegrationMetrics. + :type: list[Chart] + """ + + self._chart_objs = chart_objs + + @property + def pps_dimensions(self): + """ + Gets 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 + + :return: The pps_dimensions of this IntegrationMetrics. + :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 + + :param pps_dimensions: The pps_dimensions of this IntegrationMetrics. + :type: list[str] + """ + + self._pps_dimensions = pps_dimensions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, IntegrationMetrics): + 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/integration_status.py b/wavefront_api_client/models/integration_status.py new file mode 100644 index 0000000..f18b931 --- /dev/null +++ b/wavefront_api_client/models/integration_status.py @@ -0,0 +1,197 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IntegrationStatus(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 = { + 'content_status': 'str', + 'install_status': 'str', + 'metric_statuses': 'dict(str, MetricStatus)' + } + + attribute_map = { + 'content_status': 'contentStatus', + 'install_status': 'installStatus', + 'metric_statuses': 'metricStatuses' + } + + def __init__(self, content_status=None, install_status=None, metric_statuses=None): + """ + IntegrationStatus - a model defined in Swagger + """ + + 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 + + @property + def content_status(self): + """ + Gets the content_status of this IntegrationStatus. + Status of integration content, e.g. dashboards + + :return: The content_status of this IntegrationStatus. + :rtype: str + """ + return self._content_status + + @content_status.setter + def content_status(self, content_status): + """ + Sets the content_status of this IntegrationStatus. + Status of integration content, e.g. dashboards + + :param content_status: The content_status of this IntegrationStatus. + :type: str + """ + if content_status is None: + raise ValueError("Invalid value for `content_status`, must not be `None`") + allowed_values = ["INVALID", "NOT_LOADED", "HIDDEN", "VISIBLE"] + if content_status not in allowed_values: + raise ValueError( + "Invalid value for `content_status` ({0}), must be one of {1}" + .format(content_status, allowed_values) + ) + + self._content_status = content_status + + @property + def install_status(self): + """ + Gets the install_status of this IntegrationStatus. + Whether the customer or an automated process has chosen to install this integration + + :return: The install_status of this IntegrationStatus. + :rtype: str + """ + return self._install_status + + @install_status.setter + 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 + + :param install_status: The install_status of this IntegrationStatus. + :type: str + """ + if install_status is None: + raise ValueError("Invalid value for `install_status`, must not be `None`") + allowed_values = ["UNDECIDED", "UNINSTALLED", "INSTALLED"] + if install_status not in allowed_values: + raise ValueError( + "Invalid value for `install_status` ({0}), must be one of {1}" + .format(install_status, allowed_values) + ) + + self._install_status = install_status + + @property + def metric_statuses(self): + """ + Gets the metric_statuses of this IntegrationStatus. + A Map from names of the required metrics to an object representing their reporting status. The reporting status object has 3 boolean fields denoting whether the metric has been received during the corresponding time period: `ever`, `recentExceptNow`, and `now`. `now` is on the order of a few hours, and `recentExceptNow` is on the order of the past few days, excluding the period considered to be `now`. + + :return: The metric_statuses of this IntegrationStatus. + :rtype: dict(str, MetricStatus) + """ + return self._metric_statuses + + @metric_statuses.setter + def metric_statuses(self, metric_statuses): + """ + Sets the metric_statuses of this IntegrationStatus. + A Map from names of the required metrics to an object representing their reporting status. The reporting status object has 3 boolean fields denoting whether the metric has been received during the corresponding time period: `ever`, `recentExceptNow`, and `now`. `now` is on the order of a few hours, and `recentExceptNow` is on the order of the past few days, excluding the period considered to be `now`. + + :param metric_statuses: The metric_statuses of this IntegrationStatus. + :type: dict(str, MetricStatus) + """ + if metric_statuses is None: + raise ValueError("Invalid value for `metric_statuses`, must not be `None`") + + self._metric_statuses = metric_statuses + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, IntegrationStatus): + 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/iterator_entry_string_json_node.py b/wavefront_api_client/models/iterator_entry_string_json_node.py index ff5a4f5..8e1a9aa 100644 --- a/wavefront_api_client/models/iterator_entry_string_json_node.py +++ b/wavefront_api_client/models/iterator_entry_string_json_node.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -43,6 +43,7 @@ def __init__(self): IteratorEntryStringJsonNode - a model defined in Swagger """ + self.discriminator = None def to_dict(self): diff --git a/wavefront_api_client/models/iterator_json_node.py b/wavefront_api_client/models/iterator_json_node.py index 3c722f9..0cbb6ef 100644 --- a/wavefront_api_client/models/iterator_json_node.py +++ b/wavefront_api_client/models/iterator_json_node.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -43,6 +43,7 @@ def __init__(self): IteratorJsonNode - a model defined in Swagger """ + self.discriminator = None def to_dict(self): diff --git a/wavefront_api_client/models/iterator_string.py b/wavefront_api_client/models/iterator_string.py index 67743df..5acbd0e 100644 --- a/wavefront_api_client/models/iterator_string.py +++ b/wavefront_api_client/models/iterator_string.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -43,6 +43,7 @@ def __init__(self): IteratorString - a model defined in Swagger """ + self.discriminator = None def to_dict(self): diff --git a/wavefront_api_client/models/scoped_dto_converter.py b/wavefront_api_client/models/logical_type.py similarity index 63% rename from wavefront_api_client/models/scoped_dto_converter.py rename to wavefront_api_client/models/logical_type.py index 5562607..16daf76 100644 --- a/wavefront_api_client/models/scoped_dto_converter.py +++ b/wavefront_api_client/models/logical_type.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -16,7 +16,7 @@ import re -class ScopedDTOConverter(object): +class LogicalType(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,19 +31,44 @@ class ScopedDTOConverter(object): and the value is json key in definition. """ swagger_types = { - + 'name': 'str' } attribute_map = { - + 'name': 'name' } - def __init__(self): + def __init__(self, name=None): """ - ScopedDTOConverter - a model defined in Swagger + LogicalType - a model defined in Swagger """ + self._name = None + self.discriminator = None + if name is not None: + self.name = name + + @property + def name(self): + """ + Gets the name of this LogicalType. + + :return: The name of this LogicalType. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this LogicalType. + + :param name: The name of this LogicalType. + :type: str + """ + + self._name = name def to_dict(self): """ @@ -87,7 +112,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ScopedDTOConverter): + if not isinstance(other, LogicalType): return False return self.__dict__ == other.__dict__ diff --git a/wavefront_api_client/models/maintenance_window.py b/wavefront_api_client/models/maintenance_window.py index 9ae3658..723a22f 100644 --- a/wavefront_api_client/models/maintenance_window.py +++ b/wavefront_api_client/models/maintenance_window.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -33,96 +33,96 @@ class MaintenanceWindow(object): swagger_types = { 'id': 'str', 'reason': 'str', + 'running_state': 'str', 'customer_id': 'str', - 'created_epoch_millis': 'int', - 'updated_epoch_millis': 'int', - 'updater_id': 'str', - 'creator_id': 'str', - 'relevant_host_tags_anded': 'bool', - 'event_name': 'str', + 'relevant_customer_tags': 'list[str]', 'title': 'str', 'start_time_in_seconds': 'int', 'end_time_in_seconds': 'int', - 'relevant_customer_tags': 'list[str]', - 'relevant_host_names': 'list[str]', 'relevant_host_tags': 'list[str]', - 'host_tag_group_host_names_group_anded': 'bool', - 'running_state': 'str' + 'relevant_host_names': 'list[str]', + 'event_name': 'str', + 'creator_id': 'str', + 'created_epoch_millis': 'int', + 'updated_epoch_millis': 'int', + 'updater_id': 'str', + 'relevant_host_tags_anded': 'bool', + 'host_tag_group_host_names_group_anded': 'bool' } attribute_map = { 'id': 'id', 'reason': 'reason', + 'running_state': 'runningState', 'customer_id': 'customerId', - 'created_epoch_millis': 'createdEpochMillis', - 'updated_epoch_millis': 'updatedEpochMillis', - 'updater_id': 'updaterId', - 'creator_id': 'creatorId', - 'relevant_host_tags_anded': 'relevantHostTagsAnded', - 'event_name': 'eventName', + 'relevant_customer_tags': 'relevantCustomerTags', 'title': 'title', 'start_time_in_seconds': 'startTimeInSeconds', 'end_time_in_seconds': 'endTimeInSeconds', - 'relevant_customer_tags': 'relevantCustomerTags', - 'relevant_host_names': 'relevantHostNames', 'relevant_host_tags': 'relevantHostTags', - 'host_tag_group_host_names_group_anded': 'hostTagGroupHostNamesGroupAnded', - 'running_state': 'runningState' + 'relevant_host_names': 'relevantHostNames', + 'event_name': 'eventName', + 'creator_id': 'creatorId', + 'created_epoch_millis': 'createdEpochMillis', + 'updated_epoch_millis': 'updatedEpochMillis', + 'updater_id': 'updaterId', + 'relevant_host_tags_anded': 'relevantHostTagsAnded', + 'host_tag_group_host_names_group_anded': 'hostTagGroupHostNamesGroupAnded' } - def __init__(self, id=None, reason=None, customer_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, relevant_host_tags_anded=None, event_name=None, title=None, start_time_in_seconds=None, end_time_in_seconds=None, relevant_customer_tags=None, relevant_host_names=None, relevant_host_tags=None, host_tag_group_host_names_group_anded=None, running_state=None): + def __init__(self, id=None, reason=None, running_state=None, customer_id=None, relevant_customer_tags=None, title=None, start_time_in_seconds=None, end_time_in_seconds=None, relevant_host_tags=None, relevant_host_names=None, event_name=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, relevant_host_tags_anded=None, host_tag_group_host_names_group_anded=None): """ MaintenanceWindow - a model defined in Swagger """ self._id = None self._reason = None + self._running_state = None self._customer_id = None - self._created_epoch_millis = None - self._updated_epoch_millis = None - self._updater_id = None - self._creator_id = None - self._relevant_host_tags_anded = None - self._event_name = None + self._relevant_customer_tags = None self._title = None self._start_time_in_seconds = None self._end_time_in_seconds = None - self._relevant_customer_tags = None - self._relevant_host_names = None self._relevant_host_tags = None + self._relevant_host_names = None + self._event_name = None + self._creator_id = None + self._created_epoch_millis = None + self._updated_epoch_millis = None + self._updater_id = None + self._relevant_host_tags_anded = None self._host_tag_group_host_names_group_anded = None - self._running_state = None + self.discriminator = None if id is not None: self.id = id self.reason = reason + if running_state is not None: + self.running_state = running_state if customer_id is not None: self.customer_id = customer_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 relevant_host_tags is not None: + self.relevant_host_tags = relevant_host_tags + if relevant_host_names is not None: + self.relevant_host_names = relevant_host_names + 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 updater_id is not None: self.updater_id = updater_id - if creator_id is not None: - self.creator_id = creator_id if relevant_host_tags_anded is not None: self.relevant_host_tags_anded = relevant_host_tags_anded - if event_name is not None: - self.event_name = event_name - if title is not None: - self.title = title - self.start_time_in_seconds = start_time_in_seconds - self.end_time_in_seconds = end_time_in_seconds - self.relevant_customer_tags = relevant_customer_tags - 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 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 running_state is not None: - self.running_state = running_state @property def id(self): @@ -171,155 +171,77 @@ def reason(self, reason): self._reason = reason @property - def customer_id(self): - """ - Gets the customer_id of this MaintenanceWindow. - - :return: The customer_id of this MaintenanceWindow. - :rtype: str - """ - return self._customer_id - - @customer_id.setter - def customer_id(self, customer_id): - """ - Sets the customer_id of this MaintenanceWindow. - - :param customer_id: The customer_id of this MaintenanceWindow. - :type: str - """ - - self._customer_id = customer_id - - @property - def created_epoch_millis(self): - """ - Gets the created_epoch_millis of this MaintenanceWindow. - - :return: The created_epoch_millis of this MaintenanceWindow. - :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 MaintenanceWindow. - - :param created_epoch_millis: The created_epoch_millis of this MaintenanceWindow. - :type: int - """ - - self._created_epoch_millis = created_epoch_millis - - @property - def updated_epoch_millis(self): - """ - Gets the updated_epoch_millis of this MaintenanceWindow. - - :return: The updated_epoch_millis of this MaintenanceWindow. - :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 MaintenanceWindow. - - :param updated_epoch_millis: The updated_epoch_millis of this MaintenanceWindow. - :type: int - """ - - self._updated_epoch_millis = updated_epoch_millis - - @property - def updater_id(self): + def running_state(self): """ - Gets the updater_id of this MaintenanceWindow. + Gets the running_state of this MaintenanceWindow. - :return: The updater_id of this MaintenanceWindow. + :return: The running_state of this MaintenanceWindow. :rtype: str """ - return self._updater_id + return self._running_state - @updater_id.setter - def updater_id(self, updater_id): + @running_state.setter + def running_state(self, running_state): """ - Sets the updater_id of this MaintenanceWindow. + Sets the running_state of this MaintenanceWindow. - :param updater_id: The updater_id of this MaintenanceWindow. + :param running_state: The running_state of this MaintenanceWindow. :type: str """ + allowed_values = ["ONGOING", "PENDING", "ENDED"] + if running_state not in allowed_values: + raise ValueError( + "Invalid value for `running_state` ({0}), must be one of {1}" + .format(running_state, allowed_values) + ) - self._updater_id = updater_id + self._running_state = running_state @property - def creator_id(self): + def customer_id(self): """ - Gets the creator_id of this MaintenanceWindow. + Gets the customer_id of this MaintenanceWindow. - :return: The creator_id of this MaintenanceWindow. + :return: The customer_id of this MaintenanceWindow. :rtype: str """ - return self._creator_id + return self._customer_id - @creator_id.setter - def creator_id(self, creator_id): + @customer_id.setter + def customer_id(self, customer_id): """ - Sets the creator_id of this MaintenanceWindow. + Sets the customer_id of this MaintenanceWindow. - :param creator_id: The creator_id of this MaintenanceWindow. + :param customer_id: The customer_id of this MaintenanceWindow. :type: str """ - self._creator_id = creator_id - - @property - def relevant_host_tags_anded(self): - """ - Gets the relevant_host_tags_anded of this MaintenanceWindow. - Whether to AND source/host tags listed in relevantHostTags. If true, a source/host must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a source/host must contain one of the tags. Default: false - - :return: The relevant_host_tags_anded of this MaintenanceWindow. - :rtype: bool - """ - return self._relevant_host_tags_anded - - @relevant_host_tags_anded.setter - def relevant_host_tags_anded(self, relevant_host_tags_anded): - """ - Sets the relevant_host_tags_anded of this MaintenanceWindow. - Whether to AND source/host tags listed in relevantHostTags. If true, a source/host must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a source/host must contain one of the tags. Default: false - - :param relevant_host_tags_anded: The relevant_host_tags_anded of this MaintenanceWindow. - :type: bool - """ - - self._relevant_host_tags_anded = relevant_host_tags_anded + self._customer_id = customer_id @property - def event_name(self): + def relevant_customer_tags(self): """ - Gets the event_name of this MaintenanceWindow. - The name of an event associated with the creation/update of this maintenance window + Gets the relevant_customer_tags of this MaintenanceWindow. + List of alert tags whose matching alerts will be put into maintenance because of this maintenance window - :return: The event_name of this MaintenanceWindow. - :rtype: str + :return: The relevant_customer_tags of this MaintenanceWindow. + :rtype: list[str] """ - return self._event_name + return self._relevant_customer_tags - @event_name.setter - def event_name(self, event_name): + @relevant_customer_tags.setter + def relevant_customer_tags(self, relevant_customer_tags): """ - Sets the event_name of this MaintenanceWindow. - The name of an event associated with the creation/update of this maintenance window + 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 - :param event_name: The event_name of this MaintenanceWindow. - :type: str + :param relevant_customer_tags: The relevant_customer_tags of this MaintenanceWindow. + :type: list[str] """ + if relevant_customer_tags is None: + raise ValueError("Invalid value for `relevant_customer_tags`, must not be `None`") - self._event_name = event_name + self._relevant_customer_tags = relevant_customer_tags @property def title(self): @@ -341,6 +263,8 @@ def title(self, title): :param title: The title of this MaintenanceWindow. :type: str """ + if title is None: + raise ValueError("Invalid value for `title`, must not be `None`") self._title = title @@ -395,29 +319,27 @@ def end_time_in_seconds(self, end_time_in_seconds): self._end_time_in_seconds = end_time_in_seconds @property - def relevant_customer_tags(self): + def relevant_host_tags(self): """ - Gets the relevant_customer_tags of this MaintenanceWindow. - List of alert tags whose matching alerts will be put into maintenance because of this maintenance window + Gets the relevant_host_tags of this MaintenanceWindow. + List of source/host tags whose matching sources/hosts will be put into maintenance because of this maintenance window - :return: The relevant_customer_tags of this MaintenanceWindow. + :return: The relevant_host_tags of this MaintenanceWindow. :rtype: list[str] """ - return self._relevant_customer_tags + return self._relevant_host_tags - @relevant_customer_tags.setter - def relevant_customer_tags(self, relevant_customer_tags): + @relevant_host_tags.setter + def relevant_host_tags(self, relevant_host_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 + Sets the relevant_host_tags of this MaintenanceWindow. + List of source/host tags whose matching sources/hosts will be put into maintenance because of this maintenance window - :param relevant_customer_tags: The relevant_customer_tags of this MaintenanceWindow. + :param relevant_host_tags: The relevant_host_tags of this MaintenanceWindow. :type: list[str] """ - if relevant_customer_tags is None: - raise ValueError("Invalid value for `relevant_customer_tags`, must not be `None`") - self._relevant_customer_tags = relevant_customer_tags + self._relevant_host_tags = relevant_host_tags @property def relevant_host_names(self): @@ -443,27 +365,134 @@ def relevant_host_names(self, relevant_host_names): self._relevant_host_names = relevant_host_names @property - def relevant_host_tags(self): + def event_name(self): """ - Gets the relevant_host_tags of this MaintenanceWindow. - List of source/host tags whose matching sources/hosts will be put into maintenance because of this maintenance window + Gets the event_name of this MaintenanceWindow. + The name of an event associated with the creation/update of this maintenance window - :return: The relevant_host_tags of this MaintenanceWindow. - :rtype: list[str] + :return: The event_name of this MaintenanceWindow. + :rtype: str """ - return self._relevant_host_tags + return self._event_name - @relevant_host_tags.setter - def relevant_host_tags(self, relevant_host_tags): + @event_name.setter + def event_name(self, event_name): """ - Sets the relevant_host_tags of this MaintenanceWindow. - List of source/host tags whose matching sources/hosts will be put into maintenance because of this maintenance window + Sets the event_name of this MaintenanceWindow. + The name of an event associated with the creation/update of this maintenance window - :param relevant_host_tags: The relevant_host_tags of this MaintenanceWindow. - :type: list[str] + :param event_name: The event_name of this MaintenanceWindow. + :type: str """ - self._relevant_host_tags = relevant_host_tags + self._event_name = event_name + + @property + def creator_id(self): + """ + Gets the creator_id of this MaintenanceWindow. + + :return: The creator_id of this MaintenanceWindow. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """ + Sets the creator_id of this MaintenanceWindow. + + :param creator_id: The creator_id of this MaintenanceWindow. + :type: str + """ + + self._creator_id = creator_id + + @property + def created_epoch_millis(self): + """ + Gets the created_epoch_millis of this MaintenanceWindow. + + :return: The created_epoch_millis of this MaintenanceWindow. + :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 MaintenanceWindow. + + :param created_epoch_millis: The created_epoch_millis of this MaintenanceWindow. + :type: int + """ + + self._created_epoch_millis = created_epoch_millis + + @property + def updated_epoch_millis(self): + """ + Gets the updated_epoch_millis of this MaintenanceWindow. + + :return: The updated_epoch_millis of this MaintenanceWindow. + :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 MaintenanceWindow. + + :param updated_epoch_millis: The updated_epoch_millis of this MaintenanceWindow. + :type: int + """ + + self._updated_epoch_millis = updated_epoch_millis + + @property + def updater_id(self): + """ + Gets the updater_id of this MaintenanceWindow. + + :return: The updater_id of this MaintenanceWindow. + :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. + :type: str + """ + + self._updater_id = updater_id + + @property + def relevant_host_tags_anded(self): + """ + Gets the relevant_host_tags_anded of this MaintenanceWindow. + Whether to AND source/host tags listed in relevantHostTags. If true, a source/host must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a source/host must contain one of the tags. Default: false + + :return: The relevant_host_tags_anded of this MaintenanceWindow. + :rtype: bool + """ + return self._relevant_host_tags_anded + + @relevant_host_tags_anded.setter + def relevant_host_tags_anded(self, relevant_host_tags_anded): + """ + Sets the relevant_host_tags_anded of this MaintenanceWindow. + Whether to AND source/host tags listed in relevantHostTags. If true, a source/host must contain all tags in order for the maintenance window to apply. If false, the tags are OR'ed, and a source/host must contain one of the tags. Default: false + + :param relevant_host_tags_anded: The relevant_host_tags_anded of this MaintenanceWindow. + :type: bool + """ + + self._relevant_host_tags_anded = relevant_host_tags_anded @property def host_tag_group_host_names_group_anded(self): @@ -488,33 +517,6 @@ def host_tag_group_host_names_group_anded(self, host_tag_group_host_names_group_ self._host_tag_group_host_names_group_anded = host_tag_group_host_names_group_anded - @property - def running_state(self): - """ - Gets the running_state of this MaintenanceWindow. - - :return: The running_state of this MaintenanceWindow. - :rtype: str - """ - return self._running_state - - @running_state.setter - def running_state(self, running_state): - """ - Sets the running_state of this MaintenanceWindow. - - :param running_state: The running_state of this MaintenanceWindow. - :type: str - """ - allowed_values = ["ONGOING", "PENDING", "ENDED"] - if running_state not in allowed_values: - raise ValueError( - "Invalid value for `running_state` ({0}), must be one of {1}" - .format(running_state, allowed_values) - ) - - self._running_state = running_state - def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/message.py b/wavefront_api_client/models/message.py index b18bb47..209fc72 100644 --- a/wavefront_api_client/models/message.py +++ b/wavefront_api_client/models/message.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -31,93 +31,71 @@ class Message(object): and the value is json key in definition. """ swagger_types = { - 'attributes': 'dict(str, str)', 'scope': 'str', 'source': 'str', + 'attributes': 'dict(str, str)', 'id': 'str', 'target': 'str', 'content': 'str', - 'severity': 'str', 'title': 'str', - 'end_epoch_millis': 'int', + 'severity': 'str', 'start_epoch_millis': 'int', + 'end_epoch_millis': 'int', 'display': 'str', 'read': 'bool' } attribute_map = { - 'attributes': 'attributes', 'scope': 'scope', 'source': 'source', + 'attributes': 'attributes', 'id': 'id', 'target': 'target', 'content': 'content', - 'severity': 'severity', 'title': 'title', - 'end_epoch_millis': 'endEpochMillis', + 'severity': 'severity', 'start_epoch_millis': 'startEpochMillis', + 'end_epoch_millis': 'endEpochMillis', 'display': 'display', 'read': 'read' } - def __init__(self, attributes=None, scope=None, source=None, id=None, target=None, content=None, severity=None, title=None, end_epoch_millis=None, start_epoch_millis=None, display=None, read=None): + def __init__(self, scope=None, source=None, attributes=None, id=None, target=None, content=None, title=None, severity=None, start_epoch_millis=None, end_epoch_millis=None, display=None, read=None): """ Message - a model defined in Swagger """ - self._attributes = None self._scope = None self._source = None + self._attributes = None self._id = None self._target = None self._content = None - self._severity = None self._title = None - self._end_epoch_millis = None + self._severity = None self._start_epoch_millis = None + self._end_epoch_millis = None self._display = None self._read = None + self.discriminator = None - if attributes is not None: - self.attributes = attributes self.scope = scope self.source = source + if attributes is not None: + self.attributes = attributes if id is not None: self.id = id if target is not None: self.target = target self.content = content - self.severity = severity self.title = title - self.end_epoch_millis = end_epoch_millis + self.severity = severity self.start_epoch_millis = start_epoch_millis + self.end_epoch_millis = end_epoch_millis self.display = display if read is not None: self.read = read - @property - def attributes(self): - """ - Gets the attributes of this Message. - A string->string map of additional properties associated with this message - - :return: The attributes of this Message. - :rtype: dict(str, str) - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """ - Sets the attributes of this Message. - A string->string map of additional properties associated with this message - - :param attributes: The attributes of this Message. - :type: dict(str, str) - """ - - self._attributes = attributes - @property def scope(self): """ @@ -174,6 +152,29 @@ def source(self, source): self._source = source + @property + def attributes(self): + """ + Gets the attributes of this Message. + A string->string map of additional properties associated with this message + + :return: The attributes of this Message. + :rtype: dict(str, str) + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """ + Sets the attributes of this Message. + A string->string map of additional properties associated with this message + + :param attributes: The attributes of this Message. + :type: dict(str, str) + """ + + self._attributes = attributes + @property def id(self): """ @@ -243,6 +244,31 @@ def content(self, content): self._content = content + @property + def title(self): + """ + Gets the title of this Message. + Title of this message + + :return: The title of this Message. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """ + Sets the title of this Message. + Title of this message + + :param title: The title of this Message. + :type: str + """ + if title is None: + raise ValueError("Invalid value for `title`, must not be `None`") + + self._title = title + @property def severity(self): """ @@ -275,29 +301,29 @@ def severity(self, severity): self._severity = severity @property - def title(self): + def start_epoch_millis(self): """ - Gets the title of this Message. - Title of this message + Gets the start_epoch_millis of this Message. + When this message will begin to be displayed, in epoch millis - :return: The title of this Message. - :rtype: str + :return: The start_epoch_millis of this Message. + :rtype: int """ - return self._title + return self._start_epoch_millis - @title.setter - def title(self, title): + @start_epoch_millis.setter + def start_epoch_millis(self, start_epoch_millis): """ - Sets the title of this Message. - Title of this message + Sets the start_epoch_millis of this Message. + When this message will begin to be displayed, in epoch millis - :param title: The title of this Message. - :type: str + :param start_epoch_millis: The start_epoch_millis of this Message. + :type: int """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") + if start_epoch_millis is None: + raise ValueError("Invalid value for `start_epoch_millis`, must not be `None`") - self._title = title + self._start_epoch_millis = start_epoch_millis @property def end_epoch_millis(self): @@ -324,31 +350,6 @@ def end_epoch_millis(self, end_epoch_millis): self._end_epoch_millis = end_epoch_millis - @property - def start_epoch_millis(self): - """ - Gets the start_epoch_millis of this Message. - When this message will begin to be displayed, in epoch millis - - :return: The start_epoch_millis of this Message. - :rtype: int - """ - return self._start_epoch_millis - - @start_epoch_millis.setter - def start_epoch_millis(self, start_epoch_millis): - """ - Sets the start_epoch_millis of this Message. - When this message will begin to be displayed, in epoch millis - - :param start_epoch_millis: The start_epoch_millis of this Message. - :type: int - """ - if start_epoch_millis is None: - raise ValueError("Invalid value for `start_epoch_millis`, must not be `None`") - - self._start_epoch_millis = start_epoch_millis - @property def display(self): """ diff --git a/wavefront_api_client/models/metric_details.py b/wavefront_api_client/models/metric_details.py index 8c432a1..75ce61e 100644 --- a/wavefront_api_client/models/metric_details.py +++ b/wavefront_api_client/models/metric_details.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -50,6 +50,7 @@ def __init__(self, host=None, last_update=None, tags=None): self._host = None self._last_update = None self._tags = None + self.discriminator = None if host is not None: self.host = host diff --git a/wavefront_api_client/models/metric_details_response.py b/wavefront_api_client/models/metric_details_response.py index 0decf6d..4c43fe2 100644 --- a/wavefront_api_client/models/metric_details_response.py +++ b/wavefront_api_client/models/metric_details_response.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -44,6 +44,7 @@ def __init__(self, hosts=None): """ self._hosts = None + self.discriminator = None if hosts is not None: self.hosts = hosts diff --git a/wavefront_api_client/models/metric_status.py b/wavefront_api_client/models/metric_status.py new file mode 100644 index 0000000..0a7ad65 --- /dev/null +++ b/wavefront_api_client/models/metric_status.py @@ -0,0 +1,208 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MetricStatus(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 = { + 'status': 'str', + 'ever': 'bool', + 'recent_except_now': 'bool', + 'now': 'bool' + } + + attribute_map = { + 'status': 'status', + 'ever': 'ever', + 'recent_except_now': 'recentExceptNow', + 'now': 'now' + } + + def __init__(self, status=None, ever=None, recent_except_now=None, now=None): + """ + MetricStatus - a model defined in Swagger + """ + + self._status = None + self._ever = None + self._recent_except_now = None + self._now = 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 + + @property + def status(self): + """ + Gets the status of this MetricStatus. + + :return: The status of this MetricStatus. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this MetricStatus. + + :param status: The status of this MetricStatus. + :type: str + """ + allowed_values = ["OK", "PENDING"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def ever(self): + """ + Gets the ever of this MetricStatus. + + :return: The ever of this MetricStatus. + :rtype: bool + """ + return self._ever + + @ever.setter + def ever(self, ever): + """ + Sets the ever of this MetricStatus. + + :param ever: The ever of this MetricStatus. + :type: bool + """ + + self._ever = ever + + @property + def recent_except_now(self): + """ + Gets the recent_except_now of this MetricStatus. + + :return: The recent_except_now of this MetricStatus. + :rtype: bool + """ + return self._recent_except_now + + @recent_except_now.setter + def recent_except_now(self, recent_except_now): + """ + Sets the recent_except_now of this MetricStatus. + + :param recent_except_now: The recent_except_now of this MetricStatus. + :type: bool + """ + + self._recent_except_now = recent_except_now + + @property + def now(self): + """ + Gets the now of this MetricStatus. + + :return: The now of this MetricStatus. + :rtype: bool + """ + return self._now + + @now.setter + def now(self, now): + """ + Sets the now of this MetricStatus. + + :param now: The now of this MetricStatus. + :type: bool + """ + + self._now = now + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, MetricStatus): + 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/webhook.py b/wavefront_api_client/models/notificant.py similarity index 63% rename from wavefront_api_client/models/webhook.py rename to wavefront_api_client/models/notificant.py index 6cf22e9..834f88e 100644 --- a/wavefront_api_client/models/webhook.py +++ b/wavefront_api_client/models/notificant.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -16,7 +16,7 @@ import re -class Webhook(object): +class Notificant(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,106 +31,126 @@ class Webhook(object): and the value is json key in definition. """ swagger_types = { - 'id': 'str', + 'method': 'str', 'content_type': 'str', + 'id': 'str', 'description': 'str', 'customer_id': 'str', + 'title': 'str', + 'creator_id': 'str', 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'creator_id': 'str', 'template': 'str', - 'title': 'str', 'triggers': 'list[str]', + 'custom_http_headers': 'dict(str, str)', 'recipient': 'str', - 'custom_http_headers': 'dict(str, str)' + 'email_subject': 'str' } attribute_map = { - 'id': 'id', + 'method': 'method', 'content_type': 'contentType', + 'id': 'id', 'description': 'description', 'customer_id': 'customerId', + 'title': 'title', + 'creator_id': 'creatorId', 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'creator_id': 'creatorId', 'template': 'template', - 'title': 'title', 'triggers': 'triggers', + 'custom_http_headers': 'customHttpHeaders', 'recipient': 'recipient', - 'custom_http_headers': 'customHttpHeaders' + 'email_subject': 'emailSubject' } - def __init__(self, id=None, content_type=None, description=None, customer_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, template=None, title=None, triggers=None, recipient=None, custom_http_headers=None): + def __init__(self, method=None, content_type=None, id=None, description=None, customer_id=None, title=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, template=None, triggers=None, custom_http_headers=None, recipient=None, email_subject=None): """ - Webhook - a model defined in Swagger + Notificant - a model defined in Swagger """ - self._id = None + self._method = None self._content_type = None + self._id = None self._description = None self._customer_id = None + self._title = None + self._creator_id = None self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._creator_id = None self._template = None - self._title = None self._triggers = None - self._recipient = None self._custom_http_headers = None + self._recipient = None + self._email_subject = None + self.discriminator = None - if id is not None: - self.id = id + self.method = method if content_type is not None: self.content_type = content_type + if id is not None: + self.id = id self.description = description if customer_id is not None: self.customer_id = customer_id + self.title = title + 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 creator_id is not None: - self.creator_id = creator_id self.template = template - self.title = title self.triggers = triggers - self.recipient = recipient if custom_http_headers is not None: self.custom_http_headers = custom_http_headers + self.recipient = recipient + if email_subject is not None: + self.email_subject = email_subject @property - def id(self): + def method(self): """ - Gets the id of this Webhook. + Gets the method of this Notificant. + The notification method used for notification target. - :return: The id of this Webhook. + :return: The method of this Notificant. :rtype: str """ - return self._id + return self._method - @id.setter - def id(self, id): + @method.setter + def method(self, method): """ - Sets the id of this Webhook. + Sets the method of this Notificant. + The notification method used for notification target. - :param id: The id of this Webhook. + :param method: The method of this Notificant. :type: str """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") + allowed_values = ["WEBHOOK", "EMAIL", "PAGERDUTY"] + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" + .format(method, allowed_values) + ) - self._id = id + self._method = method @property def content_type(self): """ - Gets the content_type of this Webhook. + Gets the content_type of this Notificant. The value of the Content-Type header of the webhook POST request. - :return: The content_type of this Webhook. + :return: The content_type of this Notificant. :rtype: str """ return self._content_type @@ -138,10 +158,10 @@ def content_type(self): @content_type.setter def content_type(self, content_type): """ - Sets the content_type of this Webhook. + Sets the content_type of this Notificant. The value of the Content-Type header of the webhook POST request. - :param content_type: The content_type of this Webhook. + :param content_type: The content_type of this Notificant. :type: str """ allowed_values = ["application/json", "text/html", "text/plain", "application/x-www-form-urlencoded"] @@ -153,13 +173,34 @@ def content_type(self, content_type): self._content_type = content_type + @property + def id(self): + """ + Gets the id of this Notificant. + + :return: The id of this Notificant. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Notificant. + + :param id: The id of this Notificant. + :type: str + """ + + self._id = id + @property def description(self): """ - Gets the description of this Webhook. - Webhook description + Gets the description of this Notificant. + Description - :return: The description of this Webhook. + :return: The description of this Notificant. :rtype: str """ return self._description @@ -167,10 +208,10 @@ def description(self): @description.setter def description(self, description): """ - Sets the description of this Webhook. - Webhook description + Sets the description of this Notificant. + Description - :param description: The description of this Webhook. + :param description: The description of this Notificant. :type: str """ if description is None: @@ -181,9 +222,9 @@ def description(self, description): @property def customer_id(self): """ - Gets the customer_id of this Webhook. + Gets the customer_id of this Notificant. - :return: The customer_id of this Webhook. + :return: The customer_id of this Notificant. :rtype: str """ return self._customer_id @@ -191,20 +232,66 @@ def customer_id(self): @customer_id.setter def customer_id(self, customer_id): """ - Sets the customer_id of this Webhook. + Sets the customer_id of this Notificant. - :param customer_id: The customer_id of this Webhook. + :param customer_id: The customer_id of this Notificant. :type: str """ self._customer_id = customer_id + @property + def title(self): + """ + Gets the title of this Notificant. + Title + + :return: The title of this Notificant. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """ + Sets the title of this Notificant. + Title + + :param title: The title of this Notificant. + :type: str + """ + if title is None: + raise ValueError("Invalid value for `title`, must not be `None`") + + self._title = title + + @property + def creator_id(self): + """ + Gets the creator_id of this Notificant. + + :return: The creator_id of this Notificant. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """ + Sets the creator_id of this Notificant. + + :param creator_id: The creator_id of this Notificant. + :type: str + """ + + self._creator_id = creator_id + @property def created_epoch_millis(self): """ - Gets the created_epoch_millis of this Webhook. + Gets the created_epoch_millis of this Notificant. - :return: The created_epoch_millis of this Webhook. + :return: The created_epoch_millis of this Notificant. :rtype: int """ return self._created_epoch_millis @@ -212,9 +299,9 @@ def created_epoch_millis(self): @created_epoch_millis.setter def created_epoch_millis(self, created_epoch_millis): """ - Sets the created_epoch_millis of this Webhook. + Sets the created_epoch_millis of this Notificant. - :param created_epoch_millis: The created_epoch_millis of this Webhook. + :param created_epoch_millis: The created_epoch_millis of this Notificant. :type: int """ @@ -223,9 +310,9 @@ def created_epoch_millis(self, created_epoch_millis): @property def updated_epoch_millis(self): """ - Gets the updated_epoch_millis of this Webhook. + Gets the updated_epoch_millis of this Notificant. - :return: The updated_epoch_millis of this Webhook. + :return: The updated_epoch_millis of this Notificant. :rtype: int """ return self._updated_epoch_millis @@ -233,9 +320,9 @@ def updated_epoch_millis(self): @updated_epoch_millis.setter def updated_epoch_millis(self, updated_epoch_millis): """ - Sets the updated_epoch_millis of this Webhook. + Sets the updated_epoch_millis of this Notificant. - :param updated_epoch_millis: The updated_epoch_millis of this Webhook. + :param updated_epoch_millis: The updated_epoch_millis of this Notificant. :type: int """ @@ -244,9 +331,9 @@ def updated_epoch_millis(self, updated_epoch_millis): @property def updater_id(self): """ - Gets the updater_id of this Webhook. + Gets the updater_id of this Notificant. - :return: The updater_id of this Webhook. + :return: The updater_id of this Notificant. :rtype: str """ return self._updater_id @@ -254,42 +341,21 @@ def updater_id(self): @updater_id.setter def updater_id(self, updater_id): """ - Sets the updater_id of this Webhook. + Sets the updater_id of this Notificant. - :param updater_id: The updater_id of this Webhook. + :param updater_id: The updater_id of this Notificant. :type: str """ self._updater_id = updater_id - @property - def creator_id(self): - """ - Gets the creator_id of this Webhook. - - :return: The creator_id of this Webhook. - :rtype: str - """ - return self._creator_id - - @creator_id.setter - def creator_id(self, creator_id): - """ - Sets the creator_id of this Webhook. - - :param creator_id: The creator_id of this Webhook. - :type: str - """ - - self._creator_id = creator_id - @property def template(self): """ - Gets the template of this Webhook. - A mustache template that will form the body of the POST request sent as the web hook. + Gets the template of this Notificant. + A mustache template that will form the body of the POST request, email and summary of the PagerDuty. - :return: The template of this Webhook. + :return: The template of this Notificant. :rtype: str """ return self._template @@ -297,10 +363,10 @@ def template(self): @template.setter def template(self, template): """ - Sets the template of this Webhook. - A mustache template that will form the body of the POST request sent as the web hook. + Sets the template of this Notificant. + A mustache template that will form the body of the POST request, email and summary of the PagerDuty. - :param template: The template of this Webhook. + :param template: The template of this Notificant. :type: str """ if template is None: @@ -308,38 +374,13 @@ def template(self, template): self._template = template - @property - def title(self): - """ - Gets the title of this Webhook. - Webhook Title - - :return: The title of this Webhook. - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """ - Sets the title of this Webhook. - Webhook Title - - :param title: The title of this Webhook. - :type: str - """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") - - self._title = title - @property def triggers(self): """ - Gets the triggers of this Webhook. + Gets the triggers of this Notificant. A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED - :return: The triggers of this Webhook. + :return: The triggers of this Notificant. :rtype: list[str] """ return self._triggers @@ -347,15 +388,15 @@ def triggers(self): @triggers.setter def triggers(self, triggers): """ - Sets the triggers of this Webhook. + Sets the triggers of this Notificant. A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED - :param triggers: The triggers of this Webhook. + :param triggers: The triggers of this Notificant. :type: list[str] """ if triggers is None: raise ValueError("Invalid value for `triggers`, must not be `None`") - allowed_values = ["ALERT_OPENED", "ALERT_UPDATED", "ALERT_RESOLVED", "ALERT_MAINTENANCE", "ALERT_SNOOZED", "ALERT_INVALID", "ALERT_NO_LONGER_INVALID", "ALERT_TESTING", "ALERT_RETRIGGERED"] + 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"] if not set(triggers).issubset(set(allowed_values)): raise ValueError( "Invalid values for `triggers` [{0}], must be a subset of [{1}]" @@ -365,13 +406,36 @@ def triggers(self, triggers): self._triggers = triggers + @property + def custom_http_headers(self): + """ + Gets 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 + + :return: The custom_http_headers of this Notificant. + :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 + + :param custom_http_headers: The custom_http_headers of this Notificant. + :type: dict(str, str) + """ + + self._custom_http_headers = custom_http_headers + @property def recipient(self): """ - Gets the recipient of this Webhook. - The URL to which this webhook will be delivered + Gets the recipient of this Notificant. + The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point - :return: The recipient of this Webhook. + :return: The recipient of this Notificant. :rtype: str """ return self._recipient @@ -379,10 +443,10 @@ def recipient(self): @recipient.setter def recipient(self, recipient): """ - Sets the recipient of this Webhook. - The URL to which this webhook will be delivered + Sets the recipient of this Notificant. + The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point - :param recipient: The recipient of this Webhook. + :param recipient: The recipient of this Notificant. :type: str """ if recipient is None: @@ -391,27 +455,27 @@ def recipient(self, recipient): self._recipient = recipient @property - def custom_http_headers(self): + def email_subject(self): """ - Gets the custom_http_headers of this Webhook. - A string->string map specifying the custom HTTP header key / value pairs that will be sent in the requests of this web hook + Gets the email_subject of this Notificant. + The subject title of an email notification target - :return: The custom_http_headers of this Webhook. - :rtype: dict(str, str) + :return: The email_subject of this Notificant. + :rtype: str """ - return self._custom_http_headers + return self._email_subject - @custom_http_headers.setter - def custom_http_headers(self, custom_http_headers): + @email_subject.setter + def email_subject(self, email_subject): """ - Sets the custom_http_headers of this Webhook. - A string->string map specifying the custom HTTP header key / value pairs that will be sent in the requests of this web hook + Sets the email_subject of this Notificant. + The subject title of an email notification target - :param custom_http_headers: The custom_http_headers of this Webhook. - :type: dict(str, str) + :param email_subject: The email_subject of this Notificant. + :type: str """ - self._custom_http_headers = custom_http_headers + self._email_subject = email_subject def to_dict(self): """ @@ -455,7 +519,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, Webhook): + if not isinstance(other, Notificant): return False return self.__dict__ == other.__dict__ diff --git a/wavefront_api_client/models/number.py b/wavefront_api_client/models/number.py index 63a6b12..c266d52 100644 --- a/wavefront_api_client/models/number.py +++ b/wavefront_api_client/models/number.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -43,6 +43,7 @@ def __init__(self): Number - a model defined in Swagger """ + self.discriminator = None def to_dict(self): diff --git a/wavefront_api_client/models/paged.py b/wavefront_api_client/models/paged.py index d589521..b24dd90 100644 --- a/wavefront_api_client/models/paged.py +++ b/wavefront_api_client/models/paged.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -65,6 +65,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._more_items = None self._sort = None self._alert_counts = None + self.discriminator = None if items is not None: self.items = items @@ -221,7 +222,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this Paged. - How returned items have been sorted :return: The sort of this Paged. :rtype: Sorting @@ -232,7 +232,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this Paged. - How returned items have been sorted :param sort: The sort of this Paged. :type: Sorting diff --git a/wavefront_api_client/models/paged_alert.py b/wavefront_api_client/models/paged_alert.py index 15a2b87..8e89ce7 100644 --- a/wavefront_api_client/models/paged_alert.py +++ b/wavefront_api_client/models/paged_alert.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedAlert. - How returned items have been sorted :return: The sort of this PagedAlert. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedAlert. - How returned items have been sorted :param sort: The sort of this PagedAlert. :type: Sorting diff --git a/wavefront_api_client/models/paged_cloud_integration.py b/wavefront_api_client/models/paged_cloud_integration.py index a81ce82..44ccd4f 100644 --- a/wavefront_api_client/models/paged_cloud_integration.py +++ b/wavefront_api_client/models/paged_cloud_integration.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedCloudIntegration. - How returned items have been sorted :return: The sort of this PagedCloudIntegration. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedCloudIntegration. - How returned items have been sorted :param sort: The sort of this PagedCloudIntegration. :type: Sorting diff --git a/wavefront_api_client/models/paged_dashboard.py b/wavefront_api_client/models/paged_dashboard.py index 2152d98..fd995dc 100644 --- a/wavefront_api_client/models/paged_dashboard.py +++ b/wavefront_api_client/models/paged_dashboard.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedDashboard. - How returned items have been sorted :return: The sort of this PagedDashboard. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedDashboard. - How returned items have been sorted :param sort: The sort of this PagedDashboard. :type: Sorting diff --git a/wavefront_api_client/models/paged_event.py b/wavefront_api_client/models/paged_event.py index d00a099..4d2e50b 100644 --- a/wavefront_api_client/models/paged_event.py +++ b/wavefront_api_client/models/paged_event.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedEvent. - How returned items have been sorted :return: The sort of this PagedEvent. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedEvent. - How returned items have been sorted :param sort: The sort of this PagedEvent. :type: Sorting diff --git a/wavefront_api_client/models/paged_external_link.py b/wavefront_api_client/models/paged_external_link.py index c3e7f36..2aa9067 100644 --- a/wavefront_api_client/models/paged_external_link.py +++ b/wavefront_api_client/models/paged_external_link.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedExternalLink. - How returned items have been sorted :return: The sort of this PagedExternalLink. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedExternalLink. - How returned items have been sorted :param sort: The sort of this PagedExternalLink. :type: Sorting diff --git a/wavefront_api_client/models/paged_integration.py b/wavefront_api_client/models/paged_integration.py new file mode 100644 index 0000000..3c48541 --- /dev/null +++ b/wavefront_api_client/models/paged_integration.py @@ -0,0 +1,288 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PagedIntegration(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 = { + 'items': 'list[Integration]', + 'offset': 'int', + 'limit': 'int', + 'cursor': 'str', + 'total_items': 'int', + 'more_items': 'bool', + 'sort': 'Sorting' + } + + attribute_map = { + 'items': 'items', + 'offset': 'offset', + 'limit': 'limit', + 'cursor': 'cursor', + 'total_items': 'totalItems', + 'more_items': 'moreItems', + 'sort': 'sort' + } + + def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): + """ + PagedIntegration - a model defined in Swagger + """ + + self._items = None + self._offset = None + self._limit = None + self._cursor = None + self._total_items = None + self._more_items = None + self._sort = None + self.discriminator = None + + 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 sort is not None: + self.sort = sort + + @property + def items(self): + """ + Gets the items of this PagedIntegration. + List of requested items + + :return: The items of this PagedIntegration. + :rtype: list[Integration] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this PagedIntegration. + List of requested items + + :param items: The items of this PagedIntegration. + :type: list[Integration] + """ + + self._items = items + + @property + def offset(self): + """ + Gets the offset of this PagedIntegration. + + :return: The offset of this PagedIntegration. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """ + Sets the offset of this PagedIntegration. + + :param offset: The offset of this PagedIntegration. + :type: int + """ + + self._offset = offset + + @property + def limit(self): + """ + Gets the limit of this PagedIntegration. + + :return: The limit of this PagedIntegration. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """ + Sets the limit of this PagedIntegration. + + :param limit: The limit of this PagedIntegration. + :type: int + """ + + self._limit = limit + + @property + def cursor(self): + """ + Gets the cursor of this PagedIntegration. + The id at which the current (limited) search can be continued to obtain more matching items + + :return: The cursor of this PagedIntegration. + :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 + + :param cursor: The cursor of this PagedIntegration. + :type: str + """ + + self._cursor = cursor + + @property + def total_items(self): + """ + Gets 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 + + :return: The total_items of this PagedIntegration. + :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 + + :param total_items: The total_items of this PagedIntegration. + :type: int + """ + + self._total_items = total_items + + @property + def more_items(self): + """ + Gets the more_items of this PagedIntegration. + Whether more items are available for return by increment offset or cursor + + :return: The more_items of this PagedIntegration. + :rtype: bool + """ + return self._more_items + + @more_items.setter + def more_items(self, more_items): + """ + Sets the more_items of this PagedIntegration. + Whether more items are available for return by increment offset or cursor + + :param more_items: The more_items of this PagedIntegration. + :type: bool + """ + + self._more_items = more_items + + @property + def sort(self): + """ + Gets the sort of this PagedIntegration. + + :return: The sort of this PagedIntegration. + :rtype: Sorting + """ + return self._sort + + @sort.setter + def sort(self, sort): + """ + Sets the sort of this PagedIntegration. + + :param sort: The sort of this PagedIntegration. + :type: Sorting + """ + + self._sort = sort + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, PagedIntegration): + 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/paged_maintenance_window.py b/wavefront_api_client/models/paged_maintenance_window.py index 045008d..d0a8fb8 100644 --- a/wavefront_api_client/models/paged_maintenance_window.py +++ b/wavefront_api_client/models/paged_maintenance_window.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedMaintenanceWindow. - How returned items have been sorted :return: The sort of this PagedMaintenanceWindow. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedMaintenanceWindow. - How returned items have been sorted :param sort: The sort of this PagedMaintenanceWindow. :type: Sorting diff --git a/wavefront_api_client/models/paged_message.py b/wavefront_api_client/models/paged_message.py index 4e376dc..baa3423 100644 --- a/wavefront_api_client/models/paged_message.py +++ b/wavefront_api_client/models/paged_message.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedMessage. - How returned items have been sorted :return: The sort of this PagedMessage. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedMessage. - How returned items have been sorted :param sort: The sort of this PagedMessage. :type: Sorting diff --git a/wavefront_api_client/models/paged_webhook.py b/wavefront_api_client/models/paged_notificant.py similarity index 71% rename from wavefront_api_client/models/paged_webhook.py rename to wavefront_api_client/models/paged_notificant.py index 392bc28..b691024 100644 --- a/wavefront_api_client/models/paged_webhook.py +++ b/wavefront_api_client/models/paged_notificant.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -16,7 +16,7 @@ import re -class PagedWebhook(object): +class PagedNotificant(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class PagedWebhook(object): and the value is json key in definition. """ swagger_types = { - 'items': 'list[Webhook]', + 'items': 'list[Notificant]', 'offset': 'int', 'limit': 'int', 'cursor': 'str', @@ -52,7 +52,7 @@ class PagedWebhook(object): def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items=None, more_items=None, sort=None): """ - PagedWebhook - a model defined in Swagger + PagedNotificant - a model defined in Swagger """ self._items = None @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -81,22 +82,22 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items @property def items(self): """ - Gets the items of this PagedWebhook. + Gets the items of this PagedNotificant. List of requested items - :return: The items of this PagedWebhook. - :rtype: list[Webhook] + :return: The items of this PagedNotificant. + :rtype: list[Notificant] """ return self._items @items.setter def items(self, items): """ - Sets the items of this PagedWebhook. + Sets the items of this PagedNotificant. List of requested items - :param items: The items of this PagedWebhook. - :type: list[Webhook] + :param items: The items of this PagedNotificant. + :type: list[Notificant] """ self._items = items @@ -104,9 +105,9 @@ def items(self, items): @property def offset(self): """ - Gets the offset of this PagedWebhook. + Gets the offset of this PagedNotificant. - :return: The offset of this PagedWebhook. + :return: The offset of this PagedNotificant. :rtype: int """ return self._offset @@ -114,9 +115,9 @@ def offset(self): @offset.setter def offset(self, offset): """ - Sets the offset of this PagedWebhook. + Sets the offset of this PagedNotificant. - :param offset: The offset of this PagedWebhook. + :param offset: The offset of this PagedNotificant. :type: int """ @@ -125,9 +126,9 @@ def offset(self, offset): @property def limit(self): """ - Gets the limit of this PagedWebhook. + Gets the limit of this PagedNotificant. - :return: The limit of this PagedWebhook. + :return: The limit of this PagedNotificant. :rtype: int """ return self._limit @@ -135,9 +136,9 @@ def limit(self): @limit.setter def limit(self, limit): """ - Sets the limit of this PagedWebhook. + Sets the limit of this PagedNotificant. - :param limit: The limit of this PagedWebhook. + :param limit: The limit of this PagedNotificant. :type: int """ @@ -146,10 +147,10 @@ def limit(self, limit): @property def cursor(self): """ - Gets the cursor of this PagedWebhook. + Gets the cursor of this PagedNotificant. The id at which the current (limited) search can be continued to obtain more matching items - :return: The cursor of this PagedWebhook. + :return: The cursor of this PagedNotificant. :rtype: str """ return self._cursor @@ -157,10 +158,10 @@ def cursor(self): @cursor.setter def cursor(self, cursor): """ - Sets the cursor of this PagedWebhook. + Sets the cursor of this PagedNotificant. The id at which the current (limited) search can be continued to obtain more matching items - :param cursor: The cursor of this PagedWebhook. + :param cursor: The cursor of this PagedNotificant. :type: str """ @@ -169,10 +170,10 @@ def cursor(self, cursor): @property def total_items(self): """ - Gets the total_items of this PagedWebhook. + Gets 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 - :return: The total_items of this PagedWebhook. + :return: The total_items of this PagedNotificant. :rtype: int """ return self._total_items @@ -180,10 +181,10 @@ def total_items(self): @total_items.setter def total_items(self, total_items): """ - Sets the total_items of this PagedWebhook. + 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 - :param total_items: The total_items of this PagedWebhook. + :param total_items: The total_items of this PagedNotificant. :type: int """ @@ -192,10 +193,10 @@ def total_items(self, total_items): @property def more_items(self): """ - Gets the more_items of this PagedWebhook. + Gets the more_items of this PagedNotificant. Whether more items are available for return by increment offset or cursor - :return: The more_items of this PagedWebhook. + :return: The more_items of this PagedNotificant. :rtype: bool """ return self._more_items @@ -203,10 +204,10 @@ def more_items(self): @more_items.setter def more_items(self, more_items): """ - Sets the more_items of this PagedWebhook. + Sets the more_items of this PagedNotificant. Whether more items are available for return by increment offset or cursor - :param more_items: The more_items of this PagedWebhook. + :param more_items: The more_items of this PagedNotificant. :type: bool """ @@ -215,10 +216,9 @@ def more_items(self, more_items): @property def sort(self): """ - Gets the sort of this PagedWebhook. - How returned items have been sorted + Gets the sort of this PagedNotificant. - :return: The sort of this PagedWebhook. + :return: The sort of this PagedNotificant. :rtype: Sorting """ return self._sort @@ -226,10 +226,9 @@ def sort(self): @sort.setter def sort(self, sort): """ - Sets the sort of this PagedWebhook. - How returned items have been sorted + Sets the sort of this PagedNotificant. - :param sort: The sort of this PagedWebhook. + :param sort: The sort of this PagedNotificant. :type: Sorting """ @@ -277,7 +276,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, PagedWebhook): + if not isinstance(other, PagedNotificant): return False return self.__dict__ == other.__dict__ diff --git a/wavefront_api_client/models/paged_proxy.py b/wavefront_api_client/models/paged_proxy.py index 0011c79..8cfb23a 100644 --- a/wavefront_api_client/models/paged_proxy.py +++ b/wavefront_api_client/models/paged_proxy.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedProxy. - How returned items have been sorted :return: The sort of this PagedProxy. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedProxy. - How returned items have been sorted :param sort: The sort of this PagedProxy. :type: Sorting diff --git a/wavefront_api_client/models/paged_saved_search.py b/wavefront_api_client/models/paged_saved_search.py index 27082b4..86ca6f2 100644 --- a/wavefront_api_client/models/paged_saved_search.py +++ b/wavefront_api_client/models/paged_saved_search.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedSavedSearch. - How returned items have been sorted :return: The sort of this PagedSavedSearch. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedSavedSearch. - How returned items have been sorted :param sort: The sort of this PagedSavedSearch. :type: Sorting diff --git a/wavefront_api_client/models/paged_source.py b/wavefront_api_client/models/paged_source.py index c87b34a..e29644b 100644 --- a/wavefront_api_client/models/paged_source.py +++ b/wavefront_api_client/models/paged_source.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this PagedSource. - How returned items have been sorted :return: The sort of this PagedSource. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this PagedSource. - How returned items have been sorted :param sort: The sort of this PagedSource. :type: Sorting diff --git a/wavefront_api_client/models/point.py b/wavefront_api_client/models/point.py index 5560cae..1018a0c 100644 --- a/wavefront_api_client/models/point.py +++ b/wavefront_api_client/models/point.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,6 +47,7 @@ def __init__(self, value=None, timestamp=None): self._value = None self._timestamp = None + self.discriminator = None self.value = value self.timestamp = timestamp diff --git a/wavefront_api_client/models/proxy.py b/wavefront_api_client/models/proxy.py index 8bfbd0c..29cfd4c 100644 --- a/wavefront_api_client/models/proxy.py +++ b/wavefront_api_client/models/proxy.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -31,12 +31,11 @@ class Proxy(object): and the value is json key in definition. """ swagger_types = { + 'version': 'str', 'name': 'str', 'id': 'str', - 'version': 'str', - 'in_trash': 'bool', 'customer_id': 'str', - 'ephemeral': 'bool', + 'in_trash': 'bool', 'last_check_in_time': 'int', 'hostname': 'str', 'last_known_error': 'str', @@ -47,16 +46,16 @@ class Proxy(object): 'bytes_per_minute_for_buffer': 'int', 'local_queue_size': 'int', 'ssh_agent': 'bool', + 'ephemeral': 'bool', 'deleted': 'bool' } attribute_map = { + 'version': 'version', 'name': 'name', 'id': 'id', - 'version': 'version', - 'in_trash': 'inTrash', 'customer_id': 'customerId', - 'ephemeral': 'ephemeral', + 'in_trash': 'inTrash', 'last_check_in_time': 'lastCheckInTime', 'hostname': 'hostname', 'last_known_error': 'lastKnownError', @@ -67,20 +66,20 @@ class Proxy(object): 'bytes_per_minute_for_buffer': 'bytesPerMinuteForBuffer', 'local_queue_size': 'localQueueSize', 'ssh_agent': 'sshAgent', + 'ephemeral': 'ephemeral', 'deleted': 'deleted' } - def __init__(self, name=None, id=None, version=None, in_trash=None, customer_id=None, ephemeral=None, last_check_in_time=None, hostname=None, last_known_error=None, last_error_time=None, last_error_event=None, time_drift=None, bytes_left_for_buffer=None, bytes_per_minute_for_buffer=None, local_queue_size=None, ssh_agent=None, deleted=None): + def __init__(self, version=None, name=None, id=None, customer_id=None, in_trash=None, last_check_in_time=None, hostname=None, last_known_error=None, last_error_time=None, last_error_event=None, time_drift=None, bytes_left_for_buffer=None, bytes_per_minute_for_buffer=None, local_queue_size=None, ssh_agent=None, ephemeral=None, deleted=None): """ Proxy - a model defined in Swagger """ + self._version = None self._name = None self._id = None - self._version = None - self._in_trash = None self._customer_id = None - self._ephemeral = None + self._in_trash = None self._last_check_in_time = None self._hostname = None self._last_known_error = None @@ -91,20 +90,19 @@ def __init__(self, name=None, id=None, version=None, in_trash=None, customer_id= self._bytes_per_minute_for_buffer = None self._local_queue_size = None self._ssh_agent = None + self._ephemeral = None self._deleted = None + self.discriminator = None - if name is not None: - self.name = name - if id is not None: - self.id = id if version is not None: self.version = version - if in_trash is not None: - self.in_trash = in_trash + self.name = name + if id is not None: + self.id = id if customer_id is not None: self.customer_id = customer_id - if ephemeral is not None: - self.ephemeral = ephemeral + 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 hostname is not None: @@ -125,9 +123,32 @@ def __init__(self, name=None, id=None, version=None, in_trash=None, customer_id= self.local_queue_size = local_queue_size if ssh_agent is not None: self.ssh_agent = ssh_agent + if ephemeral is not None: + self.ephemeral = ephemeral if deleted is not None: self.deleted = deleted + @property + def version(self): + """ + Gets the version of this Proxy. + + :return: The version of this Proxy. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this Proxy. + + :param version: The version of this Proxy. + :type: str + """ + + self._version = version + @property def name(self): """ @@ -148,6 +169,8 @@ def name(self, name): :param name: The name of this Proxy. :type: str """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") self._name = name @@ -172,48 +195,6 @@ def id(self, id): self._id = id - @property - def version(self): - """ - Gets the version of this Proxy. - - :return: The version of this Proxy. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this Proxy. - - :param version: The version of this Proxy. - :type: str - """ - - self._version = version - - @property - def in_trash(self): - """ - Gets the in_trash of this Proxy. - - :return: The in_trash of this Proxy. - :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. - :type: bool - """ - - self._in_trash = in_trash - @property def customer_id(self): """ @@ -236,27 +217,25 @@ def customer_id(self, customer_id): self._customer_id = customer_id @property - def ephemeral(self): + def in_trash(self): """ - Gets 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) + Gets the in_trash of this Proxy. - :return: The ephemeral of this Proxy. + :return: The in_trash of this Proxy. :rtype: bool """ - return self._ephemeral + return self._in_trash - @ephemeral.setter - def ephemeral(self, ephemeral): + @in_trash.setter + def in_trash(self, in_trash): """ - 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) + Sets the in_trash of this Proxy. - :param ephemeral: The ephemeral of this Proxy. + :param in_trash: The in_trash of this Proxy. :type: bool """ - self._ephemeral = ephemeral + self._in_trash = in_trash @property def last_check_in_time(self): @@ -486,6 +465,29 @@ def ssh_agent(self, ssh_agent): self._ssh_agent = ssh_agent + @property + def ephemeral(self): + """ + Gets 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) + + :return: The ephemeral of this Proxy. + :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) + + :param ephemeral: The ephemeral of this Proxy. + :type: bool + """ + + self._ephemeral = ephemeral + @property def deleted(self): """ diff --git a/wavefront_api_client/models/query_event.py b/wavefront_api_client/models/query_event.py new file mode 100644 index 0000000..b297165 --- /dev/null +++ b/wavefront_api_client/models/query_event.py @@ -0,0 +1,294 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QueryEvent(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', + 'start': 'int', + 'end': 'int', + 'tags': 'dict(str, str)', + 'hosts': 'list[str]', + 'summarized': 'int', + 'is_ephemeral': 'bool' + } + + attribute_map = { + 'name': 'name', + 'start': 'start', + 'end': 'end', + 'tags': 'tags', + 'hosts': 'hosts', + 'summarized': 'summarized', + 'is_ephemeral': 'isEphemeral' + } + + def __init__(self, name=None, start=None, end=None, tags=None, hosts=None, summarized=None, is_ephemeral=None): + """ + QueryEvent - a model defined in Swagger + """ + + self._name = None + self._start = None + self._end = None + self._tags = None + self._hosts = None + self._summarized = None + self._is_ephemeral = 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 + + @property + def name(self): + """ + Gets the name of this QueryEvent. + Event name + + :return: The name of this QueryEvent. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this QueryEvent. + Event name + + :param name: The name of this QueryEvent. + :type: str + """ + + self._name = name + + @property + def start(self): + """ + Gets the start of this QueryEvent. + Start time of event, in epoch millis + + :return: The start of this QueryEvent. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """ + Sets the start of this QueryEvent. + Start time of event, in epoch millis + + :param start: The start of this QueryEvent. + :type: int + """ + + self._start = start + + @property + def end(self): + """ + Gets the end of this QueryEvent. + End time of event, in epoch millis + + :return: The end of this QueryEvent. + :rtype: int + """ + return self._end + + @end.setter + def end(self, end): + """ + Sets the end of this QueryEvent. + End time of event, in epoch millis + + :param end: The end of this QueryEvent. + :type: int + """ + + self._end = end + + @property + def tags(self): + """ + Gets the tags of this QueryEvent. + Tags (annotations) on the event + + :return: The tags of this QueryEvent. + :rtype: dict(str, str) + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this QueryEvent. + Tags (annotations) on the event + + :param tags: The tags of this QueryEvent. + :type: dict(str, str) + """ + + self._tags = tags + + @property + def hosts(self): + """ + Gets the hosts of this QueryEvent. + Sources (hosts) to which the event pertains + + :return: The hosts of this QueryEvent. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """ + Sets the hosts of this QueryEvent. + Sources (hosts) to which the event pertains + + :param hosts: The hosts of this QueryEvent. + :type: list[str] + """ + + self._hosts = hosts + + @property + def summarized(self): + """ + Gets the summarized of this QueryEvent. + 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 + + :return: The summarized of this QueryEvent. + :rtype: int + """ + return self._summarized + + @summarized.setter + def summarized(self, summarized): + """ + Sets the summarized of this QueryEvent. + 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 + + :param summarized: The summarized of this QueryEvent. + :type: int + """ + + self._summarized = summarized + + @property + def is_ephemeral(self): + """ + Gets the is_ephemeral 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 + + :return: The is_ephemeral of this QueryEvent. + :rtype: bool + """ + return self._is_ephemeral + + @is_ephemeral.setter + def is_ephemeral(self, is_ephemeral): + """ + Sets the is_ephemeral 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 + + :param is_ephemeral: The is_ephemeral of this QueryEvent. + :type: bool + """ + + self._is_ephemeral = is_ephemeral + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, QueryEvent): + 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/query_key_container.py b/wavefront_api_client/models/query_key_container.py deleted file mode 100644 index fa0785d..0000000 --- a/wavefront_api_client/models/query_key_container.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 - -""" - Wavefront Public API - -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

- - OpenAPI spec version: v2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class QueryKeyContainer(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', - 'metric': 'str', - 'host': 'str', - 'tags': 'dict(str, str)', - 'host_tag': 'str' - } - - attribute_map = { - 'name': 'name', - 'metric': 'metric', - 'host': 'host', - 'tags': 'tags', - 'host_tag': 'hostTag' - } - - def __init__(self, name=None, metric=None, host=None, tags=None, host_tag=None): - """ - QueryKeyContainer - a model defined in Swagger - """ - - self._name = None - self._metric = None - self._host = None - self._tags = None - self._host_tag = None - - if name is not None: - self.name = name - if metric is not None: - self.metric = metric - if host is not None: - self.host = host - if tags is not None: - self.tags = tags - if host_tag is not None: - self.host_tag = host_tag - - @property - def name(self): - """ - Gets the name of this QueryKeyContainer. - - :return: The name of this QueryKeyContainer. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this QueryKeyContainer. - - :param name: The name of this QueryKeyContainer. - :type: str - """ - - self._name = name - - @property - def metric(self): - """ - Gets the metric of this QueryKeyContainer. - - :return: The metric of this QueryKeyContainer. - :rtype: str - """ - return self._metric - - @metric.setter - def metric(self, metric): - """ - Sets the metric of this QueryKeyContainer. - - :param metric: The metric of this QueryKeyContainer. - :type: str - """ - - self._metric = metric - - @property - def host(self): - """ - Gets the host of this QueryKeyContainer. - - :return: The host of this QueryKeyContainer. - :rtype: str - """ - return self._host - - @host.setter - def host(self, host): - """ - Sets the host of this QueryKeyContainer. - - :param host: The host of this QueryKeyContainer. - :type: str - """ - - self._host = host - - @property - def tags(self): - """ - Gets the tags of this QueryKeyContainer. - - :return: The tags of this QueryKeyContainer. - :rtype: dict(str, str) - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this QueryKeyContainer. - - :param tags: The tags of this QueryKeyContainer. - :type: dict(str, str) - """ - - self._tags = tags - - @property - def host_tag(self): - """ - Gets the host_tag of this QueryKeyContainer. - - :return: The host_tag of this QueryKeyContainer. - :rtype: str - """ - return self._host_tag - - @host_tag.setter - def host_tag(self, host_tag): - """ - Sets the host_tag of this QueryKeyContainer. - - :param host_tag: The host_tag of this QueryKeyContainer. - :type: str - """ - - self._host_tag = host_tag - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in 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 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, QueryKeyContainer): - 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/query_result.py b/wavefront_api_client/models/query_result.py index ad1780a..61385ce 100644 --- a/wavefront_api_client/models/query_result.py +++ b/wavefront_api_client/models/query_result.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -31,116 +31,54 @@ class QueryResult(object): and the value is json key in definition. """ swagger_types = { - 'query': 'str', 'name': 'str', - 'skip': 'int', - 'stats': 'StatsModel', + 'query': 'str', 'warnings': 'str', - 'metrics_used': 'list[str]', - 'hosts_used': 'list[str]', - 'host_tags_used': 'list[str]', + 'stats': 'StatsModel', 'granularity': 'int', - 'num_compilation_tasks': 'int', - 'query_keys': 'list[QueryKeyContainer]', - 'raw_points_stats': 'list[TimeseriesStatsContainer]', - 'summarized_points_stats': 'list[TimeseriesStatsContainer]', 'timeseries': 'list[Timeseries]', - 'events': 'list[ReportEvent]' + 'events': 'list[QueryEvent]' } attribute_map = { - 'query': 'query', 'name': 'name', - 'skip': 'skip', - 'stats': 'stats', + 'query': 'query', 'warnings': 'warnings', - 'metrics_used': 'metricsUsed', - 'hosts_used': 'hostsUsed', - 'host_tags_used': 'hostTagsUsed', + 'stats': 'stats', 'granularity': 'granularity', - 'num_compilation_tasks': 'numCompilationTasks', - 'query_keys': 'queryKeys', - 'raw_points_stats': 'rawPointsStats', - 'summarized_points_stats': 'summarizedPointsStats', 'timeseries': 'timeseries', 'events': 'events' } - def __init__(self, query=None, name=None, skip=None, stats=None, warnings=None, metrics_used=None, hosts_used=None, host_tags_used=None, granularity=None, num_compilation_tasks=None, query_keys=None, raw_points_stats=None, summarized_points_stats=None, timeseries=None, events=None): + def __init__(self, name=None, query=None, warnings=None, stats=None, granularity=None, timeseries=None, events=None): """ QueryResult - a model defined in Swagger """ - self._query = None self._name = None - self._skip = None - self._stats = None + self._query = None self._warnings = None - self._metrics_used = None - self._hosts_used = None - self._host_tags_used = None + self._stats = None self._granularity = None - self._num_compilation_tasks = None - self._query_keys = None - self._raw_points_stats = None - self._summarized_points_stats = None self._timeseries = None self._events = None + self.discriminator = None - if query is not None: - self.query = query if name is not None: self.name = name - if skip is not None: - self.skip = skip - if stats is not None: - self.stats = stats + if query is not None: + self.query = query if warnings is not None: self.warnings = warnings - if metrics_used is not None: - self.metrics_used = metrics_used - if hosts_used is not None: - self.hosts_used = hosts_used - if host_tags_used is not None: - self.host_tags_used = host_tags_used + if stats is not None: + self.stats = stats if granularity is not None: self.granularity = granularity - if num_compilation_tasks is not None: - self.num_compilation_tasks = num_compilation_tasks - if query_keys is not None: - self.query_keys = query_keys - if raw_points_stats is not None: - self.raw_points_stats = raw_points_stats - if summarized_points_stats is not None: - self.summarized_points_stats = summarized_points_stats if timeseries is not None: self.timeseries = timeseries if events is not None: self.events = events - @property - def query(self): - """ - Gets the query of this QueryResult. - The query string used to obtain this result - - :return: The query of this QueryResult. - :rtype: str - """ - return self._query - - @query.setter - def query(self, query): - """ - Sets the query of this QueryResult. - The query string used to obtain this result - - :param query: The query of this QueryResult. - :type: str - """ - - self._query = query - @property def name(self): """ @@ -165,50 +103,27 @@ def name(self, name): self._name = name @property - def skip(self): - """ - Gets the skip of this QueryResult. - Unused/deprecated - - :return: The skip of this QueryResult. - :rtype: int - """ - return self._skip - - @skip.setter - def skip(self, skip): - """ - Sets the skip of this QueryResult. - Unused/deprecated - - :param skip: The skip of this QueryResult. - :type: int - """ - - self._skip = skip - - @property - def stats(self): + def query(self): """ - Gets the stats of this QueryResult. - Statistics about the result data + Gets the query of this QueryResult. + The query used to obtain this result - :return: The stats of this QueryResult. - :rtype: StatsModel + :return: The query of this QueryResult. + :rtype: str """ - return self._stats + return self._query - @stats.setter - def stats(self, stats): + @query.setter + def query(self, query): """ - Sets the stats of this QueryResult. - Statistics about the result data + Sets the query of this QueryResult. + The query used to obtain this result - :param stats: The stats of this QueryResult. - :type: StatsModel + :param query: The query of this QueryResult. + :type: str """ - self._stats = stats + self._query = query @property def warnings(self): @@ -234,72 +149,31 @@ def warnings(self, warnings): self._warnings = warnings @property - def metrics_used(self): - """ - Gets the metrics_used of this QueryResult. - - :return: The metrics_used of this QueryResult. - :rtype: list[str] - """ - return self._metrics_used - - @metrics_used.setter - def metrics_used(self, metrics_used): - """ - Sets the metrics_used of this QueryResult. - - :param metrics_used: The metrics_used of this QueryResult. - :type: list[str] - """ - - self._metrics_used = metrics_used - - @property - def hosts_used(self): - """ - Gets the hosts_used of this QueryResult. - - :return: The hosts_used of this QueryResult. - :rtype: list[str] - """ - return self._hosts_used - - @hosts_used.setter - def hosts_used(self, hosts_used): - """ - Sets the hosts_used of this QueryResult. - - :param hosts_used: The hosts_used of this QueryResult. - :type: list[str] - """ - - self._hosts_used = hosts_used - - @property - def host_tags_used(self): + def stats(self): """ - Gets the host_tags_used of this QueryResult. + Gets the stats of this QueryResult. - :return: The host_tags_used of this QueryResult. - :rtype: list[str] + :return: The stats of this QueryResult. + :rtype: StatsModel """ - return self._host_tags_used + return self._stats - @host_tags_used.setter - def host_tags_used(self, host_tags_used): + @stats.setter + def stats(self, stats): """ - Sets the host_tags_used of this QueryResult. + Sets the stats of this QueryResult. - :param host_tags_used: The host_tags_used of this QueryResult. - :type: list[str] + :param stats: The stats of this QueryResult. + :type: StatsModel """ - self._host_tags_used = host_tags_used + self._stats = stats @property def granularity(self): """ Gets the granularity of this QueryResult. + The granularity of the returned results, in seconds :return: The granularity of this QueryResult. :rtype: int @@ -310,6 +184,7 @@ def granularity(self): def granularity(self, granularity): """ Sets the granularity of this QueryResult. + The granularity of the returned results, in seconds :param granularity: The granularity of this QueryResult. :type: int @@ -317,95 +192,10 @@ def granularity(self, granularity): self._granularity = granularity - @property - def num_compilation_tasks(self): - """ - Gets the num_compilation_tasks of this QueryResult. - - :return: The num_compilation_tasks of this QueryResult. - :rtype: int - """ - return self._num_compilation_tasks - - @num_compilation_tasks.setter - def num_compilation_tasks(self, num_compilation_tasks): - """ - Sets the num_compilation_tasks of this QueryResult. - - :param num_compilation_tasks: The num_compilation_tasks of this QueryResult. - :type: int - """ - - self._num_compilation_tasks = num_compilation_tasks - - @property - def query_keys(self): - """ - Gets the query_keys of this QueryResult. - - :return: The query_keys of this QueryResult. - :rtype: list[QueryKeyContainer] - """ - return self._query_keys - - @query_keys.setter - def query_keys(self, query_keys): - """ - Sets the query_keys of this QueryResult. - - :param query_keys: The query_keys of this QueryResult. - :type: list[QueryKeyContainer] - """ - - self._query_keys = query_keys - - @property - def raw_points_stats(self): - """ - Gets the raw_points_stats of this QueryResult. - - :return: The raw_points_stats of this QueryResult. - :rtype: list[TimeseriesStatsContainer] - """ - return self._raw_points_stats - - @raw_points_stats.setter - def raw_points_stats(self, raw_points_stats): - """ - Sets the raw_points_stats of this QueryResult. - - :param raw_points_stats: The raw_points_stats of this QueryResult. - :type: list[TimeseriesStatsContainer] - """ - - self._raw_points_stats = raw_points_stats - - @property - def summarized_points_stats(self): - """ - Gets the summarized_points_stats of this QueryResult. - - :return: The summarized_points_stats of this QueryResult. - :rtype: list[TimeseriesStatsContainer] - """ - return self._summarized_points_stats - - @summarized_points_stats.setter - def summarized_points_stats(self, summarized_points_stats): - """ - Sets the summarized_points_stats of this QueryResult. - - :param summarized_points_stats: The summarized_points_stats of this QueryResult. - :type: list[TimeseriesStatsContainer] - """ - - self._summarized_points_stats = summarized_points_stats - @property def timeseries(self): """ Gets the timeseries of this QueryResult. - The time series data for this query :return: The timeseries of this QueryResult. :rtype: list[Timeseries] @@ -416,7 +206,6 @@ def timeseries(self): def timeseries(self, timeseries): """ Sets the timeseries of this QueryResult. - The time series data for this query :param timeseries: The timeseries of this QueryResult. :type: list[Timeseries] @@ -428,10 +217,9 @@ def timeseries(self, timeseries): def events(self): """ Gets the events of this QueryResult. - The events occurring during this time span :return: The events of this QueryResult. - :rtype: list[ReportEvent] + :rtype: list[QueryEvent] """ return self._events @@ -439,10 +227,9 @@ def events(self): def events(self, events): """ Sets the events of this QueryResult. - The events occurring during this time span :param events: The events of this QueryResult. - :type: list[ReportEvent] + :type: list[QueryEvent] """ self._events = events diff --git a/wavefront_api_client/models/raw_timeseries.py b/wavefront_api_client/models/raw_timeseries.py new file mode 100644 index 0000000..6b25051 --- /dev/null +++ b/wavefront_api_client/models/raw_timeseries.py @@ -0,0 +1,153 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class RawTimeseries(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 = { + 'tags': 'dict(str, str)', + 'points': 'list[Point]' + } + + attribute_map = { + 'tags': 'tags', + 'points': 'points' + } + + def __init__(self, tags=None, points=None): + """ + RawTimeseries - a model defined in Swagger + """ + + self._tags = None + self._points = None + self.discriminator = None + + if tags is not None: + self.tags = tags + self.points = points + + @property + def tags(self): + """ + Gets the tags of this RawTimeseries. + Associated tags of the time series + + :return: The tags of this RawTimeseries. + :rtype: dict(str, str) + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this RawTimeseries. + Associated tags of the time series + + :param tags: The tags of this RawTimeseries. + :type: dict(str, str) + """ + + self._tags = tags + + @property + def points(self): + """ + Gets the points of this RawTimeseries. + + :return: The points of this RawTimeseries. + :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. + :type: list[Point] + """ + if points is None: + raise ValueError("Invalid value for `points`, must not be `None`") + + self._points = points + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, RawTimeseries): + 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/report_event.py b/wavefront_api_client/models/report_event.py deleted file mode 100644 index c00c32c..0000000 --- a/wavefront_api_client/models/report_event.py +++ /dev/null @@ -1,475 +0,0 @@ -# coding: utf-8 - -""" - Wavefront Public API - -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

- - OpenAPI spec version: v2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ReportEvent(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', - 'start_time': 'int', - 'end_time': 'int', - 'annotations': 'dict(str, str)', - 'hosts': 'list[str]', - 'summarized_events': 'int', - 'tags': 'list[str]', - 'is_user_event': 'bool', - 'is_ephemeral': 'bool', - 'table': 'str', - 'creator_id': 'str', - 'updater_id': 'str', - 'created_at': 'int', - 'updated_at': 'int' - } - - attribute_map = { - 'name': 'name', - 'start_time': 'startTime', - 'end_time': 'endTime', - 'annotations': 'annotations', - 'hosts': 'hosts', - 'summarized_events': 'summarizedEvents', - 'tags': 'tags', - 'is_user_event': 'isUserEvent', - 'is_ephemeral': 'isEphemeral', - 'table': 'table', - 'creator_id': 'creatorId', - 'updater_id': 'updaterId', - 'created_at': 'createdAt', - 'updated_at': 'updatedAt' - } - - def __init__(self, name=None, start_time=None, end_time=None, annotations=None, hosts=None, summarized_events=None, tags=None, is_user_event=None, is_ephemeral=None, table=None, creator_id=None, updater_id=None, created_at=None, updated_at=None): - """ - ReportEvent - a model defined in Swagger - """ - - self._name = None - self._start_time = None - self._end_time = None - self._annotations = None - self._hosts = None - self._summarized_events = None - self._tags = None - self._is_user_event = None - self._is_ephemeral = None - self._table = None - self._creator_id = None - self._updater_id = None - self._created_at = None - self._updated_at = None - - self.name = name - self.start_time = start_time - if end_time is not None: - self.end_time = end_time - if annotations is not None: - self.annotations = annotations - if hosts is not None: - self.hosts = hosts - if summarized_events is not None: - self.summarized_events = summarized_events - if tags is not None: - self.tags = tags - if is_user_event is not None: - self.is_user_event = is_user_event - if is_ephemeral is not None: - self.is_ephemeral = is_ephemeral - if table is not None: - self.table = table - if creator_id is not None: - self.creator_id = creator_id - if updater_id is not None: - self.updater_id = updater_id - if created_at is not None: - self.created_at = created_at - if updated_at is not None: - self.updated_at = updated_at - - @property - def name(self): - """ - Gets the name of this ReportEvent. - Name of the event - - :return: The name of this ReportEvent. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this ReportEvent. - Name of the event - - :param name: The name of this ReportEvent. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def start_time(self): - """ - Gets the start_time of this ReportEvent. - Start time in milliseconds for the event - - :return: The start_time of this ReportEvent. - :rtype: int - """ - return self._start_time - - @start_time.setter - def start_time(self, start_time): - """ - Sets the start_time of this ReportEvent. - Start time in milliseconds for the event - - :param start_time: The start_time of this ReportEvent. - :type: int - """ - if start_time is None: - raise ValueError("Invalid value for `start_time`, must not be `None`") - - self._start_time = start_time - - @property - def end_time(self): - """ - Gets the end_time of this ReportEvent. - End time in milliseconds for the event. If missing, the event is ongoing - - :return: The end_time of this ReportEvent. - :rtype: int - """ - return self._end_time - - @end_time.setter - def end_time(self, end_time): - """ - Sets the end_time of this ReportEvent. - End time in milliseconds for the event. If missing, the event is ongoing - - :param end_time: The end_time of this ReportEvent. - :type: int - """ - - self._end_time = end_time - - @property - def annotations(self): - """ - Gets the annotations of this ReportEvent. - Annotations for the event. Searchable during queries - - :return: The annotations of this ReportEvent. - :rtype: dict(str, str) - """ - return self._annotations - - @annotations.setter - def annotations(self, annotations): - """ - Sets the annotations of this ReportEvent. - Annotations for the event. Searchable during queries - - :param annotations: The annotations of this ReportEvent. - :type: dict(str, str) - """ - - self._annotations = annotations - - @property - def hosts(self): - """ - Gets the hosts of this ReportEvent. - Hosts associated for the event - - :return: The hosts of this ReportEvent. - :rtype: list[str] - """ - return self._hosts - - @hosts.setter - def hosts(self, hosts): - """ - Sets the hosts of this ReportEvent. - Hosts associated for the event - - :param hosts: The hosts of this ReportEvent. - :type: list[str] - """ - - self._hosts = hosts - - @property - def summarized_events(self): - """ - Gets the summarized_events of this ReportEvent. - - :return: The summarized_events of this ReportEvent. - :rtype: int - """ - return self._summarized_events - - @summarized_events.setter - def summarized_events(self, summarized_events): - """ - Sets the summarized_events of this ReportEvent. - - :param summarized_events: The summarized_events of this ReportEvent. - :type: int - """ - - self._summarized_events = summarized_events - - @property - def tags(self): - """ - Gets the tags of this ReportEvent. - - :return: The tags of this ReportEvent. - :rtype: list[str] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this ReportEvent. - - :param tags: The tags of this ReportEvent. - :type: list[str] - """ - - self._tags = tags - - @property - def is_user_event(self): - """ - Gets the is_user_event of this ReportEvent. - - :return: The is_user_event of this ReportEvent. - :rtype: bool - """ - return self._is_user_event - - @is_user_event.setter - def is_user_event(self, is_user_event): - """ - Sets the is_user_event of this ReportEvent. - - :param is_user_event: The is_user_event of this ReportEvent. - :type: bool - """ - - self._is_user_event = is_user_event - - @property - def is_ephemeral(self): - """ - Gets the is_ephemeral of this ReportEvent. - - :return: The is_ephemeral of this ReportEvent. - :rtype: bool - """ - return self._is_ephemeral - - @is_ephemeral.setter - def is_ephemeral(self, is_ephemeral): - """ - Sets the is_ephemeral of this ReportEvent. - - :param is_ephemeral: The is_ephemeral of this ReportEvent. - :type: bool - """ - - self._is_ephemeral = is_ephemeral - - @property - def table(self): - """ - Gets the table of this ReportEvent. - The customer that owns the event - - :return: The table of this ReportEvent. - :rtype: str - """ - return self._table - - @table.setter - def table(self, table): - """ - Sets the table of this ReportEvent. - The customer that owns the event - - :param table: The table of this ReportEvent. - :type: str - """ - - self._table = table - - @property - def creator_id(self): - """ - Gets the creator_id of this ReportEvent. - - :return: The creator_id of this ReportEvent. - :rtype: str - """ - return self._creator_id - - @creator_id.setter - def creator_id(self, creator_id): - """ - Sets the creator_id of this ReportEvent. - - :param creator_id: The creator_id of this ReportEvent. - :type: str - """ - - self._creator_id = creator_id - - @property - def updater_id(self): - """ - Gets the updater_id of this ReportEvent. - - :return: The updater_id of this ReportEvent. - :rtype: str - """ - return self._updater_id - - @updater_id.setter - def updater_id(self, updater_id): - """ - Sets the updater_id of this ReportEvent. - - :param updater_id: The updater_id of this ReportEvent. - :type: str - """ - - self._updater_id = updater_id - - @property - def created_at(self): - """ - Gets the created_at of this ReportEvent. - - :return: The created_at of this ReportEvent. - :rtype: int - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """ - Sets the created_at of this ReportEvent. - - :param created_at: The created_at of this ReportEvent. - :type: int - """ - - self._created_at = created_at - - @property - def updated_at(self): - """ - Gets the updated_at of this ReportEvent. - - :return: The updated_at of this ReportEvent. - :rtype: int - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """ - Sets the updated_at of this ReportEvent. - - :param updated_at: The updated_at of this ReportEvent. - :type: int - """ - - self._updated_at = updated_at - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in 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 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, ReportEvent): - 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/response_container.py b/wavefront_api_client/models/response_container.py index 44307ef..97e2c8b 100644 --- a/wavefront_api_client/models/response_container.py +++ b/wavefront_api_client/models/response_container.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainer. - The response, if the request is successful :return: The response of this ResponseContainer. :rtype: object @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainer. - The response, if the request is successful :param response: The response of this ResponseContainer. :type: object """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_alert.py b/wavefront_api_client/models/response_container_alert.py index 6d0ed9b..94c6828 100644 --- a/wavefront_api_client/models/response_container_alert.py +++ b/wavefront_api_client/models/response_container_alert.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerAlert. - The response, if the request is successful :return: The response of this ResponseContainerAlert. :rtype: Alert @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerAlert. - The response, if the request is successful :param response: The response of this ResponseContainerAlert. :type: Alert """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_cloud_integration.py b/wavefront_api_client/models/response_container_cloud_integration.py index 8061d13..c86e352 100644 --- a/wavefront_api_client/models/response_container_cloud_integration.py +++ b/wavefront_api_client/models/response_container_cloud_integration.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerCloudIntegration. - The response, if the request is successful :return: The response of this ResponseContainerCloudIntegration. :rtype: CloudIntegration @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerCloudIntegration. - The response, if the request is successful :param response: The response of this ResponseContainerCloudIntegration. :type: CloudIntegration """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_dashboard.py b/wavefront_api_client/models/response_container_dashboard.py index 7b20b43..f6e675d 100644 --- a/wavefront_api_client/models/response_container_dashboard.py +++ b/wavefront_api_client/models/response_container_dashboard.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerDashboard. - The response, if the request is successful :return: The response of this ResponseContainerDashboard. :rtype: Dashboard @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerDashboard. - The response, if the request is successful :param response: The response of this ResponseContainerDashboard. :type: Dashboard """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_event.py b/wavefront_api_client/models/response_container_event.py index 4e43c77..de8b62d 100644 --- a/wavefront_api_client/models/response_container_event.py +++ b/wavefront_api_client/models/response_container_event.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerEvent. - The response, if the request is successful :return: The response of this ResponseContainerEvent. :rtype: Event @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerEvent. - The response, if the request is successful :param response: The response of this ResponseContainerEvent. :type: Event """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_external_link.py b/wavefront_api_client/models/response_container_external_link.py index d578477..4f474df 100644 --- a/wavefront_api_client/models/response_container_external_link.py +++ b/wavefront_api_client/models/response_container_external_link.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerExternalLink. - The response, if the request is successful :return: The response of this ResponseContainerExternalLink. :rtype: ExternalLink @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerExternalLink. - The response, if the request is successful :param response: The response of this ResponseContainerExternalLink. :type: ExternalLink """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_facet_response.py b/wavefront_api_client/models/response_container_facet_response.py index 88d74aa..031a0af 100644 --- a/wavefront_api_client/models/response_container_facet_response.py +++ b/wavefront_api_client/models/response_container_facet_response.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerFacetResponse. - The response, if the request is successful :return: The response of this ResponseContainerFacetResponse. :rtype: FacetResponse @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerFacetResponse. - The response, if the request is successful :param response: The response of this ResponseContainerFacetResponse. :type: FacetResponse """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response 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 aee0d5b..5ced36b 100644 --- a/wavefront_api_client/models/response_container_facets_response_container.py +++ b/wavefront_api_client/models/response_container_facets_response_container.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerFacetsResponseContainer. - The response, if the request is successful :return: The response of this ResponseContainerFacetsResponseContainer. :rtype: FacetsResponseContainer @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerFacetsResponseContainer. - The response, if the request is successful :param response: The response of this ResponseContainerFacetsResponseContainer. :type: FacetsResponseContainer """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_history_response.py b/wavefront_api_client/models/response_container_history_response.py index 1126c76..3bf09f0 100644 --- a/wavefront_api_client/models/response_container_history_response.py +++ b/wavefront_api_client/models/response_container_history_response.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerHistoryResponse. - The response, if the request is successful :return: The response of this ResponseContainerHistoryResponse. :rtype: HistoryResponse @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerHistoryResponse. - The response, if the request is successful :param response: The response of this ResponseContainerHistoryResponse. :type: HistoryResponse """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_integration.py b/wavefront_api_client/models/response_container_integration.py new file mode 100644 index 0000000..69880e6 --- /dev/null +++ b/wavefront_api_client/models/response_container_integration.py @@ -0,0 +1,152 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResponseContainerIntegration(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 = { + 'status': 'ResponseStatus', + 'response': 'Integration' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + + def __init__(self, status=None, response=None): + """ + ResponseContainerIntegration - a model defined in Swagger + """ + + self._status = None + self._response = None + self.discriminator = None + + self.status = status + self.response = response + + @property + def status(self): + """ + Gets the status of this ResponseContainerIntegration. + + :return: The status of this ResponseContainerIntegration. + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ResponseContainerIntegration. + + :param status: The status of this ResponseContainerIntegration. + :type: ResponseStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def response(self): + """ + Gets the response of this ResponseContainerIntegration. + + :return: The response of this ResponseContainerIntegration. + :rtype: Integration + """ + return self._response + + @response.setter + def response(self, response): + """ + Sets the response of this ResponseContainerIntegration. + + :param response: The response of this ResponseContainerIntegration. + :type: Integration + """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") + + self._response = response + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, ResponseContainerIntegration): + 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/response_container_integration_status.py b/wavefront_api_client/models/response_container_integration_status.py new file mode 100644 index 0000000..24e3fa4 --- /dev/null +++ b/wavefront_api_client/models/response_container_integration_status.py @@ -0,0 +1,152 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResponseContainerIntegrationStatus(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 = { + 'status': 'ResponseStatus', + 'response': 'IntegrationStatus' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + + def __init__(self, status=None, response=None): + """ + ResponseContainerIntegrationStatus - a model defined in Swagger + """ + + self._status = None + self._response = None + self.discriminator = None + + self.status = status + self.response = response + + @property + def status(self): + """ + Gets the status of this ResponseContainerIntegrationStatus. + + :return: The status of this ResponseContainerIntegrationStatus. + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ResponseContainerIntegrationStatus. + + :param status: The status of this ResponseContainerIntegrationStatus. + :type: ResponseStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def response(self): + """ + Gets the response of this ResponseContainerIntegrationStatus. + + :return: The response of this ResponseContainerIntegrationStatus. + :rtype: IntegrationStatus + """ + return self._response + + @response.setter + def response(self, response): + """ + Sets the response of this ResponseContainerIntegrationStatus. + + :param response: The response of this ResponseContainerIntegrationStatus. + :type: IntegrationStatus + """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") + + self._response = response + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, ResponseContainerIntegrationStatus): + 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/response_container_list_integration_manifest_group.py b/wavefront_api_client/models/response_container_list_integration_manifest_group.py new file mode 100644 index 0000000..cfec28d --- /dev/null +++ b/wavefront_api_client/models/response_container_list_integration_manifest_group.py @@ -0,0 +1,152 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResponseContainerListIntegrationManifestGroup(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 = { + 'status': 'ResponseStatus', + 'response': 'list[IntegrationManifestGroup]' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + + def __init__(self, status=None, response=None): + """ + ResponseContainerListIntegrationManifestGroup - a model defined in Swagger + """ + + self._status = None + self._response = None + self.discriminator = None + + self.status = status + self.response = response + + @property + def status(self): + """ + Gets the status of this ResponseContainerListIntegrationManifestGroup. + + :return: The status of this ResponseContainerListIntegrationManifestGroup. + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ResponseContainerListIntegrationManifestGroup. + + :param status: The status of this ResponseContainerListIntegrationManifestGroup. + :type: ResponseStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def response(self): + """ + Gets the response of this ResponseContainerListIntegrationManifestGroup. + + :return: The response of this ResponseContainerListIntegrationManifestGroup. + :rtype: list[IntegrationManifestGroup] + """ + return self._response + + @response.setter + def response(self, response): + """ + Sets the response of this ResponseContainerListIntegrationManifestGroup. + + :param response: The response of this ResponseContainerListIntegrationManifestGroup. + :type: list[IntegrationManifestGroup] + """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") + + self._response = response + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, ResponseContainerListIntegrationManifestGroup): + 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/response_container_maintenance_window.py b/wavefront_api_client/models/response_container_maintenance_window.py index c91fa56..acab037 100644 --- a/wavefront_api_client/models/response_container_maintenance_window.py +++ b/wavefront_api_client/models/response_container_maintenance_window.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerMaintenanceWindow. - The response, if the request is successful :return: The response of this ResponseContainerMaintenanceWindow. :rtype: MaintenanceWindow @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerMaintenanceWindow. - The response, if the request is successful :param response: The response of this ResponseContainerMaintenanceWindow. :type: MaintenanceWindow """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response 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 5326ae4..b848f27 100644 --- a/wavefront_api_client/models/response_container_map_string_integer.py +++ b/wavefront_api_client/models/response_container_map_string_integer.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerMapStringInteger. - The response, if the request is successful :return: The response of this ResponseContainerMapStringInteger. :rtype: dict(str, int) @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerMapStringInteger. - The response, if the request is successful :param response: The response of this ResponseContainerMapStringInteger. :type: dict(str, int) """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response 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 new file mode 100644 index 0000000..bf8e32c --- /dev/null +++ b/wavefront_api_client/models/response_container_map_string_integration_status.py @@ -0,0 +1,152 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResponseContainerMapStringIntegrationStatus(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 = { + 'status': 'ResponseStatus', + 'response': 'dict(str, IntegrationStatus)' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + + def __init__(self, status=None, response=None): + """ + ResponseContainerMapStringIntegrationStatus - a model defined in Swagger + """ + + self._status = None + self._response = None + self.discriminator = None + + self.status = status + self.response = response + + @property + def status(self): + """ + Gets the status of this ResponseContainerMapStringIntegrationStatus. + + :return: The status of this ResponseContainerMapStringIntegrationStatus. + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ResponseContainerMapStringIntegrationStatus. + + :param status: The status of this ResponseContainerMapStringIntegrationStatus. + :type: ResponseStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def response(self): + """ + Gets the response of this ResponseContainerMapStringIntegrationStatus. + + :return: The response of this ResponseContainerMapStringIntegrationStatus. + :rtype: dict(str, IntegrationStatus) + """ + return self._response + + @response.setter + def response(self, response): + """ + Sets the response of this ResponseContainerMapStringIntegrationStatus. + + :param response: The response of this ResponseContainerMapStringIntegrationStatus. + :type: dict(str, IntegrationStatus) + """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") + + self._response = response + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, ResponseContainerMapStringIntegrationStatus): + 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/response_container_message.py b/wavefront_api_client/models/response_container_message.py index 9f65b19..657c2e7 100644 --- a/wavefront_api_client/models/response_container_message.py +++ b/wavefront_api_client/models/response_container_message.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerMessage. - The response, if the request is successful :return: The response of this ResponseContainerMessage. :rtype: Message @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerMessage. - The response, if the request is successful :param response: The response of this ResponseContainerMessage. :type: Message """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_webhook.py b/wavefront_api_client/models/response_container_notificant.py similarity index 66% rename from wavefront_api_client/models/response_container_webhook.py rename to wavefront_api_client/models/response_container_notificant.py index c7a3fd6..16fc878 100644 --- a/wavefront_api_client/models/response_container_webhook.py +++ b/wavefront_api_client/models/response_container_notificant.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -16,7 +16,7 @@ import re -class ResponseContainerWebhook(object): +class ResponseContainerNotificant(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class ResponseContainerWebhook(object): """ swagger_types = { 'status': 'ResponseStatus', - 'response': 'Webhook' + 'response': 'Notificant' } attribute_map = { @@ -42,22 +42,22 @@ class ResponseContainerWebhook(object): def __init__(self, status=None, response=None): """ - ResponseContainerWebhook - a model defined in Swagger + ResponseContainerNotificant - a model defined in Swagger """ self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): """ - Gets the status of this ResponseContainerWebhook. + Gets the status of this ResponseContainerNotificant. - :return: The status of this ResponseContainerWebhook. + :return: The status of this ResponseContainerNotificant. :rtype: ResponseStatus """ return self._status @@ -65,9 +65,9 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this ResponseContainerWebhook. + Sets the status of this ResponseContainerNotificant. - :param status: The status of this ResponseContainerWebhook. + :param status: The status of this ResponseContainerNotificant. :type: ResponseStatus """ if status is None: @@ -78,23 +78,23 @@ def status(self, status): @property def response(self): """ - Gets the response of this ResponseContainerWebhook. - The response, if the request is successful + Gets the response of this ResponseContainerNotificant. - :return: The response of this ResponseContainerWebhook. - :rtype: Webhook + :return: The response of this ResponseContainerNotificant. + :rtype: Notificant """ return self._response @response.setter def response(self, response): """ - Sets the response of this ResponseContainerWebhook. - The response, if the request is successful + Sets the response of this ResponseContainerNotificant. - :param response: The response of this ResponseContainerWebhook. - :type: Webhook + :param response: The response of this ResponseContainerNotificant. + :type: Notificant """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response @@ -140,7 +140,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ResponseContainerWebhook): + if not isinstance(other, ResponseContainerNotificant): return False return self.__dict__ == other.__dict__ diff --git a/wavefront_api_client/models/response_container_paged.py b/wavefront_api_client/models/response_container_paged.py index ebca46e..ae4c161 100644 --- a/wavefront_api_client/models/response_container_paged.py +++ b/wavefront_api_client/models/response_container_paged.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPaged. - The response, if the request is successful :return: The response of this ResponseContainerPaged. :rtype: Paged @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPaged. - The response, if the request is successful :param response: The response of this ResponseContainerPaged. :type: Paged """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_paged_alert.py b/wavefront_api_client/models/response_container_paged_alert.py index a7035e8..580c29e 100644 --- a/wavefront_api_client/models/response_container_paged_alert.py +++ b/wavefront_api_client/models/response_container_paged_alert.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedAlert. - The response, if the request is successful :return: The response of this ResponseContainerPagedAlert. :rtype: PagedAlert @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedAlert. - The response, if the request is successful :param response: The response of this ResponseContainerPagedAlert. :type: PagedAlert """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response 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 3d02e3c..16b2f75 100644 --- a/wavefront_api_client/models/response_container_paged_cloud_integration.py +++ b/wavefront_api_client/models/response_container_paged_cloud_integration.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedCloudIntegration. - The response, if the request is successful :return: The response of this ResponseContainerPagedCloudIntegration. :rtype: PagedCloudIntegration @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedCloudIntegration. - The response, if the request is successful :param response: The response of this ResponseContainerPagedCloudIntegration. :type: PagedCloudIntegration """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_paged_dashboard.py b/wavefront_api_client/models/response_container_paged_dashboard.py index 482dd05..e618ac4 100644 --- a/wavefront_api_client/models/response_container_paged_dashboard.py +++ b/wavefront_api_client/models/response_container_paged_dashboard.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedDashboard. - The response, if the request is successful :return: The response of this ResponseContainerPagedDashboard. :rtype: PagedDashboard @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedDashboard. - The response, if the request is successful :param response: The response of this ResponseContainerPagedDashboard. :type: PagedDashboard """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_paged_event.py b/wavefront_api_client/models/response_container_paged_event.py index d750127..61822b6 100644 --- a/wavefront_api_client/models/response_container_paged_event.py +++ b/wavefront_api_client/models/response_container_paged_event.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedEvent. - The response, if the request is successful :return: The response of this ResponseContainerPagedEvent. :rtype: PagedEvent @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedEvent. - The response, if the request is successful :param response: The response of this ResponseContainerPagedEvent. :type: PagedEvent """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response 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 91746b8..806a83e 100644 --- a/wavefront_api_client/models/response_container_paged_external_link.py +++ b/wavefront_api_client/models/response_container_paged_external_link.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedExternalLink. - The response, if the request is successful :return: The response of this ResponseContainerPagedExternalLink. :rtype: PagedExternalLink @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedExternalLink. - The response, if the request is successful :param response: The response of this ResponseContainerPagedExternalLink. :type: PagedExternalLink """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_paged_integration.py b/wavefront_api_client/models/response_container_paged_integration.py new file mode 100644 index 0000000..f785846 --- /dev/null +++ b/wavefront_api_client/models/response_container_paged_integration.py @@ -0,0 +1,152 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResponseContainerPagedIntegration(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 = { + 'status': 'ResponseStatus', + 'response': 'PagedIntegration' + } + + attribute_map = { + 'status': 'status', + 'response': 'response' + } + + def __init__(self, status=None, response=None): + """ + ResponseContainerPagedIntegration - a model defined in Swagger + """ + + self._status = None + self._response = None + self.discriminator = None + + self.status = status + self.response = response + + @property + def status(self): + """ + Gets the status of this ResponseContainerPagedIntegration. + + :return: The status of this ResponseContainerPagedIntegration. + :rtype: ResponseStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ResponseContainerPagedIntegration. + + :param status: The status of this ResponseContainerPagedIntegration. + :type: ResponseStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def response(self): + """ + Gets the response of this ResponseContainerPagedIntegration. + + :return: The response of this ResponseContainerPagedIntegration. + :rtype: PagedIntegration + """ + return self._response + + @response.setter + def response(self, response): + """ + Sets the response of this ResponseContainerPagedIntegration. + + :param response: The response of this ResponseContainerPagedIntegration. + :type: PagedIntegration + """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") + + self._response = response + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, ResponseContainerPagedIntegration): + 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/response_container_paged_maintenance_window.py b/wavefront_api_client/models/response_container_paged_maintenance_window.py index 40ac949..cb394a5 100644 --- a/wavefront_api_client/models/response_container_paged_maintenance_window.py +++ b/wavefront_api_client/models/response_container_paged_maintenance_window.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedMaintenanceWindow. - The response, if the request is successful :return: The response of this ResponseContainerPagedMaintenanceWindow. :rtype: PagedMaintenanceWindow @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedMaintenanceWindow. - The response, if the request is successful :param response: The response of this ResponseContainerPagedMaintenanceWindow. :type: PagedMaintenanceWindow """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_paged_message.py b/wavefront_api_client/models/response_container_paged_message.py index e57c7c4..2060a2c 100644 --- a/wavefront_api_client/models/response_container_paged_message.py +++ b/wavefront_api_client/models/response_container_paged_message.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedMessage. - The response, if the request is successful :return: The response of this ResponseContainerPagedMessage. :rtype: PagedMessage @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedMessage. - The response, if the request is successful :param response: The response of this ResponseContainerPagedMessage. :type: PagedMessage """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_paged_webhook.py b/wavefront_api_client/models/response_container_paged_notificant.py similarity index 68% rename from wavefront_api_client/models/response_container_paged_webhook.py rename to wavefront_api_client/models/response_container_paged_notificant.py index 3ecdbdd..c0211a0 100644 --- a/wavefront_api_client/models/response_container_paged_webhook.py +++ b/wavefront_api_client/models/response_container_paged_notificant.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -16,7 +16,7 @@ import re -class ResponseContainerPagedWebhook(object): +class ResponseContainerPagedNotificant(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class ResponseContainerPagedWebhook(object): """ swagger_types = { 'status': 'ResponseStatus', - 'response': 'PagedWebhook' + 'response': 'PagedNotificant' } attribute_map = { @@ -42,22 +42,22 @@ class ResponseContainerPagedWebhook(object): def __init__(self, status=None, response=None): """ - ResponseContainerPagedWebhook - a model defined in Swagger + ResponseContainerPagedNotificant - a model defined in Swagger """ self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): """ - Gets the status of this ResponseContainerPagedWebhook. + Gets the status of this ResponseContainerPagedNotificant. - :return: The status of this ResponseContainerPagedWebhook. + :return: The status of this ResponseContainerPagedNotificant. :rtype: ResponseStatus """ return self._status @@ -65,9 +65,9 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this ResponseContainerPagedWebhook. + Sets the status of this ResponseContainerPagedNotificant. - :param status: The status of this ResponseContainerPagedWebhook. + :param status: The status of this ResponseContainerPagedNotificant. :type: ResponseStatus """ if status is None: @@ -78,23 +78,23 @@ def status(self, status): @property def response(self): """ - Gets the response of this ResponseContainerPagedWebhook. - The response, if the request is successful + Gets the response of this ResponseContainerPagedNotificant. - :return: The response of this ResponseContainerPagedWebhook. - :rtype: PagedWebhook + :return: The response of this ResponseContainerPagedNotificant. + :rtype: PagedNotificant """ return self._response @response.setter def response(self, response): """ - Sets the response of this ResponseContainerPagedWebhook. - The response, if the request is successful + Sets the response of this ResponseContainerPagedNotificant. - :param response: The response of this ResponseContainerPagedWebhook. - :type: PagedWebhook + :param response: The response of this ResponseContainerPagedNotificant. + :type: PagedNotificant """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response @@ -140,7 +140,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ResponseContainerPagedWebhook): + if not isinstance(other, ResponseContainerPagedNotificant): return False return self.__dict__ == other.__dict__ diff --git a/wavefront_api_client/models/response_container_paged_proxy.py b/wavefront_api_client/models/response_container_paged_proxy.py index 6deea0e..c82bcf4 100644 --- a/wavefront_api_client/models/response_container_paged_proxy.py +++ b/wavefront_api_client/models/response_container_paged_proxy.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedProxy. - The response, if the request is successful :return: The response of this ResponseContainerPagedProxy. :rtype: PagedProxy @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedProxy. - The response, if the request is successful :param response: The response of this ResponseContainerPagedProxy. :type: PagedProxy """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response 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 42784f7..8b0a960 100644 --- a/wavefront_api_client/models/response_container_paged_saved_search.py +++ b/wavefront_api_client/models/response_container_paged_saved_search.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedSavedSearch. - The response, if the request is successful :return: The response of this ResponseContainerPagedSavedSearch. :rtype: PagedSavedSearch @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedSavedSearch. - The response, if the request is successful :param response: The response of this ResponseContainerPagedSavedSearch. :type: PagedSavedSearch """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_paged_source.py b/wavefront_api_client/models/response_container_paged_source.py index e3da308..b816b14 100644 --- a/wavefront_api_client/models/response_container_paged_source.py +++ b/wavefront_api_client/models/response_container_paged_source.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerPagedSource. - The response, if the request is successful :return: The response of this ResponseContainerPagedSource. :rtype: PagedSource @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerPagedSource. - The response, if the request is successful :param response: The response of this ResponseContainerPagedSource. :type: PagedSource """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_proxy.py b/wavefront_api_client/models/response_container_proxy.py index d281eb9..cf0b45d 100644 --- a/wavefront_api_client/models/response_container_proxy.py +++ b/wavefront_api_client/models/response_container_proxy.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerProxy. - The response, if the request is successful :return: The response of this ResponseContainerProxy. :rtype: Proxy @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerProxy. - The response, if the request is successful :param response: The response of this ResponseContainerProxy. :type: Proxy """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_saved_search.py b/wavefront_api_client/models/response_container_saved_search.py index a39cf16..31dca94 100644 --- a/wavefront_api_client/models/response_container_saved_search.py +++ b/wavefront_api_client/models/response_container_saved_search.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerSavedSearch. - The response, if the request is successful :return: The response of this ResponseContainerSavedSearch. :rtype: SavedSearch @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerSavedSearch. - The response, if the request is successful :param response: The response of this ResponseContainerSavedSearch. :type: SavedSearch """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_source.py b/wavefront_api_client/models/response_container_source.py index ea51fd6..6959e3a 100644 --- a/wavefront_api_client/models/response_container_source.py +++ b/wavefront_api_client/models/response_container_source.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerSource. - The response, if the request is successful :return: The response of this ResponseContainerSource. :rtype: Source @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerSource. - The response, if the request is successful :param response: The response of this ResponseContainerSource. :type: Source """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_container_tags_response.py b/wavefront_api_client/models/response_container_tags_response.py index 03cc4b8..85789c3 100644 --- a/wavefront_api_client/models/response_container_tags_response.py +++ b/wavefront_api_client/models/response_container_tags_response.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,10 +47,10 @@ def __init__(self, status=None, response=None): self._status = None self._response = None + self.discriminator = None self.status = status - if response is not None: - self.response = response + self.response = response @property def status(self): @@ -79,7 +79,6 @@ def status(self, status): def response(self): """ Gets the response of this ResponseContainerTagsResponse. - The response, if the request is successful :return: The response of this ResponseContainerTagsResponse. :rtype: TagsResponse @@ -90,11 +89,12 @@ def response(self): def response(self, response): """ Sets the response of this ResponseContainerTagsResponse. - The response, if the request is successful :param response: The response of this ResponseContainerTagsResponse. :type: TagsResponse """ + if response is None: + raise ValueError("Invalid value for `response`, must not be `None`") self._response = response diff --git a/wavefront_api_client/models/response_status.py b/wavefront_api_client/models/response_status.py index 4865d30..0cb6390 100644 --- a/wavefront_api_client/models/response_status.py +++ b/wavefront_api_client/models/response_status.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -50,6 +50,7 @@ def __init__(self, result=None, message=None, code=None): self._result = None self._message = None self._code = None + self.discriminator = None self.result = result if message is not None: diff --git a/wavefront_api_client/models/saved_search.py b/wavefront_api_client/models/saved_search.py index 8179ffd..58c7ff5 100644 --- a/wavefront_api_client/models/saved_search.py +++ b/wavefront_api_client/models/saved_search.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -33,52 +33,54 @@ class SavedSearch(object): swagger_types = { 'id': 'str', 'query': 'dict(str, str)', - 'entity_type': 'str', + 'creator_id': 'str', 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'creator_id': 'str', + 'entity_type': 'str', 'user_id': 'str' } attribute_map = { 'id': 'id', 'query': 'query', - 'entity_type': 'entityType', + 'creator_id': 'creatorId', 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'creator_id': 'creatorId', + 'entity_type': 'entityType', 'user_id': 'userId' } - def __init__(self, id=None, query=None, entity_type=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, user_id=None): + def __init__(self, id=None, query=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, entity_type=None, user_id=None): """ SavedSearch - a model defined in Swagger """ self._id = None self._query = None - self._entity_type = None + self._creator_id = None self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._creator_id = None + self._entity_type = None self._user_id = None + self.discriminator = None if id is not None: self.id = id self.query = query - self.entity_type = entity_type + 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 creator_id is not None: - self.creator_id = creator_id - self.user_id = user_id + self.entity_type = entity_type + if user_id is not None: + self.user_id = user_id @property def id(self): @@ -127,35 +129,25 @@ def query(self, query): self._query = query @property - def entity_type(self): + def creator_id(self): """ - Gets the entity_type of this SavedSearch. - The Wavefront entity type over which to search + Gets the creator_id of this SavedSearch. - :return: The entity_type of this SavedSearch. + :return: The creator_id of this SavedSearch. :rtype: str """ - return self._entity_type + return self._creator_id - @entity_type.setter - def entity_type(self, entity_type): + @creator_id.setter + def creator_id(self, creator_id): """ - Sets the entity_type of this SavedSearch. - The Wavefront entity type over which to search + Sets the creator_id of this SavedSearch. - :param entity_type: The entity_type of this SavedSearch. + :param creator_id: The creator_id of this SavedSearch. :type: str """ - if entity_type is None: - raise ValueError("Invalid value for `entity_type`, must not be `None`") - allowed_values = ["DASHBOARD", "ALERT", "MAINTENANCE_WINDOW", "NOTIFICANT", "EVENT", "SOURCE", "EXTERNAL_LINK", "AGENT", "CLOUD_INTEGRATION"] - if entity_type not in allowed_values: - raise ValueError( - "Invalid value for `entity_type` ({0}), must be one of {1}" - .format(entity_type, allowed_values) - ) - self._entity_type = entity_type + self._creator_id = creator_id @property def created_epoch_millis(self): @@ -221,25 +213,35 @@ def updater_id(self, updater_id): self._updater_id = updater_id @property - def creator_id(self): + def entity_type(self): """ - Gets the creator_id of this SavedSearch. + Gets the entity_type of this SavedSearch. + The Wavefront entity type over which to search - :return: The creator_id of this SavedSearch. + :return: The entity_type of this SavedSearch. :rtype: str """ - return self._creator_id + return self._entity_type - @creator_id.setter - def creator_id(self, creator_id): + @entity_type.setter + def entity_type(self, entity_type): """ - Sets the creator_id of this SavedSearch. + Sets the entity_type of this SavedSearch. + The Wavefront entity type over which to search - :param creator_id: The creator_id of this SavedSearch. + :param entity_type: The entity_type of this SavedSearch. :type: str """ + if entity_type is None: + raise ValueError("Invalid value for `entity_type`, must not be `None`") + allowed_values = ["DASHBOARD", "ALERT", "MAINTENANCE_WINDOW", "NOTIFICANT", "EVENT", "SOURCE", "EXTERNAL_LINK", "AGENT", "CLOUD_INTEGRATION", "APPLICATION"] + if entity_type not in allowed_values: + raise ValueError( + "Invalid value for `entity_type` ({0}), must be one of {1}" + .format(entity_type, allowed_values) + ) - self._creator_id = creator_id + self._entity_type = entity_type @property def user_id(self): @@ -261,8 +263,6 @@ def user_id(self, user_id): :param user_id: The user_id of this SavedSearch. :type: str """ - if user_id is None: - raise ValueError("Invalid value for `user_id`, must not be `None`") self._user_id = user_id diff --git a/wavefront_api_client/models/search_query.py b/wavefront_api_client/models/search_query.py index 9a9a008..2bfae76 100644 --- a/wavefront_api_client/models/search_query.py +++ b/wavefront_api_client/models/search_query.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -50,6 +50,7 @@ def __init__(self, key=None, value=None, matching_method=None): self._key = None self._value = None self._matching_method = None + self.discriminator = None self.key = key self.value = value diff --git a/wavefront_api_client/models/sortable_search_request.py b/wavefront_api_client/models/sortable_search_request.py index 50f7fce..17f0cb0 100644 --- a/wavefront_api_client/models/sortable_search_request.py +++ b/wavefront_api_client/models/sortable_search_request.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -53,6 +53,7 @@ def __init__(self, limit=None, offset=None, query=None, sort=None): self._offset = None self._query = None self._sort = None + self.discriminator = None if limit is not None: self.limit = limit @@ -136,7 +137,6 @@ def query(self, query): def sort(self): """ Gets the sort of this SortableSearchRequest. - How to sort the items in the response :return: The sort of this SortableSearchRequest. :rtype: Sorting @@ -147,7 +147,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this SortableSearchRequest. - How to sort the items in the response :param sort: The sort of this SortableSearchRequest. :type: Sorting diff --git a/wavefront_api_client/models/sorting.py b/wavefront_api_client/models/sorting.py index f1bbc2c..aa7ca6a 100644 --- a/wavefront_api_client/models/sorting.py +++ b/wavefront_api_client/models/sorting.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -31,50 +31,26 @@ class Sorting(object): and the value is json key in definition. """ swagger_types = { - 'field': 'str', - 'ascending': 'bool' + 'ascending': 'bool', + 'field': 'str' } attribute_map = { - 'field': 'field', - 'ascending': 'ascending' + 'ascending': 'ascending', + 'field': 'field' } - def __init__(self, field=None, ascending=None): + def __init__(self, ascending=None, field=None): """ Sorting - a model defined in Swagger """ - self._field = None self._ascending = None + self._field = None + self.discriminator = None - self.field = field self.ascending = ascending - - @property - def field(self): - """ - Gets the field of this Sorting. - The facet by which to sort - - :return: The field of this Sorting. - :rtype: str - """ - return self._field - - @field.setter - def field(self, field): - """ - Sets the field of this Sorting. - The facet by which to sort - - :param field: The field of this Sorting. - :type: str - """ - if field is None: - raise ValueError("Invalid value for `field`, must not be `None`") - - self._field = field + self.field = field @property def ascending(self): @@ -101,6 +77,31 @@ def ascending(self, ascending): self._ascending = ascending + @property + def field(self): + """ + Gets the field of this Sorting. + The facet by which to sort + + :return: The field of this Sorting. + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """ + Sets the field of this Sorting. + The facet by which to sort + + :param field: The field of this Sorting. + :type: str + """ + if field is None: + raise ValueError("Invalid value for `field`, must not be `None`") + + self._field = field + def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/source.py b/wavefront_api_client/models/source.py index f15127f..78069ad 100644 --- a/wavefront_api_client/models/source.py +++ b/wavefront_api_client/models/source.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -35,10 +35,10 @@ class Source(object): 'id': 'str', 'description': 'str', 'tags': 'dict(str, bool)', + 'creator_id': 'str', 'created_epoch_millis': 'int', 'updated_epoch_millis': 'int', 'updater_id': 'str', - 'creator_id': 'str', 'source_name': 'str' } @@ -47,14 +47,14 @@ class Source(object): 'id': 'id', 'description': 'description', 'tags': 'tags', + 'creator_id': 'creatorId', 'created_epoch_millis': 'createdEpochMillis', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId', - 'creator_id': 'creatorId', 'source_name': 'sourceName' } - def __init__(self, hidden=None, id=None, description=None, tags=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, creator_id=None, source_name=None): + def __init__(self, hidden=None, id=None, description=None, tags=None, creator_id=None, created_epoch_millis=None, updated_epoch_millis=None, updater_id=None, source_name=None): """ Source - a model defined in Swagger """ @@ -63,11 +63,12 @@ def __init__(self, hidden=None, id=None, description=None, tags=None, created_ep self._id = None self._description = None self._tags = None + self._creator_id = None self._created_epoch_millis = None self._updated_epoch_millis = None self._updater_id = None - self._creator_id = None self._source_name = None + self.discriminator = None if hidden is not None: self.hidden = hidden @@ -76,14 +77,14 @@ def __init__(self, hidden=None, id=None, description=None, tags=None, created_ep self.description = description if tags is not None: self.tags = tags + 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 creator_id is not None: - self.creator_id = creator_id self.source_name = source_name @property @@ -180,6 +181,27 @@ def tags(self, tags): self._tags = tags + @property + def creator_id(self): + """ + Gets the creator_id of this Source. + + :return: The creator_id of this Source. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """ + Sets the creator_id of this Source. + + :param creator_id: The creator_id of this Source. + :type: str + """ + + self._creator_id = creator_id + @property def created_epoch_millis(self): """ @@ -243,27 +265,6 @@ def updater_id(self, updater_id): self._updater_id = updater_id - @property - def creator_id(self): - """ - Gets the creator_id of this Source. - - :return: The creator_id of this Source. - :rtype: str - """ - return self._creator_id - - @creator_id.setter - def creator_id(self, creator_id): - """ - Sets the creator_id of this Source. - - :param creator_id: The creator_id of this Source. - :type: str - """ - - self._creator_id = creator_id - @property def source_name(self): """ diff --git a/wavefront_api_client/models/source_label_pair.py b/wavefront_api_client/models/source_label_pair.py index 23825a2..aeb95f6 100644 --- a/wavefront_api_client/models/source_label_pair.py +++ b/wavefront_api_client/models/source_label_pair.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -56,6 +56,7 @@ def __init__(self, label=None, host=None, tags=None, observed=None, firing=None) self._tags = None self._observed = None self._firing = None + self.discriminator = None if label is not None: self.label = label diff --git a/wavefront_api_client/models/source_search_request_container.py b/wavefront_api_client/models/source_search_request_container.py index a9ea98d..af2d526 100644 --- a/wavefront_api_client/models/source_search_request_container.py +++ b/wavefront_api_client/models/source_search_request_container.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -53,6 +53,7 @@ def __init__(self, cursor=None, limit=None, query=None, sort_sources_ascending=N self._limit = None self._query = None self._sort_sources_ascending = None + self.discriminator = None if cursor is not None: self.cursor = cursor diff --git a/wavefront_api_client/models/stats_model.py b/wavefront_api_client/models/stats_model.py index 02508e8..d35c738 100644 --- a/wavefront_api_client/models/stats_model.py +++ b/wavefront_api_client/models/stats_model.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -34,45 +34,39 @@ class StatsModel(object): 'keys': 'int', 'points': 'int', 'summaries': 'int', - 'summarized_points': 'int', - 'summarized_summaries': 'int', 'queries': 'int', 'buffer_keys': 'int', 'compacted_keys': 'int', 'skipped_compacted_keys': 'int', 'compacted_points': 'int', - 'cached_compacted_points': 'int', + 'cached_compacted_keys': 'int', 'latency': 'int', 's3_keys': 'int', 'cpu_ns': 'int', 'metrics_used': 'int', 'hosts_used': 'int', - 'query_tasks': 'int', - 'missing_s3_keys': 'int' + 'query_tasks': 'int' } attribute_map = { 'keys': 'keys', 'points': 'points', 'summaries': 'summaries', - 'summarized_points': 'summarizedPoints', - 'summarized_summaries': 'summarizedSummaries', 'queries': 'queries', - 'buffer_keys': 'bufferKeys', - 'compacted_keys': 'compactedKeys', - 'skipped_compacted_keys': 'skippedCompactedKeys', - 'compacted_points': 'compactedPoints', - 'cached_compacted_points': 'cachedCompactedPoints', + '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': 's3Keys', - 'cpu_ns': 'cpuNs', - 'metrics_used': 'metricsUsed', - 'hosts_used': 'hostsUsed', - 'query_tasks': 'queryTasks', - 'missing_s3_keys': 'missingS3Keys' + '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, summarized_points=None, summarized_summaries=None, queries=None, buffer_keys=None, compacted_keys=None, skipped_compacted_keys=None, compacted_points=None, cached_compacted_points=None, latency=None, s3_keys=None, cpu_ns=None, metrics_used=None, hosts_used=None, query_tasks=None, missing_s3_keys=None): + 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): """ StatsModel - a model defined in Swagger """ @@ -80,21 +74,19 @@ def __init__(self, keys=None, points=None, summaries=None, summarized_points=Non self._keys = None self._points = None self._summaries = None - self._summarized_points = None - self._summarized_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_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._missing_s3_keys = None + self.discriminator = None if keys is not None: self.keys = keys @@ -102,10 +94,6 @@ def __init__(self, keys=None, points=None, summaries=None, summarized_points=Non self.points = points if summaries is not None: self.summaries = summaries - if summarized_points is not None: - self.summarized_points = summarized_points - if summarized_summaries is not None: - self.summarized_summaries = summarized_summaries if queries is not None: self.queries = queries if buffer_keys is not None: @@ -116,8 +104,8 @@ def __init__(self, keys=None, points=None, summaries=None, summarized_points=Non self.skipped_compacted_keys = skipped_compacted_keys if compacted_points is not None: self.compacted_points = compacted_points - if cached_compacted_points is not None: - self.cached_compacted_points = cached_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: @@ -130,8 +118,6 @@ def __init__(self, keys=None, points=None, summaries=None, summarized_points=Non self.hosts_used = hosts_used if query_tasks is not None: self.query_tasks = query_tasks - if missing_s3_keys is not None: - self.missing_s3_keys = missing_s3_keys @property def keys(self): @@ -196,48 +182,6 @@ def summaries(self, summaries): self._summaries = summaries - @property - def summarized_points(self): - """ - Gets the summarized_points of this StatsModel. - - :return: The summarized_points of this StatsModel. - :rtype: int - """ - return self._summarized_points - - @summarized_points.setter - def summarized_points(self, summarized_points): - """ - Sets the summarized_points of this StatsModel. - - :param summarized_points: The summarized_points of this StatsModel. - :type: int - """ - - self._summarized_points = summarized_points - - @property - def summarized_summaries(self): - """ - Gets the summarized_summaries of this StatsModel. - - :return: The summarized_summaries of this StatsModel. - :rtype: int - """ - return self._summarized_summaries - - @summarized_summaries.setter - def summarized_summaries(self, summarized_summaries): - """ - Sets the summarized_summaries of this StatsModel. - - :param summarized_summaries: The summarized_summaries of this StatsModel. - :type: int - """ - - self._summarized_summaries = summarized_summaries - @property def queries(self): """ @@ -344,25 +288,25 @@ def compacted_points(self, compacted_points): self._compacted_points = compacted_points @property - def cached_compacted_points(self): + def cached_compacted_keys(self): """ - Gets the cached_compacted_points of this StatsModel. + Gets the cached_compacted_keys of this StatsModel. - :return: The cached_compacted_points of this StatsModel. + :return: The cached_compacted_keys of this StatsModel. :rtype: int """ - return self._cached_compacted_points + return self._cached_compacted_keys - @cached_compacted_points.setter - def cached_compacted_points(self, cached_compacted_points): + @cached_compacted_keys.setter + def cached_compacted_keys(self, cached_compacted_keys): """ - Sets the cached_compacted_points of this StatsModel. + Sets the cached_compacted_keys of this StatsModel. - :param cached_compacted_points: The cached_compacted_points of this StatsModel. + :param cached_compacted_keys: The cached_compacted_keys of this StatsModel. :type: int """ - self._cached_compacted_points = cached_compacted_points + self._cached_compacted_keys = cached_compacted_keys @property def latency(self): @@ -490,27 +434,6 @@ def query_tasks(self, query_tasks): self._query_tasks = query_tasks - @property - def missing_s3_keys(self): - """ - Gets the missing_s3_keys of this StatsModel. - - :return: The missing_s3_keys of this StatsModel. - :rtype: int - """ - return self._missing_s3_keys - - @missing_s3_keys.setter - def missing_s3_keys(self, missing_s3_keys): - """ - Sets the missing_s3_keys of this StatsModel. - - :param missing_s3_keys: The missing_s3_keys of this StatsModel. - :type: int - """ - - self._missing_s3_keys = missing_s3_keys - def to_dict(self): """ Returns the model properties as a dict diff --git a/wavefront_api_client/models/tags_response.py b/wavefront_api_client/models/tags_response.py index cb091d1..229671b 100644 --- a/wavefront_api_client/models/tags_response.py +++ b/wavefront_api_client/models/tags_response.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -62,6 +62,7 @@ def __init__(self, items=None, offset=None, limit=None, cursor=None, total_items self._total_items = None self._more_items = None self._sort = None + self.discriminator = None if items is not None: self.items = items @@ -216,7 +217,6 @@ def more_items(self, more_items): def sort(self): """ Gets the sort of this TagsResponse. - How returned items have been sorted :return: The sort of this TagsResponse. :rtype: Sorting @@ -227,7 +227,6 @@ def sort(self): def sort(self, sort): """ Sets the sort of this TagsResponse. - How returned items have been sorted :param sort: The sort of this TagsResponse. :type: Sorting diff --git a/wavefront_api_client/models/target_info.py b/wavefront_api_client/models/target_info.py new file mode 100644 index 0000000..75f67c8 --- /dev/null +++ b/wavefront_api_client/models/target_info.py @@ -0,0 +1,188 @@ +# 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.

+ + OpenAPI spec version: v2 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TargetInfo(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 = { + 'method': 'str', + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'method': 'method', + 'id': 'id', + 'name': 'name' + } + + def __init__(self, method=None, id=None, name=None): + """ + TargetInfo - a model defined in Swagger + """ + + self._method = None + self._id = None + self._name = None + self.discriminator = None + + if method is not None: + self.method = method + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def method(self): + """ + Gets the method of this TargetInfo. + Notification method of the alert target + + :return: The method of this TargetInfo. + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """ + Sets the method of this TargetInfo. + Notification method of the alert target + + :param method: The method of this TargetInfo. + :type: str + """ + allowed_values = ["EMAIL", "PAGERDUTY", "WEBHOOK"] + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" + .format(method, allowed_values) + ) + + self._method = method + + @property + def id(self): + """ + Gets the id of this TargetInfo. + ID of the alert target + + :return: The id of this TargetInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TargetInfo. + ID of the alert target + + :param id: The id of this TargetInfo. + :type: str + """ + + self._id = id + + @property + def name(self): + """ + Gets the name of this TargetInfo. + Name of the alert target + + :return: The name of this TargetInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TargetInfo. + Name of the alert target + + :param name: The name of this TargetInfo. + :type: str + """ + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in 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 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, TargetInfo): + 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/timeseries.py b/wavefront_api_client/models/timeseries.py index 22cf36b..2601e44 100644 --- a/wavefront_api_client/models/timeseries.py +++ b/wavefront_api_client/models/timeseries.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -31,32 +31,90 @@ class Timeseries(object): and the value is json key in definition. """ swagger_types = { + 'label': 'str', + 'host': 'str', 'tags': 'dict(str, str)', - 'points': 'list[Point]' + 'data': 'list[list[float]]' } attribute_map = { + 'label': 'label', + 'host': 'host', 'tags': 'tags', - 'points': 'points' + 'data': 'data' } - def __init__(self, tags=None, points=None): + def __init__(self, label=None, host=None, tags=None, data=None): """ Timeseries - a model defined in Swagger """ + self._label = None + self._host = None self._tags = None - self._points = None + self._data = None + self.discriminator = None + if label is not None: + self.label = label + if host is not None: + self.host = host if tags is not None: self.tags = tags - self.points = points + if data is not None: + self.data = data + + @property + def label(self): + """ + Gets the label of this Timeseries. + Label of this timeseries + + :return: The label of this Timeseries. + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """ + Sets the label of this Timeseries. + Label of this timeseries + + :param label: The label of this Timeseries. + :type: str + """ + + self._label = label + + @property + def host(self): + """ + Gets the host of this Timeseries. + Source/Host of this timeseries + + :return: The host of this Timeseries. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this Timeseries. + Source/Host of this timeseries + + :param host: The host of this Timeseries. + :type: str + """ + + self._host = host @property def tags(self): """ Gets the tags of this Timeseries. - Associated tags of the time series + Tags (key-value annotations) of this timeseries :return: The tags of this Timeseries. :rtype: dict(str, str) @@ -67,7 +125,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this Timeseries. - Associated tags of the time series + Tags (key-value annotations) of this timeseries :param tags: The tags of this Timeseries. :type: dict(str, str) @@ -76,27 +134,27 @@ def tags(self, tags): self._tags = tags @property - def points(self): + def data(self): """ - Gets the points of this Timeseries. + Gets 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 - :return: The points of this Timeseries. - :rtype: list[Point] + :return: The data of this Timeseries. + :rtype: list[list[float]] """ - return self._points + return self._data - @points.setter - def points(self, points): + @data.setter + def data(self, data): """ - Sets the points of this Timeseries. + 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 - :param points: The points of this Timeseries. - :type: list[Point] + :param data: The data of this Timeseries. + :type: list[list[float]] """ - if points is None: - raise ValueError("Invalid value for `points`, must not be `None`") - self._points = points + self._data = data def to_dict(self): """ diff --git a/wavefront_api_client/models/timeseries_stats_container.py b/wavefront_api_client/models/timeseries_stats_container.py deleted file mode 100644 index 058e06d..0000000 --- a/wavefront_api_client/models/timeseries_stats_container.py +++ /dev/null @@ -1,305 +0,0 @@ -# coding: utf-8 - -""" - Wavefront Public API - -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

- - OpenAPI spec version: v2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class TimeseriesStatsContainer(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 = { - 'query_key': 'QueryKeyContainer', - 'sum': 'float', - 'count': 'int', - 'last_value': 'float', - 'mean': 'float', - 'max': 'float', - 'min': 'float', - 'median': 'float' - } - - attribute_map = { - 'query_key': 'queryKey', - 'sum': 'sum', - 'count': 'count', - 'last_value': 'lastValue', - 'mean': 'mean', - 'max': 'max', - 'min': 'min', - 'median': 'median' - } - - def __init__(self, query_key=None, sum=None, count=None, last_value=None, mean=None, max=None, min=None, median=None): - """ - TimeseriesStatsContainer - a model defined in Swagger - """ - - self._query_key = None - self._sum = None - self._count = None - self._last_value = None - self._mean = None - self._max = None - self._min = None - self._median = None - - if query_key is not None: - self.query_key = query_key - if sum is not None: - self.sum = sum - if count is not None: - self.count = count - if last_value is not None: - self.last_value = last_value - if mean is not None: - self.mean = mean - if max is not None: - self.max = max - if min is not None: - self.min = min - if median is not None: - self.median = median - - @property - def query_key(self): - """ - Gets the query_key of this TimeseriesStatsContainer. - - :return: The query_key of this TimeseriesStatsContainer. - :rtype: QueryKeyContainer - """ - return self._query_key - - @query_key.setter - def query_key(self, query_key): - """ - Sets the query_key of this TimeseriesStatsContainer. - - :param query_key: The query_key of this TimeseriesStatsContainer. - :type: QueryKeyContainer - """ - - self._query_key = query_key - - @property - def sum(self): - """ - Gets the sum of this TimeseriesStatsContainer. - - :return: The sum of this TimeseriesStatsContainer. - :rtype: float - """ - return self._sum - - @sum.setter - def sum(self, sum): - """ - Sets the sum of this TimeseriesStatsContainer. - - :param sum: The sum of this TimeseriesStatsContainer. - :type: float - """ - - self._sum = sum - - @property - def count(self): - """ - Gets the count of this TimeseriesStatsContainer. - - :return: The count of this TimeseriesStatsContainer. - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """ - Sets the count of this TimeseriesStatsContainer. - - :param count: The count of this TimeseriesStatsContainer. - :type: int - """ - - self._count = count - - @property - def last_value(self): - """ - Gets the last_value of this TimeseriesStatsContainer. - - :return: The last_value of this TimeseriesStatsContainer. - :rtype: float - """ - return self._last_value - - @last_value.setter - def last_value(self, last_value): - """ - Sets the last_value of this TimeseriesStatsContainer. - - :param last_value: The last_value of this TimeseriesStatsContainer. - :type: float - """ - - self._last_value = last_value - - @property - def mean(self): - """ - Gets the mean of this TimeseriesStatsContainer. - - :return: The mean of this TimeseriesStatsContainer. - :rtype: float - """ - return self._mean - - @mean.setter - def mean(self, mean): - """ - Sets the mean of this TimeseriesStatsContainer. - - :param mean: The mean of this TimeseriesStatsContainer. - :type: float - """ - - self._mean = mean - - @property - def max(self): - """ - Gets the max of this TimeseriesStatsContainer. - - :return: The max of this TimeseriesStatsContainer. - :rtype: float - """ - return self._max - - @max.setter - def max(self, max): - """ - Sets the max of this TimeseriesStatsContainer. - - :param max: The max of this TimeseriesStatsContainer. - :type: float - """ - - self._max = max - - @property - def min(self): - """ - Gets the min of this TimeseriesStatsContainer. - - :return: The min of this TimeseriesStatsContainer. - :rtype: float - """ - return self._min - - @min.setter - def min(self, min): - """ - Sets the min of this TimeseriesStatsContainer. - - :param min: The min of this TimeseriesStatsContainer. - :type: float - """ - - self._min = min - - @property - def median(self): - """ - Gets the median of this TimeseriesStatsContainer. - - :return: The median of this TimeseriesStatsContainer. - :rtype: float - """ - return self._median - - @median.setter - def median(self, median): - """ - Sets the median of this TimeseriesStatsContainer. - - :param median: The median of this TimeseriesStatsContainer. - :type: float - """ - - self._median = median - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in 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 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, TimeseriesStatsContainer): - 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/user_model.py b/wavefront_api_client/models/user_model.py index f9191dc..35c1e93 100644 --- a/wavefront_api_client/models/user_model.py +++ b/wavefront_api_client/models/user_model.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -50,13 +50,11 @@ def __init__(self, identifier=None, customer=None, groups=None): self._identifier = None self._customer = None self._groups = None + self.discriminator = None - if identifier is not None: - self.identifier = identifier - if customer is not None: - self.customer = customer - if groups is not None: - self.groups = groups + self.identifier = identifier + self.customer = customer + self.groups = groups @property def identifier(self): @@ -78,6 +76,8 @@ def identifier(self, identifier): :param identifier: The identifier of this UserModel. :type: str """ + if identifier is None: + raise ValueError("Invalid value for `identifier`, must not be `None`") self._identifier = identifier @@ -101,6 +101,8 @@ def customer(self, customer): :param customer: The customer of this UserModel. :type: str """ + if customer is None: + raise ValueError("Invalid value for `customer`, must not be `None`") self._customer = customer @@ -124,6 +126,8 @@ def groups(self, groups): :param groups: The groups of this UserModel. :type: list[str] """ + if groups is None: + raise ValueError("Invalid value for `groups`, must not be `None`") self._groups = groups diff --git a/wavefront_api_client/models/user_to_create.py b/wavefront_api_client/models/user_to_create.py index 70a1d97..58becfe 100644 --- a/wavefront_api_client/models/user_to_create.py +++ b/wavefront_api_client/models/user_to_create.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -47,6 +47,7 @@ def __init__(self, email_address=None, groups=None): self._email_address = None self._groups = None + self.discriminator = None self.email_address = email_address self.groups = groups diff --git a/wavefront_api_client/models/wf_tags.py b/wavefront_api_client/models/wf_tags.py index 9ed0dbf..ae6c027 100644 --- a/wavefront_api_client/models/wf_tags.py +++ b/wavefront_api_client/models/wf_tags.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -44,6 +44,7 @@ def __init__(self, customer_tags=None): """ self._customer_tags = None + self.discriminator = None if customer_tags is not None: self.customer_tags = customer_tags diff --git a/wavefront_api_client/rest.py b/wavefront_api_client/rest.py index 4353ee2..e8b9438 100644 --- a/wavefront_api_client/rest.py +++ b/wavefront_api_client/rest.py @@ -3,7 +3,7 @@ """ Wavefront Public API -

Wavefront public APIs enable you to interact with Wavefront servers using standard web service API tools. You can use the APIs to automate commonly executed operations such as automatically tagging sources.

When you make API calls outside the Wavefront UI 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.

+

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.

OpenAPI spec version: v2 @@ -56,13 +56,12 @@ def getheader(self, name, default=None): class RESTClientObject(object): - def __init__(self, configuration, pools_size=4, maxsize=4): + def __init__(self, configuration, pools_size=4, maxsize=None): # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # maxsize is the number of requests to host that are allowed in parallel - # ca_certs vs cert_file vs key_file - # http://stackoverflow.com/a/23957365/2985775 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # cert_reqs if configuration.verify_ssl: @@ -77,6 +76,16 @@ def __init__(self, configuration, pools_size=4, maxsize=4): # if not set certificate file, use Mozilla's root certificates. ca_certs = certifi.where() + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + # https pool manager if configuration.proxy: self.pool_manager = urllib3.ProxyManager( @@ -86,7 +95,8 @@ def __init__(self, configuration, pools_size=4, maxsize=4): ca_certs=ca_certs, cert_file=configuration.cert_file, key_file=configuration.key_file, - proxy_url=configuration.proxy + proxy_url=configuration.proxy, + **addition_pool_args ) else: self.pool_manager = urllib3.PoolManager( @@ -95,7 +105,8 @@ def __init__(self, configuration, pools_size=4, maxsize=4): cert_reqs=cert_reqs, ca_certs=ca_certs, cert_file=configuration.cert_file, - key_file=configuration.key_file + key_file=configuration.key_file, + **addition_pool_args ) def request(self, method, url, query_params=None, headers=None, @@ -142,7 +153,7 @@ def request(self, method, url, query_params=None, headers=None, url += '?' + urlencode(query_params) if re.search('json', headers['Content-Type'], re.IGNORECASE): request_body = None - if body: + if body is not None: request_body = json.dumps(body) r = self.pool_manager.request(method, url, body=request_body,