Skip to content

Commit 57a62c3

Browse files
authored
Merge pull request #22 from cloudbeds/feat/v1.3
feat: v1.3
2 parents e22eb75 + 2199d1a commit 57a62c3

File tree

9 files changed

+23
-334
lines changed

9 files changed

+23
-334
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 327 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.2.0
7+
- Package version: 1.3.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-
1.2.0
1+
1.3.0

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.2.0"
17+
__version__ = "1.3.0"
1818

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

cloudbeds_pms_v1_3/api/authentication_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,8 @@ def _userinfo_get_serialize(
893893

894894
# authentication setting
895895
_auth_settings: List[str] = [
896+
'OAuth2',
897+
'api_key'
896898
]
897899

898900
return self.api_client.param_serialize(

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.2.0/python'
93+
self.user_agent = 'OpenAPI-Generator/1.3.0/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.2.0".\
535+
"SDK Package Version: 1.3.0".\
536536
format(env=sys.platform, pyversion=sys.version)
537537

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

cloudbeds_pms_v1_3/docs/AuthenticationApi.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ Returns information on user who authorized connection
160160

161161
### Example
162162

163+
* OAuth Authentication (OAuth2):
164+
* Api Key Authentication (api_key):
163165

164166
```python
165167
import cloudbeds_pms_v1_3
@@ -173,6 +175,18 @@ configuration = cloudbeds_pms_v1_3.Configuration(
173175
host = "https://api.cloudbeds.com/api/v1.3"
174176
)
175177

178+
# The client must configure the authentication and authorization parameters
179+
# in accordance with the API server security policy.
180+
# Examples for each auth method are provided below, use the example that
181+
# satisfies your auth use case.
182+
183+
configuration.access_token = os.environ["ACCESS_TOKEN"]
184+
185+
# Configure API key authorization: api_key
186+
configuration.api_key['api_key'] = os.environ["API_KEY"]
187+
188+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
189+
# configuration.api_key_prefix['api_key'] = 'Bearer'
176190

177191
# Enter a context with an instance of the API client
178192
with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client:
@@ -206,7 +220,7 @@ Name | Type | Description | Notes
206220

207221
### Authorization
208222

209-
No authorization required
223+
[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key)
210224

211225
### HTTP request headers
212226

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"additionalProperties": {
1010
"packageName": "cloudbeds_pms_v1_3",
1111
"projectName": "Cloudbeds PMS V1.3",
12-
"packageVersion": "1.2.0",
12+
"packageVersion": "1.3.0",
1313
"packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.",
1414
"generateSourceCodeOnly": true,
1515
"packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1"

0 commit comments

Comments
 (0)