Skip to content

Commit 9771abd

Browse files
feat: regenerated using 7.11 version
1 parent 3f86a9c commit 9771abd

File tree

12 files changed

+355
-1426
lines changed

12 files changed

+355
-1426
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
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.2
8-
- Generator version: 7.15.0
7+
- Package version: 1.5.3
8+
- Generator version: 7.11.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

1111
## Requirements.
1212

13-
Python 3.9+
13+
Python 3.8+
1414

1515
## Installation & Usage
1616

1717
This python library package is generated without supporting files like setup.py or requirements files
1818

1919
To be able to use it, you will need these dependencies in your own package that uses this library:
2020

21-
* urllib3 >= 2.1.0, < 3.0.0
21+
* urllib3 >= 1.25.3, < 3.0.0
2222
* python-dateutil >= 2.8.2
2323
* pydantic >= 2
2424
* typing-extensions >= 4.7.1

cloudbeds_pms_v1_3/__init__.py

Lines changed: 339 additions & 1038 deletions
Large diffs are not rendered by default.

cloudbeds_pms_v1_3/api/__init__.py

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,6 @@
11
# flake8: noqa
22

3-
if __import__("typing").TYPE_CHECKING:
4-
# import apis into api package
5-
from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi
6-
from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi
7-
from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi
8-
from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi
9-
from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi
10-
from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi
11-
from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi
12-
from cloudbeds_pms_v1_3.api.emails_api import EmailsApi
13-
from cloudbeds_pms_v1_3.api.groups_api import GroupsApi
14-
from cloudbeds_pms_v1_3.api.guest_api import GuestApi
15-
from cloudbeds_pms_v1_3.api.hotel_api import HotelApi
16-
from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi
17-
from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi
18-
from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi
19-
from cloudbeds_pms_v1_3.api.item_api import ItemApi
20-
from cloudbeds_pms_v1_3.api.package_api import PackageApi
21-
from cloudbeds_pms_v1_3.api.payment_api import PaymentApi
22-
from cloudbeds_pms_v1_3.api.rate_api import RateApi
23-
from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi
24-
from cloudbeds_pms_v1_3.api.room_api import RoomApi
25-
from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi
26-
from cloudbeds_pms_v1_3.api.user_api import UserApi
27-
28-
else:
29-
from lazy_imports import LazyModule, as_package, load
30-
31-
load(
32-
LazyModule(
33-
*as_package(__file__),
34-
"""# import apis into api package
3+
# import apis into api package
354
from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi
365
from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi
376
from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi
@@ -55,8 +24,3 @@
5524
from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi
5625
from cloudbeds_pms_v1_3.api.user_api import UserApi
5726

58-
""",
59-
name=__name__,
60-
doc=__doc__,
61-
)
62-
)

cloudbeds_pms_v1_3/api_client.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import os
2222
import re
2323
import tempfile
24-
import uuid
2524

