Skip to content

Commit 7c3372a

Browse files
authored
Merge pull request #24 from cloudbeds/feat/v1.5
feat: v1.5
2 parents 216ea2c + 9f79ffc commit 7c3372a

File tree

11 files changed

+24
-354
lines changed

11 files changed

+24
-354
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 330 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: v1.3
7-
- Package version: 1.5.0
7+
- Package version: 1.5.1
88
- Generator version: 7.11.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.0
1+
1.5.1

cloudbeds_pms_v1_3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.5.0"
17+
__version__ = "1.5.1"
1818

1919
# import apis into sdk package
2020
from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi

cloudbeds_pms_v1_3/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/1.5.0/python'
93+
self.user_agent = 'OpenAPI-Generator/1.5.1/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

cloudbeds_pms_v1_3/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def to_debug_report(self) -> str:
532532
"OS: {env}\n"\
533533
"Python Version: {pyversion}\n"\
534534
"Version of the API: v1.3\n"\
535-
"SDK Package Version: 1.5.0".\
535+
"SDK Package Version: 1.5.1".\
536536
format(env=sys.platform, pyversion=sys.version)
537537

538538
def get_host_settings(self) -> List[HostSetting]:

cloudbeds_pms_v1_3/docs/GetGroupsResponse.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**success** | **bool** | Success | [optional]
99
**data** | [**List[GetGroupsResponseDataInner]**](GetGroupsResponseDataInner.md) | Data | [optional]
10-
**cell_phone** | **str** | \"fax\"} data.contacts.phones.type Phone type | [optional]
1110

1211
## Example
1312

cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**type** | **str** | Phone type | [optional]
89
**value** | **str** | Phone number value | [optional]
910

1011
## Example

cloudbeds_pms_v1_3/models/get_groups_response.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import re # noqa: F401
1818
import json
1919

20-
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
20+
from pydantic import BaseModel, ConfigDict, Field, StrictBool
2121
from typing import Any, ClassVar, Dict, List, Optional
2222
from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner
2323
from typing import Optional, Set
@@ -29,18 +29,7 @@ class GetGroupsResponse(BaseModel):
2929
""" # noqa: E501
3030
success: Optional[StrictBool] = Field(default=None, description="Success")
3131
data: Optional[List[GetGroupsResponseDataInner]] = Field(default=None, description="Data")
32-
cell_phone: Optional[StrictStr] = Field(default=None, description="\"fax\"} data.contacts.phones.type Phone type", alias=""cell_phone",")
33-
__properties: ClassVar[List[str]] = ["success", "data", ""cell_phone","]
34-
35-
@field_validator('cell_phone')
36-
def cell_phone_validate_enum(cls, value):
37-
"""Validates the enum"""
38-
if value is None:
39-
return value
40-
41-
if value not in set(['home', 'work']):
42-
raise ValueError("must be one of enum values ('home', 'work')")
43-
return value
32+
__properties: ClassVar[List[str]] = ["success", "data"]
4433

4534
model_config = ConfigDict(
4635
populate_by_name=True,
@@ -101,8 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
10190

10291
_obj = cls.model_validate({
10392
"success": obj.get("success"),
104-
"data": [GetGroupsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
105-
""cell_phone",": obj.get(""cell_phone",")
93+
"data": [GetGroupsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
10694
})
10795
return _obj
10896

cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import re # noqa: F401
1818
import json
1919

20-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
20+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2121
from typing import Any, ClassVar, Dict, List, Optional
2222
from typing import Optional, Set
2323
from typing_extensions import Self
@@ -26,8 +26,19 @@ class GetGroupsResponseDataInnerContactsInnerPhonesInner(BaseModel):
2626
"""
2727
GetGroupsResponseDataInnerContactsInnerPhonesInner
2828
""" # noqa: E501
29+
type: Optional[StrictStr] = Field(default=None, description="Phone type")
2930
value: Optional[StrictStr] = Field(default=None, description="Phone number value")
30-
__properties: ClassVar[List[str]] = ["value"]
31+
__properties: ClassVar[List[str]] = ["type", "value"]
32+
33+
@field_validator('type')
34+
def type_validate_enum(cls, value):
35+
"""Validates the enum"""
36+
if value is None:
37+
return value
38+
39+
if value not in set(['home', 'work', 'cell_phone', 'fax']):
40+
raise ValueError("must be one of enum values ('home', 'work', 'cell_phone', 'fax')")
41+
return value
3142

3243
model_config = ConfigDict(
3344
populate_by_name=True,
@@ -80,6 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8091
return cls.model_validate(obj)
8192

8293
_obj = cls.model_validate({
94+
"type": obj.get("type"),
8395
"value": obj.get("value")
8496
})
8597
return _obj

0 commit comments

Comments
 (0)