Skip to content

Commit

Permalink
Generated version 0.19.0
Browse files Browse the repository at this point in the history
This commit was automatically created by a GitHub Action to generate version 0.19.0 of this library.
  • Loading branch information
devexperience committed Nov 21, 2023
1 parent 7c52e43 commit 8f7a2a0
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/SpendingPlansResponseBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**iteration_items** | [**List[SpendingPlanResponse]**](SpendingPlanResponse.md) | | [optional]
**spending_plans** | [**List[SpendingPlanResponse]**](SpendingPlanResponse.md) | | [optional]
**pagination** | [**PaginationResponse**](PaginationResponse.md) | | [optional]

## Example
Expand Down
2 changes: 1 addition & 1 deletion mx_platform_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "0.18.1"
__version__ = "0.19.0"

# import apis into sdk package
from mx_platform_python.api.mx_platform_api import MxPlatformApi
Expand Down
2 changes: 1 addition & 1 deletion mx_platform_python/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,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 = 'OpenAPI-Generator/0.18.1/python'
self.user_agent = 'OpenAPI-Generator/0.19.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion mx_platform_python/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.1.0\n"\
"SDK Package Version: 0.18.1".\
"SDK Package Version: 0.19.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
14 changes: 7 additions & 7 deletions mx_platform_python/models/spending_plans_response_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class SpendingPlansResponseBody(BaseModel):
"""
SpendingPlansResponseBody
"""
iteration_items: Optional[conlist(SpendingPlanResponse)] = None
spending_plans: Optional[conlist(SpendingPlanResponse)] = None
pagination: Optional[PaginationResponse] = None
__properties = ["iteration_items", "pagination"]
__properties = ["spending_plans", "pagination"]

class Config:
"""Pydantic configuration"""
Expand All @@ -55,13 +55,13 @@ def to_dict(self):
exclude={
},
exclude_none=True)
# override the default output from pydantic by calling `to_dict()` of each item in iteration_items (list)
# override the default output from pydantic by calling `to_dict()` of each item in spending_plans (list)
_items = []
if self.iteration_items:
for _item in self.iteration_items:
if self.spending_plans:
for _item in self.spending_plans:
if _item:
_items.append(_item.to_dict())
_dict['iteration_items'] = _items
_dict['spending_plans'] = _items
# override the default output from pydantic by calling `to_dict()` of pagination
if self.pagination:
_dict['pagination'] = self.pagination.to_dict()
Expand All @@ -77,7 +77,7 @@ def from_dict(cls, obj: dict) -> SpendingPlansResponseBody:
return SpendingPlansResponseBody.parse_obj(obj)

_obj = SpendingPlansResponseBody.parse_obj({
"iteration_items": [SpendingPlanResponse.from_dict(_item) for _item in obj.get("iteration_items")] if obj.get("iteration_items") is not None else None,
"spending_plans": [SpendingPlanResponse.from_dict(_item) for _item in obj.get("spending_plans")] if obj.get("spending_plans") is not None else None,
"pagination": PaginationResponse.from_dict(obj.get("pagination")) if obj.get("pagination") is not None else None
})
return _obj
Expand Down
2 changes: 1 addition & 1 deletion openapi/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
packageName: mx_platform_python
packageUrl: https://pypi.org/project/mx-platform-python
packageVersion: 0.18.1
packageVersion: 0.19.0
projectName: mx-platform-python
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mx_platform_python"
version = "0.18.1"
version = "0.19.0"
description = "MX Platform API"
authors = ["MX Platform API <team@openapitools.org>"]
license = "NoLicense"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "mx-platform-python"
VERSION = "0.18.1"
VERSION = "0.19.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion test/test_spending_plans_response_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> SpendingPlansResponseBody:
model = SpendingPlansResponseBody() # noqa: E501
if include_optional:
return SpendingPlansResponseBody(
iteration_items = [
spending_plans = [
mx_platform_python.models.spending_plan_response.SpendingPlanResponse(
created_at = '2016-10-13T18:08:00+00:00',
current_iteration_number = 1,
Expand Down

0 comments on commit 8f7a2a0

Please sign in to comment.