Skip to content

[Client] Automatic update from platform release (4.0.9) #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 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: 0.1.0
- Package version: 4.0.3
- Package version: 4.0.9
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down Expand Up @@ -196,6 +196,7 @@ Class | Method | HTTP request | Description
- [PodStatus](docs/PodStatus.md)
- [PrebuiltImageResponse](docs/PrebuiltImageResponse.md)
- [ServiceStatus](docs/ServiceStatus.md)
- [SetupUserResponse](docs/SetupUserResponse.md)
- [TicketCategory](docs/TicketCategory.md)
- [TicketPriority](docs/TicketPriority.md)
- [UpdateAutochargePreferencesRequest](docs/UpdateAutochargePreferencesRequest.md)
Expand Down
5 changes: 3 additions & 2 deletions docs/EXTERNALApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2679,7 +2679,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **setup_stripe_customer_payments_setup_post**
> object setup_stripe_customer_payments_setup_post()
> SetupUserResponse setup_stripe_customer_payments_setup_post()

Setup Stripe Customer

Expand All @@ -2689,6 +2689,7 @@ Setup Stripe Customer

```python
import platform_api_python_client
from platform_api_python_client.models.setup_user_response import SetupUserResponse
from platform_api_python_client.rest import ApiException
from pprint import pprint

Expand Down Expand Up @@ -2730,7 +2731,7 @@ This endpoint does not need any parameter.

### Return type

**object**
[**SetupUserResponse**](SetupUserResponse.md)

### Authorization

Expand Down
29 changes: 29 additions & 0 deletions docs/SetupUserResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SetupUserResponse


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created_workos_organization_id** | **str** | |

## Example

```python
from platform_api_python_client.models.setup_user_response import SetupUserResponse

# TODO update the JSON string below
json = "{}"
# create an instance of SetupUserResponse from a JSON string
setup_user_response_instance = SetupUserResponse.from_json(json)
# print the JSON string representation of the object
print(SetupUserResponse.to_json())

# convert the object into a dict
setup_user_response_dict = setup_user_response_instance.to_dict()
# create an instance of SetupUserResponse from a dict
setup_user_response_from_dict = SetupUserResponse.from_dict(setup_user_response_dict)
```
[[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: 2 additions & 1 deletion platform_api_python_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "4.0.3"
__version__ = "4.0.9"

# import apis into sdk package
from platform_api_python_client.api.external_api import EXTERNALApi
Expand Down Expand Up @@ -86,6 +86,7 @@
from platform_api_python_client.models.pod_status import PodStatus
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
from platform_api_python_client.models.service_status import ServiceStatus
from platform_api_python_client.models.setup_user_response import SetupUserResponse
from platform_api_python_client.models.ticket_category import TicketCategory
from platform_api_python_client.models.ticket_priority import TicketPriority
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest
Expand Down
11 changes: 6 additions & 5 deletions platform_api_python_client/api/external_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
from platform_api_python_client.models.metric import Metric
from platform_api_python_client.models.payment_method_response import PaymentMethodResponse
from platform_api_python_client.models.setup_user_response import SetupUserResponse
from platform_api_python_client.models.ticket_category import TicketCategory
from platform_api_python_client.models.ticket_priority import TicketPriority
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest
Expand Down Expand Up @@ -9308,7 +9309,7 @@ def setup_stripe_customer_payments_setup_post(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> object:
) -> SetupUserResponse:
"""Setup Stripe Customer


Expand Down Expand Up @@ -9342,7 +9343,7 @@ def setup_stripe_customer_payments_setup_post(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "object",
'200': "SetupUserResponse",
}
response_data = self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -9370,7 +9371,7 @@ def setup_stripe_customer_payments_setup_post_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[object]:
) -> ApiResponse[SetupUserResponse]:
"""Setup Stripe Customer


Expand Down Expand Up @@ -9404,7 +9405,7 @@ def setup_stripe_customer_payments_setup_post_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "object",
'200': "SetupUserResponse",
}
response_data = self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -9466,7 +9467,7 @@ def setup_stripe_customer_payments_setup_post_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "object",
'200': "SetupUserResponse",
}
response_data = self.api_client.call_api(
*_param,
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/4.0.3/python'
self.user_agent = 'OpenAPI-Generator/4.0.9/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/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: 4.0.3".\
"SDK Package Version: 4.0.9".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
1 change: 1 addition & 0 deletions platform_api_python_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
from platform_api_python_client.models.pod_status import PodStatus
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
from platform_api_python_client.models.service_status import ServiceStatus
from platform_api_python_client.models.setup_user_response import SetupUserResponse
from platform_api_python_client.models.ticket_category import TicketCategory
from platform_api_python_client.models.ticket_priority import TicketPriority
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest
Expand Down
92 changes: 92 additions & 0 deletions platform_api_python_client/models/setup_user_response.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# coding: utf-8

"""
Platform External API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import pprint
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self

class SetupUserResponse(BaseModel):
"""
SetupUserResponse
""" # noqa: E501
created_workos_organization_id: Optional[StrictStr]
__properties: ClassVar[List[str]] = ["created_workos_organization_id"]

model_config = ConfigDict(
populate_by_name=True,
validate_assignment=True,
protected_namespaces=(),
)


def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.model_dump(by_alias=True))

def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
return json.dumps(self.to_dict())

@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
"""Create an instance of SetupUserResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))

def to_dict(self) -> Dict[str, Any]:
"""Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic's
`self.model_dump(by_alias=True)`:

* `None` is only added to the output dict for nullable fields that
were set at model initialization. Other fields with value `None`
are ignored.
"""
excluded_fields: Set[str] = set([
])

_dict = self.model_dump(
by_alias=True,
exclude=excluded_fields,
exclude_none=True,
)
# set to None if created_workos_organization_id (nullable) is None
# and model_fields_set contains the field
if self.created_workos_organization_id is None and "created_workos_organization_id" in self.model_fields_set:
_dict['created_workos_organization_id'] = None

return _dict

@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"""Create an instance of SetupUserResponse from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({
"created_workos_organization_id": obj.get("created_workos_organization_id")
})
return _obj


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 = "platform_api_python_client"
version = "4.0.3"
version = "4.0.9"
description = "Platform External API"
authors = ["OpenAPI Generator Community <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 = "platform-api-python-client"
VERSION = "4.0.3"
VERSION = "4.0.9"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
52 changes: 52 additions & 0 deletions test/test_setup_user_response.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# coding: utf-8

"""
Platform External API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from platform_api_python_client.models.setup_user_response import SetupUserResponse

class TestSetupUserResponse(unittest.TestCase):
"""SetupUserResponse unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> SetupUserResponse:
"""Test SetupUserResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `SetupUserResponse`
"""
model = SetupUserResponse()
if include_optional:
return SetupUserResponse(
created_workos_organization_id = ''
)
else:
return SetupUserResponse(
created_workos_organization_id = '',
)
"""

def testSetupUserResponse(self):
"""Test SetupUserResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()