Skip to content

Commit e22eb75

Browse files
authored
Merge pull request #21 from cloudbeds/feat/v1.2.0
feat: v1.2.0
2 parents 64d2ab2 + 14e9b6c commit e22eb75

File tree

315 files changed

+2948
-30155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

315 files changed

+2948
-30155
lines changed

.openapi-generator/FILES

Lines changed: 324 additions & 136 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 95 deletions
Large diffs are not rendered by default.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.2.0

cloudbeds_pms_v1_3/__init__.py

Lines changed: 2 additions & 69 deletions
Large diffs are not rendered by default.

cloudbeds_pms_v1_3/api/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi
66
from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi
77
from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi
8-
from cloudbeds_pms_v1_3.api.beta_api import BetaApi
9-
from cloudbeds_pms_v1_3.api.crm_api import CRMApi
108
from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi
119
from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi
1210
from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi
@@ -16,16 +14,13 @@
1614
from cloudbeds_pms_v1_3.api.hotel_api import HotelApi
1715
from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi
1816
from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi
19-
from cloudbeds_pms_v1_3.api.import_api import ImportApi
2017
from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi
21-
from cloudbeds_pms_v1_3.api.invoices_api import InvoicesApi
2218
from cloudbeds_pms_v1_3.api.item_api import ItemApi
2319
from cloudbeds_pms_v1_3.api.package_api import PackageApi
2420
from cloudbeds_pms_v1_3.api.payment_api import PaymentApi
2521
from cloudbeds_pms_v1_3.api.rate_api import RateApi
2622
from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi
2723
from cloudbeds_pms_v1_3.api.room_api import RoomApi
28-
from cloudbeds_pms_v1_3.api.rooms_api import RoomsApi
2924
from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi
3025
from cloudbeds_pms_v1_3.api.user_api import UserApi
3126

cloudbeds_pms_v1_3/api/app_settings_api.py

Lines changed: 0 additions & 306 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from typing_extensions import Annotated
2222
from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse
2323
from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse
24-
from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse
2524
from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse
2625
from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse
2726

