File tree Expand file tree Collapse file tree 9 files changed +23
-334
lines changed
Expand file tree Collapse file tree 9 files changed +23
-334
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 44The ` 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
Original file line number Diff line number Diff line change 1- 1.2 .0
1+ 1.3 .0
Original file line number Diff line number Diff line change 1414""" # noqa: E501
1515
1616
17- __version__ = "1.2 .0"
17+ __version__ = "1.3 .0"
1818
1919# import apis into sdk package
2020from cloudbeds_pms_v1_3 .api .adjustment_api import AdjustmentApi
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff 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 ]:
Original file line number Diff line number Diff 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
165167import 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
178192with 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
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments