diff --git a/docs/EnvironmentVariablesApi.md b/docs/EnvironmentVariablesApi.md index fc6ac9a..f07fd0e 100644 --- a/docs/EnvironmentVariablesApi.md +++ b/docs/EnvironmentVariablesApi.md @@ -68,7 +68,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Ok | - | +**200** | OK | - | **404** | | - | [[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) diff --git a/monday_code/api/environment_variables_api.py b/monday_code/api/environment_variables_api.py index bac9ed2..faae8ee 100644 --- a/monday_code/api/environment_variables_api.py +++ b/monday_code/api/environment_variables_api.py @@ -252,7 +252,9 @@ def _get_environment_variable_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -265,11 +267,12 @@ def _get_environment_variable_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -493,7 +496,9 @@ def _get_environment_variable_keys_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -504,11 +509,12 @@ def _get_environment_variable_keys_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/monday_code/api/logs_api.py b/monday_code/api/logs_api.py index 3769826..4966a3f 100644 --- a/monday_code/api/logs_api.py +++ b/monday_code/api/logs_api.py @@ -248,7 +248,9 @@ def _write_log_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/monday_code/api/queue_api.py b/monday_code/api/queue_api.py index a71e190..8edef4f 100644 --- a/monday_code/api/queue_api.py +++ b/monday_code/api/queue_api.py @@ -251,7 +251,9 @@ def _publish_message_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -264,11 +266,12 @@ def _publish_message_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -518,7 +521,9 @@ def _validate_secret_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -531,11 +536,12 @@ def _validate_secret_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/monday_code/api/secrets_api.py b/monday_code/api/secrets_api.py index b149b4a..e2ef4d8 100644 --- a/monday_code/api/secrets_api.py +++ b/monday_code/api/secrets_api.py @@ -252,7 +252,9 @@ def _get_secret_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -265,11 +267,12 @@ def _get_secret_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -493,7 +496,9 @@ def _get_secret_keys_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -504,11 +509,12 @@ def _get_secret_keys_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/monday_code/api/secure_storage_api.py b/monday_code/api/secure_storage_api.py index d35d17f..39e624c 100644 --- a/monday_code/api/secure_storage_api.py +++ b/monday_code/api/secure_storage_api.py @@ -249,7 +249,9 @@ def _delete_secure_storage_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -500,7 +502,9 @@ def _get_secure_storage_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -513,11 +517,12 @@ def _get_secure_storage_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -767,7 +772,9 @@ def _put_secure_storage_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -782,11 +789,12 @@ def _put_secure_storage_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/monday_code/api/storage_api.py b/monday_code/api/storage_api.py index 7874ba4..5d743ef 100644 --- a/monday_code/api/storage_api.py +++ b/monday_code/api/storage_api.py @@ -267,7 +267,9 @@ def _delete_by_key_from_storage_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -549,7 +551,9 @@ def _get_by_key_from_storage_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -568,11 +572,12 @@ def _get_by_key_from_storage_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -822,7 +827,9 @@ def _increment_counter_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -837,11 +844,12 @@ def _increment_counter_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1143,7 +1151,9 @@ def _upsert_by_key_from_storage_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1168,11 +1178,12 @@ def _upsert_by_key_from_storage_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/monday_code/api_client.py b/monday_code/api_client.py index cc98701..eb66df6 100644 --- a/monday_code/api_client.py +++ b/monday_code/api_client.py @@ -15,6 +15,7 @@ import datetime from dateutil.parser import parse from enum import Enum +import decimal import json import mimetypes import os @@ -66,6 +67,7 @@ class ApiClient: 'bool': bool, 'date': datetime.date, 'datetime': datetime.datetime, + 'decimal': decimal.Decimal, 'object': object, } _pool = None @@ -227,7 +229,7 @@ def param_serialize( body = self.sanitize_for_serialization(body) # request url - if _host is None: + if _host is None or self.configuration.ignore_operation_servers: url = self.configuration.host + resource_path else: # use server/host defined in path or operation instead @@ -338,6 +340,7 @@ def sanitize_for_serialization(self, obj): If obj is str, int, long, float, bool, return directly. If obj is datetime.datetime, datetime.date convert to string in iso8601 format. + If obj is decimal.Decimal return string representation. If obj is list, sanitize each element in the list. If obj is dict, return the dict. If obj is OpenAPI model, return the properties dict. @@ -363,6 +366,8 @@ def sanitize_for_serialization(self, obj): ) elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() + elif isinstance(obj, decimal.Decimal): + return str(obj) elif isinstance(obj, dict): obj_dict = obj @@ -399,12 +404,12 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif content_type.startswith("application/json"): + elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): if response_text == "": data = "" else: data = json.loads(response_text) - elif content_type.startswith("text/plain"): + elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE): data = response_text else: raise ApiException( @@ -454,6 +459,8 @@ def __deserialize(self, data, klass): return self.__deserialize_date(data) elif klass == datetime.datetime: return self.__deserialize_datetime(data) + elif klass == decimal.Decimal: + return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) else: @@ -528,7 +535,10 @@ def parameters_to_url_query(self, params, collection_formats): return "&".join(["=".join(map(str, item)) for item in new_params]) - def files_parameters(self, files: Dict[str, Union[str, bytes]]): + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): """Builds form parameters. :param files: File parameters. @@ -543,6 +553,12 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): elif isinstance(v, bytes): filename = k filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue else: raise ValueError("Unsupported file value") mimetype = ( diff --git a/monday_code/configuration.py b/monday_code/configuration.py index 7cb2d7d..a7a2533 100644 --- a/monday_code/configuration.py +++ b/monday_code/configuration.py @@ -32,6 +32,9 @@ class Configuration: """This class contains various settings of the API client. :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. @@ -54,6 +57,7 @@ class Configuration: values before. :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. """ @@ -65,7 +69,11 @@ def __init__(self, host=None, access_token=None, server_index=None, server_variables=None, server_operation_index=None, server_operation_variables=None, + ignore_operation_servers=False, ssl_ca_cert=None, + retries=None, + *, + debug: Optional[bool] = None ) -> None: """Constructor """ @@ -80,6 +88,9 @@ def __init__(self, host=None, self.server_operation_variables = server_operation_variables or {} """Default server variables """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ self.temp_folder_path = None """Temp file folder for downloading files """ @@ -123,7 +134,10 @@ def __init__(self, host=None, self.logger_file = None """Debug file location """ - self.debug = False + if debug is not None: + self.debug = debug + else: + self.__debug = False """Debug switch """ @@ -166,7 +180,7 @@ def __init__(self, host=None, self.safe_chars_for_path_param = '' """Safe chars for path_param """ - self.retries = None + self.retries = retries """Adding retries to override urllib3 default value 3 """ # Enable client side validation diff --git a/monday_code/rest.py b/monday_code/rest.py index b053b97..170d03a 100644 --- a/monday_code/rest.py +++ b/monday_code/rest.py @@ -225,7 +225,7 @@ def request( headers=headers, preload_content=False ) - elif headers['Content-Type'] == 'text/plain' and isinstance(body, bool): + elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): request_body = "true" if body else "false" r = self.pool_manager.request( method, diff --git a/pyproject.toml b/pyproject.toml index fcd93fb..9e87e05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,19 +10,20 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "mcode-sdk-api"] include = ["monday_code/py.typed"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" -urllib3 = ">= 1.25.3" -python-dateutil = ">=2.8.2" -pydantic = ">=2" -typing-extensions = ">=4.7.1" +urllib3 = ">= 1.25.3 < 3.0.0" +python-dateutil = ">= 2.8.2" +pydantic = ">= 2" +typing-extensions = ">= 4.7.1" [tool.poetry.dev-dependencies] -pytest = ">=7.2.1" -tox = ">=3.9.0" -flake8 = ">=4.0.0" -types-python-dateutil = ">=2.8.19.14" -mypy = "1.4.1" +pytest = ">= 7.2.1" +pytest-cov = ">= 2.8.1" +tox = ">= 3.9.0" +flake8 = ">= 4.0.0" +types-python-dateutil = ">= 2.8.19.14" +mypy = ">= 1.5" [build-system] diff --git a/requirements.txt b/requirements.txt index cc85509..67f7f68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.25.3, < 2.1.0 +urllib3 >= 1.25.3, < 3.0.0 +python_dateutil >= 2.8.2 pydantic >= 2 typing-extensions >= 4.7.1 diff --git a/setup.py b/setup.py index 3601b5f..fbb1a7b 100644 --- a/setup.py +++ b/setup.py @@ -21,11 +21,11 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "monday-code" -VERSION = "0.1.0" -PYTHON_REQUIRES = ">=3.7" +VERSION = "0.2.0" +PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ - "urllib3 >= 1.25.3, < 2.1.0", - "python-dateutil", + "urllib3 >= 1.25.3, < 3.0.0", + "python-dateutil >= 2.8.2", "pydantic >= 2", "typing-extensions >= 4.7.1", ] diff --git a/test-requirements.txt b/test-requirements.txt index 8e6d8cb..e98555c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,6 @@ -pytest~=7.1.3 -pytest-cov>=2.8.1 -pytest-randomly>=3.12.0 -mypy>=1.4.1 -types-python-dateutil>=2.8.19 +pytest >= 7.2.1 +pytest-cov >= 2.8.1 +tox >= 3.9.0 +flake8 >= 4.0.0 +types-python-dateutil >= 2.8.19.14 +mypy >= 1.5 diff --git a/test/test_get_by_key_from_storage404_response.py b/test/test_get_by_key_from_storage404_response.py index 255d1d8..d523479 100644 --- a/test/test_get_by_key_from_storage404_response.py +++ b/test/test_get_by_key_from_storage404_response.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GetByKeyFromStorage404Response: """Test GetByKeyFromStorage404Response - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GetByKeyFromStorage404Response` diff --git a/test/test_get_by_key_from_storage500_response.py b/test/test_get_by_key_from_storage500_response.py index 3ee2be3..ac6c55a 100644 --- a/test/test_get_by_key_from_storage500_response.py +++ b/test/test_get_by_key_from_storage500_response.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GetByKeyFromStorage500Response: """Test GetByKeyFromStorage500Response - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GetByKeyFromStorage500Response` diff --git a/test/test_increment_counter200_response.py b/test/test_increment_counter200_response.py index 156a82b..4b11c00 100644 --- a/test/test_increment_counter200_response.py +++ b/test/test_increment_counter200_response.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> IncrementCounter200Response: """Test IncrementCounter200Response - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `IncrementCounter200Response` diff --git a/test/test_increment_counter200_response_any_of.py b/test/test_increment_counter200_response_any_of.py index 234295a..ec82f05 100644 --- a/test/test_increment_counter200_response_any_of.py +++ b/test/test_increment_counter200_response_any_of.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> IncrementCounter200ResponseAnyOf: """Test IncrementCounter200ResponseAnyOf - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `IncrementCounter200ResponseAnyOf` diff --git a/test/test_increment_counter200_response_any_of1.py b/test/test_increment_counter200_response_any_of1.py index 03bb813..d37f131 100644 --- a/test/test_increment_counter200_response_any_of1.py +++ b/test/test_increment_counter200_response_any_of1.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> IncrementCounter200ResponseAnyOf1: """Test IncrementCounter200ResponseAnyOf1 - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `IncrementCounter200ResponseAnyOf1` diff --git a/test/test_increment_counter_params.py b/test/test_increment_counter_params.py index 39cf3c9..01f9b8a 100644 --- a/test/test_increment_counter_params.py +++ b/test/test_increment_counter_params.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> IncrementCounterParams: """Test IncrementCounterParams - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `IncrementCounterParams` diff --git a/test/test_json_data_contract.py b/test/test_json_data_contract.py index d3b6aec..d4c5c48 100644 --- a/test/test_json_data_contract.py +++ b/test/test_json_data_contract.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> JsonDataContract: """Test JsonDataContract - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `JsonDataContract` diff --git a/test/test_publish_message_params.py b/test/test_publish_message_params.py index 068a294..843fc9c 100644 --- a/test/test_publish_message_params.py +++ b/test/test_publish_message_params.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PublishMessageParams: """Test PublishMessageParams - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PublishMessageParams` diff --git a/test/test_publish_message_response.py b/test/test_publish_message_response.py index f5a7f4d..bfc4e8e 100644 --- a/test/test_publish_message_response.py +++ b/test/test_publish_message_response.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PublishMessageResponse: """Test PublishMessageResponse - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PublishMessageResponse` diff --git a/test/test_storage_data_contract.py b/test/test_storage_data_contract.py index 7792134..39e18f8 100644 --- a/test/test_storage_data_contract.py +++ b/test/test_storage_data_contract.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> StorageDataContract: """Test StorageDataContract - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `StorageDataContract` diff --git a/test/test_upsert_by_key_from_storage200_response.py b/test/test_upsert_by_key_from_storage200_response.py index bac09b4..149c4cf 100644 --- a/test/test_upsert_by_key_from_storage200_response.py +++ b/test/test_upsert_by_key_from_storage200_response.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UpsertByKeyFromStorage200Response: """Test UpsertByKeyFromStorage200Response - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpsertByKeyFromStorage200Response` 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 feb1cdf..750b547 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 @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UpsertByKeyFromStorage200ResponseAnyOf: """Test UpsertByKeyFromStorage200ResponseAnyOf - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpsertByKeyFromStorage200ResponseAnyOf` 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 3752039..7d8803d 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 @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UpsertByKeyFromStorage200ResponseAnyOf1: """Test UpsertByKeyFromStorage200ResponseAnyOf1 - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpsertByKeyFromStorage200ResponseAnyOf1` diff --git a/test/test_validate_secret_params.py b/test/test_validate_secret_params.py index b532824..dcef6f5 100644 --- a/test/test_validate_secret_params.py +++ b/test/test_validate_secret_params.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ValidateSecretParams: """Test ValidateSecretParams - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ValidateSecretParams` diff --git a/test/test_validate_secret_response.py b/test/test_validate_secret_response.py index b6774ad..04dc6f1 100644 --- a/test/test_validate_secret_response.py +++ b/test/test_validate_secret_response.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ValidateSecretResponse: """Test ValidateSecretResponse - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ValidateSecretResponse` diff --git a/test/test_write_log_request_body.py b/test/test_write_log_request_body.py index af227d7..4aa3a4e 100644 --- a/test/test_write_log_request_body.py +++ b/test/test_write_log_request_body.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> WriteLogRequestBody: """Test WriteLogRequestBody - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `WriteLogRequestBody` diff --git a/test/test_write_log_request_body_error.py b/test/test_write_log_request_body_error.py index 1e5ad23..44b61f9 100644 --- a/test/test_write_log_request_body_error.py +++ b/test/test_write_log_request_body_error.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> WriteLogRequestBodyError: """Test WriteLogRequestBodyError - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `WriteLogRequestBodyError`