Skip to content

Commit b54ab16

Browse files
authored
Merge pull request #2 from mondaycom/feat/ori/Add-logs-and-env-variables
Add logs and env variables
2 parents d764492 + cc9946f commit b54ab16

Some content is hidden

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

48 files changed

+2109
-187
lines changed

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ configuration = monday_code.Configuration(
2626
# Enter a context with an instance of the API client
2727
with monday_code.ApiClient(configuration) as api_client:
2828
# Create an instance of the API class
29-
api_instance = monday_code.QueueApi(api_client)
30-
publish_message_params = monday_code.PublishMessageParams() # PublishMessageParams |
29+
api_instance = monday_code.EnvironmentVariablesApi(api_client)
30+
name = 'name_example' # str |
3131

3232
try:
33-
api_response = api_instance.publish_message(publish_message_params)
34-
print("The response of QueueApi->publish_message:\n")
33+
api_response = api_instance.get_environment_variable(name)
34+
print("The response of EnvironmentVariablesApi->get_environment_variable:\n")
3535
pprint(api_response)
3636
except ApiException as e:
37-
print("Exception when calling QueueApi->publish_message: %s\n" % e)
37+
print("Exception when calling EnvironmentVariablesApi->get_environment_variable: %s\n" % e)
3838

3939
```
4040

@@ -44,15 +44,19 @@ All URIs are relative to *http://localhost:59999*
4444

4545
Class | Method | HTTP request | Description
4646
------------ | ------------- | ------------- | -------------
47+
*EnvironmentVariablesApi* | [**get_environment_variable**](docs/EnvironmentVariablesApi.md#get_environment_variable) | **GET** /environment-variables/{name} |
48+
*EnvironmentVariablesApi* | [**get_environment_variable_keys**](docs/EnvironmentVariablesApi.md#get_environment_variable_keys) | **GET** /environment-variables |
49+
*LogsApi* | [**write_log**](docs/LogsApi.md#write_log) | **POST** /logs |
4750
*QueueApi* | [**publish_message**](docs/QueueApi.md#publish_message) | **POST** /queue |
4851
*QueueApi* | [**validate_secret**](docs/QueueApi.md#validate_secret) | **POST** /queue/validate-secret |
49-
*SecretApi* | [**get_secret**](docs/SecretApi.md#get_secret) | **GET** /secrets/{name} |
52+
*SecretsApi* | [**get_secret**](docs/SecretsApi.md#get_secret) | **GET** /secrets/{name} |
53+
*SecretsApi* | [**get_secret_keys**](docs/SecretsApi.md#get_secret_keys) | **GET** /secrets |
5054
*SecureStorageApi* | [**delete_secure_storage**](docs/SecureStorageApi.md#delete_secure_storage) | **DELETE** /secure-storage/{key} |
5155
*SecureStorageApi* | [**get_secure_storage**](docs/SecureStorageApi.md#get_secure_storage) | **GET** /secure-storage/{key} |
5256
*SecureStorageApi* | [**put_secure_storage**](docs/SecureStorageApi.md#put_secure_storage) | **PUT** /secure-storage/{key} |
5357
*StorageApi* | [**delete_by_key_from_storage**](docs/StorageApi.md#delete_by_key_from_storage) | **DELETE** /storage/{key} |
5458
*StorageApi* | [**get_by_key_from_storage**](docs/StorageApi.md#get_by_key_from_storage) | **GET** /storage/{key} |
55-
*StorageApi* | [**increment_counter**](docs/StorageApi.md#increment_counter) | **POST** /storage/counter/increment |
59+
*StorageApi* | [**increment_counter**](docs/StorageApi.md#increment_counter) | **PUT** /storage/counter/increment |
5660
*StorageApi* | [**upsert_by_key_from_storage**](docs/StorageApi.md#upsert_by_key_from_storage) | **PUT** /storage/{key} |
5761

5862

@@ -62,11 +66,14 @@ Class | Method | HTTP request | Description
6266
- [GetByKeyFromStorage500Response](docs/GetByKeyFromStorage500Response.md)
6367
- [IncrementCounterParams](docs/IncrementCounterParams.md)
6468
- [JsonValue](docs/JsonValue.md)
69+
- [LogMethods](docs/LogMethods.md)
6570
- [Period](docs/Period.md)
6671
- [PublishMessageParams](docs/PublishMessageParams.md)
6772
- [PublishMessageResponse](docs/PublishMessageResponse.md)
6873
- [SecureStorageDataContract](docs/SecureStorageDataContract.md)
6974
- [StorageDataContract](docs/StorageDataContract.md)
7075
- [ValidateSecretParams](docs/ValidateSecretParams.md)
7176
- [ValidateSecretResponse](docs/ValidateSecretResponse.md)
77+
- [WriteLogRequestBody](docs/WriteLogRequestBody.md)
78+
- [WriteLogRequestBodyError](docs/WriteLogRequestBodyError.md)
7279

docs/EnvironmentVariablesApi.md

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# monday_code.EnvironmentVariablesApi
2+
3+
All URIs are relative to *http://localhost:59999*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_environment_variable**](EnvironmentVariablesApi.md#get_environment_variable) | **GET** /environment-variables/{name} |
8+
[**get_environment_variable_keys**](EnvironmentVariablesApi.md#get_environment_variable_keys) | **GET** /environment-variables |
9+
10+
11+
# **get_environment_variable**
12+
> JsonValue get_environment_variable(name)
13+
14+
15+
16+
### Example
17+
18+
19+
```python
20+
import monday_code
21+
from monday_code.models.json_value import JsonValue
22+
from monday_code.rest import ApiException
23+
from pprint import pprint
24+
25+
# Defining the host is optional and defaults to http://localhost:59999
26+
# See configuration.py for a list of all supported configuration parameters.
27+
configuration = monday_code.Configuration(
28+
host = "http://localhost:59999"
29+
)
30+
31+
32+
# Enter a context with an instance of the API client
33+
with monday_code.ApiClient(configuration) as api_client:
34+
# Create an instance of the API class
35+
api_instance = monday_code.EnvironmentVariablesApi(api_client)
36+
name = 'name_example' # str |
37+
38+
try:
39+
api_response = api_instance.get_environment_variable(name)
40+
print("The response of EnvironmentVariablesApi->get_environment_variable:\n")
41+
pprint(api_response)
42+
except Exception as e:
43+
print("Exception when calling EnvironmentVariablesApi->get_environment_variable: %s\n" % e)
44+
```
45+
46+
47+
48+
### Parameters
49+
50+
51+
Name | Type | Description | Notes
52+
------------- | ------------- | ------------- | -------------
53+
**name** | **str**| |
54+
55+
### Return type
56+
57+
[**JsonValue**](JsonValue.md)
58+
59+
### Authorization
60+
61+
No authorization required
62+
63+
### HTTP request headers
64+
65+
- **Content-Type**: Not defined
66+
- **Accept**: application/json
67+
68+
### HTTP response details
69+
70+
| Status code | Description | Response headers |
71+
|-------------|-------------|------------------|
72+
**200** | Ok | - |
73+
**404** | | - |
74+
75+
[[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)
76+
77+
# **get_environment_variable_keys**
78+
> List[str] get_environment_variable_keys()
79+
80+
81+
82+
### Example
83+
84+
85+
```python
86+
import monday_code
87+
from monday_code.rest import ApiException
88+
from pprint import pprint
89+
90+
# Defining the host is optional and defaults to http://localhost:59999
91+
# See configuration.py for a list of all supported configuration parameters.
92+
configuration = monday_code.Configuration(
93+
host = "http://localhost:59999"
94+
)
95+
96+
97+
# Enter a context with an instance of the API client
98+
with monday_code.ApiClient(configuration) as api_client:
99+
# Create an instance of the API class
100+
api_instance = monday_code.EnvironmentVariablesApi(api_client)
101+
102+
try:
103+
api_response = api_instance.get_environment_variable_keys()
104+
print("The response of EnvironmentVariablesApi->get_environment_variable_keys:\n")
105+
pprint(api_response)
106+
except Exception as e:
107+
print("Exception when calling EnvironmentVariablesApi->get_environment_variable_keys: %s\n" % e)
108+
```
109+
110+
111+
112+
### Parameters
113+
114+
This endpoint does not need any parameter.
115+
116+
### Return type
117+
118+
**List[str]**
119+
120+
### Authorization
121+
122+
No authorization required
123+
124+
### HTTP request headers
125+
126+
- **Content-Type**: Not defined
127+
- **Accept**: application/json
128+
129+
### HTTP response details
130+
131+
| Status code | Description | Response headers |
132+
|-------------|-------------|------------------|
133+
**200** | Ok | - |
134+
135+
[[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)
136+

docs/GetByKeyFromStorage404Response.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ json = "{}"
1717
# create an instance of GetByKeyFromStorage404Response from a JSON string
1818
get_by_key_from_storage404_response_instance = GetByKeyFromStorage404Response.from_json(json)
1919
# print the JSON string representation of the object
20-
print GetByKeyFromStorage404Response.to_json()
20+
print(GetByKeyFromStorage404Response.to_json())
2121

2222
# convert the object into a dict
2323
get_by_key_from_storage404_response_dict = get_by_key_from_storage404_response_instance.to_dict()
2424
# create an instance of GetByKeyFromStorage404Response from a dict
25-
get_by_key_from_storage404_response_form_dict = get_by_key_from_storage404_response.from_dict(get_by_key_from_storage404_response_dict)
25+
get_by_key_from_storage404_response_from_dict = GetByKeyFromStorage404Response.from_dict(get_by_key_from_storage404_response_dict)
2626
```
2727
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2828

docs/GetByKeyFromStorage500Response.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ json = "{}"
1717
# create an instance of GetByKeyFromStorage500Response from a JSON string
1818
get_by_key_from_storage500_response_instance = GetByKeyFromStorage500Response.from_json(json)
1919
# print the JSON string representation of the object
20-
print GetByKeyFromStorage500Response.to_json()
20+
print(GetByKeyFromStorage500Response.to_json())
2121

2222
# convert the object into a dict
2323
get_by_key_from_storage500_response_dict = get_by_key_from_storage500_response_instance.to_dict()
2424
# create an instance of GetByKeyFromStorage500Response from a dict
25-
get_by_key_from_storage500_response_form_dict = get_by_key_from_storage500_response.from_dict(get_by_key_from_storage500_response_dict)
25+
get_by_key_from_storage500_response_from_dict = GetByKeyFromStorage500Response.from_dict(get_by_key_from_storage500_response_dict)
2626
```
2727
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2828

docs/IncrementCounterParams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ json = "{}"
2020
# create an instance of IncrementCounterParams from a JSON string
2121
increment_counter_params_instance = IncrementCounterParams.from_json(json)
2222
# print the JSON string representation of the object
23-
print IncrementCounterParams.to_json()
23+
print(IncrementCounterParams.to_json())
2424

2525
# convert the object into a dict
2626
increment_counter_params_dict = increment_counter_params_instance.to_dict()
2727
# create an instance of IncrementCounterParams from a dict
28-
increment_counter_params_form_dict = increment_counter_params.from_dict(increment_counter_params_dict)
28+
increment_counter_params_from_dict = IncrementCounterParams.from_dict(increment_counter_params_dict)
2929
```
3030
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3131

docs/JsonValue.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ json = "{}"
1616
# create an instance of JsonValue from a JSON string
1717
json_value_instance = JsonValue.from_json(json)
1818
# print the JSON string representation of the object
19-
print JsonValue.to_json()
19+
print(JsonValue.to_json())
2020

2121
# convert the object into a dict
2222
json_value_dict = json_value_instance.to_dict()
2323
# create an instance of JsonValue from a dict
24-
json_value_form_dict = json_value.from_dict(json_value_dict)
24+
json_value_from_dict = JsonValue.from_dict(json_value_dict)
2525
```
2626
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2727

docs/LogMethods.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# LogMethods
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# monday_code.SecretApi
1+
# monday_code.LogsApi
22

33
All URIs are relative to *http://localhost:59999*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**get_secret**](SecretApi.md#get_secret) | **GET** /secrets/{name} |
7+
[**write_log**](LogsApi.md#write_log) | **POST** /logs |
88

99

10-
# **get_secret**
11-
> str get_secret(name)
10+
# **write_log**
11+
> write_log(write_log_request_body)
1212
1313

1414

@@ -17,6 +17,7 @@ Method | HTTP request | Description
1717

1818
```python
1919
import monday_code
20+
from monday_code.models.write_log_request_body import WriteLogRequestBody
2021
from monday_code.rest import ApiException
2122
from pprint import pprint
2223

@@ -30,15 +31,13 @@ configuration = monday_code.Configuration(
3031
# Enter a context with an instance of the API client
3132
with monday_code.ApiClient(configuration) as api_client:
3233
# Create an instance of the API class
33-
api_instance = monday_code.SecretApi(api_client)
34-
name = 'name_example' # str |
34+
api_instance = monday_code.LogsApi(api_client)
35+
write_log_request_body = monday_code.WriteLogRequestBody() # WriteLogRequestBody |
3536

3637
try:
37-
api_response = api_instance.get_secret(name)
38-
print("The response of SecretApi->get_secret:\n")
39-
pprint(api_response)
38+
api_instance.write_log(write_log_request_body)
4039
except Exception as e:
41-
print("Exception when calling SecretApi->get_secret: %s\n" % e)
40+
print("Exception when calling LogsApi->write_log: %s\n" % e)
4241
```
4342

4443

@@ -48,27 +47,26 @@ with monday_code.ApiClient(configuration) as api_client:
4847

4948
Name | Type | Description | Notes
5049
------------- | ------------- | ------------- | -------------
51-
**name** | **str**| |
50+
**write_log_request_body** | [**WriteLogRequestBody**](WriteLogRequestBody.md)| |
5251

5352
### Return type
5453

55-
**str**
54+
void (empty response body)
5655

5756
### Authorization
5857

5958
No authorization required
6059

6160
### HTTP request headers
6261

63-
- **Content-Type**: Not defined
64-
- **Accept**: application/json
62+
- **Content-Type**: application/json
63+
- **Accept**: Not defined
6564

6665
### HTTP response details
6766

6867
| Status code | Description | Response headers |
6968
|-------------|-------------|------------------|
70-
**200** | Ok | - |
71-
**404** | | - |
69+
**204** | No Content | - |
7270

7371
[[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)
7472

docs/PublishMessageParams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ json = "{}"
1717
# create an instance of PublishMessageParams from a JSON string
1818
publish_message_params_instance = PublishMessageParams.from_json(json)
1919
# print the JSON string representation of the object
20-
print PublishMessageParams.to_json()
20+
print(PublishMessageParams.to_json())
2121

2222
# convert the object into a dict
2323
publish_message_params_dict = publish_message_params_instance.to_dict()
2424
# create an instance of PublishMessageParams from a dict
25-
publish_message_params_form_dict = publish_message_params.from_dict(publish_message_params_dict)
25+
publish_message_params_from_dict = PublishMessageParams.from_dict(publish_message_params_dict)
2626
```
2727
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2828

docs/PublishMessageResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ json = "{}"
1717
# create an instance of PublishMessageResponse from a JSON string
1818
publish_message_response_instance = PublishMessageResponse.from_json(json)
1919
# print the JSON string representation of the object
20-
print PublishMessageResponse.to_json()
20+
print(PublishMessageResponse.to_json())
2121

2222
# convert the object into a dict
2323
publish_message_response_dict = publish_message_response_instance.to_dict()
2424
# create an instance of PublishMessageResponse from a dict
25-
publish_message_response_form_dict = publish_message_response.from_dict(publish_message_response_dict)
25+
publish_message_response_from_dict = PublishMessageResponse.from_dict(publish_message_response_dict)
2626
```
2727
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2828

docs/QueueApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ No authorization required
7070

7171
| Status code | Description | Response headers |
7272
|-------------|-------------|------------------|
73-
**200** | Success | - |
73+
**200** | OK | - |
7474

7575
[[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)
7676

@@ -136,7 +136,7 @@ No authorization required
136136

137137
| Status code | Description | Response headers |
138138
|-------------|-------------|------------------|
139-
**200** | Success | - |
139+
**200** | OK | - |
140140

141141
[[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)
142142

0 commit comments

Comments
 (0)