2625
from urllib.parse import quote
2726
from typing import Tuple, Optional, List, Dict, Union
@@ -91,7 +90,7 @@ def __init__(
9190
self.default_headers[header_name] = header_value
9291
self.cookie = cookie
9392
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/1.5.2/python'
93+
self.user_agent = 'OpenAPI-Generator/1.5.3/python'
9594
self.client_side_validation = configuration.client_side_validation
9695

9796
def __enter__(self):
@@ -357,8 +356,6 @@ def sanitize_for_serialization(self, obj):
357356
return obj.get_secret_value()
358357
elif isinstance(obj, self.PRIMITIVE_TYPES):
359358
return obj
360-
elif isinstance(obj, uuid.UUID):
361-
return str(obj)
362359
elif isinstance(obj, list):
363360
return [
364361
self.sanitize_for_serialization(sub_obj) for sub_obj in obj
@@ -385,10 +382,6 @@ def sanitize_for_serialization(self, obj):
385382
else:
386383
obj_dict = obj.__dict__
387384

388-
if isinstance(obj_dict, list):
389-
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
390-
return self.sanitize_for_serialization(obj_dict)
391-
392385
return {
393386
key: self.sanitize_for_serialization(val)
394387
for key, val in obj_dict.items()
@@ -411,7 +404,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti
411404
data = json.loads(response_text)
412405
except ValueError:
413406
data = response_text
414-
elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
407+
elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
415408
if response_text == "":
416409
data = ""
417410
else:

cloudbeds_pms_v1_3/configuration.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from logging import FileHandler
1919
import multiprocessing
2020
import sys
21-
from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
21+
from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict
2222
from typing_extensions import NotRequired, Self
2323

2424
import urllib3
@@ -162,8 +162,6 @@ class Configuration:
162162
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
163163
in PEM format.
164164
:param retries: Number of retries for API requests.
165-
:param ca_cert_data: verify the peer using concatenated CA certificate data
166-
in PEM (str) or DER (bytes) format.
167165
168166
:Example:
169167
@@ -197,14 +195,13 @@ def __init__(
197195
username: Optional[str]=None,
198196
password: Optional[str]=None,
199197
access_token: Optional[str]=None,
200-
server_index: Optional[int]=None,
198+
server_index: Optional[int]=None,
201199
server_variables: Optional[ServerVariablesT]=None,
202200
server_operation_index: Optional[Dict[int, int]]=None,
203201
server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None,
204202
ignore_operation_servers: bool=False,
205203
ssl_ca_cert: Optional[str]=None,
206204
retries: Optional[int] = None,
207-
ca_cert_data: Optional[Union[str, bytes]] = None,
208205
*,
209206
debug: Optional[bool] = None,
210207
) -> None:
@@ -282,10 +279,6 @@ def __init__(
282279
self.ssl_ca_cert = ssl_ca_cert
283280
"""Set this to customize the certificate file to verify the peer.
284281
"""
285-
self.ca_cert_data = ca_cert_data
286-
"""Set this to verify the peer using PEM (str) or DER (bytes)
287-
certificate data.
288-
"""
289282
self.cert_file = None
290283
"""client certificate file
291284
"""
@@ -539,7 +532,7 @@ def to_debug_report(self) -> str:
539532
"OS: {env}\n"\
540533
"Python Version: {pyversion}\n"\
541534
"Version of the API: v1.3\n"\
542-
"SDK Package Version: 1.5.2".\
535+
"SDK Package Version: 1.5.3".\
543536
format(env=sys.platform, pyversion=sys.version)
544537

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

cloudbeds_pms_v1_3/docs/CustomFieldsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Method | HTTP request | Description
1313
1414
getCustomFields
1515

16-
Gets custom fields list<br /> ¹ data.displayed = "booking" - Display this field to guests on the booking engine.<br /> ¹ data.displayed = "reservation" - Add this field to the reservation folio for use by staff.<br /> ¹ data.displayed = "card" - Make this field available for registration cards.<br />
16+
Gets custom fields list<br /> ¹ data.displayed = \"booking\" - Display this field to guests on the booking engine.<br /> ¹ data.displayed = \"reservation\" - Add this field to the reservation folio for use by staff.<br /> ¹ data.displayed = \"card\" - Make this field available for registration cards.<br />
1717

1818
### Example
1919

cloudbeds_pms_v1_3/docs/EmailsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Name | Type | Description | Notes
268268
269269
postEmailTemplate
270270

271-
Creates a new email template. See the full list of available language parameters <a href="https://integrations.cloudbeds.com/hc/en-us/articles/360007144993-FAQ#methods-and-parameters">here</a>. This call is only available for third-party integration partners, and not for property client IDs.
271+
Creates a new email template. See the full list of available language parameters <a href=\"https://integrations.cloudbeds.com/hc/en-us/articles/360007144993-FAQ#methods-and-parameters\">here</a>. This call is only available for third-party integration partners, and not for property client IDs.
272272

273273
### Example
274274

cloudbeds_pms_v1_3/docs/HotelApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Name | Type | Description | Notes
109109
110110
getHotelDetails
111111

112-
Returns the details of a specific hotel, identified by "propertyID"
112+
Returns the details of a specific hotel, identified by \"propertyID\"
113113

114114
### Example
115115

cloudbeds_pms_v1_3/docs/RoomApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ Name | Type | Description | Notes
10631063
10641064
postRoomCheckOut
10651065

1066-
Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to "Checked Out" as well.
1066+
Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to \"Checked Out\" as well.
10671067

10681068
### Example
10691069

0 commit comments

Comments
 (0)