From ee3200e62dd43b9490f7529800a87dd3a1ef79ff Mon Sep 17 00:00:00 2001 From: wf-jenkins Date: Wed, 29 Mar 2023 08:16:26 -0700 Subject: [PATCH] Autogenerated Update v2.177.0. --- .gitignore | 4 - .swagger-codegen/config.json | 2 +- .swagger-codegen/config.jsone | 2 +- README.md | 3 +- docs/LogsSort.md | 11 ++ docs/LogsTable.md | 3 + setup.py | 2 +- test/test_logs_sort.py | 40 ++++++ wavefront_api_client/__init__.py | 1 + wavefront_api_client/api_client.py | 2 +- wavefront_api_client/configuration.py | 2 +- wavefront_api_client/models/__init__.py | 1 + wavefront_api_client/models/logs_sort.py | 149 ++++++++++++++++++++++ wavefront_api_client/models/logs_table.py | 84 +++++++++++- 14 files changed, 293 insertions(+), 13 deletions(-) create mode 100644 docs/LogsSort.md create mode 100644 test/test_logs_sort.py create mode 100644 wavefront_api_client/models/logs_sort.py diff --git a/.gitignore b/.gitignore index 1cd84f85..a655050c 100644 --- a/.gitignore +++ b/.gitignore @@ -62,7 +62,3 @@ target/ #Ipython Notebook .ipynb_checkpoints - -# Other -.DS_Store -*.swp diff --git a/.swagger-codegen/config.json b/.swagger-codegen/config.json index 33272c6e..418a5bd9 100644 --- a/.swagger-codegen/config.json +++ b/.swagger-codegen/config.json @@ -3,5 +3,5 @@ "gitUserId": "wavefrontHQ", "packageName": "wavefront_api_client", "packageUrl": "https://github.com/wavefrontHQ/python-client", - "packageVersion": "2.176.0" + "packageVersion": "2.177.0" } diff --git a/.swagger-codegen/config.jsone b/.swagger-codegen/config.jsone index 99c84f96..33272c6e 100644 --- a/.swagger-codegen/config.jsone +++ b/.swagger-codegen/config.jsone @@ -3,5 +3,5 @@ "gitUserId": "wavefrontHQ", "packageName": "wavefront_api_client", "packageUrl": "https://github.com/wavefrontHQ/python-client", - "packageVersion": "2.175.2" + "packageVersion": "2.176.0" } diff --git a/README.md b/README.md index 0a071466..38c06cff 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v2 -- Package version: 2.176.0 +- Package version: 2.177.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -541,6 +541,7 @@ Class | Method | HTTP request | Description - [KubernetesComponent](docs/KubernetesComponent.md) - [KubernetesComponentStatus](docs/KubernetesComponentStatus.md) - [LogicalType](docs/LogicalType.md) + - [LogsSort](docs/LogsSort.md) - [LogsTable](docs/LogsTable.md) - [MaintenanceWindow](docs/MaintenanceWindow.md) - [Message](docs/Message.md) diff --git a/docs/LogsSort.md b/docs/LogsSort.md new file mode 100644 index 00000000..0e99060b --- /dev/null +++ b/docs/LogsSort.md @@ -0,0 +1,11 @@ +# LogsSort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**order** | **str** | | [optional] +**sort** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LogsTable.md b/docs/LogsTable.md index 06d51c13..6fc7ea47 100644 --- a/docs/LogsTable.md +++ b/docs/LogsTable.md @@ -3,7 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**auto_load** | **bool** | | [optional] **columns** | **list[str]** | | [optional] +**lines_to_show** | **str** | | [optional] +**sort** | [**LogsSort**](LogsSort.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/setup.py b/setup.py index 8259e1fd..c46d8e9f 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "wavefront-api-client" -VERSION = "2.176.0" +VERSION = "2.177.0" # To install the library, run the following # # python setup.py install diff --git a/test/test_logs_sort.py b/test/test_logs_sort.py new file mode 100644 index 00000000..082fe19a --- /dev/null +++ b/test/test_logs_sort.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.

