diff --git a/.gitignore b/.gitignore index cf1c84e..cc29104 100644 --- a/.gitignore +++ b/.gitignore @@ -70,4 +70,4 @@ target/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -.idea/ \ No newline at end of file +.idea/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..082fa16 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +# NOTE: This file is auto generated by OpenAPI Generator. +# URL: https://openapi-generator.tech +# +# ref: https://docs.gitlab.com/ee/ci/README.html +# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml + +stages: + - test + +.pytest: + stage: test + script: + - pip install -r requirements.txt + - pip install -r test-requirements.txt + - pytest --cov=monday_code + +pytest-3.9: + extends: .pytest + image: python:3.9-alpine +pytest-3.10: + extends: .pytest + image: python:3.10-alpine +pytest-3.11: + extends: .pytest + image: python:3.11-alpine +pytest-3.12: + extends: .pytest + image: python:3.12-alpine +pytest-3.13: + extends: .pytest + image: python:3.13-alpine diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 8841191..96cfbb1 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.11.0-SNAPSHOT +7.13.0-SNAPSHOT diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b631f28 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" + # uncomment the following if needed + #- "3.13-dev" # 3.13 development branch + #- "nightly" # nightly build +# command to install dependencies +install: + - "pip install -r requirements.txt" + - "pip install -r test-requirements.txt" +# command to run tests +script: pytest --cov=monday_code diff --git a/docs/EnvironmentVariablesApi.md b/docs/EnvironmentVariablesApi.md index f07fd0e..44a0434 100644 --- a/docs/EnvironmentVariablesApi.md +++ b/docs/EnvironmentVariablesApi.md @@ -11,8 +11,6 @@ Method | HTTP request | Description # **get_environment_variable** > object get_environment_variable(name) - - ### Example @@ -76,8 +74,6 @@ No authorization required # **get_environment_variable_keys** > List[str] get_environment_variable_keys() - - ### Example diff --git a/docs/LogsApi.md b/docs/LogsApi.md index 5f803ff..1d7753f 100644 --- a/docs/LogsApi.md +++ b/docs/LogsApi.md @@ -10,8 +10,6 @@ Method | HTTP request | Description # **write_log** > write_log(write_log_request_body) - - ### Example diff --git a/docs/QueueApi.md b/docs/QueueApi.md index 82f6f77..5aeaeb9 100644 --- a/docs/QueueApi.md +++ b/docs/QueueApi.md @@ -11,8 +11,6 @@ Method | HTTP request | Description # **publish_message** > PublishMessageResponse publish_message(publish_message_params) - - ### Example @@ -77,8 +75,6 @@ No authorization required # **validate_secret** > ValidateSecretResponse validate_secret(validate_secret_params) - - ### Example diff --git a/docs/SecretsApi.md b/docs/SecretsApi.md index 4d7a1bc..79f457d 100644 --- a/docs/SecretsApi.md +++ b/docs/SecretsApi.md @@ -11,8 +11,6 @@ Method | HTTP request | Description # **get_secret** > str get_secret(name) - - ### Example @@ -76,8 +74,6 @@ No authorization required # **get_secret_keys** > List[str] get_secret_keys() - - ### Example diff --git a/docs/SecureStorageApi.md b/docs/SecureStorageApi.md index b24fc5a..1c19ee2 100644 --- a/docs/SecureStorageApi.md +++ b/docs/SecureStorageApi.md @@ -12,8 +12,6 @@ Method | HTTP request | Description # **delete_secure_storage** > delete_secure_storage(key) - - ### Example @@ -74,8 +72,6 @@ No authorization required # **get_secure_storage** > JsonDataContract get_secure_storage(key) - - ### Example @@ -140,8 +136,6 @@ No authorization required # **put_secure_storage** > bool put_secure_storage(key, json_data_contract) - - ### Example diff --git a/docs/StorageApi.md b/docs/StorageApi.md index 69cfa3c..6a9f85d 100644 --- a/docs/StorageApi.md +++ b/docs/StorageApi.md @@ -14,8 +14,6 @@ Method | HTTP request | Description # **delete_by_key_from_storage** > delete_by_key_from_storage(key, x_monday_access_token) - - ### Example @@ -78,8 +76,6 @@ No authorization required # **get_by_key_from_storage** > StorageDataContract get_by_key_from_storage(key, shared, x_monday_access_token) - - ### Example @@ -149,8 +145,6 @@ No authorization required # **increment_counter** > IncrementCounter200Response increment_counter(x_monday_access_token, increment_counter_params) - - ### Example @@ -217,8 +211,6 @@ No authorization required # **search_record** > object search_record(term, x_monday_access_token, cursor=cursor) - - ### Example @@ -285,9 +277,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upsert_by_key_from_storage** -> UpsertByKeyFromStorage200Response upsert_by_key_from_storage(key, x_monday_access_token, json_data_contract, shared=shared, previous_version=previous_version) - - +> UpsertByKeyFromStorage200Response upsert_by_key_from_storage(key, x_monday_access_token, json_data_contract, shared=shared, previous_version=previous_version, ttl=ttl) ### Example @@ -315,9 +305,10 @@ with monday_code.ApiClient(configuration) as api_client: json_data_contract = monday_code.JsonDataContract() # JsonDataContract | shared = True # bool | (optional) previous_version = 'previous_version_example' # str | (optional) + ttl = 3.4 # float | (optional) try: - api_response = api_instance.upsert_by_key_from_storage(key, x_monday_access_token, json_data_contract, shared=shared, previous_version=previous_version) + api_response = api_instance.upsert_by_key_from_storage(key, x_monday_access_token, json_data_contract, shared=shared, previous_version=previous_version, ttl=ttl) print("The response of StorageApi->upsert_by_key_from_storage:\n") pprint(api_response) except Exception as e: @@ -336,6 +327,7 @@ Name | Type | Description | Notes **json_data_contract** | [**JsonDataContract**](JsonDataContract.md)| | **shared** | **bool**| | [optional] **previous_version** | **str**| | [optional] + **ttl** | **float**| | [optional] ### Return type diff --git a/monday_code/__init__.py b/monday_code/__init__.py index fe3aba2..51d0df2 100644 --- a/monday_code/__init__.py +++ b/monday_code/__init__.py @@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/api/environment_variables_api.py b/monday_code/api/environment_variables_api.py index faae8ee..0d5f86c 100644 --- a/monday_code/api/environment_variables_api.py +++ b/monday_code/api/environment_variables_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/api/logs_api.py b/monday_code/api/logs_api.py index 4966a3f..1672671 100644 --- a/monday_code/api/logs_api.py +++ b/monday_code/api/logs_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/api/queue_api.py b/monday_code/api/queue_api.py index 8edef4f..bc895f1 100644 --- a/monday_code/api/queue_api.py +++ b/monday_code/api/queue_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/api/secrets_api.py b/monday_code/api/secrets_api.py index e2ef4d8..32b3a61 100644 --- a/monday_code/api/secrets_api.py +++ b/monday_code/api/secrets_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/api/secure_storage_api.py b/monday_code/api/secure_storage_api.py index 39e624c..42d195b 100644 --- a/monday_code/api/secure_storage_api.py +++ b/monday_code/api/secure_storage_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/api/storage_api.py b/monday_code/api/storage_api.py index c079b28..740fb10 100644 --- a/monday_code/api/storage_api.py +++ b/monday_code/api/storage_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,8 +16,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictBool, StrictStr -from typing import Any, Optional +from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, Optional, Union from monday_code.models.increment_counter200_response import IncrementCounter200Response from monday_code.models.increment_counter_params import IncrementCounterParams from monday_code.models.json_data_contract import JsonDataContract @@ -1190,6 +1190,7 @@ def upsert_by_key_from_storage( json_data_contract: JsonDataContract, shared: Optional[StrictBool] = None, previous_version: Optional[StrictStr] = None, + ttl: Optional[Union[StrictFloat, StrictInt]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1216,6 +1217,8 @@ def upsert_by_key_from_storage( :type shared: bool :param previous_version: :type previous_version: str + :param ttl: + :type ttl: float :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1244,6 +1247,7 @@ def upsert_by_key_from_storage( json_data_contract=json_data_contract, shared=shared, previous_version=previous_version, + ttl=ttl, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1272,6 +1276,7 @@ def upsert_by_key_from_storage_with_http_info( json_data_contract: JsonDataContract, shared: Optional[StrictBool] = None, previous_version: Optional[StrictStr] = None, + ttl: Optional[Union[StrictFloat, StrictInt]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1298,6 +1303,8 @@ def upsert_by_key_from_storage_with_http_info( :type shared: bool :param previous_version: :type previous_version: str + :param ttl: + :type ttl: float :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1326,6 +1333,7 @@ def upsert_by_key_from_storage_with_http_info( json_data_contract=json_data_contract, shared=shared, previous_version=previous_version, + ttl=ttl, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1354,6 +1362,7 @@ def upsert_by_key_from_storage_without_preload_content( json_data_contract: JsonDataContract, shared: Optional[StrictBool] = None, previous_version: Optional[StrictStr] = None, + ttl: Optional[Union[StrictFloat, StrictInt]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1380,6 +1389,8 @@ def upsert_by_key_from_storage_without_preload_content( :type shared: bool :param previous_version: :type previous_version: str + :param ttl: + :type ttl: float :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1408,6 +1419,7 @@ def upsert_by_key_from_storage_without_preload_content( json_data_contract=json_data_contract, shared=shared, previous_version=previous_version, + ttl=ttl, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1431,6 +1443,7 @@ def _upsert_by_key_from_storage_serialize( json_data_contract, shared, previous_version, + ttl, _request_auth, _content_type, _headers, @@ -1463,6 +1476,10 @@ def _upsert_by_key_from_storage_serialize( _query_params.append(('previousVersion', previous_version)) + if ttl is not None: + + _query_params.append(('ttl', ttl)) + # process the header parameters if x_monday_access_token is not None: _header_params['x-monday-access-token'] = x_monday_access_token diff --git a/monday_code/api_client.py b/monday_code/api_client.py index 6837007..b25c011 100644 --- a/monday_code/api_client.py +++ b/monday_code/api_client.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/configuration.py b/monday_code/configuration.py index a12f2eb..2b4c97f 100644 --- a/monday_code/configuration.py +++ b/monday_code/configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union from typing_extensions import NotRequired, Self import urllib3 @@ -160,6 +160,8 @@ class Configuration: :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. """ @@ -173,13 +175,14 @@ def __init__( username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, - server_index: Optional[int]=None, + server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, server_operation_index: Optional[Dict[int, int]]=None, server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, *, debug: Optional[bool] = None, ) -> None: @@ -257,6 +260,10 @@ def __init__( self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ self.cert_file = None """client certificate file """ @@ -493,7 +500,7 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.0.1\n"\ + "Version of the API: 0.2.3\n"\ "SDK Package Version: 0.0.1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/monday_code/exceptions.py b/monday_code/exceptions.py index 0f48733..42f9bc6 100644 --- a/monday_code/exceptions.py +++ b/monday_code/exceptions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -150,6 +150,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) raise ApiException(http_resp=http_resp, body=body, data=data) @@ -188,6 +195,16 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/monday_code/models/__init__.py b/monday_code/models/__init__.py index 80ca731..c4b9e55 100644 --- a/monday_code/models/__init__.py +++ b/monday_code/models/__init__.py @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/get_by_key_from_storage404_response.py b/monday_code/models/get_by_key_from_storage404_response.py index 4c35fd3..d34d58e 100644 --- a/monday_code/models/get_by_key_from_storage404_response.py +++ b/monday_code/models/get_by_key_from_storage404_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/get_by_key_from_storage500_response.py b/monday_code/models/get_by_key_from_storage500_response.py index 3291f54..1dd1643 100644 --- a/monday_code/models/get_by_key_from_storage500_response.py +++ b/monday_code/models/get_by_key_from_storage500_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/increment_counter200_response.py b/monday_code/models/increment_counter200_response.py index 8c8cc9b..6f95fb7 100644 --- a/monday_code/models/increment_counter200_response.py +++ b/monday_code/models/increment_counter200_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/increment_counter200_response_any_of.py b/monday_code/models/increment_counter200_response_any_of.py index 650db85..2ae3103 100644 --- a/monday_code/models/increment_counter200_response_any_of.py +++ b/monday_code/models/increment_counter200_response_any_of.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/increment_counter200_response_any_of1.py b/monday_code/models/increment_counter200_response_any_of1.py index 2422eb6..a52f655 100644 --- a/monday_code/models/increment_counter200_response_any_of1.py +++ b/monday_code/models/increment_counter200_response_any_of1.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/increment_counter_params.py b/monday_code/models/increment_counter_params.py index 871ef14..ce2e504 100644 --- a/monday_code/models/increment_counter_params.py +++ b/monday_code/models/increment_counter_params.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/json_data_contract.py b/monday_code/models/json_data_contract.py index 9cf30dc..5bf1650 100644 --- a/monday_code/models/json_data_contract.py +++ b/monday_code/models/json_data_contract.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/log_methods.py b/monday_code/models/log_methods.py index 14e96a5..7c98764 100644 --- a/monday_code/models/log_methods.py +++ b/monday_code/models/log_methods.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/period.py b/monday_code/models/period.py index 08d1cec..aa051c7 100644 --- a/monday_code/models/period.py +++ b/monday_code/models/period.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/publish_message_params.py b/monday_code/models/publish_message_params.py index a6db728..7950ee4 100644 --- a/monday_code/models/publish_message_params.py +++ b/monday_code/models/publish_message_params.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/publish_message_response.py b/monday_code/models/publish_message_response.py index da66646..7b37639 100644 --- a/monday_code/models/publish_message_response.py +++ b/monday_code/models/publish_message_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/storage_data_contract.py b/monday_code/models/storage_data_contract.py index 564fc44..7d98aab 100644 --- a/monday_code/models/storage_data_contract.py +++ b/monday_code/models/storage_data_contract.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/upsert_by_key_from_storage200_response.py b/monday_code/models/upsert_by_key_from_storage200_response.py index 8fd5f37..974b457 100644 --- a/monday_code/models/upsert_by_key_from_storage200_response.py +++ b/monday_code/models/upsert_by_key_from_storage200_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/upsert_by_key_from_storage200_response_any_of.py b/monday_code/models/upsert_by_key_from_storage200_response_any_of.py index e3b3fda..e5038cb 100644 --- a/monday_code/models/upsert_by_key_from_storage200_response_any_of.py +++ b/monday_code/models/upsert_by_key_from_storage200_response_any_of.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/upsert_by_key_from_storage200_response_any_of1.py b/monday_code/models/upsert_by_key_from_storage200_response_any_of1.py index 6af1931..24190a1 100644 --- a/monday_code/models/upsert_by_key_from_storage200_response_any_of1.py +++ b/monday_code/models/upsert_by_key_from_storage200_response_any_of1.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/validate_secret_params.py b/monday_code/models/validate_secret_params.py index 2236ade..5305f98 100644 --- a/monday_code/models/validate_secret_params.py +++ b/monday_code/models/validate_secret_params.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/validate_secret_response.py b/monday_code/models/validate_secret_response.py index 79ebd2d..d6e7f31 100644 --- a/monday_code/models/validate_secret_response.py +++ b/monday_code/models/validate_secret_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/write_log_request_body.py b/monday_code/models/write_log_request_body.py index 1045d04..40465b1 100644 --- a/monday_code/models/write_log_request_body.py +++ b/monday_code/models/write_log_request_body.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/models/write_log_request_body_error.py b/monday_code/models/write_log_request_body_error.py index 95c3a2c..b477667 100644 --- a/monday_code/models/write_log_request_body_error.py +++ b/monday_code/models/write_log_request_body_error.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/monday_code/rest.py b/monday_code/rest.py index 170d03a..f51ee56 100644 --- a/monday_code/rest.py +++ b/monday_code/rest.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -76,6 +76,7 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = ( diff --git a/pyproject.toml b/pyproject.toml index a3c1835..234904a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,9 +10,9 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "mcode-sdk-api"] include = ["monday_code/py.typed"] [tool.poetry.dependencies] -python = "^3.8" +python = "^3.9" -urllib3 = ">= 1.25.3 < 3.0.0" +urllib3 = ">= 2.1.0, < 3.0.0" python-dateutil = ">= 2.8.2" pydantic = ">= 2" typing-extensions = ">= 4.7.1" diff --git a/requirements.txt b/requirements.txt index 67f7f68..6cbb2b9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -urllib3 >= 1.25.3, < 3.0.0 +urllib3 >= 2.1.0, < 3.0.0 python_dateutil >= 2.8.2 pydantic >= 2 typing-extensions >= 4.7.1 diff --git a/setup.py b/setup.py index 8d32d72..9dee5e2 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,10 +21,10 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "monday-code" -VERSION = "0.2.3" -PYTHON_REQUIRES = ">= 3.8" +VERSION = "0.0.1" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ - "urllib3 >= 1.25.3, < 3.0.0", + "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", "pydantic >= 2", "typing-extensions >= 4.7.1", diff --git a/test/test_environment_variables_api.py b/test/test_environment_variables_api.py index cae79dd..0615fb0 100644 --- a/test/test_environment_variables_api.py +++ b/test/test_environment_variables_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_by_key_from_storage404_response.py b/test/test_get_by_key_from_storage404_response.py index d523479..bea9722 100644 --- a/test/test_get_by_key_from_storage404_response.py +++ b/test/test_get_by_key_from_storage404_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_by_key_from_storage500_response.py b/test/test_get_by_key_from_storage500_response.py index ac6c55a..79bbbc6 100644 --- a/test/test_get_by_key_from_storage500_response.py +++ b/test/test_get_by_key_from_storage500_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_increment_counter200_response.py b/test/test_increment_counter200_response.py index 4b11c00..701d0b2 100644 --- a/test/test_increment_counter200_response.py +++ b/test/test_increment_counter200_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_increment_counter200_response_any_of.py b/test/test_increment_counter200_response_any_of.py index ec82f05..ea561c2 100644 --- a/test/test_increment_counter200_response_any_of.py +++ b/test/test_increment_counter200_response_any_of.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_increment_counter200_response_any_of1.py b/test/test_increment_counter200_response_any_of1.py index d37f131..911d60a 100644 --- a/test/test_increment_counter200_response_any_of1.py +++ b/test/test_increment_counter200_response_any_of1.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_increment_counter_params.py b/test/test_increment_counter_params.py index 01f9b8a..0fee28d 100644 --- a/test/test_increment_counter_params.py +++ b/test/test_increment_counter_params.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_json_data_contract.py b/test/test_json_data_contract.py index d4c5c48..ad66446 100644 --- a/test/test_json_data_contract.py +++ b/test/test_json_data_contract.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_log_methods.py b/test/test_log_methods.py index eaf6141..8fb6e48 100644 --- a/test/test_log_methods.py +++ b/test/test_log_methods.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_logs_api.py b/test/test_logs_api.py index 2642405..62d695f 100644 --- a/test/test_logs_api.py +++ b/test/test_logs_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_period.py b/test/test_period.py index bc9f68e..1b70d0a 100644 --- a/test/test_period.py +++ b/test/test_period.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_publish_message_params.py b/test/test_publish_message_params.py index 843fc9c..c30746f 100644 --- a/test/test_publish_message_params.py +++ b/test/test_publish_message_params.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_publish_message_response.py b/test/test_publish_message_response.py index bfc4e8e..1298a16 100644 --- a/test/test_publish_message_response.py +++ b/test/test_publish_message_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_queue_api.py b/test/test_queue_api.py index 075f324..da78865 100644 --- a/test/test_queue_api.py +++ b/test/test_queue_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_secrets_api.py b/test/test_secrets_api.py index 3f56284..d5153f6 100644 --- a/test/test_secrets_api.py +++ b/test/test_secrets_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_secure_storage_api.py b/test/test_secure_storage_api.py index f1e52c9..c987d28 100644 --- a/test/test_secure_storage_api.py +++ b/test/test_secure_storage_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_storage_api.py b/test/test_storage_api.py index fa15b6e..6ca88c1 100644 --- a/test/test_storage_api.py +++ b/test/test_storage_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_storage_data_contract.py b/test/test_storage_data_contract.py index 39e18f8..6a6f0ee 100644 --- a/test/test_storage_data_contract.py +++ b/test/test_storage_data_contract.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upsert_by_key_from_storage200_response.py b/test/test_upsert_by_key_from_storage200_response.py index 149c4cf..82beb01 100644 --- a/test/test_upsert_by_key_from_storage200_response.py +++ b/test/test_upsert_by_key_from_storage200_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upsert_by_key_from_storage200_response_any_of.py b/test/test_upsert_by_key_from_storage200_response_any_of.py index 750b547..9dffb06 100644 --- a/test/test_upsert_by_key_from_storage200_response_any_of.py +++ b/test/test_upsert_by_key_from_storage200_response_any_of.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upsert_by_key_from_storage200_response_any_of1.py b/test/test_upsert_by_key_from_storage200_response_any_of1.py index 7d8803d..92aaa89 100644 --- a/test/test_upsert_by_key_from_storage200_response_any_of1.py +++ b/test/test_upsert_by_key_from_storage200_response_any_of1.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_validate_secret_params.py b/test/test_validate_secret_params.py index dcef6f5..35ea531 100644 --- a/test/test_validate_secret_params.py +++ b/test/test_validate_secret_params.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_validate_secret_response.py b/test/test_validate_secret_response.py index 04dc6f1..de76605 100644 --- a/test/test_validate_secret_response.py +++ b/test/test_validate_secret_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_write_log_request_body.py b/test/test_write_log_request_body.py index d19a490..35816a9 100644 --- a/test/test_write_log_request_body.py +++ b/test/test_write_log_request_body.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_write_log_request_body_error.py b/test/test_write_log_request_body_error.py index 44b61f9..a4a2b13 100644 --- a/test/test_write_log_request_body_error.py +++ b/test/test_write_log_request_body_error.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.