Skip to content

Commit 50351c7

Browse files
committed
update generated code with openapi-generator
1 parent cbabbf2 commit 50351c7

File tree

158 files changed

+990
-1007
lines changed

Some content is hidden

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

158 files changed

+990
-1007
lines changed

README.md

+12-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,22 @@
33
Open source, extensible and Docker-based Platform as a Service (PaaS)
44

55
## Overview
6-
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
6+
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
77

88
- API version: 1.6
99
- Package version: 1.0.0
10-
- Build package: io.swagger.codegen.languages.GoClientCodegen
10+
- Build package: org.openapitools.codegen.languages.GoClientCodegen
1111

1212
## Installation
13+
14+
Install the following dependencies:
15+
```
16+
go get github.com/stretchr/testify/assert
17+
go get golang.org/x/oauth2
18+
go get golang.org/x/net/context
19+
go get github.com/antihax/optional
20+
```
21+
1322
Put the package under your project folder and add the following in import:
1423
```golang
1524
import "./tsuru"
@@ -36,7 +45,7 @@ Class | Method | HTTP request | Description
3645
*AuthApi* | [**DissociateRoleFromToken**](docs/AuthApi.md#dissociaterolefromtoken) | **Delete** /1.6/roles/{role_name}/token/{token_id} |
3746
*AuthApi* | [**TeamTokenCreate**](docs/AuthApi.md#teamtokencreate) | **Post** /1.6/tokens |
3847
*AuthApi* | [**TeamTokenDelete**](docs/AuthApi.md#teamtokendelete) | **Delete** /1.6/tokens/{token_id} |
39-
*AuthApi* | [**TeamTokenInfo**](docs/AuthApi.md#teamtokeninfo) | **Get** /1.7/tokens/{token_id} |
48+
*AuthApi* | [**TeamTokenInfo**](docs/AuthApi.md#teamtokeninfo) | **Get** /1.6/tokens/{token_id} |
4049
*AuthApi* | [**TeamTokenUpdate**](docs/AuthApi.md#teamtokenupdate) | **Put** /1.6/tokens/{token_id} |
4150
*AuthApi* | [**TeamTokensList**](docs/AuthApi.md#teamtokenslist) | **Get** /1.6/tokens |
4251
*ClusterApi* | [**ClusterCreate**](docs/ClusterApi.md#clustercreate) | **Post** /1.3/provisioner/clusters |
@@ -112,9 +121,6 @@ Class | Method | HTTP request | Description
112121
- [ClusterHelp](docs/ClusterHelp.md)
113122
- [Env](docs/Env.md)
114123
- [EnvSetData](docs/EnvSetData.md)
115-
- [EnvSetResponse](docs/EnvSetResponse.md)
116-
- [EnvSetResponseInner](docs/EnvSetResponseInner.md)
117-
- [ErrorMessage](docs/ErrorMessage.md)
118124
- [EventCancelArgs](docs/EventCancelArgs.md)
119125
- [Lock](docs/Lock.md)
120126
- [Machine](docs/Machine.md)
@@ -169,7 +175,6 @@ Class | Method | HTTP request | Description
169175
- [VolumeBindData](docs/VolumeBindData.md)
170176
- [VolumeBindId](docs/VolumeBindId.md)
171177
- [VolumePlan](docs/VolumePlan.md)
172-
- [VolumePlansListResponse](docs/VolumePlansListResponse.md)
173178
- [Webhook](docs/Webhook.md)
174179
- [WebhookEventFilter](docs/WebhookEventFilter.md)
175180

docs/App.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Name** | **string** | App name. | [default to null]
7-
**Tags** | **[]string** | App tags. | [optional] [default to null]
8-
**Router** | **string** | App router. | [optional] [default to null]
9-
**Routeropts** | **map[string]string** | Custom router options. | [optional] [default to null]
10-
**Plan** | [***Plan**](Plan.md) | | [optional] [default to null]
11-
**Pool** | **string** | App pool. | [optional] [default to null]
12-
**Platform** | **string** | App platform. | [optional] [default to null]
13-
**Description** | **string** | App description. | [optional] [default to null]
14-
**TeamOwner** | **string** | Team that owns the app. | [optional] [default to null]
15-
**Teams** | **[]string** | | [optional] [default to null]
16-
**Cname** | **[]string** | | [optional] [default to null]
17-
**Ip** | **string** | | [optional] [default to null]
18-
**Owner** | **string** | | [optional] [default to null]
6+
**Name** | **string** | App name. |
7+
**Tags** | **[]string** | App tags. | [optional]
8+
**Router** | **string** | App router. | [optional]
9+
**Routeropts** | **map[string]string** | Custom router options. | [optional]
10+
**Plan** | [**Plan**](Plan.md) | | [optional]
11+
**Pool** | **string** | App pool. | [optional]
12+
**Platform** | **string** | App platform. | [optional]
13+
**Description** | **string** | App description. | [optional]
14+
**TeamOwner** | **string** | Team that owns the app. | [optional]
15+
**Teams** | **[]string** | | [optional]
16+
**Cname** | **[]string** | | [optional]
17+
**Ip** | **string** | | [optional]
18+
**Owner** | **string** | | [optional]
1919

2020
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2121

docs/AppApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Name | Type | Description | Notes
304304
[[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)
305305

306306
# **EnvSet**
307-
> EnvSetResponse EnvSet(ctx, app, envs)
307+
> []map[string]interface{} EnvSet(ctx, app, envSetData)
308308
309309

310310
Set new environment variable.
@@ -315,11 +315,11 @@ Name | Type | Description | Notes
315315
------------- | ------------- | ------------- | -------------
316316
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
317317
**app** | **string**| App name. |
318-
**envs** | [**EnvSetData**](EnvSetData.md)| Environment variables. |
318+
**envSetData** | [**EnvSetData**](EnvSetData.md)| Environment variables. |
319319

320320
### Return type
321321

322-
[**EnvSetResponse**](EnvSetResponse.md)
322+
[**[]map[string]interface{}**](map[string]interface{}.md)
323323

324324
### Authorization
325325

docs/AppCreateResponse.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Status** | **string** | | [optional] [default to null]
7-
**RepositoryUrl** | **string** | | [optional] [default to null]
8-
**Ip** | **string** | | [optional] [default to null]
6+
**Status** | **string** | | [optional]
7+
**RepositoryUrl** | **string** | | [optional]
8+
**Ip** | **string** | | [optional]
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1111

docs/AssignTokenArgs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**TokenId** | **string** | | [optional] [default to null]
7-
**Context** | **string** | | [optional] [default to null]
6+
**TokenId** | **string** | | [optional]
7+
**Context** | **string** | | [optional]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

docs/AuthApi.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Method | HTTP request | Description
88
[**DissociateRoleFromToken**](AuthApi.md#DissociateRoleFromToken) | **Delete** /1.6/roles/{role_name}/token/{token_id} |
99
[**TeamTokenCreate**](AuthApi.md#TeamTokenCreate) | **Post** /1.6/tokens |
1010
[**TeamTokenDelete**](AuthApi.md#TeamTokenDelete) | **Delete** /1.6/tokens/{token_id} |
11-
[**TeamTokenInfo**](AuthApi.md#TeamTokenInfo) | **Get** /1.7/tokens/{token_id} |
11+
[**TeamTokenInfo**](AuthApi.md#TeamTokenInfo) | **Get** /1.6/tokens/{token_id} |
1212
[**TeamTokenUpdate**](AuthApi.md#TeamTokenUpdate) | **Put** /1.6/tokens/{token_id} |
1313
[**TeamTokensList**](AuthApi.md#TeamTokensList) | **Get** /1.6/tokens |
1414

1515

1616
# **AssignRoleToToken**
17-
> AssignRoleToToken(ctx, roleName, token)
17+
> AssignRoleToToken(ctx, roleName, assignTokenArgs)
1818
1919

2020
Assigns a role to a team token.
@@ -25,7 +25,7 @@ Name | Type | Description | Notes
2525
------------- | ------------- | ------------- | -------------
2626
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
2727
**roleName** | **string**| |
28-
**token** | [**AssignTokenArgs**](AssignTokenArgs.md)| |
28+
**assignTokenArgs** | [**AssignTokenArgs**](AssignTokenArgs.md)| |
2929

3030
### Return type
3131

@@ -38,7 +38,7 @@ Name | Type | Description | Notes
3838
### HTTP request headers
3939

4040
- **Content-Type**: application/json
41-
- **Accept**: Not defined
41+
- **Accept**: */*
4242

4343
[[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)
4444

@@ -68,12 +68,12 @@ Name | Type | Description | Notes
6868
### HTTP request headers
6969

7070
- **Content-Type**: Not defined
71-
- **Accept**: Not defined
71+
- **Accept**: */*
7272

7373
[[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)
7474

7575
# **TeamTokenCreate**
76-
> TeamToken TeamTokenCreate(ctx, token)
76+
> TeamToken TeamTokenCreate(ctx, teamTokenCreateArgs)
7777
7878

7979
Creates a team token.
@@ -83,7 +83,7 @@ Creates a team token.
8383
Name | Type | Description | Notes
8484
------------- | ------------- | ------------- | -------------
8585
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
86-
**token** | [**TeamTokenCreateArgs**](TeamTokenCreateArgs.md)| |
86+
**teamTokenCreateArgs** | [**TeamTokenCreateArgs**](TeamTokenCreateArgs.md)| |
8787

8888
### Return type
8989

@@ -124,7 +124,7 @@ Name | Type | Description | Notes
124124
### HTTP request headers
125125

126126
- **Content-Type**: Not defined
127-
- **Accept**: Not defined
127+
- **Accept**: */*
128128

129129
[[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)
130130

@@ -157,7 +157,7 @@ Name | Type | Description | Notes
157157
[[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)
158158

159159
# **TeamTokenUpdate**
160-
> TeamToken TeamTokenUpdate(ctx, tokenId, token)
160+
> TeamToken TeamTokenUpdate(ctx, tokenId, teamTokenUpdateArgs)
161161
162162

163163
Updates a team token.
@@ -168,7 +168,7 @@ Name | Type | Description | Notes
168168
------------- | ------------- | ------------- | -------------
169169
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
170170
**tokenId** | **string**| Token ID. |
171-
**token** | [**TeamTokenUpdateArgs**](TeamTokenUpdateArgs.md)| |
171+
**teamTokenUpdateArgs** | [**TeamTokenUpdateArgs**](TeamTokenUpdateArgs.md)| |
172172

173173
### Return type
174174

docs/ChangePasswordData.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Confirm** | **string** | | [optional] [default to null]
7-
**New** | **string** | | [optional] [default to null]
8-
**Old** | **string** | | [optional] [default to null]
6+
**Confirm** | **string** | | [optional]
7+
**New** | **string** | | [optional]
8+
**Old** | **string** | | [optional]
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1111

docs/Cluster.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Name** | **string** | | [optional] [default to null]
7-
**Addresses** | **[]string** | | [optional] [default to null]
8-
**Provisioner** | **string** | | [optional] [default to null]
9-
**Cacert** | **string** | | [optional] [default to null]
10-
**Clientcert** | **string** | | [optional] [default to null]
11-
**Clientkey** | **string** | | [optional] [default to null]
12-
**Pools** | **[]string** | | [optional] [default to null]
13-
**CustomData** | **map[string]string** | | [optional] [default to null]
14-
**CreateData** | **map[string]string** | | [optional] [default to null]
15-
**Default_** | **bool** | | [optional] [default to null]
6+
**Name** | **string** | | [optional]
7+
**Addresses** | **[]string** | | [optional]
8+
**Provisioner** | **string** | | [optional]
9+
**Cacert** | **string** | | [optional]
10+
**Clientcert** | **string** | | [optional]
11+
**Clientkey** | **string** | | [optional]
12+
**Pools** | **[]string** | | [optional]
13+
**CustomData** | **map[string]string** | | [optional]
14+
**CreateData** | **map[string]string** | | [optional]
15+
**Default** | **bool** | | [optional]
1616

1717
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1818

docs/ClusterApi.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212

1313

1414
# **ClusterCreate**
15-
> ClusterCreate(ctx, clusterCreateData)
15+
> ClusterCreate(ctx, cluster)
1616
1717

1818
Create cluster.
@@ -22,7 +22,7 @@ Create cluster.
2222
Name | Type | Description | Notes
2323
------------- | ------------- | ------------- | -------------
2424
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
25-
**clusterCreateData** | [**Cluster**](Cluster.md)| |
25+
**cluster** | [**Cluster**](Cluster.md)| |
2626

2727
### Return type
2828

@@ -35,7 +35,7 @@ Name | Type | Description | Notes
3535
### HTTP request headers
3636

3737
- **Content-Type**: application/json
38-
- **Accept**: Not defined
38+
- **Accept**: application/x-json-stream
3939

4040
[[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)
4141

@@ -63,7 +63,7 @@ Name | Type | Description | Notes
6363
### HTTP request headers
6464

6565
- **Content-Type**: Not defined
66-
- **Accept**: Not defined
66+
- **Accept**: application/x-json-stream
6767

6868
[[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)
6969

@@ -92,7 +92,7 @@ This endpoint does not need any parameter.
9292
[[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)
9393

9494
# **ClusterUpdate**
95-
> ClusterUpdate(ctx, clusterName, clusterUpdateData)
95+
> ClusterUpdate(ctx, clusterName, cluster)
9696
9797

9898
Update cluster.
@@ -103,7 +103,7 @@ Name | Type | Description | Notes
103103
------------- | ------------- | ------------- | -------------
104104
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
105105
**clusterName** | **string**| Cluster name. |
106-
**clusterUpdateData** | [**Cluster**](Cluster.md)| |
106+
**cluster** | [**Cluster**](Cluster.md)| |
107107

108108
### Return type
109109

@@ -116,7 +116,7 @@ Name | Type | Description | Notes
116116
### HTTP request headers
117117

118118
- **Content-Type**: application/json
119-
- **Accept**: Not defined
119+
- **Accept**: application/x-json-stream
120120

121121
[[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)
122122

docs/ClusterHelp.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**ProvisionerHelp** | **string** | | [optional] [default to null]
7-
**CustomDataHelp** | **map[string]string** | | [optional] [default to null]
8-
**CreateDataHelp** | **map[string]string** | | [optional] [default to null]
6+
**ProvisionerHelp** | **string** | | [optional]
7+
**CustomDataHelp** | **map[string]string** | | [optional]
8+
**CreateDataHelp** | **map[string]string** | | [optional]
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1111

docs/Env.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Name** | **string** | | [optional] [default to null]
7-
**Value** | **string** | | [optional] [default to null]
6+
**Name** | **string** | | [optional]
7+
**Value** | **string** | | [optional]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

docs/EnvSetData.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Envs** | [**[]Env**](Env.md) | | [optional] [default to null]
7-
**Norestart** | **bool** | | [optional] [default to null]
8-
**Private** | **bool** | | [optional] [default to null]
6+
**Envs** | [**[]Env**](Env.md) | | [optional]
7+
**Norestart** | **bool** | | [optional]
8+
**Private** | **bool** | | [optional]
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1111

0 commit comments

Comments
 (0)