Skip to content

Commit

Permalink
update generated client from latest spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Jul 13, 2020
1 parent 460b189 commit 4080334
Show file tree
Hide file tree
Showing 11 changed files with 829 additions and 8 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -79,6 +79,10 @@ Class | Method | HTTP request | Description
*PoolApi* | [**PoolGet**](docs/PoolApi.md#poolget) | **Get** /pools/{pool} |
*PoolApi* | [**PoolList**](docs/PoolApi.md#poollist) | **Get** /1.0/pools |
*PoolApi* | [**PoolUpdate**](docs/PoolApi.md#poolupdate) | **Put** /pools/{pool} |
*RouterApi* | [**RouterCreate**](docs/RouterApi.md#routercreate) | **Post** /1.8/routers |
*RouterApi* | [**RouterDelete**](docs/RouterApi.md#routerdelete) | **Delete** /1.8/routers/{name} |
*RouterApi* | [**RouterList**](docs/RouterApi.md#routerlist) | **Get** /1.3/routers |
*RouterApi* | [**RouterUpdate**](docs/RouterApi.md#routerupdate) | **Put** /1.8/routers/{name} |
*ServiceApi* | [**InstanceCreate**](docs/ServiceApi.md#instancecreate) | **Post** /1.0/services/{service}/instances |
*ServiceApi* | [**InstanceDelete**](docs/ServiceApi.md#instancedelete) | **Delete** /1.0/services/{service}/instances/{instance} |
*ServiceApi* | [**InstanceGet**](docs/ServiceApi.md#instanceget) | **Get** /1.0/services/{service}/instances/{instance} |
Expand Down Expand Up @@ -128,6 +132,7 @@ Class | Method | HTTP request | Description
- [ChangePasswordData](docs/ChangePasswordData.md)
- [Cluster](docs/Cluster.md)
- [ClusterHelp](docs/ClusterHelp.md)
- [DynamicRouter](docs/DynamicRouter.md)
- [Env](docs/Env.md)
- [EnvSetData](docs/EnvSetData.md)
- [EventCancelArgs](docs/EventCancelArgs.md)
Expand All @@ -144,6 +149,7 @@ Class | Method | HTTP request | Description
- [NodeUpdateData](docs/NodeUpdateData.md)
- [PermissionUser](docs/PermissionUser.md)
- [Plan](docs/Plan.md)
- [PlanRouter](docs/PlanRouter.md)
- [Platform](docs/Platform.md)
- [PlatformInfo](docs/PlatformInfo.md)
- [Pool](docs/Pool.md)
Expand Down
179 changes: 173 additions & 6 deletions api/openapi.yaml
Expand Up @@ -3110,6 +3110,131 @@ paths:
- Bearer: []
tags:
- pool
/1.3/routers:
get:
description: List available routers
operationId: RouterList
responses:
200:
content:
application/json:
schema:
items:
$ref: '#/components/schemas/PlanRouter'
type: array
description: Routers
204:
content: {}
description: No content
401:
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
description: Unauthorized
security:
- Bearer: []
tags:
- router
/1.8/routers:
post:
description: Adds a new dynamic router
operationId: RouterCreate
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DynamicRouter'
required: true
responses:
201:
content: {}
description: Dynamic router added
400:
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorMessage'
description: Invalid data
401:
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorMessage'
description: Unauthorized
security:
- Bearer: []
tags:
- router
/1.8/routers/{name}:
delete:
description: Deletes a dynamic router
operationId: RouterDelete
parameters:
- description: Dynamic router name.
in: path
name: name
required: true
schema:
minLength: 1
type: string
responses:
200:
content: {}
description: Dynamic router deleted
401:
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorMessage'
description: Unauthorized.
404:
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorMessage'
description: Dynamic router not found
security:
- Bearer: []
tags:
- router
put:
description: Updates a dynamic router
operationId: RouterUpdate
parameters:
- description: Dynamic router name.
in: path
name: name
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DynamicRouter'
required: true
responses:
200:
content: {}
description: Dynamic router updated
401:
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorMessage'
description: Unauthorized.
404:
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorMessage'
description: Dynamic router not found
security:
- Bearer: []
tags:
- router
components:
schemas:
App:
Expand Down Expand Up @@ -3245,18 +3370,18 @@ components:
name: name
cpushare: 0
routers:
- opts:
- address: address
opts:
key: opts
status-detail: status-detail
name: name
addres: addres
type: type
status: status
- opts:
- address: address
opts:
key: opts
status-detail: status-detail
name: name
addres: addres
type: type
status: status
tags:
Expand Down Expand Up @@ -3528,6 +3653,33 @@ components:
type: string
type: object
type: array
PlanRouter:
description: Plan Router
example:
default: true
name: name
dynamic: true
type: type
config: '{}'
info:
key: info
properties:
name:
type: string
type:
type: string
config:
properties: {}
type: object
info:
additionalProperties:
type: string
type: object
default:
type: boolean
dynamic:
type: boolean
type: object
PoolConstraint:
example:
Field: Field
Expand Down Expand Up @@ -3656,11 +3808,11 @@ components:
type: object
Router:
example:
address: address
opts:
key: opts
status-detail: status-detail
name: name
addres: addres
type: type
status: status
properties:
Expand All @@ -3670,7 +3822,7 @@ components:
additionalProperties:
type: string
type: object
addres:
address:
type: string
type:
type: string
Expand Down Expand Up @@ -4680,6 +4832,21 @@ components:
router:
type: string
type: object
DynamicRouter:
description: Dynamic router
example:
name: name
type: type
config: '{}'
properties:
name:
type: string
type:
type: string
config:
properties: {}
type: object
type: object
PlatformInfo:
example:
images:
Expand Down
12 changes: 12 additions & 0 deletions docs/DynamicRouter.md
@@ -0,0 +1,12 @@
# DynamicRouter

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional]
**Type** | **string** | | [optional]
**Config** | [**map[string]interface{}**](.md) | | [optional]

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


15 changes: 15 additions & 0 deletions docs/PlanRouter.md
@@ -0,0 +1,15 @@
# PlanRouter

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional]
**Type** | **string** | | [optional]
**Config** | [**map[string]interface{}**](.md) | | [optional]
**Info** | **map[string]string** | | [optional]
**Default** | **bool** | | [optional]
**Dynamic** | **bool** | | [optional]

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


2 changes: 1 addition & 1 deletion docs/Router.md
Expand Up @@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional]
**Opts** | **map[string]string** | | [optional]
**Addres** | **string** | | [optional]
**Address** | **string** | | [optional]
**Type** | **string** | | [optional]
**Status** | **string** | | [optional]
**StatusDetail** | **string** | | [optional]
Expand Down

0 comments on commit 4080334

Please sign in to comment.