diff --git a/pnap_audit_api/README.md b/pnap_audit_api/README.md index 92ed5d37..0138c0e2 100644 --- a/pnap_audit_api/README.md +++ b/pnap_audit_api/README.md @@ -12,7 +12,7 @@ Knowledge base articles to help you can be found This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0 -- Package version: 2.0.0 +- Package version: 2.0.1-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://phoenixnap.com/](https://phoenixnap.com/) diff --git a/pnap_audit_api/pnap_audit_api/__init__.py b/pnap_audit_api/pnap_audit_api/__init__.py index d171e758..71fc73f1 100644 --- a/pnap_audit_api/pnap_audit_api/__init__.py +++ b/pnap_audit_api/pnap_audit_api/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "2.0.0" +__version__ = "2.0.1-SNAPSHOT" # import apis into sdk package from pnap_audit_api.api.events_api import EventsApi diff --git a/pnap_audit_api/pnap_audit_api/api_client.py b/pnap_audit_api/pnap_audit_api/api_client.py index b7effd1a..1db36914 100644 --- a/pnap_audit_api/pnap_audit_api/api_client.py +++ b/pnap_audit_api/pnap_audit_api/api_client.py @@ -87,11 +87,11 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = f"PNAP-python-sdk-bmc/2.0.0" + self.user_agent = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" self.client_side_validation = configuration.client_side_validation # Set default X-Powered-By. - self.powered_by = f"PNAP-python-sdk-bmc/2.0.0" + self.powered_by = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" def __enter__(self): return self diff --git a/pnap_audit_api/pnap_audit_api/configuration.py b/pnap_audit_api/pnap_audit_api/configuration.py index 152fe7ba..5f9e2eae 100644 --- a/pnap_audit_api/pnap_audit_api/configuration.py +++ b/pnap_audit_api/pnap_audit_api/configuration.py @@ -377,7 +377,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0\n"\ - "SDK Package Version: 2.0.0".\ + "SDK Package Version: 2.0.1-SNAPSHOT".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/pnap_audit_api/pyproject.toml b/pnap_audit_api/pyproject.toml index a9e39cfe..e2d4f9da 100644 --- a/pnap_audit_api/pyproject.toml +++ b/pnap_audit_api/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pnap_audit_api" -version = "2.0.0" +version = "2.0.1-SNAPSHOT" description = "Audit Log API" authors = ["PhoenixNAP Team "] license = "Apache 2.0" diff --git a/pnap_audit_api/setup.py b/pnap_audit_api/setup.py index 8920e84b..dd175e1b 100644 --- a/pnap_audit_api/setup.py +++ b/pnap_audit_api/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "pnap-audit-api" -VERSION = "2.0.0" +VERSION = "2.0.1-SNAPSHOT" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/pnap_bmc_api/README.md b/pnap_bmc_api/README.md index 7768eab0..8df6f722 100644 --- a/pnap_bmc_api/README.md +++ b/pnap_bmc_api/README.md @@ -14,7 +14,7 @@ Knowledge base articles to help you can be found This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.1 -- Package version: 2.0.0 +- Package version: 2.0.1-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://phoenixnap.com/](https://phoenixnap.com/) diff --git a/pnap_bmc_api/pnap_bmc_api/__init__.py b/pnap_bmc_api/pnap_bmc_api/__init__.py index b8a9d1e6..04576c26 100644 --- a/pnap_bmc_api/pnap_bmc_api/__init__.py +++ b/pnap_bmc_api/pnap_bmc_api/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "2.0.0" +__version__ = "2.0.1-SNAPSHOT" # import apis into sdk package from pnap_bmc_api.api.quotas_api import QuotasApi diff --git a/pnap_bmc_api/pnap_bmc_api/api_client.py b/pnap_bmc_api/pnap_bmc_api/api_client.py index e17fa7d2..555e66d9 100644 --- a/pnap_bmc_api/pnap_bmc_api/api_client.py +++ b/pnap_bmc_api/pnap_bmc_api/api_client.py @@ -87,11 +87,11 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = f"PNAP-python-sdk-bmc/2.0.0" + self.user_agent = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" self.client_side_validation = configuration.client_side_validation # Set default X-Powered-By. - self.powered_by = f"PNAP-python-sdk-bmc/2.0.0" + self.powered_by = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" def __enter__(self): return self diff --git a/pnap_bmc_api/pnap_bmc_api/configuration.py b/pnap_bmc_api/pnap_bmc_api/configuration.py index acce9739..d796398f 100644 --- a/pnap_bmc_api/pnap_bmc_api/configuration.py +++ b/pnap_bmc_api/pnap_bmc_api/configuration.py @@ -377,7 +377,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.1\n"\ - "SDK Package Version: 2.0.0".\ + "SDK Package Version: 2.0.1-SNAPSHOT".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/pnap_bmc_api/pyproject.toml b/pnap_bmc_api/pyproject.toml index 523ffe05..a345dd60 100644 --- a/pnap_bmc_api/pyproject.toml +++ b/pnap_bmc_api/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pnap_bmc_api" -version = "2.0.0" +version = "2.0.1-SNAPSHOT" description = "Bare Metal Cloud API" authors = ["PhoenixNAP Team "] license = "Apache 2.0" diff --git a/pnap_bmc_api/setup.py b/pnap_bmc_api/setup.py index 8a0b907b..c13a7613 100644 --- a/pnap_bmc_api/setup.py +++ b/pnap_bmc_api/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "pnap-bmc-api" -VERSION = "2.0.0" +VERSION = "2.0.1-SNAPSHOT" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/pnap_invoicing_api/README.md b/pnap_invoicing_api/README.md index b655f59a..61a75a57 100644 --- a/pnap_invoicing_api/README.md +++ b/pnap_invoicing_api/README.md @@ -5,7 +5,7 @@ List, fetch and pay invoices with the Invoicing API. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0 -- Package version: 1.0.0 +- Package version: 1.0.1 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://phoenixnap.com/](https://phoenixnap.com/) diff --git a/pnap_invoicing_api/docs/PaginatedInvoices.md b/pnap_invoicing_api/docs/PaginatedInvoices.md index ade7708e..576f0e9d 100644 --- a/pnap_invoicing_api/docs/PaginatedInvoices.md +++ b/pnap_invoicing_api/docs/PaginatedInvoices.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**List[Invoice]**](Invoice.md) | | **limit** | **int** | Maximum number of items in the page (actual returned length can be less). | **offset** | **int** | The number of returned items skipped. | **total** | **int** | The total number of records available for retrieval. | +**results** | [**List[Invoice]**](Invoice.md) | | ## Example diff --git a/pnap_invoicing_api/pnap_invoicing_api/__init__.py b/pnap_invoicing_api/pnap_invoicing_api/__init__.py index db72a409..a025e594 100644 --- a/pnap_invoicing_api/pnap_invoicing_api/__init__.py +++ b/pnap_invoicing_api/pnap_invoicing_api/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "1.0.0" +__version__ = "1.0.1" # import apis into sdk package from pnap_invoicing_api.api.invoices_api import InvoicesApi diff --git a/pnap_invoicing_api/pnap_invoicing_api/api_client.py b/pnap_invoicing_api/pnap_invoicing_api/api_client.py index 090ab4ff..d6951061 100644 --- a/pnap_invoicing_api/pnap_invoicing_api/api_client.py +++ b/pnap_invoicing_api/pnap_invoicing_api/api_client.py @@ -87,11 +87,11 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = f"PNAP-python-sdk-bmc/1.0.0" + self.user_agent = f"PNAP-python-sdk-bmc/1.0.1" self.client_side_validation = configuration.client_side_validation # Set default X-Powered-By. - self.powered_by = f"PNAP-python-sdk-bmc/1.0.0" + self.powered_by = f"PNAP-python-sdk-bmc/1.0.1" def __enter__(self): return self diff --git a/pnap_invoicing_api/pnap_invoicing_api/configuration.py b/pnap_invoicing_api/pnap_invoicing_api/configuration.py index a1a6d10b..7d0cbee0 100644 --- a/pnap_invoicing_api/pnap_invoicing_api/configuration.py +++ b/pnap_invoicing_api/pnap_invoicing_api/configuration.py @@ -377,7 +377,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0\n"\ - "SDK Package Version: 1.0.0".\ + "SDK Package Version: 1.0.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/pnap_invoicing_api/pnap_invoicing_api/models/paginated_invoices.py b/pnap_invoicing_api/pnap_invoicing_api/models/paginated_invoices.py index 38fc7507..ea8d1c80 100644 --- a/pnap_invoicing_api/pnap_invoicing_api/models/paginated_invoices.py +++ b/pnap_invoicing_api/pnap_invoicing_api/models/paginated_invoices.py @@ -32,11 +32,11 @@ class PaginatedInvoices(BaseModel): """ PaginatedInvoices """ # noqa: E501 - results: List[Invoice] limit: StrictInt = Field(description="Maximum number of items in the page (actual returned length can be less).") offset: StrictInt = Field(description="The number of returned items skipped.") total: StrictInt = Field(description="The total number of records available for retrieval.") - __properties: ClassVar[List[str]] = ["limit", "offset", "total"] + results: List[Invoice] + __properties: ClassVar[List[str]] = ["limit", "offset", "total", "results"] model_config = { "populate_by_name": True, @@ -75,6 +75,13 @@ def to_dict(self) -> Dict[str, Any]: }, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item in self.results: + if _item: + _items.append(_item.to_dict()) + _dict['results'] = _items return _dict @classmethod @@ -87,10 +94,10 @@ def from_dict(cls, obj: Dict) -> Self: return cls.model_validate(obj) _obj = cls.model_validate({ - "results": [Invoice.from_dict(_item) for _item in obj.get("results")] if obj.get("results") is not None else None, "limit": obj.get("limit"), "offset": obj.get("offset"), - "total": obj.get("total") + "total": obj.get("total"), + "results": [Invoice.from_dict(_item) for _item in obj.get("results")] if obj.get("results") is not None else None }) return _obj diff --git a/pnap_invoicing_api/pyproject.toml b/pnap_invoicing_api/pyproject.toml index 140e4a41..354162d8 100644 --- a/pnap_invoicing_api/pyproject.toml +++ b/pnap_invoicing_api/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pnap_invoicing_api" -version = "1.0.0" +version = "1.0.1" description = "Invoicing API" authors = ["PhoenixNAP Team "] license = "Apache 2.0" diff --git a/pnap_invoicing_api/setup.py b/pnap_invoicing_api/setup.py index de03d712..7493f14c 100644 --- a/pnap_invoicing_api/setup.py +++ b/pnap_invoicing_api/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "pnap-invoicing-api" -VERSION = "1.0.0" +VERSION = "1.0.1" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/pnap_ip_api/README.md b/pnap_ip_api/README.md index dbcd3974..53d31378 100644 --- a/pnap_ip_api/README.md +++ b/pnap_ip_api/README.md @@ -13,7 +13,7 @@ Knowledge base articles to help you can be found This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0 -- Package version: 2.0.0 +- Package version: 2.0.1-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://phoenixnap.com/](https://phoenixnap.com/) diff --git a/pnap_ip_api/pnap_ip_api/__init__.py b/pnap_ip_api/pnap_ip_api/__init__.py index ba86c5f1..b48964a4 100644 --- a/pnap_ip_api/pnap_ip_api/__init__.py +++ b/pnap_ip_api/pnap_ip_api/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "2.0.0" +__version__ = "2.0.1-SNAPSHOT" # import apis into sdk package from pnap_ip_api.api.ip_blocks_api import IPBlocksApi diff --git a/pnap_ip_api/pnap_ip_api/api_client.py b/pnap_ip_api/pnap_ip_api/api_client.py index 6e25f01a..6cc07951 100644 --- a/pnap_ip_api/pnap_ip_api/api_client.py +++ b/pnap_ip_api/pnap_ip_api/api_client.py @@ -87,11 +87,11 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = f"PNAP-python-sdk-bmc/2.0.0" + self.user_agent = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" self.client_side_validation = configuration.client_side_validation # Set default X-Powered-By. - self.powered_by = f"PNAP-python-sdk-bmc/2.0.0" + self.powered_by = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" def __enter__(self): return self diff --git a/pnap_ip_api/pnap_ip_api/configuration.py b/pnap_ip_api/pnap_ip_api/configuration.py index 902b5d28..fa9960f0 100644 --- a/pnap_ip_api/pnap_ip_api/configuration.py +++ b/pnap_ip_api/pnap_ip_api/configuration.py @@ -377,7 +377,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0\n"\ - "SDK Package Version: 2.0.0".\ + "SDK Package Version: 2.0.1-SNAPSHOT".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/pnap_ip_api/pyproject.toml b/pnap_ip_api/pyproject.toml index 600e9d34..1c15ffac 100644 --- a/pnap_ip_api/pyproject.toml +++ b/pnap_ip_api/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pnap_ip_api" -version = "2.0.0" +version = "2.0.1-SNAPSHOT" description = "IP Addresses API" authors = ["PhoenixNAP Team "] license = "Apache 2.0" diff --git a/pnap_ip_api/setup.py b/pnap_ip_api/setup.py index 481b1cc7..81a3ba34 100644 --- a/pnap_ip_api/setup.py +++ b/pnap_ip_api/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "pnap-ip-api" -VERSION = "2.0.0" +VERSION = "2.0.1-SNAPSHOT" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/pnap_location_api/README.md b/pnap_location_api/README.md index 76a836ce..a0609985 100644 --- a/pnap_location_api/README.md +++ b/pnap_location_api/README.md @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0 -- Package version: 2.0.0 +- Package version: 2.0.1-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://phoenixnap.com](https://phoenixnap.com) diff --git a/pnap_location_api/pnap_location_api/__init__.py b/pnap_location_api/pnap_location_api/__init__.py index dc2bbcd3..31ff46f5 100644 --- a/pnap_location_api/pnap_location_api/__init__.py +++ b/pnap_location_api/pnap_location_api/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "2.0.0" +__version__ = "2.0.1-SNAPSHOT" # import apis into sdk package from pnap_location_api.api.locations_api import LocationsApi diff --git a/pnap_location_api/pnap_location_api/api_client.py b/pnap_location_api/pnap_location_api/api_client.py index cf737774..838e7506 100644 --- a/pnap_location_api/pnap_location_api/api_client.py +++ b/pnap_location_api/pnap_location_api/api_client.py @@ -87,11 +87,11 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = f"PNAP-python-sdk-bmc/2.0.0" + self.user_agent = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" self.client_side_validation = configuration.client_side_validation # Set default X-Powered-By. - self.powered_by = f"PNAP-python-sdk-bmc/2.0.0" + self.powered_by = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" def __enter__(self): return self diff --git a/pnap_location_api/pnap_location_api/configuration.py b/pnap_location_api/pnap_location_api/configuration.py index be0b6ac5..c9af78c6 100644 --- a/pnap_location_api/pnap_location_api/configuration.py +++ b/pnap_location_api/pnap_location_api/configuration.py @@ -369,7 +369,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0\n"\ - "SDK Package Version: 2.0.0".\ + "SDK Package Version: 2.0.1-SNAPSHOT".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/pnap_location_api/pyproject.toml b/pnap_location_api/pyproject.toml index fd40d040..7ac4398e 100644 --- a/pnap_location_api/pyproject.toml +++ b/pnap_location_api/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pnap_location_api" -version = "2.0.0" +version = "2.0.1-SNAPSHOT" description = "Locations API" authors = ["PhoenixNAP Team "] license = "Apache 2.0" diff --git a/pnap_location_api/setup.py b/pnap_location_api/setup.py index e9698609..570224f3 100644 --- a/pnap_location_api/setup.py +++ b/pnap_location_api/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "pnap-location-api" -VERSION = "2.0.0" +VERSION = "2.0.1-SNAPSHOT" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/pnap_network_api/README.md b/pnap_network_api/README.md index 9597b618..79c4c071 100644 --- a/pnap_network_api/README.md +++ b/pnap_network_api/README.md @@ -15,7 +15,7 @@ and Self: return cls.model_validate(obj) _obj = cls.model_validate({ - "results": [Transaction.from_dict(_item) for _item in obj.get("results")] if obj.get("results") is not None else None, "limit": obj.get("limit"), "offset": obj.get("offset"), - "total": obj.get("total") + "total": obj.get("total"), + "results": [Transaction.from_dict(_item) for _item in obj.get("results")] if obj.get("results") is not None else None }) return _obj diff --git a/pnap_payments_api/pyproject.toml b/pnap_payments_api/pyproject.toml index 5f1f27fb..bf13b95f 100644 --- a/pnap_payments_api/pyproject.toml +++ b/pnap_payments_api/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pnap_payments_api" -version = "1.0.0" +version = "1.0.1" description = "Payments API" authors = ["PhoenixNAP Team "] license = "Apache 2.0" diff --git a/pnap_payments_api/setup.py b/pnap_payments_api/setup.py index f65e4e0b..f148f274 100644 --- a/pnap_payments_api/setup.py +++ b/pnap_payments_api/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "pnap-payments-api" -VERSION = "1.0.0" +VERSION = "1.0.1" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/pnap_rancher_solution_api/README.md b/pnap_rancher_solution_api/README.md index 9e253925..7e71541b 100644 --- a/pnap_rancher_solution_api/README.md +++ b/pnap_rancher_solution_api/README.md @@ -13,7 +13,7 @@ Knowledge base articles to help you can be found This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.1 -- Package version: 2.0.0 +- Package version: 2.0.1-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://phoenixnap.com/](https://phoenixnap.com/) diff --git a/pnap_rancher_solution_api/pnap_rancher_solution_api/__init__.py b/pnap_rancher_solution_api/pnap_rancher_solution_api/__init__.py index c9d41173..9cbcde6a 100644 --- a/pnap_rancher_solution_api/pnap_rancher_solution_api/__init__.py +++ b/pnap_rancher_solution_api/pnap_rancher_solution_api/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "2.0.0" +__version__ = "2.0.1-SNAPSHOT" # import apis into sdk package from pnap_rancher_solution_api.api.clusters_api import ClustersApi diff --git a/pnap_rancher_solution_api/pnap_rancher_solution_api/api_client.py b/pnap_rancher_solution_api/pnap_rancher_solution_api/api_client.py index d9831d20..38a0afd5 100644 --- a/pnap_rancher_solution_api/pnap_rancher_solution_api/api_client.py +++ b/pnap_rancher_solution_api/pnap_rancher_solution_api/api_client.py @@ -87,11 +87,11 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = f"PNAP-python-sdk-bmc/2.0.0" + self.user_agent = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" self.client_side_validation = configuration.client_side_validation # Set default X-Powered-By. - self.powered_by = f"PNAP-python-sdk-bmc/2.0.0" + self.powered_by = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" def __enter__(self): return self diff --git a/pnap_rancher_solution_api/pnap_rancher_solution_api/configuration.py b/pnap_rancher_solution_api/pnap_rancher_solution_api/configuration.py index 2b6701bc..3f2657a3 100644 --- a/pnap_rancher_solution_api/pnap_rancher_solution_api/configuration.py +++ b/pnap_rancher_solution_api/pnap_rancher_solution_api/configuration.py @@ -377,7 +377,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.1\n"\ - "SDK Package Version: 2.0.0".\ + "SDK Package Version: 2.0.1-SNAPSHOT".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/pnap_rancher_solution_api/pyproject.toml b/pnap_rancher_solution_api/pyproject.toml index 804d1d81..3ce1120d 100644 --- a/pnap_rancher_solution_api/pyproject.toml +++ b/pnap_rancher_solution_api/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pnap_rancher_solution_api" -version = "2.0.0" +version = "2.0.1-SNAPSHOT" description = "Rancher Solution API" authors = ["PhoenixNAP Team "] license = "Apache 2.0" diff --git a/pnap_rancher_solution_api/setup.py b/pnap_rancher_solution_api/setup.py index 7c09ad99..ec26185c 100644 --- a/pnap_rancher_solution_api/setup.py +++ b/pnap_rancher_solution_api/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "pnap-rancher-solution-api" -VERSION = "2.0.0" +VERSION = "2.0.1-SNAPSHOT" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/pnap_tag_api/README.md b/pnap_tag_api/README.md index d2d0ee92..9993d1e0 100644 --- a/pnap_tag_api/README.md +++ b/pnap_tag_api/README.md @@ -14,7 +14,7 @@ Knowledge base articles to help you can be found This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0 -- Package version: 2.0.0 +- Package version: 2.0.1-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://phoenixnap.com/](https://phoenixnap.com/) diff --git a/pnap_tag_api/pnap_tag_api/__init__.py b/pnap_tag_api/pnap_tag_api/__init__.py index 006f7675..47febe59 100644 --- a/pnap_tag_api/pnap_tag_api/__init__.py +++ b/pnap_tag_api/pnap_tag_api/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "2.0.0" +__version__ = "2.0.1-SNAPSHOT" # import apis into sdk package from pnap_tag_api.api.tags_api import TagsApi diff --git a/pnap_tag_api/pnap_tag_api/api_client.py b/pnap_tag_api/pnap_tag_api/api_client.py index 734500f6..ba6fb8af 100644 --- a/pnap_tag_api/pnap_tag_api/api_client.py +++ b/pnap_tag_api/pnap_tag_api/api_client.py @@ -87,11 +87,11 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = f"PNAP-python-sdk-bmc/2.0.0" + self.user_agent = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" self.client_side_validation = configuration.client_side_validation # Set default X-Powered-By. - self.powered_by = f"PNAP-python-sdk-bmc/2.0.0" + self.powered_by = f"PNAP-python-sdk-bmc/2.0.1-SNAPSHOT" def __enter__(self): return self diff --git a/pnap_tag_api/pnap_tag_api/configuration.py b/pnap_tag_api/pnap_tag_api/configuration.py index 5494c99c..ea4d617e 100644 --- a/pnap_tag_api/pnap_tag_api/configuration.py +++ b/pnap_tag_api/pnap_tag_api/configuration.py @@ -377,7 +377,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0\n"\ - "SDK Package Version: 2.0.0".\ + "SDK Package Version: 2.0.1-SNAPSHOT".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/pnap_tag_api/pyproject.toml b/pnap_tag_api/pyproject.toml index e1588af5..bf2d6788 100644 --- a/pnap_tag_api/pyproject.toml +++ b/pnap_tag_api/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pnap_tag_api" -version = "2.0.0" +version = "2.0.1-SNAPSHOT" description = "Tags API" authors = ["PhoenixNAP Team "] license = "Apache 2.0" diff --git a/pnap_tag_api/setup.py b/pnap_tag_api/setup.py index 578858be..aa9adecc 100644 --- a/pnap_tag_api/setup.py +++ b/pnap_tag_api/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "pnap-tag-api" -VERSION = "2.0.0" +VERSION = "2.0.1-SNAPSHOT" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/specs/pnap_invoicing_api.spec.yaml b/specs/pnap_invoicing_api.spec.yaml index 2f117191..22cf6652 100644 --- a/specs/pnap_invoicing_api.spec.yaml +++ b/specs/pnap_invoicing_api.spec.yaml @@ -151,16 +151,37 @@ components: invoices.read: Grants read only access to Invoicing API. schemas: PaginatedInvoices: - type: object - required: - - results - properties: - results: - type: array - items: - $ref: '#/components/schemas/Invoice' allOf: - $ref: '#/components/schemas/PaginatedResponse' + - type: object + required: + - results + properties: + results: + type: array + items: + $ref: '#/components/schemas/Invoice' + example: + results: + - id: 5fa54d1e91867c03a0a7b4a4 + number: 34440-2488782 + currency: EUR + amount: 100.99 + outstandingAmount: 100.99 + status: UNPAID + sentOn: '2021-03-13T20:24:32.491Z' + dueDate: '2021-04-13T20:24:32.491Z' + - id: 5fa89e1e91867c03a0a7b4a4 + number: 34440-2488783 + currency: EUR + amount: 50 + outstandingAmount: 0 + status: PAID + sentOn: '2021-04-13T20:24:32.491Z' + dueDate: '2021-05-13T20:24:32.491Z' + limit: 2 + offset: 10 + total: 342 Invoice: title: Invoice required: diff --git a/specs/pnap_payments_api.spec.yaml b/specs/pnap_payments_api.spec.yaml index 060130e3..86381645 100644 --- a/specs/pnap_payments_api.spec.yaml +++ b/specs/pnap_payments_api.spec.yaml @@ -110,16 +110,47 @@ components: transactions.read: Grants read only access to transactions. schemas: PaginatedTransactions: - type: object - required: - - results - properties: - results: - type: array - items: - $ref: '#/components/schemas/Transaction' allOf: - $ref: '#/components/schemas/PaginatedResponse' + - type: object + required: + - results + properties: + results: + type: array + items: + $ref: '#/components/schemas/Transaction' + example: + results: + - id: 60ffafcdffb8b074c7968faf + status: FAILED + details: Transaction failed due to credit card expiration. + amount: 10.99 + currency: USD + date: '2023-04-27T16:24:57.123Z' + metadata: + invoiceId: '3088561' + invoiceNumber: 1234-4321 + isAutoCharge: true + cardPaymentMethodDetails: + cardType: VISA + lastFourDigits: '5666' + - id: 60ed34cdffb8b074c7968faf + status: SUCCESS + details: '' + amount: 50 + currency: USD + date: '2024-01-27T12:32:18.123Z' + metadata: + invoiceId: '3088562' + invoiceNumber: 1234-4322 + isAutoCharge: true + cardPaymentMethodDetails: + cardType: VISA + lastFourDigits: '5666' + limit: 2 + offset: 10 + total: 342 Transaction: type: object description: Transaction response model.