Skip to content

Commit

Permalink
Autogenerated Update v2.177.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
wf-jenkins committed Mar 29, 2023
1 parent 548ec9b commit ee3200e
Show file tree
Hide file tree
Showing 14 changed files with 293 additions and 13 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,3 @@ target/

#Ipython Notebook
.ipynb_checkpoints

# Other
.DS_Store
*.swp
2 changes: 1 addition & 1 deletion .swagger-codegen/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"gitUserId": "wavefrontHQ",
"packageName": "wavefront_api_client",
"packageUrl": "https://github.com/wavefrontHQ/python-client",
"packageVersion": "2.176.0"
"packageVersion": "2.177.0"
}
2 changes: 1 addition & 1 deletion .swagger-codegen/config.jsone
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"gitUserId": "wavefrontHQ",
"packageName": "wavefront_api_client",
"packageUrl": "https://github.com/wavefrontHQ/python-client",
"packageVersion": "2.175.2"
"packageVersion": "2.176.0"
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: v2
- Package version: 2.176.0
- Package version: 2.177.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions docs/LogsSort.md
Original file line number Diff line number Diff line change
@@ -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)


3 changes: 3 additions & 0 deletions docs/LogsTable.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

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

NAME = "wavefront-api-client"
VERSION = "2.176.0"
VERSION = "2.177.0"
# To install the library, run the following
#
# python setup.py install
Expand Down
40 changes: 40 additions & 0 deletions test/test_logs_sort.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# coding: utf-8

"""
Wavefront REST API Documentation
<p>The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.</p><p>When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see <a href=\"http://docs.wavefront.com/using_wavefront_api.html\">Use the Wavefront REST API.</a></p> # noqa: E501
OpenAPI spec version: v2
Contact: [email protected]
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()
1 change: 1 addition & 0 deletions wavefront_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion wavefront_api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion wavefront_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 1 addition & 0 deletions wavefront_api_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
149 changes: 149 additions & 0 deletions wavefront_api_client/models/logs_sort.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# coding: utf-8

"""
Wavefront REST API Documentation
<p>The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.</p><p>When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see <a href=\"http://docs.wavefront.com/using_wavefront_api.html\">Use the Wavefront REST API.</a></p> # noqa: E501
OpenAPI spec version: v2
Contact: [email protected]
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()
Loading

0 comments on commit ee3200e

Please sign in to comment.