Skip to content

Commit 7c6bffd

Browse files
author
github-actions
committed
Bump version to 2.5.0
1 parent 4b644db commit 7c6bffd

File tree

8 files changed

+31
-37
lines changed

8 files changed

+31
-37
lines changed

README.md

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

66
- API version: v2
7-
- Package version: 2.4.0
7+
- Package version: 2.5.0
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-
2.4.0
1+
2.5.0

cloudbeds_pms/__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__ = "2.4.0"
17+
__version__ = "2.5.0"
1818

1919
# import apis into sdk package
2020
from cloudbeds_pms.api.doorlock_keys_api import DoorlockKeysApi

cloudbeds_pms/api/market_segmentation_segments_api.py

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616
from typing import Any, Dict, List, Optional, Tuple, Union
1717
from typing_extensions import Annotated
1818

19-
from pydantic import Field, StrictStr
19+
from pydantic import Field, StrictBool, StrictStr
2020
from typing import Any, Optional
2121
from typing_extensions import Annotated
22-
from cloudbeds_pms.models.active import Active
23-
from cloudbeds_pms.models.enabled import Enabled
24-
from cloudbeds_pms.models.id import Id
2522
from cloudbeds_pms.models.limit_offset_pagination_schema import LimitOffsetPaginationSchema
2623
from cloudbeds_pms.models.query_parameter_dynamic_filter_schema import QueryParameterDynamicFilterSchema
2724
from cloudbeds_pms.models.segment_create_request_schema import SegmentCreateRequestSchema
@@ -1490,7 +1487,7 @@ def _segment_controller_enable_serialize(
14901487
def segment_controller_index(
14911488
self,
14921489
x_property_id: Annotated[StrictStr, Field(description="A numeric, comma-separated string representing the property IDs, sent in the header.")],
1493-
enabled: Annotated[Enabled, Field(description="List only enabled segments.")],
1490+
enabled: Annotated[StrictBool, Field(description="List only enabled segments.")],
14941491
offset: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The number of items to skip before starting to collect the result set. Used for pagination.")] = None,
14951492
limit: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The maximum number of items to return in the response. Default is 100.")] = None,
14961493
filters: Annotated[Optional[QueryParameterDynamicFilterSchema], Field(description="This parameter should be formatted as a list of strings separated by ;")] = None,
@@ -1513,7 +1510,7 @@ def segment_controller_index(
15131510
:param x_property_id: A numeric, comma-separated string representing the property IDs, sent in the header. (required)
15141511
:type x_property_id: str
15151512
:param enabled: List only enabled segments. (required)
1516-
:type enabled: Enabled
1513+
:type enabled: bool
15171514
:param offset: The number of items to skip before starting to collect the result set. Used for pagination.
15181515
:type offset: LimitOffsetPaginationSchema
15191516
:param limit: The maximum number of items to return in the response. Default is 100.
@@ -1575,7 +1572,7 @@ def segment_controller_index(
15751572
def segment_controller_index_with_http_info(
15761573
self,
15771574
x_property_id: Annotated[StrictStr, Field(description="A numeric, comma-separated string representing the property IDs, sent in the header.")],
1578-
enabled: Annotated[Enabled, Field(description="List only enabled segments.")],
1575+
enabled: Annotated[StrictBool, Field(description="List only enabled segments.")],
15791576
offset: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The number of items to skip before starting to collect the result set. Used for pagination.")] = None,
15801577
limit: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The maximum number of items to return in the response. Default is 100.")] = None,
15811578
filters: Annotated[Optional[QueryParameterDynamicFilterSchema], Field(description="This parameter should be formatted as a list of strings separated by ;")] = None,
@@ -1598,7 +1595,7 @@ def segment_controller_index_with_http_info(
15981595
:param x_property_id: A numeric, comma-separated string representing the property IDs, sent in the header. (required)
15991596
:type x_property_id: str
16001597
:param enabled: List only enabled segments. (required)
1601-
:type enabled: Enabled
1598+
:type enabled: bool
16021599
:param offset: The number of items to skip before starting to collect the result set. Used for pagination.
16031600
:type offset: LimitOffsetPaginationSchema
16041601
:param limit: The maximum number of items to return in the response. Default is 100.
@@ -1660,7 +1657,7 @@ def segment_controller_index_with_http_info(
16601657
def segment_controller_index_without_preload_content(
16611658
self,
16621659
x_property_id: Annotated[StrictStr, Field(description="A numeric, comma-separated string representing the property IDs, sent in the header.")],
1663-
enabled: Annotated[Enabled, Field(description="List only enabled segments.")],
1660+
enabled: Annotated[StrictBool, Field(description="List only enabled segments.")],
16641661
offset: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The number of items to skip before starting to collect the result set. Used for pagination.")] = None,
16651662
limit: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The maximum number of items to return in the response. Default is 100.")] = None,
16661663
filters: Annotated[Optional[QueryParameterDynamicFilterSchema], Field(description="This parameter should be formatted as a list of strings separated by ;")] = None,
@@ -1683,7 +1680,7 @@ def segment_controller_index_without_preload_content(
16831680
:param x_property_id: A numeric, comma-separated string representing the property IDs, sent in the header. (required)
16841681
:type x_property_id: str
16851682
:param enabled: List only enabled segments. (required)
1686-
:type enabled: Enabled
1683+
:type enabled: bool
16871684
:param offset: The number of items to skip before starting to collect the result set. Used for pagination.
16881685
:type offset: LimitOffsetPaginationSchema
16891686
:param limit: The maximum number of items to return in the response. Default is 100.
@@ -1823,8 +1820,8 @@ def _segment_controller_index_serialize(
18231820
def segment_controller_reservations(
18241821
self,
18251822
x_property_id: Annotated[StrictStr, Field(description="A numeric, comma-separated string representing the property IDs, sent in the header.")],
1826-
id: Annotated[Id, Field(description="Segment ID.")],
1827-
active: Annotated[Active, Field(description="List only active reservations.")],
1823+
id: Annotated[StrictStr, Field(description="Segment ID.")],
1824+
active: Annotated[StrictBool, Field(description="List only active reservations.")],
18281825
offset: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The number of items to skip before starting to collect the result set. Used for pagination.")] = None,
18291826
limit: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The maximum number of items to return in the response. Default is 100.")] = None,
18301827
_request_timeout: Union[
@@ -1846,9 +1843,9 @@ def segment_controller_reservations(
18461843
:param x_property_id: A numeric, comma-separated string representing the property IDs, sent in the header. (required)
18471844
:type x_property_id: str
18481845
:param id: Segment ID. (required)
1849-
:type id: Id
1846+
:type id: str
18501847
:param active: List only active reservations. (required)
1851-
:type active: Active
1848+
:type active: bool
18521849
:param offset: The number of items to skip before starting to collect the result set. Used for pagination.
18531850
:type offset: LimitOffsetPaginationSchema
18541851
:param limit: The maximum number of items to return in the response. Default is 100.
@@ -1908,8 +1905,8 @@ def segment_controller_reservations(
19081905
def segment_controller_reservations_with_http_info(
19091906
self,
19101907
x_property_id: Annotated[StrictStr, Field(description="A numeric, comma-separated string representing the property IDs, sent in the header.")],
1911-
id: Annotated[Id, Field(description="Segment ID.")],
1912-
active: Annotated[Active, Field(description="List only active reservations.")],
1908+
id: Annotated[StrictStr, Field(description="Segment ID.")],
1909+
active: Annotated[StrictBool, Field(description="List only active reservations.")],
19131910
offset: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The number of items to skip before starting to collect the result set. Used for pagination.")] = None,
19141911
limit: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The maximum number of items to return in the response. Default is 100.")] = None,
19151912
_request_timeout: Union[
@@ -1931,9 +1928,9 @@ def segment_controller_reservations_with_http_info(
19311928
:param x_property_id: A numeric, comma-separated string representing the property IDs, sent in the header. (required)
19321929
:type x_property_id: str
19331930
:param id: Segment ID. (required)
1934-
:type id: Id
1931+
:type id: str
19351932
:param active: List only active reservations. (required)
1936-
:type active: Active
1933+
:type active: bool
19371934
:param offset: The number of items to skip before starting to collect the result set. Used for pagination.
19381935
:type offset: LimitOffsetPaginationSchema
19391936
:param limit: The maximum number of items to return in the response. Default is 100.
@@ -1993,8 +1990,8 @@ def segment_controller_reservations_with_http_info(
19931990
def segment_controller_reservations_without_preload_content(
19941991
self,
19951992
x_property_id: Annotated[StrictStr, Field(description="A numeric, comma-separated string representing the property IDs, sent in the header.")],
1996-
id: Annotated[Id, Field(description="Segment ID.")],
1997-
active: Annotated[Active, Field(description="List only active reservations.")],
1993+
id: Annotated[StrictStr, Field(description="Segment ID.")],
1994+
active: Annotated[StrictBool, Field(description="List only active reservations.")],
19981995
offset: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The number of items to skip before starting to collect the result set. Used for pagination.")] = None,
19991996
limit: Annotated[Optional[LimitOffsetPaginationSchema], Field(description="The maximum number of items to return in the response. Default is 100.")] = None,
20001997
_request_timeout: Union[
@@ -2016,9 +2013,9 @@ def segment_controller_reservations_without_preload_content(
20162013
:param x_property_id: A numeric, comma-separated string representing the property IDs, sent in the header. (required)
20172014
:type x_property_id: str
20182015
:param id: Segment ID. (required)
2019-
:type id: Id
2016+
:type id: str
20202017
:param active: List only active reservations. (required)
2021-
:type active: Active
2018+
:type active: bool
20222019
:param offset: The number of items to skip before starting to collect the result set. Used for pagination.
20232020
:type offset: LimitOffsetPaginationSchema
20242021
:param limit: The maximum number of items to return in the response. Default is 100.

cloudbeds_pms/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/2.4.0/python'
93+
self.user_agent = 'OpenAPI-Generator/2.5.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

cloudbeds_pms/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: v2\n"\
535-
"SDK Package Version: 2.4.0".\
535+
"SDK Package Version: 2.5.0".\
536536
format(env=sys.platform, pyversion=sys.version)
537537

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

cloudbeds_pms/docs/MarketSegmentationSegmentsApi.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ Get a list of Market Segmentation Segments.
418418

419419
```python
420420
import cloudbeds_pms
421-
from cloudbeds_pms.models.enabled import Enabled
422421
from cloudbeds_pms.models.limit_offset_pagination_schema import LimitOffsetPaginationSchema
423422
from cloudbeds_pms.models.query_parameter_dynamic_filter_schema import QueryParameterDynamicFilterSchema
424423
from cloudbeds_pms.models.segment_list_response_schema import SegmentListResponseSchema
@@ -443,7 +442,7 @@ with cloudbeds_pms.ApiClient(configuration) as api_client:
443442
# Create an instance of the API class
444443
api_instance = cloudbeds_pms.MarketSegmentationSegmentsApi(api_client)
445444
x_property_id = '1,2,3' # str | A numeric, comma-separated string representing the property IDs, sent in the header.
446-
enabled = cloudbeds_pms.Enabled() # Enabled | List only enabled segments.
445+
enabled = false # bool | List only enabled segments.
447446
offset = cloudbeds_pms.LimitOffsetPaginationSchema() # LimitOffsetPaginationSchema | The number of items to skip before starting to collect the result set. Used for pagination. (optional)
448447
limit = cloudbeds_pms.LimitOffsetPaginationSchema() # LimitOffsetPaginationSchema | The maximum number of items to return in the response. Default is 100. (optional)
449448
filters = cloudbeds_pms.QueryParameterDynamicFilterSchema() # QueryParameterDynamicFilterSchema | This parameter should be formatted as a list of strings separated by ; (optional)
@@ -465,7 +464,7 @@ with cloudbeds_pms.ApiClient(configuration) as api_client:
465464
Name | Type | Description | Notes
466465
------------- | ------------- | ------------- | -------------
467466
**x_property_id** | **str**| A numeric, comma-separated string representing the property IDs, sent in the header. |
468-
**enabled** | [**Enabled**](.md)| List only enabled segments. |
467+
**enabled** | **bool**| List only enabled segments. |
469468
**offset** | [**LimitOffsetPaginationSchema**](.md)| The number of items to skip before starting to collect the result set. Used for pagination. | [optional]
470469
**limit** | [**LimitOffsetPaginationSchema**](.md)| The maximum number of items to return in the response. Default is 100. | [optional]
471470
**filters** | [**QueryParameterDynamicFilterSchema**](.md)| This parameter should be formatted as a list of strings separated by ; | [optional]
@@ -505,8 +504,6 @@ Get a list of reservations linked to a Market Segmentation Segment.
505504

506505
```python
507506
import cloudbeds_pms
508-
from cloudbeds_pms.models.active import Active
509-
from cloudbeds_pms.models.id import Id
510507
from cloudbeds_pms.models.limit_offset_pagination_schema import LimitOffsetPaginationSchema
511508
from cloudbeds_pms.models.segment_list_reservations_response_schema import SegmentListReservationsResponseSchema
512509
from cloudbeds_pms.rest import ApiException
@@ -530,8 +527,8 @@ with cloudbeds_pms.ApiClient(configuration) as api_client:
530527
# Create an instance of the API class
531528
api_instance = cloudbeds_pms.MarketSegmentationSegmentsApi(api_client)
532529
x_property_id = '1,2,3' # str | A numeric, comma-separated string representing the property IDs, sent in the header.
533-
id = cloudbeds_pms.Id() # Id | Segment ID.
534-
active = cloudbeds_pms.Active() # Active | List only active reservations.
530+
id = '1-b' # str | Segment ID.
531+
active = false # bool | List only active reservations.
535532
offset = cloudbeds_pms.LimitOffsetPaginationSchema() # LimitOffsetPaginationSchema | The number of items to skip before starting to collect the result set. Used for pagination. (optional)
536533
limit = cloudbeds_pms.LimitOffsetPaginationSchema() # LimitOffsetPaginationSchema | The maximum number of items to return in the response. Default is 100. (optional)
537534

@@ -552,8 +549,8 @@ with cloudbeds_pms.ApiClient(configuration) as api_client:
552549
Name | Type | Description | Notes
553550
------------- | ------------- | ------------- | -------------
554551
**x_property_id** | **str**| A numeric, comma-separated string representing the property IDs, sent in the header. |
555-
**id** | [**Id**](.md)| Segment ID. |
556-
**active** | [**Active**](.md)| List only active reservations. |
552+
**id** | **str**| Segment ID. |
553+
**active** | **bool**| List only active reservations. |
557554
**offset** | [**LimitOffsetPaginationSchema**](.md)| The number of items to skip before starting to collect the result set. Used for pagination. | [optional]
558555
**limit** | [**LimitOffsetPaginationSchema**](.md)| The maximum number of items to return in the response. Default is 100. | [optional]
559556

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"additionalProperties": {
99
"packageName": "cloudbeds_pms",
1010
"projectName": "Cloudbeds PMS",
11-
"packageVersion": "2.4.0",
11+
"packageVersion": "2.5.0",
1212
"packageDescription": "OpenAPI client for Cloudbeds PMS API.",
1313
"generateSourceCodeOnly": true,
1414
"packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python"

0 commit comments

Comments
 (0)