Skip to content

Commit

Permalink
Add changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 5, 2024
1 parent 19c9668 commit 08943d4
Show file tree
Hide file tree
Showing 66 changed files with 162 additions and 96 deletions.
2 changes: 1 addition & 1 deletion pnap_audit_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand Down
2 changes: 1 addition & 1 deletion pnap_audit_api/pnap_audit_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pnap_audit_api/pnap_audit_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pnap_audit_api/pnap_audit_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pnap_audit_api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "Apache 2.0"
Expand Down
2 changes: 1 addition & 1 deletion pnap_audit_api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pnap_bmc_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand Down
2 changes: 1 addition & 1 deletion pnap_bmc_api/pnap_bmc_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pnap_bmc_api/pnap_bmc_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pnap_bmc_api/pnap_bmc_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pnap_bmc_api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "Apache 2.0"
Expand Down
2 changes: 1 addition & 1 deletion pnap_bmc_api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pnap_invoicing_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand Down
2 changes: 1 addition & 1 deletion pnap_invoicing_api/docs/PaginatedInvoices.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pnap_invoicing_api/pnap_invoicing_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pnap_invoicing_api/pnap_invoicing_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pnap_invoicing_api/pnap_invoicing_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
15 changes: 11 additions & 4 deletions pnap_invoicing_api/pnap_invoicing_api/models/paginated_invoices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pnap_invoicing_api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pnap_invoicing_api"
version = "1.0.0"
version = "1.0.1"
description = "Invoicing API"
authors = ["PhoenixNAP Team <[email protected]>"]
license = "Apache 2.0"
Expand Down
2 changes: 1 addition & 1 deletion pnap_invoicing_api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pnap_ip_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand Down
2 changes: 1 addition & 1 deletion pnap_ip_api/pnap_ip_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pnap_ip_api/pnap_ip_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pnap_ip_api/pnap_ip_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pnap_ip_api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "Apache 2.0"
Expand Down
2 changes: 1 addition & 1 deletion pnap_ip_api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pnap_location_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pnap_location_api/pnap_location_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pnap_location_api/pnap_location_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pnap_location_api/pnap_location_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pnap_location_api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "Apache 2.0"
Expand Down
2 changes: 1 addition & 1 deletion pnap_location_api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pnap_network_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-headin
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/)

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


__version__ = "2.0.0"
__version__ = "2.0.1-SNAPSHOT"

# import apis into sdk package
from pnap_network_api.api.private_networks_api import PrivateNetworksApi
Expand Down
4 changes: 2 additions & 2 deletions pnap_network_api/pnap_network_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pnap_network_api/pnap_network_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pnap_network_api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pnap_network_api"
version = "2.0.0"
version = "2.0.1-SNAPSHOT"
description = "Networks API"
authors = ["PhoenixNAP Team <[email protected]>"]
license = "Apache 2.0"
Expand Down
Loading

0 comments on commit 08943d4

Please sign in to comment.