@@ -934,311 +933,6 @@ def _post_app_property_settings_post_serialize(
934933

935934

936935

937-
@validate_call
938-
def post_bulk_app_property_settings_post(
939-
self,
940-
property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None,
941-
app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None,
942-
settings: Annotated[Optional[StrictStr], Field(description="JSON array of settings values")] = None,
943-
_request_timeout: Union[
944-
None,
945-
Annotated[StrictFloat, Field(gt=0)],
946-
Tuple[
947-
Annotated[StrictFloat, Field(gt=0)],
948-
Annotated[StrictFloat, Field(gt=0)]
949-
]
950-
] = None,
951-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
952-
_content_type: Optional[StrictStr] = None,
953-
_headers: Optional[Dict[StrictStr, Any]] = None,
954-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
955-
) -> PostBulkAppPropertySettingsResponse:
956-
"""postBulkAppPropertySettings
957-
958-
959-
960-
:param property_id: Property ID
961-
:type property_id: str
962-
:param app_client_id: Application Client ID
963-
:type app_client_id: str
964-
:param settings: JSON array of settings values
965-
:type settings: str
966-
:param _request_timeout: timeout setting for this request. If one
967-
number provided, it will be total request
968-
timeout. It can also be a pair (tuple) of
969-
(connection, read) timeouts.
970-
:type _request_timeout: int, tuple(int, int), optional
971-
:param _request_auth: set to override the auth_settings for an a single
972-
request; this effectively ignores the
973-
authentication in the spec for a single request.
974-
:type _request_auth: dict, optional
975-
:param _content_type: force content-type for the request.
976-
:type _content_type: str, Optional
977-
:param _headers: set to override the headers for a single
978-
request; this effectively ignores the headers
979-
in the spec for a single request.
980-
:type _headers: dict, optional
981-
:param _host_index: set to override the host_index for a single
982-
request; this effectively ignores the host_index
983-
in the spec for a single request.
984-
:type _host_index: int, optional
985-
:return: Returns the result object.
986-
""" # noqa: E501
987-
988-
_param = self._post_bulk_app_property_settings_post_serialize(
989-
property_id=property_id,
990-
app_client_id=app_client_id,
991-
settings=settings,
992-
_request_auth=_request_auth,
993-
_content_type=_content_type,
994-
_headers=_headers,
995-
_host_index=_host_index
996-
)
997-
998-
_response_types_map: Dict[str, Optional[str]] = {
999-
'200': "PostBulkAppPropertySettingsResponse",
1000-
}
1001-
response_data = self.api_client.call_api(
1002-
*_param,
1003-
_request_timeout=_request_timeout
1004-
)
1005-
response_data.read()
1006-
return self.api_client.response_deserialize(
1007-
response_data=response_data,
1008-
response_types_map=_response_types_map,
1009-
).data
1010-
1011-
1012-
@validate_call
1013-
def post_bulk_app_property_settings_post_with_http_info(
1014-
self,
1015-
property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None,
1016-
app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None,
1017-
settings: Annotated[Optional[StrictStr], Field(description="JSON array of settings values")] = None,
1018-
_request_timeout: Union[
1019-
None,
1020-
Annotated[StrictFloat, Field(gt=0)],
1021-
Tuple[
1022-
Annotated[StrictFloat, Field(gt=0)],
1023-
Annotated[StrictFloat, Field(gt=0)]
1024-
]
1025-
] = None,
1026-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
1027-
_content_type: Optional[StrictStr] = None,
1028-
_headers: Optional[Dict[StrictStr, Any]] = None,
1029-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1030-
) -> ApiResponse[PostBulkAppPropertySettingsResponse]:
1031-
"""postBulkAppPropertySettings
1032-
1033-
1034-
1035-
:param property_id: Property ID
1036-
:type property_id: str
1037-
:param app_client_id: Application Client ID
1038-
:type app_client_id: str
1039-
:param settings: JSON array of settings values
1040-
:type settings: str
1041-
:param _request_timeout: timeout setting for this request. If one
1042-
number provided, it will be total request
1043-
timeout. It can also be a pair (tuple) of
1044-
(connection, read) timeouts.
1045-
:type _request_timeout: int, tuple(int, int), optional
1046-
:param _request_auth: set to override the auth_settings for an a single
1047-
request; this effectively ignores the
1048-
authentication in the spec for a single request.
1049-
:type _request_auth: dict, optional
1050-
:param _content_type: force content-type for the request.
1051-
:type _content_type: str, Optional
1052-
:param _headers: set to override the headers for a single
1053-
request; this effectively ignores the headers
1054-
in the spec for a single request.
1055-
:type _headers: dict, optional
1056-
:param _host_index: set to override the host_index for a single
1057-
request; this effectively ignores the host_index
1058-
in the spec for a single request.
1059-
:type _host_index: int, optional
1060-
:return: Returns the result object.
1061-
""" # noqa: E501
1062-
1063-
_param = self._post_bulk_app_property_settings_post_serialize(
1064-
property_id=property_id,
1065-
app_client_id=app_client_id,
1066-
settings=settings,
1067-
_request_auth=_request_auth,
1068-
_content_type=_content_type,
1069-
_headers=_headers,
1070-
_host_index=_host_index
1071-
)
1072-
1073-
_response_types_map: Dict[str, Optional[str]] = {
1074-
'200': "PostBulkAppPropertySettingsResponse",
1075-
}
1076-
response_data = self.api_client.call_api(
1077-
*_param,
1078-
_request_timeout=_request_timeout
1079-
)
1080-
response_data.read()
1081-
return self.api_client.response_deserialize(
1082-
response_data=response_data,
1083-
response_types_map=_response_types_map,
1084-
)
1085-
1086-
1087-
@validate_call
1088-
def post_bulk_app_property_settings_post_without_preload_content(
1089-
self,
1090-
property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None,
1091-
app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None,
1092-
settings: Annotated[Optional[StrictStr], Field(description="JSON array of settings values")] = None,
1093-
_request_timeout: Union[
1094-
None,
1095-
Annotated[StrictFloat, Field(gt=0)],
1096-
Tuple[
1097-
Annotated[StrictFloat, Field(gt=0)],
1098-
Annotated[StrictFloat, Field(gt=0)]
1099-
]
1100-
] = None,
1101-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
1102-
_content_type: Optional[StrictStr] = None,
1103-
_headers: Optional[Dict[StrictStr, Any]] = None,
1104-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1105-
) -> RESTResponseType:
1106-
"""postBulkAppPropertySettings
1107-
1108-
1109-
1110-
:param property_id: Property ID
1111-
:type property_id: str
1112-
:param app_client_id: Application Client ID
1113-
:type app_client_id: str
1114-
:param settings: JSON array of settings values
1115-
:type settings: str
1116-
:param _request_timeout: timeout setting for this request. If one
1117-
number provided, it will be total request
1118-
timeout. It can also be a pair (tuple) of
1119-
(connection, read) timeouts.
1120-
:type _request_timeout: int, tuple(int, int), optional
1121-
:param _request_auth: set to override the auth_settings for an a single
1122-
request; this effectively ignores the
1123-
authentication in the spec for a single request.
1124-
:type _request_auth: dict, optional
1125-
:param _content_type: force content-type for the request.
1126-
:type _content_type: str, Optional
1127-
:param _headers: set to override the headers for a single
1128-
request; this effectively ignores the headers
1129-
in the spec for a single request.
1130-
:type _headers: dict, optional
1131-
:param _host_index: set to override the host_index for a single
1132-
request; this effectively ignores the host_index
1133-
in the spec for a single request.
1134-
:type _host_index: int, optional
1135-
:return: Returns the result object.
1136-
""" # noqa: E501
1137-
1138-
_param = self._post_bulk_app_property_settings_post_serialize(
1139-
property_id=property_id,
1140-
app_client_id=app_client_id,
1141-
settings=settings,
1142-
_request_auth=_request_auth,
1143-
_content_type=_content_type,
1144-
_headers=_headers,
1145-
_host_index=_host_index
1146-
)
1147-
1148-
_response_types_map: Dict[str, Optional[str]] = {
1149-
'200': "PostBulkAppPropertySettingsResponse",
1150-
}
1151-
response_data = self.api_client.call_api(
1152-
*_param,
1153-
_request_timeout=_request_timeout
1154-
)
1155-
return response_data.response
1156-
1157-
1158-
def _post_bulk_app_property_settings_post_serialize(
1159-
self,
1160-
property_id,
1161-
app_client_id,
1162-
settings,
1163-
_request_auth,
1164-
_content_type,
1165-
_headers,
1166-
_host_index,
1167-
) -> RequestSerialized:
1168-
1169-
_host = None
1170-
1171-
_collection_formats: Dict[str, str] = {
1172-
}
1173-
1174-
_path_params: Dict[str, str] = {}
1175-
_query_params: List[Tuple[str, str]] = []
1176-
_header_params: Dict[str, Optional[str]] = _headers or {}
1177-
_form_params: List[Tuple[str, str]] = []
1178-
_files: Dict[
1179-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1180-
] = {}
1181-
_body_params: Optional[bytes] = None
1182-
1183-
# process the path parameters
1184-
# process the query parameters
1185-
# process the header parameters
1186-
# process the form parameters
1187-
if property_id is not None:
1188-
_form_params.append(('propertyID', property_id))
1189-
if app_client_id is not None:
1190-
_form_params.append(('appClientID', app_client_id))
1191-
if settings is not None:
1192-
_form_params.append(('settings', settings))
1193-
# process the body parameter
1194-
1195-
1196-
# set the HTTP header `Accept`
1197-
if 'Accept' not in _header_params:
1198-
_header_params['Accept'] = self.api_client.select_header_accept(
1199-
[
1200-
'application/json'
1201-
]
1202-
)
1203-
1204-
# set the HTTP header `Content-Type`
1205-
if _content_type:
1206-
_header_params['Content-Type'] = _content_type
1207-
else:
1208-
_default_content_type = (
1209-
self.api_client.select_header_content_type(
1210-
[
1211-
'application/x-www-form-urlencoded'
1212-
]
1213-
)
1214-
)
1215-
if _default_content_type is not None:
1216-
_header_params['Content-Type'] = _default_content_type
1217-
1218-
# authentication setting
1219-
_auth_settings: List[str] = [
1220-
'OAuth2',
1221-
'api_key'
1222-
]
1223-
1224-
return self.api_client.param_serialize(
1225-
method='POST',
1226-
resource_path='/postBulkAppPropertySettings',
1227-
path_params=_path_params,
1228-
query_params=_query_params,
1229-
header_params=_header_params,
1230-
body=_body_params,
1231-
post_params=_form_params,
1232-
files=_files,
1233-
auth_settings=_auth_settings,
1234-
collection_formats=_collection_formats,
1235-
_host=_host,
1236-
_request_auth=_request_auth
1237-
)
1238-
1239-
1240-
1241-
1242936
@validate_call
1243937
def put_app_property_settings_post(
1244938
self,

0 commit comments

Comments
 (0)