-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/implement-get-metrics-statistics-api' into 'mas…
…ter' Implement GetMetricsStatistics API See merge request babakloni/investor8.core!467
- Loading branch information
1 parent
98a3e36
commit 9ef2e74
Showing
11 changed files
with
318 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# MetricsStatisticsDto | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**metrics** | **dict(str, dict(str, dict(str, float)))** | | [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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Investoreight Core API | ||
Investoreight API Documentation: https://api.investoreight.com/api-docs/index.html # noqa: E501 | ||
OpenAPI spec version: 1.0.1 | ||
Contact: info@investoreight.com | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
import pprint | ||
import re # noqa: F401 | ||
|
||
import six | ||
|
||
class MetricsStatisticsDto(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 = { | ||
'metrics': 'dict(str, dict(str, dict(str, float)))' | ||
} | ||
|
||
attribute_map = { | ||
'metrics': 'Metrics' | ||
} | ||
|
||
def __init__(self, metrics=None): # noqa: E501 | ||
"""MetricsStatisticsDto - a model defined in Swagger""" # noqa: E501 | ||
self._metrics = None | ||
self.discriminator = None | ||
if metrics is not None: | ||
self.metrics = metrics | ||
|
||
@property | ||
def metrics(self): | ||
"""Gets the metrics of this MetricsStatisticsDto. # noqa: E501 | ||
:return: The metrics of this MetricsStatisticsDto. # noqa: E501 | ||
:rtype: dict(str, dict(str, dict(str, float))) | ||
""" | ||
return self._metrics | ||
|
||
@metrics.setter | ||
def metrics(self, metrics): | ||
"""Sets the metrics of this MetricsStatisticsDto. | ||
:param metrics: The metrics of this MetricsStatisticsDto. # noqa: E501 | ||
:type: dict(str, dict(str, dict(str, float))) | ||
""" | ||
|
||
self._metrics = metrics | ||
|
||
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(MetricsStatisticsDto, 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, MetricsStatisticsDto): | ||
return False | ||
|
||
return self.__dict__ == other.__dict__ | ||
|
||
def __ne__(self, other): | ||
"""Returns true if both objects are not equal""" | ||
return not self == other |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Investoreight Core API | ||
Investoreight API Documentation: https://api.investoreight.com/api-docs/index.html # noqa: E501 | ||
OpenAPI spec version: 1.0.1 | ||
Contact: info@investoreight.com | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
from __future__ import absolute_import | ||
|
||
import unittest | ||
|
||
import investor8_sdk | ||
from investor8_sdk.models.metrics_statistics_dto import MetricsStatisticsDto # noqa: E501 | ||
from investor8_sdk.rest import ApiException | ||
|
||
|
||
class TestMetricsStatisticsDto(unittest.TestCase): | ||
"""MetricsStatisticsDto unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def testMetricsStatisticsDto(self): | ||
"""Test MetricsStatisticsDto""" | ||
# FIXME: construct object with mandatory attributes with example values | ||
# model = investor8_sdk.models.metrics_statistics_dto.MetricsStatisticsDto() # noqa: E501 | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |