Skip to content

Commit 9cbb686

Browse files
committed
generated version
1 parent 14952fd commit 9cbb686

Some content is hidden

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

60 files changed

+4812
-395
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.DS_Store
12
# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore
23

34
composer.phar

README.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow
1919
"repositories": [
2020
{
2121
"type": "vcs",
22-
"url": "https://github.com/mondaycom/monday-code-php-sdk.git"
22+
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
2323
}
2424
],
2525
"require": {
26-
"mondaycom/monday-code-php-sdk": "*@dev"
26+
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
2727
}
2828
}
2929
```
@@ -50,18 +50,18 @@ require_once(__DIR__ . '/vendor/autoload.php');
5050

5151

5252

53-
$apiInstance = new OpenAPI\Client\Api\QueueApi(
53+
$apiInstance = new OpenAPI\Client\Api\EnvironmentVariablesApi(
5454
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
5555
// This is optional, `GuzzleHttp\Client` will be used as default.
5656
new GuzzleHttp\Client()
5757
);
58-
$publish_message_params = new \OpenAPI\Client\Model\PublishMessageParams(); // \OpenAPI\Client\Model\PublishMessageParams
58+
$name = 'name_example'; // string
5959

6060
try {
61-
$result = $apiInstance->publishMessage($publish_message_params);
61+
$result = $apiInstance->getEnvironmentVariable($name);
6262
print_r($result);
6363
} catch (Exception $e) {
64-
echo 'Exception when calling QueueApi->publishMessage: ', $e->getMessage(), PHP_EOL;
64+
echo 'Exception when calling EnvironmentVariablesApi->getEnvironmentVariable: ', $e->getMessage(), PHP_EOL;
6565
}
6666

6767
```
@@ -72,27 +72,37 @@ All URIs are relative to *http://localhost:59999*
7272

