Skip to content

Commit 8dc5126

Browse files
authored
add ttl to storage v2 (#11)
* add ttl to storage v2 * revert unwanted changes
1 parent 39a72bd commit 8dc5126

File tree

69 files changed

+164
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+164
-102
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ target/
7070
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
7171
# and can be added to the global gitignore or merged into this file. For a more nuclear
7272
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
73-
.idea/
73+
.idea/

.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
6+
7+
stages:
8+
- test
9+
10+
.pytest:
11+
stage: test
12+
script:
13+
- pip install -r requirements.txt
14+
- pip install -r test-requirements.txt
15+
- pytest --cov=monday_code
16+
17+
pytest-3.9:
18+
extends: .pytest
19+
image: python:3.9-alpine
20+
pytest-3.10:
21+
extends: .pytest
22+
image: python:3.10-alpine
23+
pytest-3.11:
24+
extends: .pytest
25+
image: python:3.11-alpine
26+
pytest-3.12:
27+
extends: .pytest
28+
image: python:3.12-alpine
29+
pytest-3.13:
30+
extends: .pytest
31+
image: python:3.13-alpine

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.11.0-SNAPSHOT
1+
7.13.0-SNAPSHOT

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
2+
language: python
3+
python:
4+
- "3.9"
5+
- "3.10"
6+
- "3.11"
7+
- "3.12"
8+
- "3.13"
9+
# uncomment the following if needed
10+
#- "3.13-dev" # 3.13 development branch
11+
#- "nightly" # nightly build
12+
# command to install dependencies
13+
install:
14+
- "pip install -r requirements.txt"
15+
- "pip install -r test-requirements.txt"
16+
# command to run tests
17+
script: pytest --cov=monday_code

docs/EnvironmentVariablesApi.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Method | HTTP request | Description
1111
# **get_environment_variable**
1212
> object get_environment_variable(name)
1313
14-
15-
1614
### Example
1715

1816

@@ -76,8 +74,6 @@ No authorization required
7674
# **get_environment_variable_keys**
7775
> List[str] get_environment_variable_keys()
7876
79-
80-
8177
### Example
8278

8379

docs/LogsApi.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ Method | HTTP request | Description
1010
# **write_log**
1111
> write_log(write_log_request_body)
1212
13-
14-
1513
### Example
1614

1715

docs/QueueApi.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Method | HTTP request | Description
1111
# **publish_message**
1212
> PublishMessageResponse publish_message(publish_message_params)
1313
14-
15-
1614
### Example
1715

1816

@@ -77,8 +75,6 @@ No authorization required
7775
# **validate_secret**
7876
> ValidateSecretResponse validate_secret(validate_secret_params)
7977
80-
81-
8278
### Example
8379

8480

docs/SecretsApi.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Method | HTTP request | Description
1111
# **get_secret**
1212
> str get_secret(name)
1313
14-
15-
1614
### Example
1715

1816

@@ -76,8 +74,6 @@ No authorization required
7674
# **get_secret_keys**
7775
> List[str] get_secret_keys()
7876
79-
80-
8177
### Example
8278

8379

docs/SecureStorageApi.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Method | HTTP request | Description
1212
# **delete_secure_storage**
1313
> delete_secure_storage(key)
1414
15-
16-
1715
### Example
1816

1917

@@ -74,8 +72,6 @@ No authorization required
7472
# **get_secure_storage**
7573
> JsonDataContract get_secure_storage(key)
7674
77-
78-
7975
### Example
8076

8177

@@ -140,8 +136,6 @@ No authorization required
140136
# **put_secure_storage**
141137
> bool put_secure_storage(key, json_data_contract)
142138
143-
144-
145139
### Example
146140

147141

docs/StorageApi.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Method | HTTP request | Description
1414
# **delete_by_key_from_storage**
1515
> delete_by_key_from_storage(key, x_monday_access_token)
1616
17-
18-
1917
### Example
2018

2119

@@ -78,8 +76,6 @@ No authorization required
7876
# **get_by_key_from_storage**
7977
> StorageDataContract get_by_key_from_storage(key, shared, x_monday_access_token)
8078
81-
82-
8379
### Example
8480

8581

@@ -149,8 +145,6 @@ No authorization required
149145
# **increment_counter**
150146
> IncrementCounter200Response increment_counter(x_monday_access_token, increment_counter_params)
151147
152-
153-
154148
### Example
155149

156150

@@ -217,8 +211,6 @@ No authorization required
217211
# **search_record**
218212
> object search_record(term, x_monday_access_token, cursor=cursor)
219213
220-
221-
222214
### Example
223215

224216

@@ -285,9 +277,7 @@ No authorization required
285277
[[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)
286278

287279
# **upsert_by_key_from_storage**
288-
> UpsertByKeyFromStorage200Response upsert_by_key_from_storage(key, x_monday_access_token, json_data_contract, shared=shared, previous_version=previous_version)
289-
290-
280+
> UpsertByKeyFromStorage200Response upsert_by_key_from_storage(key, x_monday_access_token, json_data_contract, shared=shared, previous_version=previous_version, ttl=ttl)
291281
292282
### Example
293283

@@ -315,9 +305,10 @@ with monday_code.ApiClient(configuration) as api_client:
315305
json_data_contract = monday_code.JsonDataContract() # JsonDataContract |
316306
shared = True # bool | (optional)
317307
previous_version = 'previous_version_example' # str | (optional)
308+
ttl = 3.4 # float | (optional)
318309

319310
try:
320-
api_response = api_instance.upsert_by_key_from_storage(key, x_monday_access_token, json_data_contract, shared=shared, previous_version=previous_version)
311+
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)
321312
print("The response of StorageApi->upsert_by_key_from_storage:\n")
322313
pprint(api_response)
323314
except Exception as e:
@@ -336,6 +327,7 @@ Name | Type | Description | Notes
336327
**json_data_contract** | [**JsonDataContract**](JsonDataContract.md)| |
337328
**shared** | **bool**| | [optional]
338329
**previous_version** | **str**| | [optional]
330+
**ttl** | **float**| | [optional]
339331

340332
### Return type
341333

0 commit comments

Comments
 (0)