Skip to content

Commit be99d28

Browse files
authored
Merge pull request #1 from mondaycom/feat/ori/convert-storage-api-parmas-to-optional
Convert some StorageApi params to optional
2 parents a864896 + 8eaeb6d commit be99d28

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

docs/StorageApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ No authorization required
213213
[[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)
214214

215215
# **upsert_by_key_from_storage**
216-
> object upsert_by_key_from_storage(key, x_monday_access_token, shared, previous_version, storage_data_contract)
216+
> object upsert_by_key_from_storage(key, x_monday_access_token, storage_data_contract, shared=shared, previous_version=previous_version)
217217
218218

219219

@@ -239,12 +239,12 @@ with monday_code.ApiClient(configuration) as api_client:
239239
api_instance = monday_code.StorageApi(api_client)
240240
key = 'key_example' # str |
241241
x_monday_access_token = 'x_monday_access_token_example' # str |
242-
shared = True # bool |
243-
previous_version = 'previous_version_example' # str |
244242
storage_data_contract = monday_code.StorageDataContract() # StorageDataContract |
243+
shared = True # bool | (optional)
244+
previous_version = 'previous_version_example' # str | (optional)
245245

246246
try:
247-
api_response = api_instance.upsert_by_key_from_storage(key, x_monday_access_token, shared, previous_version, storage_data_contract)
247+
api_response = api_instance.upsert_by_key_from_storage(key, x_monday_access_token, storage_data_contract, shared=shared, previous_version=previous_version)
248248
print("The response of StorageApi->upsert_by_key_from_storage:\n")
249249
pprint(api_response)
250250
except Exception as e:
@@ -260,9 +260,9 @@ Name | Type | Description | Notes
260260
------------- | ------------- | ------------- | -------------
261261
**key** | **str**| |
262262
**x_monday_access_token** | **str**| |
263-
**shared** | **bool**| |
264-
**previous_version** | **str**| |
265263
**storage_data_contract** | [**StorageDataContract**](StorageDataContract.md)| |
264+
**shared** | **bool**| | [optional]
265+
**previous_version** | **str**| | [optional]
266266

267267
### Return type
268268

monday_code/api/secure_storage_api.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from typing_extensions import Annotated
1818

1919
from pydantic import StrictStr
20+
from typing import Any
2021
from monday_code.models.secure_storage_data_contract import SecureStorageDataContract
2122

2223
from monday_code.api_client import ApiClient, RequestSerialized
@@ -249,7 +250,7 @@ def _delete_secure_storage_serialize(
249250
_query_params: List[Tuple[str, str]] = []
250251
_header_params: Dict[str, Optional[str]] = _headers or {}
251252
_form_params: List[Tuple[str, str]] = []
252-
_files: Dict[str, str] = {}
253+
_files: Dict[str, Union[str, bytes]] = {}
253254
_body_params: Optional[bytes] = None
254255

255256
# process the path parameters
@@ -500,7 +501,7 @@ def _get_secure_storage_serialize(
500501
_query_params: List[Tuple[str, str]] = []
501502
_header_params: Dict[str, Optional[str]] = _headers or {}
502503
_form_params: List[Tuple[str, str]] = []
503-
_files: Dict[str, str] = {}
504+
_files: Dict[str, Union[str, bytes]] = {}
504505
_body_params: Optional[bytes] = None
505506

506507
# process the path parameters
@@ -767,7 +768,7 @@ def _put_secure_storage_serialize(
767768
_query_params: List[Tuple[str, str]] = []
768769
_header_params: Dict[str, Optional[str]] = _headers or {}
769770
_form_params: List[Tuple[str, str]] = []
770-
_files: Dict[str, str] = {}
771+
_files: Dict[str, Union[str, bytes]] = {}
771772
_body_params: Optional[bytes] = None
772773

773774
# process the path parameters

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# prerequisite: setuptools
2222
# http://pypi.python.org/pypi/setuptools
2323
NAME = "monday-code"
24-
VERSION = "0.0.4"
24+
VERSION = "0.0.5"
2525
PYTHON_REQUIRES = ">=3.7"
2626
REQUIRES = [
2727
"urllib3 >= 1.25.3, < 2.1.0",

0 commit comments

Comments
 (0)