7373
Class | Method | HTTP request | Description
7474
------------ | ------------- | ------------- | -------------
75+
*EnvironmentVariablesApi* | [**getEnvironmentVariable**](docs/Api/EnvironmentVariablesApi.md#getenvironmentvariable) | **GET** /environment-variables/{name} |
76+
*EnvironmentVariablesApi* | [**getEnvironmentVariableKeys**](docs/Api/EnvironmentVariablesApi.md#getenvironmentvariablekeys) | **GET** /environment-variables |
77+
*LogsApi* | [**writeLog**](docs/Api/LogsApi.md#writelog) | **POST** /logs |
7578
*QueueApi* | [**publishMessage**](docs/Api/QueueApi.md#publishmessage) | **POST** /queue |
7679
*QueueApi* | [**validateSecret**](docs/Api/QueueApi.md#validatesecret) | **POST** /queue/validate-secret |
77-
*SecretApi* | [**getSecret**](docs/Api/SecretApi.md#getsecret) | **GET** /secrets/{name} |
80+
*SecretsApi* | [**getSecret**](docs/Api/SecretsApi.md#getsecret) | **GET** /secrets/{name} |
81+
*SecretsApi* | [**getSecretKeys**](docs/Api/SecretsApi.md#getsecretkeys) | **GET** /secrets |
7882
*SecureStorageApi* | [**deleteSecureStorage**](docs/Api/SecureStorageApi.md#deletesecurestorage) | **DELETE** /secure-storage/{key} |
7983
*SecureStorageApi* | [**getSecureStorage**](docs/Api/SecureStorageApi.md#getsecurestorage) | **GET** /secure-storage/{key} |
8084
*SecureStorageApi* | [**putSecureStorage**](docs/Api/SecureStorageApi.md#putsecurestorage) | **PUT** /secure-storage/{key} |
81-
*StorageApi* | [**deleteStorage**](docs/Api/StorageApi.md#deletestorage) | **DELETE** /storage/{key} |
82-
*StorageApi* | [**getStorage**](docs/Api/StorageApi.md#getstorage) | **GET** /storage/{key} |
83-
*StorageApi* | [**putStorage**](docs/Api/StorageApi.md#putstorage) | **PUT** /storage/{key} |
84-
*StorageApi* | [**storageIncrementCounter**](docs/Api/StorageApi.md#storageincrementcounter) | **PUT** /storage/{key}/counter/increment |
85+
*StorageApi* | [**deleteByKeyFromStorage**](docs/Api/StorageApi.md#deletebykeyfromstorage) | **DELETE** /storage/{key} |
86+
*StorageApi* | [**getByKeyFromStorage**](docs/Api/StorageApi.md#getbykeyfromstorage) | **GET** /storage/{key} |
87+
*StorageApi* | [**incrementCounter**](docs/Api/StorageApi.md#incrementcounter) | **PUT** /storage/counter/increment |
88+
*StorageApi* | [**upsertByKeyFromStorage**](docs/Api/StorageApi.md#upsertbykeyfromstorage) | **PUT** /storage/{key} |
8589

8690
## Models
8791

88-
- [GetStorage404Response](docs/Model/GetStorage404Response.md)
92+
- [GetByKeyFromStorage404Response](docs/Model/GetByKeyFromStorage404Response.md)
93+
- [GetByKeyFromStorage500Response](docs/Model/GetByKeyFromStorage500Response.md)
8994
- [IncrementCounterParams](docs/Model/IncrementCounterParams.md)
95+
- [JsonValue](docs/Model/JsonValue.md)
96+
- [LogMethods](docs/Model/LogMethods.md)
9097
- [Period](docs/Model/Period.md)
9198
- [PublishMessageParams](docs/Model/PublishMessageParams.md)
9299
- [PublishMessageResponse](docs/Model/PublishMessageResponse.md)
100+
- [SecureStorageDataContract](docs/Model/SecureStorageDataContract.md)
93101
- [StorageDataContract](docs/Model/StorageDataContract.md)
94102
- [ValidateSecretParams](docs/Model/ValidateSecretParams.md)
95103
- [ValidateSecretResponse](docs/Model/ValidateSecretResponse.md)
104+
- [WriteLogRequestBody](docs/Model/WriteLogRequestBody.md)
105+
- [WriteLogRequestBodyError](docs/Model/WriteLogRequestBodyError.md)
96106

97107
## Authorization
98108
Endpoints do not require authorization.
@@ -115,4 +125,5 @@ vendor/bin/phpunit
115125
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
116126

117127
- API version: `0.0.1`
128+
- Generator version: `7.7.0-SNAPSHOT`
118129
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"name": "mondaycom/monday-code",
32
"description": "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)",
43
"keywords": [
54
"openapitools",

docs/Api/EnvironmentVariablesApi.md

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# OpenAPI\Client\EnvironmentVariablesApi
2+
3+
All URIs are relative to http://localhost:59999, except if the operation defines another base path.
4+
5+
| Method | HTTP request | Description |
6+
| ------------- | ------------- | ------------- |
7+
| [**getEnvironmentVariable()**](EnvironmentVariablesApi.md#getEnvironmentVariable) | **GET** /environment-variables/{name} | |
8+
| [**getEnvironmentVariableKeys()**](EnvironmentVariablesApi.md#getEnvironmentVariableKeys) | **GET** /environment-variables | |
9+
10+
11+
## `getEnvironmentVariable()`
12+
13+
```php
14+
getEnvironmentVariable($name): \OpenAPI\Client\Model\JsonValue
15+
```
16+
17+
18+
19+
### Example
20+
21+
```php
22+
<?php
23+
require_once(__DIR__ . '/vendor/autoload.php');
24+
25+
26+
27+
$apiInstance = new OpenAPI\Client\Api\EnvironmentVariablesApi(
28+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
29+
// This is optional, `GuzzleHttp\Client` will be used as default.
30+
new GuzzleHttp\Client()
31+
);
32+
$name = 'name_example'; // string
33+
34+
try {
35+
$result = $apiInstance->getEnvironmentVariable($name);
36+
print_r($result);
37+
} catch (Exception $e) {
38+
echo 'Exception when calling EnvironmentVariablesApi->getEnvironmentVariable: ', $e->getMessage(), PHP_EOL;
39+
}
40+
```
41+
42+
### Parameters
43+
44+
| Name | Type | Description | Notes |
45+
| ------------- | ------------- | ------------- | ------------- |
46+
| **name** | **string**| | |
47+
48+
### Return type
49+
50+
[**\OpenAPI\Client\Model\JsonValue**](../Model/JsonValue.md)
51+
52+
### Authorization
53+
54+
No authorization required
55+
56+
### HTTP request headers
57+
58+
- **Content-Type**: Not defined
59+
- **Accept**: `application/json`
60+
61+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
62+
[[Back to Model list]](../../README.md#models)
63+
[[Back to README]](../../README.md)
64+
65+
## `getEnvironmentVariableKeys()`
66+
67+
```php
68+
getEnvironmentVariableKeys(): string[]
69+
```
70+
71+
72+
73+
### Example
74+
75+
```php
76+
<?php
77+
require_once(__DIR__ . '/vendor/autoload.php');
78+
79+
80+
81+
$apiInstance = new OpenAPI\Client\Api\EnvironmentVariablesApi(
82+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
83+
// This is optional, `GuzzleHttp\Client` will be used as default.
84+
new GuzzleHttp\Client()
85+
);
86+
87+
try {
88+
$result = $apiInstance->getEnvironmentVariableKeys();
89+
print_r($result);
90+
} catch (Exception $e) {
91+
echo 'Exception when calling EnvironmentVariablesApi->getEnvironmentVariableKeys: ', $e->getMessage(), PHP_EOL;
92+
}
93+
```
94+
95+
### Parameters
96+
97+
This endpoint does not need any parameter.
98+
99+
### Return type
100+
101+
**string[]**
102+
103+
### Authorization
104+
105+
No authorization required
106+
107+
### HTTP request headers
108+
109+
- **Content-Type**: Not defined
110+
- **Accept**: `application/json`
111+
112+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
113+
[[Back to Model list]](../../README.md#models)
114+
[[Back to README]](../../README.md)

docs/Api/SecretApi.md renamed to docs/Api/LogsApi.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# OpenAPI\Client\SecretApi
1+
# OpenAPI\Client\LogsApi
22

33
All URIs are relative to http://localhost:59999, except if the operation defines another base path.
44

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

99

10-
## `getSecret()`
10+
## `writeLog()`
1111

1212
```php
13-
getSecret($name): string
13+
writeLog($write_log_request_body)
1414
```
1515

1616

@@ -23,39 +23,38 @@ require_once(__DIR__ . '/vendor/autoload.php');
2323

2424

2525

26-
$apiInstance = new OpenAPI\Client\Api\SecretApi(
26+
$apiInstance = new OpenAPI\Client\Api\LogsApi(
2727
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
2828
// This is optional, `GuzzleHttp\Client` will be used as default.
2929
new GuzzleHttp\Client()
3030
);
31-
$name = 'name_example'; // string
31+
$write_log_request_body = new \OpenAPI\Client\Model\WriteLogRequestBody(); // \OpenAPI\Client\Model\WriteLogRequestBody
3232

3333
try {
34-
$result = $apiInstance->getSecret($name);
35-
print_r($result);
34+
$apiInstance->writeLog($write_log_request_body);
3635
} catch (Exception $e) {
37-
echo 'Exception when calling SecretApi->getSecret: ', $e->getMessage(), PHP_EOL;
36+
echo 'Exception when calling LogsApi->writeLog: ', $e->getMessage(), PHP_EOL;
3837
}
3938
```
4039

4140
### Parameters
4241

4342
| Name | Type | Description | Notes |
4443
| ------------- | ------------- | ------------- | ------------- |
45-
| **name** | **string**| | |
44+
| **write_log_request_body** | [**\OpenAPI\Client\Model\WriteLogRequestBody**](../Model/WriteLogRequestBody.md)| | |
4645

4746
### Return type
4847

49-
**string**
48+
void (empty response body)
5049

5150
### Authorization
5251

5352
No authorization required
5453

5554
### HTTP request headers
5655

57-
- **Content-Type**: Not defined
58-
- **Accept**: `application/json`
56+
- **Content-Type**: `application/json`
57+
- **Accept**: Not defined
5958

6059
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
6160
[[Back to Model list]](../../README.md#models)

docs/Api/SecretsApi.md

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# OpenAPI\Client\SecretsApi
2+
3+
All URIs are relative to http://localhost:59999, except if the operation defines another base path.
4+
5+
| Method | HTTP request | Description |
6+
| ------------- | ------------- | ------------- |
7+
| [**getSecret()**](SecretsApi.md#getSecret) | **GET** /secrets/{name} | |
8+
| [**getSecretKeys()**](SecretsApi.md#getSecretKeys) | **GET** /secrets | |
9+
10+
11+
## `getSecret()`
12+
13+
```php
14+
getSecret($name): string
15+
```
16+
17+
18+
19+
### Example
20+
21+
```php
22+
<?php
23+
require_once(__DIR__ . '/vendor/autoload.php');
24+
25+
26+
27+
$apiInstance = new OpenAPI\Client\Api\SecretsApi(
28+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
29+
// This is optional, `GuzzleHttp\Client` will be used as default.
30+
new GuzzleHttp\Client()
31+
);
32+
$name = 'name_example'; // string
33+
34+
try {
35+
$result = $apiInstance->getSecret($name);
36+
print_r($result);
37+
} catch (Exception $e) {
38+
echo 'Exception when calling SecretsApi->getSecret: ', $e->getMessage(), PHP_EOL;
39+
}
40+
```
41+
42+
### Parameters
43+
44+
| Name | Type | Description | Notes |
45+
| ------------- | ------------- | ------------- | ------------- |
46+
| **name** | **string**| | |
47+
48+
### Return type
49+
50+
**string**
51+
52+
### Authorization
53+
54+
No authorization required
55+
56+
### HTTP request headers
57+
58+
- **Content-Type**: Not defined
59+
- **Accept**: `application/json`
60+
61+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
62+
[[Back to Model list]](../../README.md#models)
63+
[[Back to README]](../../README.md)
64+
65+
## `getSecretKeys()`
66+
67+
```php
68+
getSecretKeys(): string[]
69+
```
70+
71+
72+
73+
### Example
74+
75+
```php
76+
<?php
77+
require_once(__DIR__ . '/vendor/autoload.php');
78+
79+
80+
81+
$apiInstance = new OpenAPI\Client\Api\SecretsApi(
82+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
83+
// This is optional, `GuzzleHttp\Client` will be used as default.
84+
new GuzzleHttp\Client()
85+
);
86+
87+
try {
88+
$result = $apiInstance->getSecretKeys();
89+
print_r($result);
90+
} catch (Exception $e) {
91+
echo 'Exception when calling SecretsApi->getSecretKeys: ', $e->getMessage(), PHP_EOL;
92+
}
93+
```
94+
95+
### Parameters
96+
97+
This endpoint does not need any parameter.
98+
99+
### Return type
100+
101+
**string[]**
102+
103+
### Authorization
104+
105+
No authorization required
106+
107+
### HTTP request headers
108+
109+
- **Content-Type**: Not defined
110+
- **Accept**: `application/json`
111+
112+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
113+
[[Back to Model list]](../../README.md#models)
114+
[[Back to README]](../../README.md)

0 commit comments

Comments
 (0)