When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import wavefront_api_client +from wavefront_api_client.models.logs_sort import LogsSort # noqa: E501 +from wavefront_api_client.rest import ApiException + + +class TestLogsSort(unittest.TestCase): + """LogsSort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLogsSort(self): + """Test LogsSort""" + # FIXME: construct object with mandatory attributes with example values + # model = wavefront_api_client.models.logs_sort.LogsSort() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/wavefront_api_client/__init__.py b/wavefront_api_client/__init__.py index 19b4d90b..26d78dbc 100644 --- a/wavefront_api_client/__init__.py +++ b/wavefront_api_client/__init__.py @@ -134,6 +134,7 @@ from wavefront_api_client.models.kubernetes_component import KubernetesComponent from wavefront_api_client.models.kubernetes_component_status import KubernetesComponentStatus from wavefront_api_client.models.logical_type import LogicalType +from wavefront_api_client.models.logs_sort import LogsSort from wavefront_api_client.models.logs_table import LogsTable from wavefront_api_client.models.maintenance_window import MaintenanceWindow from wavefront_api_client.models.message import Message diff --git a/wavefront_api_client/api_client.py b/wavefront_api_client/api_client.py index 3eee4d40..6de1b6f3 100644 --- a/wavefront_api_client/api_client.py +++ b/wavefront_api_client/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.176.0/python' + self.user_agent = 'Swagger-Codegen/2.177.0/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/wavefront_api_client/configuration.py b/wavefront_api_client/configuration.py index bb7a0508..717f4dc9 100644 --- a/wavefront_api_client/configuration.py +++ b/wavefront_api_client/configuration.py @@ -251,5 +251,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v2\n"\ - "SDK Package Version: 2.176.0".\ + "SDK Package Version: 2.177.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/wavefront_api_client/models/__init__.py b/wavefront_api_client/models/__init__.py index df412dee..8b3c86b6 100644 --- a/wavefront_api_client/models/__init__.py +++ b/wavefront_api_client/models/__init__.py @@ -90,6 +90,7 @@ from wavefront_api_client.models.kubernetes_component import KubernetesComponent from wavefront_api_client.models.kubernetes_component_status import KubernetesComponentStatus from wavefront_api_client.models.logical_type import LogicalType +from wavefront_api_client.models.logs_sort import LogsSort from wavefront_api_client.models.logs_table import LogsTable from wavefront_api_client.models.maintenance_window import MaintenanceWindow from wavefront_api_client.models.message import Message diff --git a/wavefront_api_client/models/logs_sort.py b/wavefront_api_client/models/logs_sort.py new file mode 100644 index 00000000..b9abb02b --- /dev/null +++ b/wavefront_api_client/models/logs_sort.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Wavefront REST API Documentation + +

The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.

When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see Use the Wavefront REST API.

# noqa: E501 + + OpenAPI spec version: v2 + Contact: chitimba@wavefront.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from wavefront_api_client.configuration import Configuration + + +class LogsSort(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'order': 'str', + 'sort': 'str' + } + + attribute_map = { + 'order': 'order', + 'sort': 'sort' + } + + def __init__(self, order=None, sort=None, _configuration=None): # noqa: E501 + """LogsSort - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._order = None + self._sort = None + self.discriminator = None + + if order is not None: + self.order = order + if sort is not None: + self.sort = sort + + @property + def order(self): + """Gets the order of this LogsSort. # noqa: E501 + + + :return: The order of this LogsSort. # noqa: E501 + :rtype: str + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this LogsSort. + + + :param order: The order of this LogsSort. # noqa: E501 + :type: str + """ + + self._order = order + + @property + def sort(self): + """Gets the sort of this LogsSort. # noqa: E501 + + + :return: The sort of this LogsSort. # noqa: E501 + :rtype: str + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this LogsSort. + + + :param sort: The sort of this LogsSort. # noqa: E501 + :type: str + """ + + self._sort = sort + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(LogsSort, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LogsSort): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, LogsSort): + return True + + return self.to_dict() != other.to_dict() diff --git a/wavefront_api_client/models/logs_table.py b/wavefront_api_client/models/logs_table.py index 5b8a0103..867b3b93 100644 --- a/wavefront_api_client/models/logs_table.py +++ b/wavefront_api_client/models/logs_table.py @@ -33,24 +33,60 @@ class LogsTable(object): and the value is json key in definition. """ swagger_types = { - 'columns': 'list[str]' + 'auto_load': 'bool', + 'columns': 'list[str]', + 'lines_to_show': 'str', + 'sort': 'LogsSort' } attribute_map = { - 'columns': 'columns' + 'auto_load': 'autoLoad', + 'columns': 'columns', + 'lines_to_show': 'linesToShow', + 'sort': 'sort' } - def __init__(self, columns=None, _configuration=None): # noqa: E501 + def __init__(self, auto_load=None, columns=None, lines_to_show=None, sort=None, _configuration=None): # noqa: E501 """LogsTable - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._auto_load = None self._columns = None + self._lines_to_show = None + self._sort = None self.discriminator = None + if auto_load is not None: + self.auto_load = auto_load if columns is not None: self.columns = columns + if lines_to_show is not None: + self.lines_to_show = lines_to_show + if sort is not None: + self.sort = sort + + @property + def auto_load(self): + """Gets the auto_load of this LogsTable. # noqa: E501 + + + :return: The auto_load of this LogsTable. # noqa: E501 + :rtype: bool + """ + return self._auto_load + + @auto_load.setter + def auto_load(self, auto_load): + """Sets the auto_load of this LogsTable. + + + :param auto_load: The auto_load of this LogsTable. # noqa: E501 + :type: bool + """ + + self._auto_load = auto_load @property def columns(self): @@ -73,6 +109,48 @@ def columns(self, columns): self._columns = columns + @property + def lines_to_show(self): + """Gets the lines_to_show of this LogsTable. # noqa: E501 + + + :return: The lines_to_show of this LogsTable. # noqa: E501 + :rtype: str + """ + return self._lines_to_show + + @lines_to_show.setter + def lines_to_show(self, lines_to_show): + """Sets the lines_to_show of this LogsTable. + + + :param lines_to_show: The lines_to_show of this LogsTable. # noqa: E501 + :type: str + """ + + self._lines_to_show = lines_to_show + + @property + def sort(self): + """Gets the sort of this LogsTable. # noqa: E501 + + + :return: The sort of this LogsTable. # noqa: E501 + :rtype: LogsSort + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this LogsTable. + + + :param sort: The sort of this LogsTable. # noqa: E501 + :type: LogsSort + """ + + self._sort = sort + def to_dict(self): """Returns the model properties as a dict""" result = {}