Files
kubevela/docs/apidoc/swagger.json
github-actions[bot] 0736e85e07 [Backport release-1.6] Feat: implement pipeline APIs (#4969)
* add context when run pipeline

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 72f3ad792e)

* Feat: implement pipeline API

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit f560c346cc)

* Extract get log logic and implement getPipelineRunLog API

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 060c6ab9e9)

* Init and delete pipeline contexts

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 5e96bd3106)

* fix panic

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 51072f7947)

* Allow not specifying context

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 810ddcf0bd)

* change pipeline to path parameter

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 3d51c0cb2d)

* Add permission check filter

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 6883767430)

* project -> projects in route

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 1f09f3996b)

* fix route conflict

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 7eea696830)

* Add project alias

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit b07dd72338)

* Feat: change the list pipeline API

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit bd804734b0)

* Feat: filter the project

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 82eee2cc11)

* Fix: the error of the run APi

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit ac87bd3f1a)

* fix log pipeline run API

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit acde8e981e)

* Fix lint, fix the error of log api

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit b8373e6cde)

* fix error returning

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 2e9b4792b0)

* Fix: change the lable to annotation

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit bf08275fde)

* remove log config not found error

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit cdd77dfd8f)

* fix pipeline list api return no context info

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit cdcfa165d1)

* Fix: create the namespace

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit b6888dd87d)

* get pipeline lastrun info

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit a943423d22)

* allow query single step output

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit e2310bbf34)

* organize code in api layer

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 6fd53ed078)

* fix project filter, add context value when get pp run, extend lastRun

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 861f69d555)

* fix get output and implement get input api

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 61495ee70d)

* Fix: change the last run

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit aeb842a45e)

* if query sub-step outout, return it directly

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 467ba25751)

* Fix: change the run stats

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 7a90e7e310)

* Fix: change the output

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 595a871b0d)

* flatten the input/output api

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit efc9692354)

* more info for i/o vars

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 7fe0e1109c)

* fix nested i/o struct

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 201d1228bd)

* add fromStep in input api

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 2400018962)

* add e2e test skeleton

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit f20f9a1ac6)

* add more e2e test

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 98b27f886b)

* use db to store pipeline

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 08962c4f2f)

* keep the last 5k lines of log

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 22b352da14)

* use stern param to keep last lines of logs

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 3eadbf91c8)

* filter, nil labels, spec check

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit bad90b3f7a)

* empty res, index, detail param

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit b12d889e97)

* Add e2e test

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit ae617a928e)

* fix e2e test and unit test

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 0f4e030b84)

* add context e2e test

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 88879e6e43)

* goimports

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 58429978b3)

* add more test

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 75760521a4)

* review

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit cc4c706466)

* remove optional tag in returned value, unify the imports name

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 658b184aef)

* fix e2e test

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit a9e9c96856)

* add stop test

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 58aa2e5125)

* more coverage

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 01ecb51323)

* single case selct

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit d9e8fd0342)

* optimize log color

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit be9840c3cb)

* add default permission and role

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit cf074444ac)

* fix permission ut

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 1bdcad63a2)

* change the log api implementation

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 587f745430)

* add color, add container order

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 6e7f187605)

* lint

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 64ba029031)

* fix filter nil will cut all log

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 799dfe377a)

* longer timeout and lint

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
(cherry picked from commit 89873f1f66)

Co-authored-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
Co-authored-by: barnettZQG <barnett.zqg@gmail.com>
2022-11-01 00:13:37 +08:00

14436 lines
262 KiB
JSON

{
"swagger": "2.0",
"info": {
"description": "Kubevela api doc",
"title": "Kubevela api doc",
"contact": {
"name": "kubevela",
"url": "https://kubevela.io/",
"email": "feedback@mail.kubevela.io"
},
"license": {
"name": "Apache License 2.0",
"url": "https://github.com/oam-dev/kubevela/blob/master/LICENSE"
},
"version": "v1beta1"
},
"paths": {
"/api/v1/addon_registries": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon_registry"
],
"summary": "list all addon registry",
"operationId": "listAddonRegistry",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListAddonRegistryResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon_registry"
],
"summary": "create an addon registry",
"operationId": "createAddonRegistry",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateAddonRegistryRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AddonRegistry"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/addon_registries/{addonRegName}": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon_registry"
],
"summary": "update an addon registry",
"operationId": "updateAddonRegistry",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateAddonRegistryRequest"
}
},
{
"type": "string",
"description": "identifier of the addon registry",
"name": "addonRegName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AddonRegistry"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon_registry"
],
"summary": "delete an addon registry",
"operationId": "deleteAddonRegistry",
"parameters": [
{
"type": "string",
"description": "identifier of the addon registry",
"name": "addonRegName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AddonRegistry"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/addons": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon"
],
"summary": "list all addons",
"operationId": "listAddons",
"parameters": [
{
"type": "string",
"description": "filter addons from given registry",
"name": "registry",
"in": "query"
},
{
"type": "string",
"description": "Fuzzy search based on name and description.",
"name": "query",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListAddonResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/addons/{addonName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon"
],
"summary": "show details of an addon",
"operationId": "detailAddon",
"parameters": [
{
"type": "string",
"description": "addon name to query detail",
"name": "name",
"in": "path",
"required": true
},
{
"type": "string",
"description": "specify addon version to enable",
"name": "version",
"in": "query"
},
{
"type": "string",
"description": "addon name to query detail",
"name": "addonName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "filter addons from given registry",
"name": "registry",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.DetailAddonResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/addons/{addonName}/disable": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon"
],
"summary": "disable an addon",
"operationId": "disableAddon",
"parameters": [
{
"type": "string",
"description": "addon name to enable",
"name": "addonName",
"in": "path",
"required": true
},
{
"type": "boolean",
"description": "force disable an addon",
"name": "force",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AddonStatusResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/addons/{addonName}/enable": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon"
],
"summary": "enable an addon",
"operationId": "enableAddon",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.EnableAddonRequest"
}
},
{
"type": "string",
"description": "addon name to enable",
"name": "addonName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AddonStatusResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/addons/{addonName}/status": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon"
],
"summary": "show status of an addon",
"operationId": "statusAddon",
"parameters": [
{
"type": "string",
"description": "addon name to query status",
"name": "addonName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AddonStatusResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/addons/{addonName}/update": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon"
],
"summary": "update an addon",
"operationId": "updateAddon",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.EnableAddonRequest"
}
},
{
"type": "string",
"description": "addon name to update",
"name": "addonName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AddonStatusResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "list all applications",
"operationId": "listApplications",
"parameters": [
{
"type": "string",
"description": "Fuzzy search based on name or description",
"name": "query",
"in": "query"
},
{
"type": "string",
"description": "search base on project name",
"name": "project",
"in": "query"
},
{
"type": "string",
"description": "search base on env name",
"name": "env",
"in": "query"
},
{
"type": "string",
"description": "Name of the application delivery target",
"name": "targetName",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListApplicationResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "create one application ",
"operationId": "createApplication",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateApplicationRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "detail one application ",
"operationId": "detailApplication",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.DetailApplicationResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "update one application ",
"operationId": "updateApplication",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateApplicationRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "delete one application",
"operationId": "deleteApplication",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/compare": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "compare application",
"operationId": "compareApp",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.AppCompareReq"
}
},
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AppCompareResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/components": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "gets the list of application components",
"operationId": "listApplicationComponents",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "list components that deployed in define env",
"name": "envName",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ComponentListResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "create component for application ",
"operationId": "createComponent",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateComponentRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ComponentBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/components/{compName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "detail component for application ",
"operationId": "detailComponent",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the component",
"name": "compName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.DetailComponentResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "update component config",
"operationId": "updateComponent",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the component",
"name": "compName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateApplicationComponentRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ComponentBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "delete a component",
"operationId": "deleteComponent",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the component",
"name": "compName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/components/{compName}/traits": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "add trait for a component",
"operationId": "addApplicationTrait",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the component",
"name": "compName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateApplicationTraitRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/components/{compName}/traits/{traitType}": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "update trait from a component",
"operationId": "updateApplicationTrait",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the component",
"name": "compName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the type of trait",
"name": "traitType",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateApplicationTraitRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationTrait"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "delete trait from a component",
"operationId": "deleteApplicationTrait",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the component",
"name": "compName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the type of trait",
"name": "traitType",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationTrait"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/deploy": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "deploy or upgrade the application",
"operationId": "deployApplication",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.ApplicationDeployRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationDeployResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/dry-run": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "dry-run application to latest revision",
"operationId": "dryRunAppOrRevision",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.AppDryRunReq"
}
},
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AppDryRunResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/envs": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "list policy for application",
"operationId": "listApplicationEnvs",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListApplicationEnvBinding"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "creating an application environment ",
"operationId": "createApplicationEnv",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateApplicationEnvbindingRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EnvBinding"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/envs/{envName}": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "set application differences in the specified environment",
"operationId": "updateApplicationEnv",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the envBinding ",
"name": "envName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.PutApplicationEnvBindingRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EnvBinding"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "delete an application environment ",
"operationId": "deleteApplicationEnv",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the envBinding ",
"name": "envName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/envs/{envName}/recycle": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "get application status",
"operationId": "recycleApplicationEnv",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the application envbinding",
"name": "envName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/envs/{envName}/status": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "get application status",
"operationId": "getApplicationStatus",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the application envbinding",
"name": "envName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationStatusResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/policies": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "list policy for application",
"operationId": "listApplicationPolicies",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListApplicationPolicy"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "create policy for application",
"operationId": "createApplicationPolicy",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreatePolicyRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.PolicyBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/policies/{policyName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "detail policy for application",
"operationId": "detailApplicationPolicy",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the application policy",
"name": "policyName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.DetailPolicyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "update policy for application",
"operationId": "updateApplicationPolicy",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the application policy",
"name": "policyName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdatePolicyRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.DetailPolicyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "detail policy for application",
"operationId": "deleteApplicationPolicy",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the application policy",
"name": "policyName",
"in": "path",
"required": true
},
{
"type": "boolean",
"description": "Force delete the policy and all references",
"name": "force",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/records": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "list application records",
"operationId": "listApplicationRecords",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/reset": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "reset application to latest revision",
"operationId": "resetAppToLatestRevision",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.AppResetResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/revisions": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "list revisions for application",
"operationId": "listApplicationRevisions",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "query identifier of the env",
"name": "envName",
"in": "query"
},
{
"type": "string",
"description": "query identifier of the status",
"name": "status",
"in": "query"
},
{
"type": "integer",
"description": "query the page number",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "query the page size number",
"name": "pageSize",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListRevisionsResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/revisions/{revision}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "detail revision for application",
"operationId": "detailApplicationRevision",
"parameters": [
{
"type": "string",
"description": "identifier of the application",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the application revision",
"name": "revision",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.DetailRevisionResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/statistics": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "detail one application ",
"operationId": "applicationStatistics",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationStatisticsResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/template": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "create one application template",
"operationId": "publishApplicationTemplate",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateApplicationTemplateRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationTemplateBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/triggers": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "list application triggers",
"operationId": "listApplicationTriggers",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListApplicationTriggerResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "create one application trigger",
"operationId": "createApplicationTrigger",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateApplicationTriggerRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationTriggerBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/triggers/{token}": {
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "delete one application trigger",
"operationId": "deleteApplicationTrigger",
"parameters": [
{
"type": "string",
"description": "identifier of the application ",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the trigger",
"name": "token",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/workflows": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "list application workflow",
"operationId": "listApplicationWorkflows",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "create application workflow",
"operationId": "createOrUpdateApplicationWorkflow",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateWorkflowRequest"
}
},
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"400": {
"description": "create failure",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/applications/{appName}/workflows/{workflowName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "detail application workflow",
"operationId": "detailWorkflow",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workfloc.",
"name": "workflowName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "update application workflow config",
"operationId": "updateWorkflow",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow",
"name": "workflowName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateWorkflowRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "deletet workflow",
"operationId": "deleteWorkflow",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow",
"name": "workflowName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/applications/{appName}/workflows/{workflowName}/records": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "query application workflow execution record",
"operationId": "listWorkflowRecords",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow",
"name": "workflowName",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "query the page number",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "query the page size number",
"name": "pageSize",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/applications/{appName}/workflows/{workflowName}/records/{record}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "query application workflow execution record detail",
"operationId": "detailWorkflowRecord",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow",
"name": "workflowName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow record",
"name": "record",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/applications/{appName}/workflows/{workflowName}/records/{record}/resume": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "resume suspend workflow record",
"operationId": "resumeWorkflowRecord",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow",
"name": "workflowName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow record",
"name": "record",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/workflows/{workflowName}/records/{record}/rollback": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "rollback suspend application record",
"operationId": "rollbackWorkflowRecord",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow",
"name": "workflowName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow record",
"name": "record",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the rollback revision",
"name": "rollbackVersion",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/applications/{appName}/workflows/{workflowName}/records/{record}/terminate": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"application"
],
"summary": "terminate suspend workflow record",
"operationId": "terminateWorkflowRecord",
"parameters": [
{
"type": "string",
"description": "identifier of the application.",
"name": "appName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow",
"name": "workflowName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the workflow record",
"name": "record",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/auth/dex_config": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"authentication"
],
"summary": "get Dex config",
"operationId": "getDexConfig",
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/v1.DexConfigResponse"
}
},
"400": {
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/auth/login": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"authentication"
],
"summary": "handle login request",
"operationId": "login",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.LoginRequest"
}
}
],
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/v1.LoginResponse"
}
},
"400": {
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/auth/login_type": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"authentication"
],
"summary": "get login type",
"operationId": "getLoginType",
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/v1.GetLoginTypeResponse"
}
},
"400": {
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/auth/refresh_token": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"authentication"
],
"summary": "refresh token",
"operationId": "refreshToken",
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/v1.RefreshTokenResponse"
}
},
"400": {
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/auth/user_info": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"authentication"
],
"summary": "get login user detail info",
"operationId": "getLoginUserInfo",
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/v1.LoginUserInfoResponse"
}
},
"400": {
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/cloudshell": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cloudshell"
],
"summary": "prepare the user's cloud shell environment",
"operationId": "prepareCloudShell",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cloudshell"
],
"summary": "destroy the user's cloud shell environment",
"operationId": "destroyCloudShell",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/clusters": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "list all clusters",
"operationId": "listKubeClusters",
"parameters": [
{
"type": "string",
"description": "Fuzzy search based on name or description",
"name": "query",
"in": "query"
},
{
"type": "integer",
"default": 0,
"description": "Page for paging",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 20,
"description": "PageSize for paging",
"name": "pageSize",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "create cluster",
"operationId": "createKubeCluster",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateClusterRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ClusterBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/clusters/cloud_clusters/{provider}": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "list cloud clusters",
"operationId": "listCloudClusters",
"parameters": [
{
"type": "string",
"description": "identifier of the cloud provider",
"name": "provider",
"in": "path",
"required": true
},
{
"type": "integer",
"default": 0,
"description": "Page for paging",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 20,
"description": "PageSize for paging",
"name": "pageSize",
"in": "query"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.AccessKeyRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListCloudClusterResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/clusters/cloud_clusters/{provider}/connect": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "create cluster from cloud cluster",
"operationId": "connectCloudCluster",
"parameters": [
{
"type": "string",
"description": "identifier of the cloud provider",
"name": "provider",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.ConnectCloudClusterRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ClusterBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/clusters/cloud_clusters/{provider}/create": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "create cloud cluster",
"operationId": "createCloudCluster",
"parameters": [
{
"type": "string",
"description": "identifier of the cloud provider",
"name": "provider",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateCloudClusterRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.CreateCloudClusterResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/clusters/cloud_clusters/{provider}/creation": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "list cloud cluster creation",
"operationId": "listCloudClusterCreation",
"parameters": [
{
"type": "string",
"description": "identifier of the cloud provider",
"name": "provider",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListCloudClusterCreationResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/clusters/cloud_clusters/{provider}/creation/{cloudClusterName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "check cloud cluster create status",
"operationId": "getCloudClusterCreationStatus",
"parameters": [
{
"type": "string",
"description": "identifier of the cloud provider",
"name": "provider",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier for cloud cluster which is creating",
"name": "cloudClusterName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.CreateCloudClusterResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "delete cloud cluster creation",
"operationId": "deleteCloudClusterCreation",
"parameters": [
{
"type": "string",
"description": "identifier of the cloud provider",
"name": "provider",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier for cloud cluster which is creating",
"name": "cloudClusterName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.CreateCloudClusterResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/clusters/{clusterName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "detail cluster info",
"operationId": "getKubeCluster",
"parameters": [
{
"type": "string",
"description": "identifier of the cluster",
"name": "clusterName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.DetailClusterResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "modify cluster",
"operationId": "modifyKubeCluster",
"parameters": [
{
"type": "string",
"description": "identifier of the cluster",
"name": "clusterName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateClusterRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ClusterBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "delete cluster",
"operationId": "deleteKubeCluster",
"parameters": [
{
"type": "string",
"description": "identifier of the cluster",
"name": "clusterName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ClusterBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/clusters/{clusterName}/namespaces": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cluster"
],
"summary": "create namespace in cluster",
"operationId": "createNamespace",
"parameters": [
{
"type": "string",
"description": "name of the target cluster",
"name": "clusterName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateClusterNamespaceRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.CreateClusterNamespaceResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/config_templates": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"config"
],
"summary": "List all config templates from the system namespace",
"operationId": "listConfigTemplates",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListConfigTemplateResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/config_templates/{templateName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"config"
],
"summary": "Detail a template",
"operationId": "getConfigTemplate",
"parameters": [
{
"type": "string",
"description": "identifier of the config template",
"name": "templateName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the namespace",
"name": "namespace",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ConfigTemplateDetail"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/configs": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"config"
],
"summary": "list all configs that belong to the system scope",
"operationId": "getConfigs",
"parameters": [
{
"type": "string",
"description": "the name of the template",
"name": "template",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListConfigResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"config"
],
"summary": "create or update a config",
"operationId": "createConfig",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateConfigRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.Config"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/configs/{configName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"config"
],
"summary": "detail a config",
"operationId": "getConfig",
"parameters": [
{
"type": "string",
"description": "identifier of the config",
"name": "configName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/*v1.Config"
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"config"
],
"summary": "update a config",
"operationId": "updateConfig",
"parameters": [
{
"type": "string",
"description": "identifier of the config",
"name": "configName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/*v1.UpdateConfigRequest"
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"config"
],
"summary": "delete a config",
"operationId": "deleteConfig",
"parameters": [
{
"type": "string",
"description": "identifier of the config",
"name": "configName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/definitions": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"definition"
],
"summary": "list all definitions",
"operationId": "listDefinitions",
"parameters": [
{
"enum": [
"component",
"trait",
"workflowstep"
],
"type": "string",
"description": "query the definition type",
"name": "type",
"in": "query",
"required": true
},
{
"type": "boolean",
"default": false,
"description": "query all definitions include hidden in UI",
"name": "queryAll",
"in": "query"
},
{
"type": "string",
"description": "if specified, query the trait definition applied to the workload",
"name": "appliedWorkload",
"in": "query"
},
{
"type": "string",
"description": "query by which addon created the definition",
"name": "ownerAddon",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/definitions/{definitionName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"definition"
],
"summary": "Detail a definition",
"operationId": "detailDefinition",
"parameters": [
{
"type": "string",
"description": "identifier of the definition",
"name": "definitionName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "query the definition type",
"name": "type",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/definitions/{definitionName}/status": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"definition"
],
"summary": "Update the status for a definition",
"operationId": "updateDefinitionStatus",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateDefinitionStatusRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/definitions/{definitionName}/uischema": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"definition"
],
"summary": "Update the UI schema for a definition",
"operationId": "updateUISchema",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateUISchemaRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/enabled_addon": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"addon"
],
"summary": "list all enabled addons",
"operationId": "list",
"parameters": [
{
"type": "string",
"description": "filter addons from given registry",
"name": "registry",
"in": "query"
},
{
"type": "string",
"description": "Fuzzy search based on name and description.",
"name": "query",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListEnabledAddonResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/envs": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"env"
],
"summary": "list all envs",
"operationId": "envlist",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListEnvResponse"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"env"
],
"summary": "create an env",
"operationId": "envcreate",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateEnvRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.Env"
}
}
}
}
},
"/api/v1/envs/{envName}": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"env"
],
"summary": "update an env",
"operationId": "envupdate",
"parameters": [
{
"type": "string",
"description": "identifier of the environment",
"name": "envName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateEnvRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.Env"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"env"
],
"summary": "delete one env",
"operationId": "envdelete",
"parameters": [
{
"type": "string",
"description": "identifier of the environment",
"name": "envName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/payload_types": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"payload_types"
],
"summary": "list application trigger payload types",
"operationId": "ListPayloadTypes",
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/permissions": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"rbac"
],
"summary": "list all platform level perm policies",
"operationId": "listPlatformPermissions",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PermissionBase"
}
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"rbac"
],
"summary": "create the platform perm policy",
"operationId": "createPlatformPermission",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreatePermissionRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.PermissionBase"
}
}
}
}
},
"/api/v1/permissions/{permissionName}": {
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"rbac"
],
"summary": "delete a platform perm policy",
"operationId": "deletePlatformPermission",
"parameters": [
{
"type": "string",
"description": "identifier of the permission",
"name": "permissionName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
}
}
}
},
"/api/v1/projects": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "list all projects",
"operationId": "listprojects",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListProjectResponse"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "create a project",
"operationId": "createproject",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateProjectRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ProjectBase"
}
}
}
}
},
"/api/v1/projects/pipelines": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "list pipelines",
"operationId": "listPipelines",
"parameters": [
{
"type": "string",
"description": "Fuzzy search based on name or description",
"name": "query",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListPipelineResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "detail a project",
"operationId": "detailProject",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ProjectBase"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "update a project",
"operationId": "updateProject",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateProjectRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ProjectBase"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "delete a project",
"operationId": "deleteProject",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
}
}
}
},
"/api/v1/projects/{projectName}/config_templates": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "get the templates which are in a project",
"operationId": "getConfigTemplates",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the namespace of the template",
"name": "namespace",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListConfigTemplateResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/config_templates/{templateName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "Detail a template",
"operationId": "getConfigTemplate",
"parameters": [
{
"type": "string",
"description": "identifier of the config template",
"name": "templateName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the namespace",
"name": "namespace",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ConfigTemplateDetail"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/configs": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "get configs which are in a project",
"operationId": "getConfigs",
"parameters": [
{
"type": "string",
"description": "the template name",
"name": "template",
"in": "query"
},
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListConfigResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "create a config in a project",
"operationId": "createConfig",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateConfigRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.Config"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/configs/{configName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "detail a config in a project",
"operationId": "detailConfig",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the config",
"name": "configName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateConfigRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.Config"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "update a config in a project",
"operationId": "updateConfig",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the config",
"name": "configName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateConfigRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.Config"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "delete a config from a project",
"operationId": "deleteConfig",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the config",
"name": "configName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/distributions": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "list the distribution jobs of the config",
"operationId": "listDistributions",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListConfigDistributionResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "apply the distribution job of the config",
"operationId": "applyDistribution",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateConfigDistributionRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/distributions/{distributionName}": {
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "delete a distribution job of the config",
"operationId": "deleteDistribution",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the distribution",
"name": "distributionName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/permissions": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "list all project level perm policies",
"operationId": "listProjectPermissions",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PermissionBase"
}
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "create a project level perm policy",
"operationId": "createProjectPermission",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PermissionBase"
}
}
}
}
}
},
"/api/v1/projects/{projectName}/permissions/{permissionName}": {
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "delete a project level perm policy",
"operationId": "deleteProjectPermission",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the permission",
"name": "permissionName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PermissionBase"
}
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "create pipeline",
"operationId": "createPipeline",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreatePipelineRequest"
}
},
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.PipelineBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "get pipeline",
"operationId": "getPipeline",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.GetPipelineRequest"
}
},
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.GetPipelineResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "update pipeline",
"operationId": "updatePipeline",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdatePipelineRequest"
}
},
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.PipelineBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "delete pipeline",
"operationId": "deletePipeline",
"parameters": [
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.PipelineMetaResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}/contexts": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "list pipeline context values",
"operationId": "listContextValues",
"parameters": [
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListContextValueResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "create pipeline context values",
"operationId": "createContextValue",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateContextValuesRequest"
}
},
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.Context"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}/contexts/{contextName}": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "update pipeline context value",
"operationId": "updateContextValue",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateContextValuesRequest"
}
},
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline context name",
"name": "contextName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.Context"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "delete pipeline context value",
"operationId": "deleteContextValue",
"parameters": [
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline context name",
"name": "contextName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ContextNameResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}/run": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "run pipeline",
"operationId": "runPipeline",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.RunPipelineRequest"
}
},
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.PipelineRunMeta"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}/runs": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "list pipeline runs",
"operationId": "listPipelineRuns",
"parameters": [
{
"type": "string",
"description": "query identifier of the status",
"name": "status",
"in": "query"
},
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListPipelineRunResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}/runs/{runName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "get pipeline run",
"operationId": "getPipelineRun",
"parameters": [
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline run name",
"name": "runName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.PipelineRunBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "delete pipeline run",
"operationId": "deletePipelineRun",
"parameters": [
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline run name",
"name": "runName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.PipelineRunMeta"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}/runs/{runName}/log": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "get pipeline run log",
"operationId": "getPipelineRunLog",
"parameters": [
{
"type": "string",
"description": "query by specific step name",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline run name",
"name": "runName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.GetPipelineRunLogResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}/runs/{runName}/output": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "get pipeline run output",
"operationId": "getPipelineRunOutput",
"parameters": [
{
"type": "string",
"description": "query by specific id",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline run name",
"name": "runName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.GetPipelineRunOutputResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}/runs/{runName}/status": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "get pipeline run status",
"operationId": "getPipelineRunStatus",
"parameters": [
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline run name",
"name": "runName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1alpha1.WorkflowRunStatus"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/pipelines/{pipelineName}/runs/{runName}/stop": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"pipeline"
],
"summary": "stop pipeline run",
"operationId": "stopPipeline",
"parameters": [
{
"type": "string",
"description": "project name",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline name",
"name": "pipelineName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pipeline run name",
"name": "runName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.PipelineRunMeta"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/providers": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "get providers which are in a project",
"operationId": "getProviders",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListTerraformProviderResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/projects/{projectName}/roles": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "list all project level roles",
"operationId": "listProjectRoles",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListRolesResponse"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "create project level role",
"operationId": "createProjectRole",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateRoleRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.RoleBase"
}
}
}
}
},
"/api/v1/projects/{projectName}/roles/{roleName}": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "update project level role",
"operationId": "updateProjectRole",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the project role",
"name": "roleName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateRoleRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.RoleBase"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "delete project level role",
"operationId": "deleteProjectRole",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the project role",
"name": "roleName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
}
}
}
},
"/api/v1/projects/{projectName}/targets": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "get targets list belong to a project",
"operationId": "listProjectTargets",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
}
}
}
},
"/api/v1/projects/{projectName}/users": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "list all users belong to a project",
"operationId": "listProjectUser",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListProjectUsersResponse"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "add a user to a project",
"operationId": "createProjectUser",
"parameters": [
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.AddProjectUserRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ProjectUserBase"
}
}
}
}
},
"/api/v1/projects/{projectName}/users/{userName}": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "add a user to a project",
"operationId": "updateProjectUser",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateProjectUserRequest"
}
},
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the project user",
"name": "userName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ProjectUserBase"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"project"
],
"summary": "delete a user from a project",
"operationId": "deleteProjectUser",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateProjectUserRequest"
}
},
{
"type": "string",
"description": "identifier of the project",
"name": "projectName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the project user",
"name": "userName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
}
}
}
},
"/api/v1/query": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"velaQL"
],
"summary": "use velaQL to query resource status",
"operationId": "queryView",
"parameters": [
{
"type": "string",
"description": "velaql query statement",
"name": "velaql",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.VelaQLViewResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/repository/chart_repos": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"repository",
"helm"
],
"summary": "list chart repo",
"operationId": "listRepo",
"parameters": [
{
"type": "string",
"description": "the config project",
"name": "project",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/repository/charts": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"repository",
"helm"
],
"summary": "list charts",
"operationId": "listCharts",
"parameters": [
{
"type": "string",
"description": "helm repository url",
"name": "repoUrl",
"in": "query"
},
{
"type": "string",
"description": "secret of the repo",
"name": "secretName",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/repository/charts/{chart}/versions": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"repository",
"helm"
],
"summary": "list versions",
"operationId": "listVersions",
"parameters": [
{
"type": "string",
"description": "helm repository url",
"name": "repoUrl",
"in": "query"
},
{
"type": "string",
"description": "secret of the repo",
"name": "secretName",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ChartVersionListResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/repository/charts/{chart}/versions/{version}/values": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"repository",
"helm"
],
"summary": "get chart value",
"operationId": "chartValues",
"parameters": [
{
"type": "string",
"description": "helm repository url",
"name": "repoUrl",
"in": "query"
},
{
"type": "string",
"description": "secret of the repo",
"name": "secretName",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/map[string]interface%20%7B%7D"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/repository/image/info": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"repository",
"helm"
],
"summary": "get the oci repos",
"operationId": "getImageInfo",
"parameters": [
{
"type": "string",
"description": "the config project",
"name": "project",
"in": "query",
"required": true
},
{
"type": "string",
"description": "the image name",
"name": "name",
"in": "query",
"required": true
},
{
"type": "string",
"description": "the secret name of the image repository",
"name": "secretName",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ImageInfo"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/repository/image/repos": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"repository",
"helm"
],
"summary": "get the oci repos",
"operationId": "getImageRepos",
"parameters": [
{
"type": "string",
"description": "the config project",
"name": "project",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListImageRegistryResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/roles": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"rbac"
],
"summary": "list all platform level roles",
"operationId": "listPlatformRoles",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListRolesResponse"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"rbac"
],
"summary": "create platform level role",
"operationId": "createPlatformRole",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateRoleRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.RoleBase"
}
}
}
}
},
"/api/v1/roles/{roleName}": {
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"rbac"
],
"summary": "update platform level role",
"operationId": "updatePlatformRole",
"parameters": [
{
"type": "string",
"description": "identifier of the role",
"name": "roleName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateRoleRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.RoleBase"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"rbac"
],
"summary": "update platform level role",
"operationId": "deletePlatformRole",
"parameters": [
{
"type": "string",
"description": "identifier of the role",
"name": "roleName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
}
}
}
},
"/api/v1/system_info": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"systemInfo"
],
"operationId": "getSystemInfo",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SystemInfoResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"systemInfo"
],
"operationId": "updateSystemInfo",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.SystemInfoRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SystemInfoResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/targets": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"Target"
],
"summary": "list Target",
"operationId": "listTargets",
"parameters": [
{
"type": "integer",
"description": "Page for paging",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "PageSize for paging",
"name": "pageSize",
"in": "query"
},
{
"type": "string",
"description": "list targets by project name",
"name": "project",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"Target"
],
"summary": "create Target",
"operationId": "createTarget",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateTargetRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"400": {
"description": "create failure",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/targets/{targetName}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"Target"
],
"summary": "detail Target",
"operationId": "detailTarget",
"parameters": [
{
"type": "string",
"description": "identifier of the Target.",
"name": "targetName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"Target"
],
"summary": "update application Target config",
"operationId": "updateTarget",
"parameters": [
{
"type": "string",
"description": "identifier of the Target",
"name": "targetName",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateTargetRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"Target"
],
"summary": "deletet Target",
"operationId": "deleteTarget",
"parameters": [
{
"type": "string",
"description": "identifier of the Target",
"name": "targetName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/api/v1/users": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"users"
],
"summary": "list users",
"operationId": "listUser",
"parameters": [
{
"type": "integer",
"description": "query the page number",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "query the page size number",
"name": "pageSize",
"in": "query"
},
{
"type": "string",
"description": "fuzzy search based on name",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "fuzzy search based on email",
"name": "email",
"in": "query"
},
{
"type": "string",
"description": "fuzzy search based on alias",
"name": "alias",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ListUserResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"users"
],
"summary": "create a user",
"operationId": "createUser",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.CreateUserRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.UserBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/users/{username}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"users"
],
"summary": "get user detail",
"operationId": "detailUser",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.DetailUserResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"put": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"users"
],
"summary": "update a user's alias or password",
"operationId": "updateUser",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateUserRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.UserBase"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"users"
],
"summary": "delete a user",
"operationId": "deleteUser",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/users/{username}/disable": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"users"
],
"summary": "disable a user",
"operationId": "disableUser",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/users/{username}/enable": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"users"
],
"summary": "enable a user",
"operationId": "enableUser",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.EmptyResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/api/v1/webhook/{token}": {
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"webhook"
],
"summary": "handle application webhook request",
"operationId": "handleApplicationWebhook",
"parameters": [
{
"type": "string",
"description": "webhook token",
"name": "token",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.HandleApplicationTriggerWebhookRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationDeployResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
}
}
}
},
"/v1/namespaces/{namespace}/applications/{appname}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"oam_application"
],
"summary": "get the specified oam application in the specified namespace",
"operationId": "getApplication",
"parameters": [
{
"type": "string",
"description": "identifier of the namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the oam application",
"name": "appname",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.ApplicationResponse"
}
}
}
},
"post": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"oam_application"
],
"summary": "create or update oam application in the specified namespace",
"operationId": "createOrUpdateApplication",
"parameters": [
{
"type": "string",
"description": "identifier of the namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the oam application",
"name": "appname",
"in": "path",
"required": true
},
{
"type": "string",
"description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
"name": "dryRun",
"in": "query"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.ApplicationRequest"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
},
"delete": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"oam_application"
],
"summary": "create or update oam application in the specified namespace",
"operationId": "deleteOAMApplication",
"parameters": [
{
"type": "string",
"description": "identifier of the namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "identifier of the oam application",
"name": "appname",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/view/cloudshell": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cloudshell"
],
"summary": "prepare the user's cloud shell environment",
"operationId": "proxy",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
},
"/view/cloudshell/{subpath}": {
"get": {
"consumes": [
"application/xml",
"application/json"
],
"produces": [
"application/json",
"application/xml"
],
"tags": [
"cloudshell"
],
"summary": "prepare the user's cloud shell environment",
"operationId": "proxy",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.SimpleResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/bcode.Bcode"
}
},
"500": {
"description": "Bummer, something went wrong"
}
}
}
}
},
"definitions": {
"*v1.ApplicationTriggerBase": {},
"*v1.Config": {},
"*v1.EmptyResponse": {},
"*v1.UpdateConfigRequest": {},
"addon.Dependency": {
"properties": {
"name": {
"type": "string"
}
}
},
"addon.DeployTo": {
"required": [
"disableControlPlane",
"runtimeCluster"
],
"properties": {
"disableControlPlane": {
"type": "boolean"
},
"runtimeCluster": {
"type": "boolean"
},
"runtime_cluster": {
"type": "boolean"
}
}
},
"addon.GitAddonSource": {
"properties": {
"path": {
"type": "string"
},
"token": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"addon.GiteeAddonSource": {
"properties": {
"path": {
"type": "string"
},
"token": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"addon.GitlabAddonSource": {
"properties": {
"path": {
"type": "string"
},
"repo": {
"type": "string"
},
"token": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"addon.HelmSource": {
"properties": {
"insecureSkipTLS": {
"type": "boolean"
},
"password": {
"type": "string"
},
"url": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"addon.Meta": {
"required": [
"name",
"version",
"description",
"icon",
"invisible"
],
"properties": {
"dependencies": {
"type": "array",
"items": {
"$ref": "#/definitions/addon.Dependency"
}
},
"deployTo": {
"$ref": "#/definitions/addon.DeployTo"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"invisible": {
"type": "boolean"
},
"name": {
"type": "string"
},
"needNamespace": {
"type": "array",
"items": {
"type": "string"
}
},
"system": {
"$ref": "#/definitions/addon.SystemRequirements"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"url": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"addon.OSSAddonSource": {
"required": [
"end_point",
"bucket",
"path"
],
"properties": {
"bucket": {
"type": "string"
},
"end_point": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"addon.SystemRequirements": {
"properties": {
"kubernetes": {
"type": "string"
},
"vela": {
"type": "string"
}
}
},
"bcode.Bcode": {
"required": [
"BusinessCode",
"Message"
],
"properties": {
"BusinessCode": {
"type": "integer",
"format": "int32"
},
"Message": {
"type": "string"
}
}
},
"chart.Dependency": {
"required": [
"name",
"repository"
],
"properties": {
"alias": {
"type": "string"
},
"condition": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"import-values": {
"type": "array",
"items": {
"$ref": "#/definitions/chart.Dependency.import-values"
}
},
"name": {
"type": "string"
},
"repository": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"type": "string"
}
}
},
"chart.Dependency.import-values": {},
"chart.Maintainer": {
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"chart.Metadata": {
"properties": {
"annotations": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"apiVersion": {
"type": "string"
},
"appVersion": {
"type": "string"
},
"condition": {
"type": "string"
},
"dependencies": {
"type": "array",
"items": {
"$ref": "#/definitions/chart.Dependency"
}
},
"deprecated": {
"type": "boolean"
},
"description": {
"type": "string"
},
"home": {
"type": "string"
},
"icon": {
"type": "string"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"kubeVersion": {
"type": "string"
},
"maintainers": {
"type": "array",
"items": {
"$ref": "#/definitions/chart.Maintainer"
}
},
"name": {
"type": "string"
},
"sources": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"cloudprovider.CloudCluster": {
"required": [
"provider",
"id",
"name",
"type",
"zone",
"zoneID",
"regionID",
"vpcID",
"labels",
"status",
"apiServerURL",
"dashboardURL"
],
"properties": {
"apiServerURL": {
"type": "string"
},
"dashboardURL": {
"type": "string"
},
"id": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"provider": {
"type": "string"
},
"regionID": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
},
"vpcID": {
"type": "string"
},
"zone": {
"type": "string"
},
"zoneID": {
"type": "string"
}
}
},
"common.AppStatus": {
"properties": {
"appliedResources": {
"type": "array",
"items": {
"$ref": "#/definitions/common.ClusterObjectReference"
}
},
"components": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ObjectReference"
}
},
"conditions": {
"type": "array",
"items": {
"$ref": "#/definitions/condition.Condition"
}
},
"latestRevision": {
"$ref": "#/definitions/common.Revision"
},
"observedGeneration": {
"type": "integer",
"format": "int64"
},
"policy": {
"type": "array",
"items": {
"$ref": "#/definitions/common.PolicyStatus"
}
},
"services": {
"type": "array",
"items": {
"$ref": "#/definitions/common.ApplicationComponentStatus"
}
},
"status": {
"type": "string"
},
"workflow": {
"$ref": "#/definitions/common.WorkflowStatus"
}
}
},
"common.ApplicationComponent": {
"required": [
"name",
"type"
],
"properties": {
"dependsOn": {
"type": "array",
"items": {
"type": "string"
}
},
"externalRevision": {
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.inputItem"
}
},
"name": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.outputItem"
}
},
"properties": {
"type": "string"
},
"scopes": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"traits": {
"type": "array",
"items": {
"$ref": "#/definitions/common.ApplicationTrait"
}
},
"type": {
"type": "string"
}
}
},
"common.ApplicationComponentStatus": {
"required": [
"name",
"healthy"
],
"properties": {
"cluster": {
"type": "string"
},
"env": {
"type": "string"
},
"healthy": {
"type": "boolean"
},
"message": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ObjectReference"
}
},
"traits": {
"type": "array",
"items": {
"$ref": "#/definitions/common.ApplicationTraitStatus"
}
},
"workloadDefinition": {
"$ref": "#/definitions/common.WorkloadGVK"
}
}
},
"common.ApplicationTrait": {
"required": [
"type"
],
"properties": {
"properties": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"common.ApplicationTraitStatus": {
"required": [
"type",
"healthy"
],
"properties": {
"healthy": {
"type": "boolean"
},
"message": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"common.CUE": {
"required": [
"template"
],
"properties": {
"template": {
"type": "string"
}
}
},
"common.ChildResourceKind": {
"required": [
"apiVersion",
"kind"
],
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"selector": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"common.ClusterObjectReference": {
"description": "ObjectReference contains enough information to let you inspect or modify the referred object.",
"properties": {
"apiVersion": {
"description": "API version of the referent.",
"type": "string"
},
"cluster": {
"type": "string"
},
"creator": {
"type": "string"
},
"fieldPath": {
"description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.",
"type": "string"
},
"kind": {
"description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"namespace": {
"description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
"type": "string"
},
"resourceVersion": {
"description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
"type": "string"
},
"uid": {
"description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids",
"type": "string"
}
}
},
"common.DefinitionReference": {
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"common.Helm": {
"required": [
"release",
"repository"
],
"properties": {
"release": {
"type": "string"
},
"repository": {
"type": "string"
}
}
},
"common.Kube": {
"required": [
"template"
],
"properties": {
"parameters": {
"type": "array",
"items": {
"$ref": "#/definitions/common.KubeParameter"
}
},
"template": {
"type": "string"
}
}
},
"common.KubeParameter": {
"required": [
"name",
"type",
"fieldPaths"
],
"properties": {
"description": {
"type": "string"
},
"fieldPaths": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
},
"required": {
"type": "boolean"
},
"type": {
"type": "string"
}
}
},
"common.PolicyStatus": {
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"common.Revision": {
"required": [
"name",
"revision"
],
"properties": {
"name": {
"type": "string"
},
"revision": {
"type": "integer",
"format": "int64"
},
"revisionHash": {
"type": "string"
}
}
},
"common.Schematic": {
"properties": {
"cue": {
"$ref": "#/definitions/common.CUE"
},
"helm": {
"$ref": "#/definitions/common.Helm"
},
"kube": {
"$ref": "#/definitions/common.Kube"
},
"terraform": {
"$ref": "#/definitions/common.Terraform"
}
}
},
"common.Status": {
"properties": {
"customStatus": {
"type": "string"
},
"healthPolicy": {
"type": "string"
}
}
},
"common.Terraform": {
"required": [
"configuration"
],
"properties": {
"configuration": {
"type": "string"
},
"customRegion": {
"type": "string"
},
"deleteResource": {
"type": "boolean"
},
"path": {
"type": "string"
},
"providerRef": {
"$ref": "#/definitions/types.Reference"
},
"type": {
"type": "string"
},
"writeConnectionSecretToRef": {
"$ref": "#/definitions/types.SecretReference"
}
}
},
"common.WorkflowStatus": {
"required": [
"mode",
"suspend",
"terminated",
"finished"
],
"properties": {
"appRevision": {
"type": "string"
},
"contextBackend": {
"$ref": "#/definitions/v1.ObjectReference"
},
"endTime": {
"type": "string"
},
"finished": {
"type": "boolean"
},
"message": {
"type": "string"
},
"mode": {
"type": "string"
},
"startTime": {
"type": "string"
},
"status": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.WorkflowStepStatus"
}
},
"suspend": {
"type": "boolean"
},
"suspendState": {
"type": "string"
},
"terminated": {
"type": "boolean"
}
}
},
"common.WorkloadGVK": {
"required": [
"apiVersion",
"kind"
],
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
}
}
},
"common.WorkloadTypeDescriptor": {
"properties": {
"definition": {
"$ref": "#/definitions/common.WorkloadGVK"
},
"type": {
"type": "string"
}
}
},
"condition.Condition": {
"required": [
"type",
"status",
"lastTransitionTime",
"reason"
],
"properties": {
"lastTransitionTime": {
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"condition.ConditionedStatus": {
"properties": {
"conditions": {
"type": "array",
"items": {
"$ref": "#/definitions/condition.Condition"
}
}
}
},
"config.ClusterTarget": {
"required": [
"clusterName",
"namespace"
],
"properties": {
"clusterName": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"config.ClusterTargetStatus": {
"required": [
"clusterName",
"namespace",
"status",
"application",
"message"
],
"properties": {
"application": {
"$ref": "#/definitions/config.NamespacedName"
},
"clusterName": {
"type": "string"
},
"message": {
"type": "string"
},
"namespace": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"config.Distribution": {
"required": [
"name",
"namespace",
"createdTime",
"configs",
"targets",
"application",
"status"
],
"properties": {
"application": {
"$ref": "#/definitions/types.NamespacedName"
},
"configs": {
"type": "array",
"items": {
"$ref": "#/definitions/config.NamespacedName"
}
},
"createdTime": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"status": {
"$ref": "#/definitions/common.AppStatus"
},
"targets": {
"type": "array",
"items": {
"$ref": "#/definitions/config.ClusterTarget"
}
}
}
},
"config.NamespacedName": {
"required": [
"name",
"namespace"
],
"properties": {
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"map[string]interface {}": {
"type": "object"
},
"model.ApplicationComponent": {
"required": [
"createTime",
"updateTime",
"appPrimaryKey",
"creator",
"name",
"alias",
"type",
"main"
],
"properties": {
"alias": {
"type": "string"
},
"appPrimaryKey": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"creator": {
"type": "string"
},
"dependsOn": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"externalRevision": {
"type": "string"
},
"icon": {
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.inputItem"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"main": {
"type": "boolean"
},
"name": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.outputItem"
}
},
"properties": {
"$ref": "#/definitions/model.JSONStruct"
},
"scopes": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"traits": {
"type": "array",
"items": {
"$ref": "#/definitions/model.ApplicationTrait"
}
},
"type": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"workloadType": {
"$ref": "#/definitions/common.WorkloadTypeDescriptor"
}
}
},
"model.ApplicationRevision": {
"required": [
"createTime",
"updateTime",
"appPrimaryKey",
"version",
"revisionCRName",
"status",
"reason",
"deployUser",
"note",
"triggerType",
"workflowName",
"envName"
],
"properties": {
"appPrimaryKey": {
"type": "string"
},
"applyAppConfig": {
"type": "string"
},
"codeInfo": {
"$ref": "#/definitions/model.CodeInfo"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"deployUser": {
"type": "string"
},
"envName": {
"type": "string"
},
"imageInfo": {
"$ref": "#/definitions/model.ImageInfo"
},
"note": {
"type": "string"
},
"reason": {
"type": "string"
},
"revisionCRName": {
"type": "string"
},
"rollbackVersion": {
"type": "string"
},
"status": {
"type": "string"
},
"triggerType": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"version": {
"type": "string"
},
"workflowName": {
"type": "string"
}
}
},
"model.ApplicationTrait": {
"required": [
"alias",
"description",
"type",
"createTime",
"updateTime"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"properties": {
"$ref": "#/definitions/model.JSONStruct"
},
"type": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"model.BaseModel": {
"required": [
"createTime",
"updateTime"
],
"properties": {
"createTime": {
"type": "string",
"format": "date-time"
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"model.Cluster": {
"required": [
"updateTime",
"createTime",
"name",
"alias",
"description",
"icon",
"labels",
"status",
"reason",
"provider",
"apiServerURL",
"dashboardURL",
"kubeConfig",
"kubeConfigSecret"
],
"properties": {
"alias": {
"type": "string"
},
"apiServerURL": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"dashboardURL": {
"type": "string"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"kubeConfig": {
"type": "string"
},
"kubeConfigSecret": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"provider": {
"$ref": "#/definitions/model.ProviderInfo"
},
"reason": {
"type": "string"
},
"status": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"model.CodeInfo": {
"properties": {
"branch": {
"type": "string"
},
"commit": {
"type": "string"
},
"user": {
"type": "string"
}
}
},
"model.ImageInfo": {
"required": [
"type"
],
"properties": {
"repository": {
"$ref": "#/definitions/model.ImageRepository"
},
"resource": {
"$ref": "#/definitions/model.ImageResource"
},
"type": {
"type": "string"
}
}
},
"model.ImageRepository": {
"required": [
"name",
"namespace",
"fullName",
"type"
],
"properties": {
"createTime": {
"type": "string",
"format": "date-time"
},
"fullName": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"region": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"model.ImageResource": {
"required": [
"digest",
"tag",
"url"
],
"properties": {
"createTime": {
"type": "string",
"format": "date-time"
},
"digest": {
"type": "string"
},
"tag": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"model.JSONStruct": {
"type": "object"
},
"model.ProjectRef": {
"required": [
"name",
"roles"
],
"properties": {
"name": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"model.ProviderInfo": {
"required": [
"provider",
"clusterID",
"labels"
],
"properties": {
"clusterID": {
"type": "string"
},
"clusterName": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"provider": {
"type": "string"
},
"regionID": {
"type": "string"
},
"vpcID": {
"type": "string"
},
"zone": {
"type": "string"
},
"zoneID": {
"type": "string"
}
}
},
"model.Value": {
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"model.WorkflowStepStatus": {
"required": [
"id",
"name",
"alias"
],
"properties": {
"alias": {
"type": "string"
},
"firstExecuteTime": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "string"
},
"lastExecuteTime": {
"type": "string",
"format": "date-time"
},
"message": {
"type": "string"
},
"name": {
"type": "string"
},
"phase": {
"type": "string"
},
"reason": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"repo.ChartVersion": {
"required": [
"Metadata",
"urls"
],
"properties": {
"Metadata": {
"$ref": "#/definitions/chart.Metadata"
},
"checksum": {
"type": "string"
},
"created": {
"type": "string",
"format": "date-time"
},
"digest": {
"type": "string"
},
"engine": {
"type": "string"
},
"removed": {
"type": "boolean"
},
"tillerVersion": {
"type": "string"
},
"url": {
"type": "string"
},
"urls": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"types.NamespacedName": {
"required": [
"Namespace",
"Name"
],
"properties": {
"Name": {
"type": "string"
},
"Namespace": {
"type": "string"
}
}
},
"types.Reference": {
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"types.SecretReference": {
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"utils.Condition": {
"required": [
"jsonKey",
"value"
],
"properties": {
"action": {
"type": "string"
},
"jsonKey": {
"type": "string"
},
"op": {
"type": "string"
},
"value": {
"$ref": "#/definitions/utils.Condition.value"
}
}
},
"utils.Condition.value": {},
"utils.GroupOption": {
"required": [
"label",
"keys"
],
"properties": {
"keys": {
"type": "array",
"items": {
"type": "string"
}
},
"label": {
"type": "string"
}
}
},
"utils.Option": {
"required": [
"label",
"value"
],
"properties": {
"label": {
"type": "string"
},
"value": {
"$ref": "#/definitions/utils.Option.value"
}
}
},
"utils.Option.value": {},
"utils.Style": {
"required": [
"colSpan"
],
"properties": {
"colSpan": {
"type": "integer",
"format": "int32"
}
}
},
"utils.UIParameter": {
"required": [
"sort",
"label",
"description",
"jsonKey",
"uiType"
],
"properties": {
"additional": {
"type": "boolean"
},
"additionalParameter": {
"$ref": "#/definitions/utils.UIParameter"
},
"conditions": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.Condition"
}
},
"description": {
"type": "string"
},
"disable": {
"type": "boolean"
},
"jsonKey": {
"type": "string"
},
"label": {
"type": "string"
},
"sort": {
"type": "integer",
"format": "integer"
},
"style": {
"$ref": "#/definitions/utils.Style"
},
"subParameterGroupOption": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.GroupOption"
}
},
"subParameters": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.UIParameter"
}
},
"uiType": {
"type": "string"
},
"validate": {
"$ref": "#/definitions/utils.Validate"
}
}
},
"utils.Validate": {
"required": [
"immutable"
],
"properties": {
"defaultValue": {
"$ref": "#/definitions/utils.Validate.defaultValue"
},
"immutable": {
"type": "boolean"
},
"max": {
"type": "number",
"format": "double"
},
"maxLength": {
"type": "integer",
"format": "integer"
},
"min": {
"type": "number",
"format": "double"
},
"minLength": {
"type": "integer",
"format": "integer"
},
"options": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.Option"
}
},
"pattern": {
"type": "string"
},
"required": {
"type": "boolean"
}
}
},
"utils.Validate.defaultValue": {},
"v1.AccessKeyRequest": {
"required": [
"accessKeyID",
"accessKeySecret"
],
"properties": {
"accessKeyID": {
"type": "string"
},
"accessKeySecret": {
"type": "string"
}
}
},
"v1.AddProjectUserRequest": {
"required": [
"userName",
"userRoles"
],
"properties": {
"userName": {
"type": "string"
},
"userRoles": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.AddonBaseStatus": {
"required": [
"name",
"phase"
],
"properties": {
"name": {
"type": "string"
},
"phase": {
"type": "string"
}
}
},
"v1.AddonDefinition": {
"properties": {
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1.AddonInfo": {
"required": [
"Meta",
"registryName"
],
"properties": {
"Meta": {
"$ref": "#/definitions/addon.Meta"
},
"registryName": {
"type": "string"
}
}
},
"v1.AddonRegistry": {
"required": [
"name"
],
"properties": {
"git": {
"$ref": "#/definitions/addon.GitAddonSource"
},
"gitee": {
"$ref": "#/definitions/addon.GiteeAddonSource"
},
"gitlab": {
"$ref": "#/definitions/addon.GitlabAddonSource"
},
"helm": {
"$ref": "#/definitions/addon.HelmSource"
},
"name": {
"type": "string"
},
"oss": {
"$ref": "#/definitions/addon.OSSAddonSource"
}
}
},
"v1.AddonStatusResponse": {
"required": [
"name",
"phase",
"args"
],
"properties": {
"allClusters": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.NameAlias"
}
},
"appStatus": {
"$ref": "#/definitions/common.AppStatus"
},
"args": {
"type": "object"
},
"clusters": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/v1.AddonStatusResponse.clusters"
}
},
"enabling_progress": {
"$ref": "#/definitions/v1.EnablingProgress"
},
"installedVersion": {
"type": "string"
},
"name": {
"type": "string"
},
"phase": {
"type": "string"
}
}
},
"v1.AddonStatusResponse.clusters": {
"type": "object"
},
"v1.AppCompareReq": {
"properties": {
"compareLatestWithRunning": {
"$ref": "#/definitions/v1.CompareLatestWithRunningOption"
},
"compareRevisionWithLatest": {
"$ref": "#/definitions/v1.CompareRevisionWithLatestOption"
},
"compareRevisionWithRunning": {
"$ref": "#/definitions/v1.CompareRevisionWithRunningOption"
}
}
},
"v1.AppCompareResponse": {
"required": [
"isDiff",
"diffReport",
"baseAppYAML",
"targetAppYAML"
],
"properties": {
"baseAppYAML": {
"type": "string"
},
"diffReport": {
"type": "string"
},
"isDiff": {
"type": "boolean"
},
"targetAppYAML": {
"type": "string"
}
}
},
"v1.AppDryRunReq": {
"required": [
"dryRunType",
"env",
"workflow",
"version"
],
"properties": {
"dryRunType": {
"type": "string"
},
"env": {
"type": "string"
},
"version": {
"type": "string"
},
"workflow": {
"type": "string"
}
}
},
"v1.AppDryRunResponse": {
"required": [
"yaml",
"success"
],
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
},
"yaml": {
"type": "string"
}
}
},
"v1.AppResetResponse": {
"required": [
"isReset"
],
"properties": {
"isReset": {
"type": "boolean"
}
}
},
"v1.ApplicationBase": {
"required": [
"name",
"alias",
"project",
"description",
"createTime",
"updateTime",
"icon"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"project": {
"$ref": "#/definitions/v1.ProjectBase"
},
"readOnly": {
"type": "boolean"
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.ApplicationDeployRequest": {
"required": [
"workflowName",
"note",
"triggerType",
"force"
],
"properties": {
"codeInfo": {
"$ref": "#/definitions/model.CodeInfo"
},
"force": {
"type": "boolean"
},
"imageInfo": {
"$ref": "#/definitions/model.ImageInfo"
},
"note": {
"type": "string"
},
"triggerType": {
"type": "string"
},
"workflowName": {
"type": "string"
}
}
},
"v1.ApplicationDeployResponse": {
"required": [
"note",
"triggerType",
"createTime",
"version",
"status",
"envName"
],
"properties": {
"codeInfo": {
"$ref": "#/definitions/model.CodeInfo"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"deployUser": {
"$ref": "#/definitions/v1.NameAlias"
},
"envName": {
"type": "string"
},
"imageInfo": {
"$ref": "#/definitions/model.ImageInfo"
},
"note": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"type": "string"
},
"triggerType": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"v1.ApplicationRequest": {
"required": [
"components"
],
"properties": {
"components": {
"type": "array",
"items": {
"$ref": "#/definitions/common.ApplicationComponent"
}
},
"policies": {
"type": "array",
"items": {
"$ref": "#/definitions/v1beta1.AppPolicy"
}
},
"workflow": {
"$ref": "#/definitions/v1beta1.Workflow"
}
}
},
"v1.ApplicationResourceInfo": {
"required": [
"componentNum"
],
"properties": {
"componentNum": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ApplicationResponse": {
"required": [
"apiVersion",
"kind",
"spec",
"status"
],
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"spec": {
"$ref": "#/definitions/v1beta1.ApplicationSpec"
},
"status": {
"$ref": "#/definitions/common.AppStatus"
}
}
},
"v1.ApplicationRevisionBase": {
"required": [
"createTime",
"version",
"status",
"note",
"envName",
"triggerType"
],
"properties": {
"codeInfo": {
"$ref": "#/definitions/model.CodeInfo"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"deployUser": {
"$ref": "#/definitions/v1.NameAlias"
},
"envName": {
"type": "string"
},
"imageInfo": {
"$ref": "#/definitions/model.ImageInfo"
},
"note": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"type": "string"
},
"triggerType": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"v1.ApplicationStatisticsResponse": {
"required": [
"envCount",
"targetCount",
"revisionCount",
"workflowCount"
],
"properties": {
"envCount": {
"type": "integer",
"format": "int64"
},
"revisionCount": {
"type": "integer",
"format": "int64"
},
"targetCount": {
"type": "integer",
"format": "int64"
},
"workflowCount": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ApplicationStatusResponse": {
"required": [
"envName",
"status"
],
"properties": {
"envName": {
"type": "string"
},
"status": {
"$ref": "#/definitions/common.AppStatus"
}
}
},
"v1.ApplicationTemplateBase": {
"required": [
"templateName",
"createTime",
"updateTime"
],
"properties": {
"createTime": {
"type": "string",
"format": "date-time"
},
"templateName": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"versions": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ApplicationTemplateVersion"
}
}
}
},
"v1.ApplicationTemplateVersion": {
"required": [
"version",
"description",
"createUser",
"createTime",
"updateTime"
],
"properties": {
"createTime": {
"type": "string",
"format": "date-time"
},
"createUser": {
"type": "string"
},
"description": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"version": {
"type": "string"
}
}
},
"v1.ApplicationTrait": {
"required": [
"type",
"properties",
"createTime",
"updateTime"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"properties": {
"$ref": "#/definitions/model.JSONStruct"
},
"type": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.ApplicationTriggerBase": {
"required": [
"name",
"workflowName",
"type",
"payloadType",
"token",
"createTime",
"updateTime"
],
"properties": {
"alias": {
"type": "string"
},
"componentName": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"payloadType": {
"type": "string"
},
"token": {
"type": "string"
},
"type": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"workflowName": {
"type": "string"
}
}
},
"v1.ChartVersionListResponse": {
"required": [
"versions"
],
"properties": {
"versions": {
"type": "array",
"items": {
"$ref": "#/definitions/repo.ChartVersion"
}
}
}
},
"v1.CloudShellPrepareResponse": {
"required": [
"status",
"message"
],
"properties": {
"message": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"v1.ClusterBase": {
"required": [
"name",
"providerInfo",
"apiServerURL",
"dashboardURL",
"status",
"reason"
],
"properties": {
"alias": {
"type": "string"
},
"apiServerURL": {
"type": "string"
},
"dashboardURL": {
"type": "string"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"providerInfo": {
"$ref": "#/definitions/model.ProviderInfo"
},
"reason": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"v1.ClusterResourceInfo": {
"required": [
"workerNumber",
"masterNumber",
"memoryCapacity",
"cpuCapacity",
"podCapacity",
"memoryUsed",
"cpuUsed",
"podUsed"
],
"properties": {
"cpuCapacity": {
"type": "integer",
"format": "int64"
},
"cpuUsed": {
"type": "integer",
"format": "int64"
},
"gpuCapacity": {
"type": "integer",
"format": "int64"
},
"gpuUsed": {
"type": "integer",
"format": "int64"
},
"masterNumber": {
"type": "integer",
"format": "int32"
},
"memoryCapacity": {
"type": "integer",
"format": "int64"
},
"memoryUsed": {
"type": "integer",
"format": "int64"
},
"podCapacity": {
"type": "integer",
"format": "int64"
},
"podUsed": {
"type": "integer",
"format": "int64"
},
"storageClassList": {
"type": "array",
"items": {
"type": "string"
}
},
"workerNumber": {
"type": "integer",
"format": "int32"
}
}
},
"v1.ClusterTarget": {
"required": [
"clusterName"
],
"properties": {
"clusterName": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"v1.CompareLatestWithRunningOption": {
"required": [
"env"
],
"properties": {
"env": {
"type": "string"
}
}
},
"v1.CompareRevisionWithLatestOption": {
"properties": {
"revision": {
"type": "string"
}
}
},
"v1.CompareRevisionWithRunningOption": {
"properties": {
"revision": {
"type": "string"
}
}
},
"v1.ComponentBase": {
"required": [
"name",
"alias",
"description",
"componentType",
"main",
"dependsOn",
"createTime",
"updateTime",
"traits"
],
"properties": {
"alias": {
"type": "string"
},
"componentType": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"creator": {
"type": "string"
},
"dependsOn": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.inputItem"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"main": {
"type": "boolean"
},
"name": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.outputItem"
}
},
"traits": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ApplicationTrait"
}
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"workloadType": {
"$ref": "#/definitions/common.WorkloadTypeDescriptor"
}
}
},
"v1.ComponentListResponse": {
"required": [
"components"
],
"properties": {
"components": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ComponentBase"
}
}
}
},
"v1.ComponentSelector": {
"required": [
"components"
],
"properties": {
"components": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.Config": {
"properties": {
"ArgsEscaped": {
"type": "boolean"
},
"AttachStderr": {
"type": "boolean"
},
"AttachStdin": {
"type": "boolean"
},
"AttachStdout": {
"type": "boolean"
},
"Cmd": {
"type": "array",
"items": {
"type": "string"
}
},
"Domainname": {
"type": "string"
},
"Entrypoint": {
"type": "array",
"items": {
"type": "string"
}
},
"Env": {
"type": "array",
"items": {
"type": "string"
}
},
"ExposedPorts": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/v1.Config.ExposedPorts"
}
},
"Healthcheck": {
"$ref": "#/definitions/v1.HealthConfig"
},
"Hostname": {
"type": "string"
},
"Image": {
"type": "string"
},
"Labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"MacAddress": {
"type": "string"
},
"NetworkDisabled": {
"type": "boolean"
},
"OnBuild": {
"type": "array",
"items": {
"type": "string"
}
},
"OpenStdin": {
"type": "boolean"
},
"Shell": {
"type": "array",
"items": {
"type": "string"
}
},
"StdinOnce": {
"type": "boolean"
},
"StopSignal": {
"type": "string"
},
"Tty": {
"type": "boolean"
},
"User": {
"type": "string"
},
"Volumes": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/v1.Config.Volumes"
}
},
"WorkingDir": {
"type": "string"
}
}
},
"v1.Config.ExposedPorts": {},
"v1.Config.Volumes": {},
"v1.ConfigFile": {
"required": [
"architecture",
"os",
"rootfs",
"config"
],
"properties": {
"architecture": {
"type": "string"
},
"author": {
"type": "string"
},
"config": {
"$ref": "#/definitions/v1.Config"
},
"container": {
"type": "string"
},
"created": {
"type": "string"
},
"docker_version": {
"type": "string"
},
"history": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.History"
}
},
"os": {
"type": "string"
},
"os.version": {
"type": "string"
},
"rootfs": {
"$ref": "#/definitions/v1.RootFS"
},
"variant": {
"type": "string"
}
}
},
"v1.ConfigTemplate": {
"required": [
"alias",
"name",
"namespace",
"description",
"scope",
"sensitive",
"createTime"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"scope": {
"type": "string"
},
"sensitive": {
"type": "boolean"
}
}
},
"v1.ConfigTemplateDetail": {
"required": [
"alias",
"name",
"namespace",
"description",
"scope",
"sensitive",
"createTime",
"schema",
"uiSchema"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"schema": {
"type": "string"
},
"scope": {
"type": "string"
},
"sensitive": {
"type": "boolean"
},
"uiSchema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.UIParameter"
}
}
}
},
"v1.ConnectCloudClusterRequest": {
"required": [
"accessKeyID",
"accessKeySecret",
"clusterID",
"name",
"icon"
],
"properties": {
"accessKeyID": {
"type": "string"
},
"accessKeySecret": {
"type": "string"
},
"alias": {
"type": "string"
},
"clusterID": {
"type": "string"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
}
}
},
"v1.Context": {
"required": [
"name",
"values"
],
"properties": {
"name": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Value"
}
}
}
},
"v1.ContextNameResponse": {
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
},
"v1.CreateAddonRegistryRequest": {
"required": [
"name"
],
"properties": {
"git": {
"$ref": "#/definitions/addon.GitAddonSource"
},
"gitee": {
"$ref": "#/definitions/addon.GiteeAddonSource"
},
"gitlab": {
"$ref": "#/definitions/addon.GitlabAddonSource"
},
"helm": {
"$ref": "#/definitions/addon.HelmSource"
},
"name": {
"type": "string"
},
"oss": {
"$ref": "#/definitions/addon.OSSAddonSource"
}
}
},
"v1.CreateApplicationEnvbindingRequest": {
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
},
"v1.CreateApplicationRequest": {
"required": [
"name",
"project",
"icon",
"component"
],
"properties": {
"alias": {
"type": "string"
},
"component": {
"$ref": "#/definitions/v1.CreateComponentRequest"
},
"description": {
"type": "string"
},
"envBinding": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.EnvBinding"
}
},
"icon": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"project": {
"type": "string"
}
}
},
"v1.CreateApplicationTemplateRequest": {
"required": [
"templateName",
"version",
"description"
],
"properties": {
"description": {
"type": "string"
},
"templateName": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"v1.CreateApplicationTraitRequest": {
"required": [
"type",
"properties"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"properties": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1.CreateApplicationTriggerRequest": {
"required": [
"name",
"workflowName",
"type",
"payloadType"
],
"properties": {
"alias": {
"type": "string"
},
"componentName": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"payloadType": {
"type": "string"
},
"type": {
"type": "string"
},
"workflowName": {
"type": "string"
}
}
},
"v1.CreateCloudClusterRequest": {
"required": [
"accessKeyID",
"accessKeySecret",
"name",
"zone",
"workerNumber",
"cpuCoresPerWorker",
"memoryPerWorker"
],
"properties": {
"accessKeyID": {
"type": "string"
},
"accessKeySecret": {
"type": "string"
},
"cpuCoresPerWorker": {
"type": "integer",
"format": "int64"
},
"memoryPerWorker": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"workerNumber": {
"type": "integer",
"format": "int32"
},
"zone": {
"type": "string"
}
}
},
"v1.CreateCloudClusterResponse": {
"required": [
"clusterName",
"clusterID",
"status"
],
"properties": {
"clusterID": {
"type": "string"
},
"clusterName": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"v1.CreateClusterNamespaceRequest": {
"required": [
"namespace"
],
"properties": {
"namespace": {
"type": "string"
}
}
},
"v1.CreateClusterNamespaceResponse": {
"required": [
"exists"
],
"properties": {
"exists": {
"type": "boolean"
}
}
},
"v1.CreateClusterRequest": {
"required": [
"name",
"icon"
],
"properties": {
"alias": {
"type": "string"
},
"dashboardURL": {
"type": "string"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"kubeConfig": {
"type": "string"
},
"kubeConfigSecret": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
}
}
},
"v1.CreateComponentRequest": {
"required": [
"name",
"componentType"
],
"properties": {
"alias": {
"type": "string"
},
"componentType": {
"type": "string"
},
"dependsOn": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.inputItem"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.outputItem"
}
},
"properties": {
"type": "string"
},
"traits": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.CreateApplicationTraitRequest"
}
}
}
},
"v1.CreateConfigDistributionRequest": {
"required": [
"name",
"configs",
"targets"
],
"properties": {
"configs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.NamespacedName"
}
},
"name": {
"type": "string"
},
"targets": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ClusterTarget"
}
}
}
},
"v1.CreateConfigRequest": {
"required": [
"name",
"alias",
"description",
"template"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"properties": {
"type": "string"
},
"template": {
"$ref": "#/definitions/v1.NamespacedName"
}
}
},
"v1.CreateContextValuesRequest": {
"required": [
"name",
"values"
],
"properties": {
"name": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Value"
}
}
}
},
"v1.CreateEnvRequest": {
"required": [
"name",
"project",
"namespace"
],
"properties": {
"alias": {
"type": "string"
},
"allowTargetConflict": {
"type": "boolean"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"project": {
"type": "string"
},
"targets": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.CreatePermissionRequest": {
"required": [
"name",
"alias",
"resources",
"actions",
"effect"
],
"properties": {
"actions": {
"type": "array",
"items": {
"type": "string"
}
},
"alias": {
"type": "string"
},
"effect": {
"type": "string"
},
"name": {
"type": "string"
},
"resources": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.CreatePipelineRequest": {
"required": [
"name",
"project",
"spec"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"spec": {
"$ref": "#/definitions/v1alpha1.WorkflowSpec"
}
}
},
"v1.CreatePolicyRequest": {
"required": [
"name",
"alias",
"envName",
"description",
"type",
"properties",
"workflowPolicyBind"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"envName": {
"type": "string"
},
"name": {
"type": "string"
},
"properties": {
"type": "string"
},
"type": {
"type": "string"
},
"workflowPolicyBind": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.WorkflowPolicyBinding"
}
}
}
},
"v1.CreateProjectRequest": {
"required": [
"name"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"owner": {
"type": "string"
}
}
},
"v1.CreateRoleRequest": {
"required": [
"name",
"alias",
"permissions"
],
"properties": {
"alias": {
"type": "string"
},
"name": {
"type": "string"
},
"permissions": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.CreateTargetRequest": {
"required": [
"name",
"project"
],
"properties": {
"alias": {
"type": "string"
},
"cluster": {
"$ref": "#/definitions/v1.ClusterTarget"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"variable": {
"type": "object"
}
}
},
"v1.CreateUserRequest": {
"required": [
"name",
"email",
"password",
"roles"
],
"properties": {
"alias": {
"type": "string"
},
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"password": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.CreateWorkflowRequest": {
"required": [
"name",
"default",
"envName"
],
"properties": {
"alias": {
"type": "string"
},
"default": {
"type": "boolean"
},
"description": {
"type": "string"
},
"envName": {
"type": "string"
},
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.WorkflowStep"
}
}
}
},
"v1.DefinitionBase": {
"required": [
"name",
"alias",
"description",
"icon",
"status",
"labels",
"ownerAddon"
],
"properties": {
"alias": {
"type": "string"
},
"component": {
"$ref": "#/definitions/v1beta1.ComponentDefinitionSpec"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"ownerAddon": {
"type": "string"
},
"policy": {
"$ref": "#/definitions/v1beta1.PolicyDefinitionSpec"
},
"status": {
"type": "string"
},
"trait": {
"$ref": "#/definitions/v1beta1.TraitDefinitionSpec"
},
"workflowStep": {
"$ref": "#/definitions/v1beta1.WorkflowStepDefinitionSpec"
},
"workloadType": {
"type": "string"
}
}
},
"v1.Descriptor": {
"required": [
"mediaType",
"size",
"digest"
],
"properties": {
"annotations": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"data": {
"type": "string"
},
"digest": {
"type": "string"
},
"mediaType": {
"type": "string"
},
"platform": {
"$ref": "#/definitions/v1.Platform"
},
"size": {
"type": "integer",
"format": "int64"
},
"urls": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.DetailAddonResponse": {
"required": [
"invisible",
"name",
"version",
"description",
"icon",
"schema",
"uiSchema",
"definitions",
"availableVersions"
],
"properties": {
"availableVersions": {
"type": "array",
"items": {
"type": "string"
}
},
"definitions": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.AddonDefinition"
}
},
"dependencies": {
"type": "array",
"items": {
"$ref": "#/definitions/addon.Dependency"
}
},
"deployTo": {
"$ref": "#/definitions/addon.DeployTo"
},
"description": {
"type": "string"
},
"detail": {
"type": "string"
},
"icon": {
"type": "string"
},
"invisible": {
"type": "boolean"
},
"name": {
"type": "string"
},
"needNamespace": {
"type": "array",
"items": {
"type": "string"
}
},
"registryName": {
"type": "string"
},
"schema": {
"type": "string"
},
"system": {
"$ref": "#/definitions/addon.SystemRequirements"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"uiSchema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.UIParameter"
}
},
"url": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"v1.DetailApplicationResponse": {
"required": [
"alias",
"description",
"icon",
"name",
"project",
"createTime",
"updateTime",
"policies",
"envBindings",
"resourceInfo"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"envBindings": {
"type": "array",
"items": {
"type": "string"
}
},
"icon": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"policies": {
"type": "array",
"items": {
"type": "string"
}
},
"project": {
"$ref": "#/definitions/v1.ProjectBase"
},
"readOnly": {
"type": "boolean"
},
"resourceInfo": {
"$ref": "#/definitions/v1.ApplicationResourceInfo"
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.DetailClusterResponse": {
"required": [
"apiServerURL",
"alias",
"description",
"icon",
"kubeConfigSecret",
"name",
"labels",
"reason",
"provider",
"dashboardURL",
"updateTime",
"createTime",
"status",
"kubeConfig",
"resourceInfo"
],
"properties": {
"alias": {
"type": "string"
},
"apiServerURL": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"dashboardURL": {
"type": "string"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"kubeConfig": {
"type": "string"
},
"kubeConfigSecret": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"provider": {
"$ref": "#/definitions/model.ProviderInfo"
},
"reason": {
"type": "string"
},
"resourceInfo": {
"$ref": "#/definitions/v1.ClusterResourceInfo"
},
"status": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.DetailComponentResponse": {
"required": [
"updateTime",
"creator",
"alias",
"main",
"createTime",
"type",
"name",
"appPrimaryKey",
"definition"
],
"properties": {
"alias": {
"type": "string"
},
"appPrimaryKey": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"creator": {
"type": "string"
},
"definition": {
"$ref": "#/definitions/v1beta1.ComponentDefinitionSpec"
},
"dependsOn": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"externalRevision": {
"type": "string"
},
"icon": {
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.inputItem"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"main": {
"type": "boolean"
},
"name": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.outputItem"
}
},
"properties": {
"$ref": "#/definitions/model.JSONStruct"
},
"scopes": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"traits": {
"type": "array",
"items": {
"$ref": "#/definitions/model.ApplicationTrait"
}
},
"type": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"workloadType": {
"$ref": "#/definitions/common.WorkloadTypeDescriptor"
}
}
},
"v1.DetailDefinitionResponse": {
"required": [
"alias",
"description",
"status",
"labels",
"name",
"icon",
"ownerAddon",
"schema",
"uiSchema"
],
"properties": {
"alias": {
"type": "string"
},
"component": {
"$ref": "#/definitions/v1beta1.ComponentDefinitionSpec"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string"
},
"ownerAddon": {
"type": "string"
},
"policy": {
"$ref": "#/definitions/v1beta1.PolicyDefinitionSpec"
},
"schema": {
"type": "string"
},
"status": {
"type": "string"
},
"trait": {
"$ref": "#/definitions/v1beta1.TraitDefinitionSpec"
},
"uiSchema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.UIParameter"
}
},
"workflowStep": {
"$ref": "#/definitions/v1beta1.WorkflowStepDefinitionSpec"
},
"workloadType": {
"type": "string"
}
}
},
"v1.DetailPolicyResponse": {
"required": [
"envName",
"alias",
"description",
"creator",
"properties",
"createTime",
"name",
"type",
"updateTime"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"creator": {
"type": "string"
},
"description": {
"type": "string"
},
"envName": {
"type": "string"
},
"name": {
"type": "string"
},
"properties": {
"$ref": "#/definitions/model.JSONStruct"
},
"type": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"workflowPolicyBind": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.WorkflowPolicyBinding"
}
}
}
},
"v1.DetailRevisionResponse": {
"required": [
"triggerType",
"note",
"revisionCRName",
"status",
"appPrimaryKey",
"version",
"envName",
"createTime",
"reason",
"deployUser",
"workflowName",
"updateTime"
],
"properties": {
"appPrimaryKey": {
"type": "string"
},
"applyAppConfig": {
"type": "string"
},
"codeInfo": {
"$ref": "#/definitions/model.CodeInfo"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"deployUser": {
"$ref": "#/definitions/v1.NameAlias"
},
"envName": {
"type": "string"
},
"imageInfo": {
"$ref": "#/definitions/model.ImageInfo"
},
"note": {
"type": "string"
},
"reason": {
"type": "string"
},
"revisionCRName": {
"type": "string"
},
"rollbackVersion": {
"type": "string"
},
"status": {
"type": "string"
},
"triggerType": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"version": {
"type": "string"
},
"workflowName": {
"type": "string"
}
}
},
"v1.DetailTargetResponse": {
"required": [
"project",
"updateTime",
"name",
"createTime"
],
"properties": {
"alias": {
"type": "string"
},
"appNum": {
"type": "integer",
"format": "int64"
},
"cluster": {
"$ref": "#/definitions/v1.ClusterTarget"
},
"clusterAlias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"project": {
"$ref": "#/definitions/v1.NameAlias"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"variable": {
"type": "object"
}
}
},
"v1.DetailUserResponse": {
"required": [
"createTime",
"lastLoginTime",
"name",
"email",
"disabled",
"projects",
"roles"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"disabled": {
"type": "boolean"
},
"email": {
"type": "string"
},
"lastLoginTime": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"projects": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ProjectBase"
}
},
"roles": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.NameAlias"
}
}
}
},
"v1.DetailWorkflowRecordResponse": {
"required": [
"workflowAlias",
"applicationRevision",
"status",
"name",
"namespace",
"workflowName",
"deployTime",
"deployUser",
"note",
"triggerType"
],
"properties": {
"applicationRevision": {
"type": "string"
},
"deployTime": {
"type": "string",
"format": "date-time"
},
"deployUser": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"note": {
"type": "string"
},
"startTime": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/model.WorkflowStepStatus"
}
},
"triggerType": {
"type": "string"
},
"workflowAlias": {
"type": "string"
},
"workflowName": {
"type": "string"
}
}
},
"v1.DetailWorkflowResponse": {
"required": [
"createTime",
"name",
"alias",
"enable",
"default",
"description",
"envName",
"updateTime"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"default": {
"type": "boolean"
},
"description": {
"type": "string"
},
"enable": {
"type": "boolean"
},
"envName": {
"type": "string"
},
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.WorkflowStep"
}
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.DexConfigResponse": {
"required": [
"clientID",
"clientSecret",
"redirectURL",
"issuer"
],
"properties": {
"clientID": {
"type": "string"
},
"clientSecret": {
"type": "string"
},
"issuer": {
"type": "string"
},
"redirectURL": {
"type": "string"
}
}
},
"v1.EmptyResponse": {},
"v1.EnableAddonRequest": {
"properties": {
"args": {
"type": "object"
},
"clusters": {
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"type": "string"
}
}
},
"v1.EnablingProgress": {
"required": [
"enabled_components",
"total_components"
],
"properties": {
"enabled_components": {
"type": "integer",
"format": "int32"
},
"total_components": {
"type": "integer",
"format": "int32"
}
}
},
"v1.Env": {
"required": [
"name",
"alias",
"project",
"namespace",
"createTime",
"updateTime"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"project": {
"$ref": "#/definitions/v1.NameAlias"
},
"targets": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.NameAlias"
}
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.EnvBinding": {
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
},
"v1.EnvBindingBase": {
"required": [
"name",
"targetNames",
"createTime",
"updateTime",
"appDeployName",
"appDeployNamespace"
],
"properties": {
"alias": {
"type": "string"
},
"appDeployName": {
"type": "string"
},
"appDeployNamespace": {
"type": "string"
},
"componentSelector": {
"$ref": "#/definitions/v1.ComponentSelector"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"targetNames": {
"type": "array",
"items": {
"type": "string"
}
},
"targets": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.EnvBindingTarget"
}
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.EnvBindingTarget": {
"required": [
"name",
"alias"
],
"properties": {
"alias": {
"type": "string"
},
"cluster": {
"$ref": "#/definitions/v1.ClusterTarget"
},
"name": {
"type": "string"
}
}
},
"v1.GetLoginTypeResponse": {
"required": [
"loginType"
],
"properties": {
"loginType": {
"type": "string"
}
}
},
"v1.GetPipelineRequest": {
"required": [
"detailed"
],
"properties": {
"detailed": {
"type": "boolean"
}
}
},
"v1.GetPipelineResponse": {
"required": [
"name",
"project",
"spec",
"info"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"info": {
"$ref": "#/definitions/v1.PipelineInfo"
},
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"spec": {
"$ref": "#/definitions/v1alpha1.WorkflowSpec"
}
}
},
"v1.GetPipelineRunLogResponse": {
"required": [
"phase",
"id",
"name",
"type",
"log"
],
"properties": {
"id": {
"type": "string"
},
"log": {
"type": "string"
},
"name": {
"type": "string"
},
"phase": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1.GetPipelineRunOutputResponse": {
"required": [
"output"
],
"properties": {
"output": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.StepOutput"
}
}
}
},
"v1.HandleApplicationTriggerWebhookRequest": {
"properties": {
"codeInfo": {
"$ref": "#/definitions/model.CodeInfo"
},
"upgrade": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/model.JSONStruct"
}
}
}
},
"v1.Hash": {
"required": [
"Algorithm",
"Hex"
],
"properties": {
"Algorithm": {
"type": "string"
},
"Hex": {
"type": "string"
}
}
},
"v1.HealthConfig": {
"properties": {
"Interval": {
"type": "integer",
"format": "integer"
},
"Retries": {
"type": "integer",
"format": "int32"
},
"StartPeriod": {
"type": "integer",
"format": "integer"
},
"Test": {
"type": "array",
"items": {
"type": "string"
}
},
"Timeout": {
"type": "integer",
"format": "integer"
}
}
},
"v1.History": {
"properties": {
"author": {
"type": "string"
},
"comment": {
"type": "string"
},
"created": {
"type": "string"
},
"created_by": {
"type": "string"
},
"empty_layer": {
"type": "boolean"
}
}
},
"v1.ImageInfo": {
"required": [
"name",
"secretNames",
"registry",
"size",
"manifest"
],
"properties": {
"info": {
"$ref": "#/definitions/v1.ConfigFile"
},
"manifest": {
"$ref": "#/definitions/v1.Manifest"
},
"message": {
"type": "string"
},
"name": {
"type": "string"
},
"registry": {
"type": "string"
},
"secretNames": {
"type": "array",
"items": {
"type": "string"
}
},
"size": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ImageRegistry": {
"required": [
"name",
"secretName",
"domain"
],
"properties": {
"domain": {
"type": "string"
},
"name": {
"type": "string"
},
"secretName": {
"type": "string"
}
}
},
"v1.ListAddonRegistryResponse": {
"required": [
"registries"
],
"properties": {
"registries": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.AddonRegistry"
}
}
}
},
"v1.ListAddonResponse": {
"required": [
"addons"
],
"properties": {
"addons": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.AddonInfo"
}
},
"message": {
"type": "string"
}
}
},
"v1.ListApplicationEnvBinding": {
"required": [
"envBindings"
],
"properties": {
"envBindings": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.EnvBindingBase"
}
}
}
},
"v1.ListApplicationPolicy": {
"required": [
"policies"
],
"properties": {
"policies": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PolicyBase"
}
}
}
},
"v1.ListApplicationResponse": {
"required": [
"applications"
],
"properties": {
"applications": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ApplicationBase"
}
}
}
},
"v1.ListApplicationTriggerResponse": {
"required": [
"triggers"
],
"properties": {
"triggers": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ApplicationTriggerBase"
}
}
}
},
"v1.ListCloudClusterCreationResponse": {
"required": [
"creations"
],
"properties": {
"creations": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.CreateCloudClusterResponse"
}
}
}
},
"v1.ListCloudClusterResponse": {
"required": [
"clusters",
"total"
],
"properties": {
"clusters": {
"type": "array",
"items": {
"$ref": "#/definitions/cloudprovider.CloudCluster"
}
},
"total": {
"type": "integer",
"format": "int32"
}
}
},
"v1.ListClusterResponse": {
"required": [
"clusters",
"total"
],
"properties": {
"clusters": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ClusterBase"
}
},
"total": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ListConfigDistributionResponse": {
"required": [
"distributions"
],
"properties": {
"distributions": {
"type": "array",
"items": {
"$ref": "#/definitions/config.Distribution"
}
}
}
},
"v1.ListConfigResponse": {
"required": [
"configs"
],
"properties": {
"configs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.Config"
}
}
}
},
"v1.ListConfigTemplateResponse": {
"required": [
"templates"
],
"properties": {
"templates": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ConfigTemplate"
}
}
}
},
"v1.ListContextValueResponse": {
"required": [
"total",
"contexts"
],
"properties": {
"contexts": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Value"
}
}
},
"total": {
"type": "integer",
"format": "int32"
}
}
},
"v1.ListDefinitionResponse": {
"required": [
"definitions"
],
"properties": {
"definitions": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.DefinitionBase"
}
}
}
},
"v1.ListEnabledAddonResponse": {
"required": [
"enabledAddons"
],
"properties": {
"enabledAddons": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.AddonBaseStatus"
}
}
}
},
"v1.ListEnvResponse": {
"required": [
"envs",
"total"
],
"properties": {
"envs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.Env"
}
},
"total": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ListImageRegistryResponse": {
"required": [
"registries"
],
"properties": {
"registries": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ImageRegistry"
}
}
}
},
"v1.ListPipelineResponse": {
"required": [
"total",
"pipelines"
],
"properties": {
"pipelines": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PipelineListItem"
}
},
"total": {
"type": "integer",
"format": "int32"
}
}
},
"v1.ListPipelineRunResponse": {
"required": [
"total",
"runs"
],
"properties": {
"runs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PipelineRunBriefing"
}
},
"total": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ListProjectResponse": {
"required": [
"projects",
"total"
],
"properties": {
"projects": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ProjectBase"
}
},
"total": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ListProjectUsersResponse": {
"required": [
"users",
"total"
],
"properties": {
"total": {
"type": "integer",
"format": "int64"
},
"users": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ProjectUserBase"
}
}
}
},
"v1.ListRevisionsResponse": {
"required": [
"revisions",
"total"
],
"properties": {
"revisions": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ApplicationRevisionBase"
}
},
"total": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ListRolesResponse": {
"required": [
"total",
"roles"
],
"properties": {
"roles": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.RoleBase"
}
},
"total": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ListTargetResponse": {
"required": [
"targets",
"total"
],
"properties": {
"targets": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.TargetBase"
}
},
"total": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ListTerraformProviderResponse": {
"required": [
"providers"
],
"properties": {
"providers": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.TerraformProvider"
}
}
}
},
"v1.ListUserResponse": {
"required": [
"users",
"total"
],
"properties": {
"total": {
"type": "integer",
"format": "int64"
},
"users": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.DetailUserResponse"
}
}
}
},
"v1.ListWorkflowRecordsResponse": {
"required": [
"records",
"total"
],
"properties": {
"records": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.WorkflowRecord"
}
},
"total": {
"type": "integer",
"format": "int64"
}
}
},
"v1.ListWorkflowResponse": {
"required": [
"workflows"
],
"properties": {
"workflows": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.WorkflowBase"
}
}
}
},
"v1.LoginRequest": {
"properties": {
"code": {
"type": "string"
},
"password": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"v1.LoginResponse": {
"required": [
"user",
"accessToken",
"refreshToken"
],
"properties": {
"accessToken": {
"type": "string"
},
"refreshToken": {
"type": "string"
},
"user": {
"$ref": "#/definitions/v1.UserBase"
}
}
},
"v1.LoginUserInfoResponse": {
"required": [
"createTime",
"lastLoginTime",
"name",
"email",
"disabled",
"projects",
"platformPermissions",
"projectPermissions"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"disabled": {
"type": "boolean"
},
"email": {
"type": "string"
},
"lastLoginTime": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"platformPermissions": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PermissionBase"
}
},
"projectPermissions": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PermissionBase"
}
}
},
"projects": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ProjectBase"
}
}
}
},
"v1.Manifest": {
"required": [
"schemaVersion",
"config",
"layers"
],
"properties": {
"annotations": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"config": {
"$ref": "#/definitions/v1.Descriptor"
},
"layers": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.Descriptor"
}
},
"mediaType": {
"type": "string"
},
"schemaVersion": {
"type": "integer",
"format": "int64"
}
}
},
"v1.NameAlias": {
"required": [
"name",
"alias"
],
"properties": {
"alias": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"v1.NamespacedName": {
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"v1.ObjectReference": {
"description": "ObjectReference contains enough information to let you inspect or modify the referred object.",
"properties": {
"apiVersion": {
"description": "API version of the referent.",
"type": "string"
},
"fieldPath": {
"description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.",
"type": "string"
},
"kind": {
"description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"namespace": {
"description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
"type": "string"
},
"resourceVersion": {
"description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
"type": "string"
},
"uid": {
"description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids",
"type": "string"
}
}
},
"v1.PermissionBase": {
"required": [
"name",
"alias",
"resources",
"actions",
"effect",
"createTime",
"updateTime"
],
"properties": {
"actions": {
"type": "array",
"items": {
"type": "string"
}
},
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"effect": {
"type": "string"
},
"name": {
"type": "string"
},
"resources": {
"type": "array",
"items": {
"type": "string"
}
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.PipelineBase": {
"required": [
"name",
"project",
"spec"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"spec": {
"$ref": "#/definitions/v1alpha1.WorkflowSpec"
}
}
},
"v1.PipelineInfo": {
"required": [
"relatedApps",
"lastRunStatus",
"runStat"
],
"properties": {
"lastRunStatus": {
"$ref": "#/definitions/v1alpha1.WorkflowRunStatus"
},
"relatedApps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.ApplicationBase"
}
},
"runStat": {
"$ref": "#/definitions/v1.RunStat"
}
}
},
"v1.PipelineListItem": {
"required": [
"name",
"project",
"info"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"info": {
"$ref": "#/definitions/v1.PipelineInfo"
},
"name": {
"type": "string"
},
"project": {
"type": "string"
}
}
},
"v1.PipelineMeta": {
"required": [
"name",
"project"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"project": {
"type": "string"
}
}
},
"v1.PipelineMetaResponse": {
"required": [
"project",
"name"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"project": {
"type": "string"
}
}
},
"v1.PipelineRunBase": {
"required": [
"pipelineRunName",
"pipelineName",
"project",
"record",
"contextName",
"spec"
],
"properties": {
"contextName": {
"type": "string"
},
"pipelineName": {
"type": "string"
},
"pipelineRunName": {
"type": "string"
},
"project": {
"type": "string"
},
"record": {
"type": "integer",
"format": "int64"
},
"spec": {
"$ref": "#/definitions/v1alpha1.WorkflowRunSpec"
}
}
},
"v1.PipelineRunBriefing": {
"required": [
"pipelineRunName",
"finished",
"phase",
"message",
"startTime",
"endTime",
"contextName",
"contextValues"
],
"properties": {
"contextName": {
"type": "string"
},
"contextValues": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Value"
}
},
"endTime": {
"type": "string"
},
"finished": {
"type": "boolean"
},
"message": {
"type": "string"
},
"phase": {
"type": "string"
},
"pipelineRunName": {
"type": "string"
},
"startTime": {
"type": "string"
}
}
},
"v1.PipelineRunMeta": {
"required": [
"pipelineName",
"project",
"pipelineRunName"
],
"properties": {
"pipelineName": {
"type": "string"
},
"pipelineRunName": {
"type": "string"
},
"project": {
"type": "string"
}
}
},
"v1.Platform": {
"required": [
"architecture",
"os"
],
"properties": {
"architecture": {
"type": "string"
},
"features": {
"type": "array",
"items": {
"type": "string"
}
},
"os": {
"type": "string"
},
"os.features": {
"type": "array",
"items": {
"type": "string"
}
},
"os.version": {
"type": "string"
},
"variant": {
"type": "string"
}
}
},
"v1.PolicyBase": {
"required": [
"name",
"alias",
"type",
"description",
"creator",
"properties",
"createTime",
"updateTime",
"envName"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"creator": {
"type": "string"
},
"description": {
"type": "string"
},
"envName": {
"type": "string"
},
"name": {
"type": "string"
},
"properties": {
"$ref": "#/definitions/model.JSONStruct"
},
"type": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.ProjectBase": {
"required": [
"name",
"alias",
"description",
"createTime",
"updateTime"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"owner": {
"$ref": "#/definitions/v1.NameAlias"
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.ProjectUserBase": {
"required": [
"name",
"alias",
"userRoles",
"createTime",
"updateTime"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"userRoles": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.PutApplicationEnvBindingRequest": {},
"v1.RefreshTokenResponse": {
"required": [
"accessToken",
"refreshToken"
],
"properties": {
"accessToken": {
"type": "string"
},
"refreshToken": {
"type": "string"
}
}
},
"v1.RoleBase": {
"required": [
"createTime",
"updateTime",
"name",
"permissions"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"permissions": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.NameAlias"
}
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.RootFS": {
"required": [
"type",
"diff_ids"
],
"properties": {
"diff_ids": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.Hash"
}
},
"type": {
"type": "string"
}
}
},
"v1.RunPipelineRequest": {
"required": [
"contextName"
],
"properties": {
"contextName": {
"type": "string"
},
"mode": {
"$ref": "#/definitions/v1alpha1.WorkflowExecuteMode"
}
}
},
"v1.RunStat": {
"required": [
"activeNum",
"total",
"week"
],
"properties": {
"activeNum": {
"type": "integer",
"format": "int32"
},
"total": {
"$ref": "#/definitions/v1.RunStatInfo"
},
"week": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.RunStatInfo"
}
}
}
},
"v1.RunStatInfo": {
"required": [
"total",
"success",
"fail"
],
"properties": {
"fail": {
"type": "integer",
"format": "int32"
},
"success": {
"type": "integer",
"format": "int32"
},
"total": {
"type": "integer",
"format": "int32"
}
}
},
"v1.SimpleResponse": {
"required": [
"status"
],
"properties": {
"status": {
"type": "string"
}
}
},
"v1.StatisticInfo": {
"properties": {
"appCount": {
"type": "string"
},
"clusterCount": {
"type": "string"
},
"componentDefinitionTopList": {
"type": "array",
"items": {
"type": "string"
}
},
"enableAddonList": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"policyDefinitionTopList": {
"type": "array",
"items": {
"type": "string"
}
},
"traitDefinitionTopList": {
"type": "array",
"items": {
"type": "string"
}
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"workflowDefinitionTopList": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.StepBase": {
"required": [
"id",
"name",
"type",
"phase"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"phase": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1.StepOutput": {
"required": [
"outputs",
"subStepOutputs"
],
"properties": {
"outputs": {
"$ref": "#/definitions/v1.StepOutputBase"
},
"subStepOutputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.StepOutputBase"
}
}
}
},
"v1.StepOutputBase": {
"required": [
"phase",
"id",
"name",
"type",
"vars"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"phase": {
"type": "string"
},
"type": {
"type": "string"
},
"vars": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"v1.SystemInfo": {
"required": [
"platformID",
"enableCollection",
"loginType"
],
"properties": {
"dexUserDefaultPlatformRoles": {
"type": "array",
"items": {
"type": "string"
}
},
"dexUserDefaultProjects": {
"type": "array",
"items": {
"$ref": "#/definitions/model.ProjectRef"
}
},
"enableCollection": {
"type": "boolean"
},
"installTime": {
"type": "string",
"format": "date-time"
},
"loginType": {
"type": "string"
},
"platformID": {
"type": "string"
}
}
},
"v1.SystemInfoRequest": {
"required": [
"enableCollection",
"loginType"
],
"properties": {
"dexUserDefaultProjects": {
"type": "array",
"items": {
"$ref": "#/definitions/model.ProjectRef"
}
},
"enableCollection": {
"type": "boolean"
},
"loginType": {
"type": "string"
},
"velaAddress": {
"type": "string"
}
}
},
"v1.SystemInfoResponse": {
"required": [
"enableCollection",
"loginType",
"platformID",
"systemVersion"
],
"properties": {
"dexUserDefaultPlatformRoles": {
"type": "array",
"items": {
"type": "string"
}
},
"dexUserDefaultProjects": {
"type": "array",
"items": {
"$ref": "#/definitions/model.ProjectRef"
}
},
"enableCollection": {
"type": "boolean"
},
"installTime": {
"type": "string",
"format": "date-time"
},
"loginType": {
"type": "string"
},
"platformID": {
"type": "string"
},
"statisticInfo": {
"$ref": "#/definitions/v1.StatisticInfo"
},
"systemVersion": {
"$ref": "#/definitions/v1.SystemVersion"
}
}
},
"v1.SystemVersion": {
"required": [
"velaVersion",
"gitVersion"
],
"properties": {
"gitVersion": {
"type": "string"
},
"velaVersion": {
"type": "string"
}
}
},
"v1.TargetBase": {
"required": [
"name",
"createTime",
"updateTime",
"project"
],
"properties": {
"alias": {
"type": "string"
},
"appNum": {
"type": "integer",
"format": "int64"
},
"cluster": {
"$ref": "#/definitions/v1.ClusterTarget"
},
"clusterAlias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"project": {
"$ref": "#/definitions/v1.NameAlias"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"variable": {
"type": "object"
}
}
},
"v1.TerraformProvider": {
"required": [
"name",
"region",
"provider",
"createTime"
],
"properties": {
"createTime": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"provider": {
"type": "string"
},
"region": {
"type": "string"
}
}
},
"v1.UpdateAddonRegistryRequest": {
"properties": {
"git": {
"$ref": "#/definitions/addon.GitAddonSource"
},
"gitee": {
"$ref": "#/definitions/addon.GiteeAddonSource"
},
"gitlab": {
"$ref": "#/definitions/addon.GitlabAddonSource"
},
"helm": {
"$ref": "#/definitions/addon.HelmSource"
},
"oss": {
"$ref": "#/definitions/addon.OSSAddonSource"
}
}
},
"v1.UpdateApplicationComponentRequest": {
"properties": {
"alias": {
"type": "string"
},
"dependsOn": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"labels": {
"$ref": "#/definitions/v1.UpdateApplicationComponentRequest.labels"
},
"properties": {
"type": "string"
}
}
},
"v1.UpdateApplicationComponentRequest.labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"v1.UpdateApplicationRequest": {
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"v1.UpdateApplicationTraitRequest": {
"required": [
"properties"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"properties": {
"type": "string"
}
}
},
"v1.UpdateConfigRequest": {
"required": [
"alias",
"description"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"properties": {
"type": "string"
}
}
},
"v1.UpdateContextValuesRequest": {
"required": [
"values"
],
"properties": {
"values": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Value"
}
}
}
},
"v1.UpdateDefinitionStatusRequest": {
"required": [
"type",
"hiddenInUI"
],
"properties": {
"hiddenInUI": {
"type": "boolean"
},
"type": {
"type": "string"
}
}
},
"v1.UpdatePipelineRequest": {
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"spec": {
"$ref": "#/definitions/v1alpha1.WorkflowSpec"
}
}
},
"v1.UpdatePolicyRequest": {
"required": [
"alias",
"envName",
"description",
"type",
"properties",
"workflowPolicyBind"
],
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"envName": {
"type": "string"
},
"properties": {
"type": "string"
},
"type": {
"type": "string"
},
"workflowPolicyBind": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.WorkflowPolicyBinding"
}
}
}
},
"v1.UpdateProjectRequest": {
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"owner": {
"type": "string"
}
}
},
"v1.UpdateProjectUserRequest": {
"required": [
"userRoles"
],
"properties": {
"userRoles": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.UpdateRoleRequest": {
"required": [
"alias",
"permissions"
],
"properties": {
"alias": {
"type": "string"
},
"permissions": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.UpdateTargetRequest": {
"properties": {
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"variable": {
"type": "object"
}
}
},
"v1.UpdateUISchemaRequest": {
"required": [
"type",
"uiSchema"
],
"properties": {
"type": {
"type": "string"
},
"uiSchema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.UIParameter"
}
}
}
},
"v1.UpdateUserRequest": {
"required": [
"roles"
],
"properties": {
"alias": {
"type": "string"
},
"email": {
"type": "string"
},
"password": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.UpdateWorkflowRequest": {
"required": [
"default"
],
"properties": {
"alias": {
"type": "string"
},
"default": {
"type": "boolean"
},
"description": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.WorkflowStep"
}
}
}
},
"v1.UserBase": {
"required": [
"createTime",
"lastLoginTime",
"name",
"email",
"disabled"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"disabled": {
"type": "boolean"
},
"email": {
"type": "string"
},
"lastLoginTime": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
}
}
},
"v1.VelaQLViewResponse": {
"type": "object"
},
"v1.WorkflowBase": {
"required": [
"name",
"alias",
"description",
"enable",
"default",
"envName",
"createTime",
"updateTime"
],
"properties": {
"alias": {
"type": "string"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"default": {
"type": "boolean"
},
"description": {
"type": "string"
},
"enable": {
"type": "boolean"
},
"envName": {
"type": "string"
},
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.WorkflowStep"
}
},
"updateTime": {
"type": "string",
"format": "date-time"
}
}
},
"v1.WorkflowPolicyBinding": {
"required": [
"name",
"steps"
],
"properties": {
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.WorkflowRecord": {
"required": [
"name",
"namespace",
"workflowName",
"workflowAlias",
"applicationRevision",
"status"
],
"properties": {
"applicationRevision": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"startTime": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/model.WorkflowStepStatus"
}
},
"workflowAlias": {
"type": "string"
},
"workflowName": {
"type": "string"
}
}
},
"v1.WorkflowStep": {
"required": [
"name",
"type"
],
"properties": {
"alias": {
"type": "string"
},
"dependsOn": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.inputItem"
}
},
"name": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.outputItem"
}
},
"properties": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1alpha1.StepStatus": {
"required": [
"id"
],
"properties": {
"firstExecuteTime": {
"type": "string"
},
"id": {
"type": "string"
},
"lastExecuteTime": {
"type": "string"
},
"message": {
"type": "string"
},
"name": {
"type": "string"
},
"phase": {
"type": "string"
},
"reason": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1alpha1.WorkflowExecuteMode": {
"properties": {
"steps": {
"type": "string"
},
"subSteps": {
"type": "string"
}
}
},
"v1alpha1.WorkflowRunSpec": {
"properties": {
"context": {
"type": "string"
},
"mode": {
"$ref": "#/definitions/v1alpha1.WorkflowExecuteMode"
},
"workflowRef": {
"type": "string"
},
"workflowSpec": {
"$ref": "#/definitions/v1alpha1.WorkflowSpec"
}
}
},
"v1alpha1.WorkflowRunStatus": {
"required": [
"mode",
"status",
"suspend",
"terminated",
"finished"
],
"properties": {
"conditions": {
"type": "array",
"items": {
"$ref": "#/definitions/condition.Condition"
}
},
"contextBackend": {
"$ref": "#/definitions/v1.ObjectReference"
},
"endTime": {
"type": "string"
},
"finished": {
"type": "boolean"
},
"message": {
"type": "string"
},
"mode": {
"$ref": "#/definitions/v1alpha1.WorkflowExecuteMode"
},
"startTime": {
"type": "string"
},
"status": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.WorkflowStepStatus"
}
},
"suspend": {
"type": "boolean"
},
"suspendState": {
"type": "string"
},
"terminated": {
"type": "boolean"
}
}
},
"v1alpha1.WorkflowSpec": {
"properties": {
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.WorkflowStep"
}
}
}
},
"v1alpha1.WorkflowStep": {
"required": [
"type",
"name"
],
"properties": {
"dependsOn": {
"type": "array",
"items": {
"type": "string"
}
},
"if": {
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.inputItem"
}
},
"meta": {
"$ref": "#/definitions/v1alpha1.WorkflowStepMeta"
},
"name": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.outputItem"
}
},
"properties": {
"type": "string"
},
"subSteps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.WorkflowStepBase"
}
},
"timeout": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1alpha1.WorkflowStepBase": {
"required": [
"name",
"type"
],
"properties": {
"dependsOn": {
"type": "array",
"items": {
"type": "string"
}
},
"if": {
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.inputItem"
}
},
"meta": {
"$ref": "#/definitions/v1alpha1.WorkflowStepMeta"
},
"name": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.outputItem"
}
},
"properties": {
"type": "string"
},
"timeout": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1alpha1.WorkflowStepMeta": {
"properties": {
"alias": {
"type": "string"
}
}
},
"v1alpha1.WorkflowStepStatus": {
"required": [
"id"
],
"properties": {
"firstExecuteTime": {
"type": "string"
},
"id": {
"type": "string"
},
"lastExecuteTime": {
"type": "string"
},
"message": {
"type": "string"
},
"name": {
"type": "string"
},
"phase": {
"type": "string"
},
"reason": {
"type": "string"
},
"subSteps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.StepStatus"
}
},
"type": {
"type": "string"
}
}
},
"v1alpha1.inputItem": {
"required": [
"parameterKey",
"from"
],
"properties": {
"from": {
"type": "string"
},
"parameterKey": {
"type": "string"
}
}
},
"v1alpha1.outputItem": {
"required": [
"valueFrom",
"name"
],
"properties": {
"name": {
"type": "string"
},
"valueFrom": {
"type": "string"
}
}
},
"v1beta1.AppPolicy": {
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"properties": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1beta1.ApplicationSpec": {
"required": [
"components"
],
"properties": {
"components": {
"type": "array",
"items": {
"$ref": "#/definitions/common.ApplicationComponent"
}
},
"policies": {
"type": "array",
"items": {
"$ref": "#/definitions/v1beta1.AppPolicy"
}
},
"workflow": {
"$ref": "#/definitions/v1beta1.Workflow"
}
}
},
"v1beta1.ComponentDefinitionSpec": {
"required": [
"workload"
],
"properties": {
"childResourceKinds": {
"type": "array",
"items": {
"$ref": "#/definitions/common.ChildResourceKind"
}
},
"extension": {
"type": "string"
},
"podSpecPath": {
"type": "string"
},
"revisionLabel": {
"type": "string"
},
"schematic": {
"$ref": "#/definitions/common.Schematic"
},
"status": {
"$ref": "#/definitions/common.Status"
},
"workload": {
"$ref": "#/definitions/common.WorkloadTypeDescriptor"
}
}
},
"v1beta1.PolicyDefinitionSpec": {
"properties": {
"definitionRef": {
"$ref": "#/definitions/common.DefinitionReference"
},
"manageHealthCheck": {
"type": "boolean"
},
"schematic": {
"$ref": "#/definitions/common.Schematic"
}
}
},
"v1beta1.TraitDefinitionSpec": {
"properties": {
"appliesToWorkloads": {
"type": "array",
"items": {
"type": "string"
}
},
"conflictsWith": {
"type": "array",
"items": {
"type": "string"
}
},
"controlPlaneOnly": {
"type": "boolean"
},
"definitionRef": {
"$ref": "#/definitions/common.DefinitionReference"
},
"extension": {
"type": "string"
},
"manageWorkload": {
"type": "boolean"
},
"podDisruptive": {
"type": "boolean"
},
"revisionEnabled": {
"type": "boolean"
},
"schematic": {
"$ref": "#/definitions/common.Schematic"
},
"stage": {
"type": "string"
},
"status": {
"$ref": "#/definitions/common.Status"
},
"workloadRefPath": {
"type": "string"
}
}
},
"v1beta1.Workflow": {
"properties": {
"mode": {
"$ref": "#/definitions/v1alpha1.WorkflowExecuteMode"
},
"ref": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.WorkflowStep"
}
}
}
},
"v1beta1.WorkflowStepDefinitionSpec": {
"properties": {
"definitionRef": {
"$ref": "#/definitions/common.DefinitionReference"
},
"schematic": {
"$ref": "#/definitions/common.Schematic"
}
}
}
}
}