Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
.idea/
31 changes: 31 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.11.0-SNAPSHOT
7.13.0-SNAPSHOT
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions docs/EnvironmentVariablesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Method | HTTP request | Description
# **get_environment_variable**
> object get_environment_variable(name)



### Example


Expand Down Expand Up @@ -76,8 +74,6 @@ No authorization required
# **get_environment_variable_keys**
> List[str] get_environment_variable_keys()



### Example


Expand Down
2 changes: 0 additions & 2 deletions docs/LogsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Method | HTTP request | Description
# **write_log**
> write_log(write_log_request_body)



### Example


Expand Down
4 changes: 0 additions & 4 deletions docs/QueueApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Method | HTTP request | Description
# **publish_message**
> PublishMessageResponse publish_message(publish_message_params)



### Example


Expand Down Expand Up @@ -77,8 +75,6 @@ No authorization required
# **validate_secret**
> ValidateSecretResponse validate_secret(validate_secret_params)



### Example


Expand Down
4 changes: 0 additions & 4 deletions docs/SecretsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Method | HTTP request | Description
# **get_secret**
> str get_secret(name)



### Example


Expand Down Expand Up @@ -76,8 +74,6 @@ No authorization required
# **get_secret_keys**
> List[str] get_secret_keys()



### Example


Expand Down
6 changes: 0 additions & 6 deletions docs/SecureStorageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Method | HTTP request | Description
# **delete_secure_storage**
> delete_secure_storage(key)



### Example


Expand Down Expand Up @@ -74,8 +72,6 @@ No authorization required
# **get_secure_storage**
> JsonDataContract get_secure_storage(key)



### Example


Expand Down Expand Up @@ -140,8 +136,6 @@ No authorization required
# **put_secure_storage**
> bool put_secure_storage(key, json_data_contract)



### Example


Expand Down
16 changes: 4 additions & 12 deletions docs/StorageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ Method | HTTP request | Description
# **delete_by_key_from_storage**
> delete_by_key_from_storage(key, x_monday_access_token)



### Example


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -149,8 +145,6 @@ No authorization required
# **increment_counter**
> IncrementCounter200Response increment_counter(x_monday_access_token, increment_counter_params)



### Example


Expand Down Expand Up @@ -217,8 +211,6 @@ No authorization required
# **search_record**
> object search_record(term, x_monday_access_token, cursor=cursor)



### Example


Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion monday_code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion monday_code/api/environment_variables_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion monday_code/api/logs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion monday_code/api/queue_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion monday_code/api/secrets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion monday_code/api/secure_storage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
23 changes: 20 additions & 3 deletions monday_code/api/storage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -1431,6 +1443,7 @@ def _upsert_by_key_from_storage_serialize(
json_data_contract,
shared,
previous_version,
ttl,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion monday_code/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading