static

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2018 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Files = map[string]string{
	"api.swagger.json": `{
  "swagger": "2.0",
  "info": {
    "title": "OpenPitrix Project",
    "version": "0.0.1",
    "contact": {
      "name": "OpenPitrix Project",
      "url": "https://openpitrix.io"
    }
  },
  "schemes": [
    "http",
    "https"
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/v1/app_version/action/cancel": {
      "post": {
        "summary": "cancel app version",
        "operationId": "CancelAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCancelAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCancelAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_version/action/delete": {
      "post": {
        "summary": "delete app version",
        "operationId": "DeleteAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_version/action/pass": {
      "post": {
        "summary": "pass app version",
        "operationId": "PassAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixPassAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixPassAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_version/action/recover": {
      "post": {
        "summary": "recover app version",
        "operationId": "RecoverAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixRecoverAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixRecoverAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_version/action/reject": {
      "post": {
        "summary": "reject app version",
        "operationId": "RejectAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixRejectAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixRejectAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_version/action/release": {
      "post": {
        "summary": "release app version",
        "operationId": "ReleaseAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixReleaseAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixReleaseAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_version/action/submit": {
      "post": {
        "summary": "submit app version",
        "operationId": "SubmitAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixSubmitAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixSubmitAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_version/action/suspend": {
      "post": {
        "summary": "suspend app version",
        "operationId": "SuspendAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixSuspendAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixSuspendAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_version/package": {
      "get": {
        "summary": "get the package content of app version",
        "operationId": "GetAppVersionPackage",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixGetAppVersionPackageResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_version/package/files": {
      "get": {
        "summary": "get the package files content of app version",
        "operationId": "GetAppVersionPackageFiles",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixGetAppVersionPackageFilesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "files",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/app_versions": {
      "get": {
        "summary": "describe app versions with filter",
        "operationId": "DescribeAppVersions",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeAppVersionsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "app_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "description",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "package_name",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          }
        ],
        "tags": [
          "AppManager"
        ]
      },
      "post": {
        "summary": "create app version",
        "operationId": "CreateAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      },
      "patch": {
        "summary": "modify app version",
        "operationId": "ModifyAppVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyAppVersionResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyAppVersionRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/apps": {
      "get": {
        "summary": "describe apps with filter",
        "operationId": "DescribeApps",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeAppsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          },
          {
            "name": "app_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "repo_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "chart_name",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "AppManager"
        ]
      },
      "delete": {
        "summary": "delete apps",
        "operationId": "DeleteApps",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteAppsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteAppsRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      },
      "post": {
        "summary": "create app",
        "operationId": "CreateApp",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateAppResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateAppRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      },
      "patch": {
        "summary": "modify app",
        "operationId": "ModifyApp",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyAppResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyAppRequest"
            }
          }
        ],
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/apps/statistics": {
      "get": {
        "summary": "get app statistics",
        "operationId": "GetAppStatistics",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixGetAppStatisticsResponse"
            }
          }
        },
        "tags": [
          "AppManager"
        ]
      }
    },
    "/v1/categories": {
      "get": {
        "summary": "describe categories with filter",
        "operationId": "DescribeCategories",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeCategoriesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          }
        ],
        "tags": [
          "CategoryManager"
        ]
      },
      "delete": {
        "summary": "delete categories",
        "operationId": "DeleteCategories",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteCategoriesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteCategoriesRequest"
            }
          }
        ],
        "tags": [
          "CategoryManager"
        ]
      },
      "post": {
        "summary": "create category",
        "operationId": "CreateCategory",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateCategoryResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateCategoryRequest"
            }
          }
        ],
        "tags": [
          "CategoryManager"
        ]
      },
      "patch": {
        "summary": "modify category",
        "operationId": "ModifyCategory",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyCategoryResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyCategoryRequest"
            }
          }
        ],
        "tags": [
          "CategoryManager"
        ]
      }
    },
    "/v1/clusters": {
      "get": {
        "summary": "describe clusters",
        "operationId": "DescribeClusters",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeClustersResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "cluster_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "app_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "runtime_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "frontgate_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "external_cluster_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "cluster_type",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/add_nodes": {
      "post": {
        "summary": "add cluster nodes",
        "operationId": "AddClusterNodes",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixAddClusterNodesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixAddClusterNodesRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/cease": {
      "post": {
        "summary": "cease clusters",
        "operationId": "CeaseClusters",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCeaseClustersResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCeaseClustersRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/create": {
      "post": {
        "summary": "create cluster",
        "operationId": "CreateCluster",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateClusterResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateClusterRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/delete": {
      "post": {
        "summary": "delete clusters",
        "operationId": "DeleteClusters",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteClustersResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteClustersRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/delete_nodes": {
      "post": {
        "summary": "delete cluster nodes",
        "operationId": "DeleteClusterNodes",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteClusterNodesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteClusterNodesRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/key_pair/attach": {
      "post": {
        "summary": "attach key pairs",
        "operationId": "AttachKeyPairs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixAttachKeyPairsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixAttachKeyPairsRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/key_pair/detach": {
      "post": {
        "summary": "detach key pairs",
        "operationId": "DetachKeyPairs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDetachKeyPairsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDetachKeyPairsRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/key_pairs": {
      "get": {
        "summary": "describe key pairs",
        "operationId": "DescribeKeyPairs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeKeyPairsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "key_pair_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "description",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "pub_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      },
      "delete": {
        "summary": "delete key pairs",
        "operationId": "DeleteKeyPairs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteKeyPairsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteKeyPairsRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      },
      "post": {
        "summary": "create key pair",
        "operationId": "CreateKeyPair",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateKeyPairResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateKeyPairRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/modify": {
      "post": {
        "summary": "modify cluster attributes",
        "operationId": "ModifyClusterAttributes",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyClusterAttributesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyClusterAttributesRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/modify_nodes": {
      "post": {
        "summary": "modify cluster node attributes",
        "operationId": "ModifyClusterNodeAttributes",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyClusterNodeAttributesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyClusterNodeAttributesRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/nodes": {
      "get": {
        "summary": "describe cluster nodes",
        "operationId": "DescribeClusterNodes",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeClusterNodesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "cluster_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "node_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/recover": {
      "post": {
        "summary": "recover clusters",
        "operationId": "RecoverClusters",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixRecoverClustersResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixRecoverClustersRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/resize": {
      "post": {
        "summary": "resize cluster",
        "operationId": "ResizeCluster",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixResizeClusterResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixResizeClusterRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/rollback": {
      "post": {
        "summary": "rollback cluster",
        "operationId": "RollbackCluster",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixRollbackClusterResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixRollbackClusterRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/start": {
      "post": {
        "summary": "start clusters",
        "operationId": "StartClusters",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixStartClustersResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixStartClustersRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/statistics": {
      "get": {
        "summary": "get cluster statistics",
        "operationId": "GetClusterStatistics",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixGetClusterStatisticsResponse"
            }
          }
        },
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/stop": {
      "post": {
        "summary": "stop clusters",
        "operationId": "StopClusters",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixStopClustersResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixStopClustersRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/subnets": {
      "get": {
        "summary": "describe subnets",
        "operationId": "DescribeSubnets",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeSubnetsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "runtime_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "subnet_type",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "subnet_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "advanced_param",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/update_env": {
      "patch": {
        "summary": "update cluster env",
        "operationId": "UpdateClusterEnv",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixUpdateClusterEnvResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixUpdateClusterEnvRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/clusters/upgrade": {
      "post": {
        "summary": "upgrade cluster",
        "operationId": "UpgradeCluster",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixUpgradeClusterResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixUpgradeClusterRequest"
            }
          }
        ],
        "tags": [
          "ClusterManager"
        ]
      }
    },
    "/v1/groups": {
      "get": {
        "operationId": "DescribeGroups",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeGroupsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "group_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "AccountManager"
        ]
      },
      "delete": {
        "operationId": "DeleteGroups",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteGroupsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteGroupsRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      },
      "post": {
        "summary": "group",
        "operationId": "CreateGroup",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateGroupResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateGroupRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      },
      "patch": {
        "operationId": "ModifyGroup",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyGroupResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyGroupRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      }
    },
    "/v1/groups:join": {
      "post": {
        "operationId": "JoinGroup",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixJoinGroupResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixJoinGroupRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      }
    },
    "/v1/groups:leave": {
      "post": {
        "operationId": "LeaveGroup",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixLeaveGroupResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixLeaveGroupRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      }
    },
    "/v1/oauth2/token": {
      "post": {
        "operationId": "Token",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixTokenResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixTokenRequest"
            }
          }
        ],
        "tags": [
          "TokenManager"
        ],
        "security": []
      }
    },
    "/v1/oauth2/{user_id}/client": {
      "post": {
        "operationId": "CreateClient",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateClientResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateClientRequest"
            }
          }
        ],
        "tags": [
          "TokenManager"
        ]
      }
    },
    "/v1/users": {
      "get": {
        "operationId": "DescribeUsers",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeUsersResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "group_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "role",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "AccountManager"
        ]
      },
      "delete": {
        "operationId": "DeleteUsers",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteUsersResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteUsersRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      },
      "post": {
        "summary": "admin permission",
        "operationId": "CreateUser",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateUserResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateUserRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      },
      "patch": {
        "operationId": "ModifyUser",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyUserResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyUserRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      }
    },
    "/v1/users/password/reset/{reset_id}": {
      "get": {
        "operationId": "GetPasswordReset",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixGetPasswordResetResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "reset_id",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "AccountManager"
        ]
      }
    },
    "/v1/users/password:change": {
      "post": {
        "operationId": "ChangePassword",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixChangePasswordResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixChangePasswordRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      }
    },
    "/v1/users/password:reset": {
      "post": {
        "operationId": "CreatePasswordReset",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreatePasswordResetResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreatePasswordResetRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      }
    },
    "/v1/users/password:validate": {
      "post": {
        "operationId": "ValidateUserPassword",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixValidateUserPasswordResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixValidateUserPasswordRequest"
            }
          }
        ],
        "tags": [
          "AccountManager"
        ]
      }
    },
    "/v1/jobs": {
      "get": {
        "summary": "describe jobs with filter",
        "operationId": "DescribeJobs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeJobsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "cluster_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "app_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "executor",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "runtime_id",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "limit",
            "description": "default is 20, max value is 200.",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "description": "default is 0.",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "JobManager"
        ]
      }
    },
    "/v1/market_users": {
      "get": {
        "summary": "describe users with filter",
        "operationId": "DescribeMarketUsers",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeMarketUsersResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          },
          {
            "name": "market_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "MarketManager"
        ]
      }
    },
    "/v1/markets": {
      "get": {
        "summary": "describe markets with filter",
        "operationId": "DescribeMarkets",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeMarketsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          },
          {
            "name": "market_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "visibility",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "MarketManager"
        ]
      },
      "delete": {
        "summary": "delete markets",
        "operationId": "DeleteMarkets",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteMarketsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteMarketsRequest"
            }
          }
        ],
        "tags": [
          "MarketManager"
        ]
      },
      "post": {
        "summary": "create market",
        "operationId": "CreateMarket",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateMarketResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateMarketRequest"
            }
          }
        ],
        "tags": [
          "MarketManager"
        ]
      },
      "patch": {
        "summary": "modify market",
        "operationId": "ModifyMarket",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyMarketResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyMarketRequest"
            }
          }
        ],
        "tags": [
          "MarketManager"
        ]
      }
    },
    "/v1/markets:join": {
      "post": {
        "summary": "user join market",
        "operationId": "UserJoinMarket",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixUserJoinMarketResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixUserJoinMarketRequest"
            }
          }
        ],
        "tags": [
          "MarketManager"
        ]
      }
    },
    "/v1/markets:leave": {
      "post": {
        "summary": "user leave market",
        "operationId": "UserLeaveMarket",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixUserLeaveMarketResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixUserLeaveMarketRequest"
            }
          }
        ],
        "tags": [
          "MarketManager"
        ]
      }
    },
    "/v1/repos": {
      "get": {
        "summary": "describe repos with filter",
        "operationId": "DescribeRepos",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeReposResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "visibility",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "selector",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sort_key",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "reverse",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "app_default_status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "RepoManager"
        ]
      },
      "delete": {
        "summary": "delete repos",
        "operationId": "DeleteRepos",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteReposResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteReposRequest"
            }
          }
        ],
        "tags": [
          "RepoManager"
        ]
      },
      "post": {
        "summary": "create repo",
        "operationId": "CreateRepo",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateRepoResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateRepoRequest"
            }
          }
        ],
        "tags": [
          "RepoManager"
        ]
      },
      "patch": {
        "summary": "modify repo",
        "operationId": "ModifyRepo",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyRepoResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyRepoRequest"
            }
          }
        ],
        "tags": [
          "RepoManager"
        ]
      }
    },
    "/v1/repos/validate": {
      "get": {
        "summary": "validate repo",
        "operationId": "ValidateRepo",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixValidateRepoResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "url",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "credential",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "RepoManager"
        ]
      }
    },
    "/v1/repo_events": {
      "get": {
        "summary": "describe repo events",
        "operationId": "DescribeRepoEvents",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeRepoEventsResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "repo_event_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "repo_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          }
        ],
        "tags": [
          "RepoIndexer"
        ]
      }
    },
    "/v1/repos/index": {
      "post": {
        "summary": "start a index repo event",
        "operationId": "IndexRepo",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixIndexRepoResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixIndexRepoRequest"
            }
          }
        ],
        "tags": [
          "RepoIndexer"
        ]
      }
    },
    "/v1/runtimes": {
      "get": {
        "summary": "describe runtime",
        "operationId": "DescribeRuntimes",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeRuntimesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "runtime_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          }
        ],
        "tags": [
          "RuntimeManager"
        ]
      },
      "delete": {
        "summary": "delete runtimes",
        "operationId": "DeleteRuntimes",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteRuntimesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixDeleteRuntimesRequest"
            }
          }
        ],
        "tags": [
          "RuntimeManager"
        ]
      },
      "post": {
        "summary": "create runtime",
        "operationId": "CreateRuntime",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixCreateRuntimeResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixCreateRuntimeRequest"
            }
          }
        ],
        "tags": [
          "RuntimeManager"
        ]
      },
      "patch": {
        "summary": "modify runtime",
        "operationId": "ModifyRuntime",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixModifyRuntimeResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixModifyRuntimeRequest"
            }
          }
        ],
        "tags": [
          "RuntimeManager"
        ]
      }
    },
    "/v1/runtimes/statistics": {
      "get": {
        "summary": "get runtime statistics",
        "operationId": "GetRuntimeStatistics",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixGetRuntimeStatisticsResponse"
            }
          }
        },
        "tags": [
          "RuntimeManager"
        ]
      }
    },
    "/v1/runtimes/zones": {
      "get": {
        "summary": "describe runtime provider zones",
        "operationId": "DescribeRuntimeProviderZones",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeRuntimeProviderZonesResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "runtime_url",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "runtime_credential",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "RuntimeManager"
        ]
      }
    },
    "/v1/tasks": {
      "get": {
        "summary": "describe tasks with filter",
        "operationId": "DescribeTasks",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixDescribeTasksResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "task_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "job_id",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "executor",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "target",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "limit",
            "description": "default is 20, max value is 200.",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "offset",
            "description": "default is 0.",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int64"
          },
          {
            "name": "search_word",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "TaskManager"
        ]
      }
    },
    "/v1/tasks/retry": {
      "post": {
        "summary": "retry tasks",
        "operationId": "RetryTasks",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/openpitrixRetryTasksResponse"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/openpitrixRetryTasksRequest"
            }
          }
        ],
        "tags": [
          "TaskManager"
        ]
      }
    }
  },
  "definitions": {
    "openpitrixApp": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "repo_id": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "home": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "screenshots": {
          "type": "string"
        },
        "maintainers": {
          "type": "string"
        },
        "keywords": {
          "type": "string"
        },
        "sources": {
          "type": "string"
        },
        "readme": {
          "type": "string"
        },
        "chart_name": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        },
        "update_time": {
          "type": "string",
          "format": "date-time"
        },
        "category_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixResourceCategory"
          }
        },
        "latest_app_version": {
          "$ref": "#/definitions/openpitrixAppVersion"
        }
      }
    },
    "openpitrixAppVersion": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        },
        "app_id": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "home": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "screenshots": {
          "type": "string"
        },
        "maintainers": {
          "type": "string"
        },
        "keywords": {
          "type": "string"
        },
        "sources": {
          "type": "string"
        },
        "readme": {
          "type": "string"
        },
        "package_name": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        },
        "update_time": {
          "type": "string",
          "format": "date-time"
        },
        "sequence": {
          "type": "integer",
          "format": "int64"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "openpitrixCancelAppVersionRequest": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixCancelAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateAppRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "repo_id": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "chart_name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "home": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "screenshots": {
          "type": "string"
        },
        "maintainers": {
          "type": "string"
        },
        "sources": {
          "type": "string"
        },
        "readme": {
          "type": "string"
        },
        "category_id": {
          "type": "string"
        },
        "keywords": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "package": {
          "type": "string",
          "format": "byte"
        }
      }
    },
    "openpitrixCreateAppResponse": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "string"
        },
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateAppVersionRequest": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "package_name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "sequence": {
          "type": "integer",
          "format": "int64"
        },
        "status": {
          "type": "string"
        },
        "package": {
          "type": "string",
          "format": "byte"
        },
        "home": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "screenshots": {
          "type": "string"
        },
        "maintainers": {
          "type": "string"
        },
        "keywords": {
          "type": "string"
        },
        "sources": {
          "type": "string"
        },
        "readme": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDeleteAppVersionRequest": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        },
        "direct_delete": {
          "type": "boolean",
          "format": "boolean"
        }
      }
    },
    "openpitrixDeleteAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDeleteAppsRequest": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "direct_delete": {
          "type": "boolean",
          "format": "boolean"
        }
      }
    },
    "openpitrixDeleteAppsResponse": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDescribeAppVersionsResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "app_version_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixAppVersion"
          }
        }
      }
    },
    "openpitrixDescribeAppsResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "app_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixApp"
          }
        }
      }
    },
    "openpitrixGetAppStatisticsResponse": {
      "type": "object",
      "properties": {
        "last_two_week_created": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "int64"
          }
        },
        "top_ten_repos": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "int64"
          }
        },
        "app_count": {
          "type": "integer",
          "format": "int64"
        },
        "repo_count": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "openpitrixGetAppVersionPackageFilesResponse": {
      "type": "object",
      "properties": {
        "files": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "format": "byte"
          }
        },
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixGetAppVersionPackageResponse": {
      "type": "object",
      "properties": {
        "package": {
          "type": "string",
          "format": "byte"
        },
        "app_id": {
          "type": "string"
        },
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyAppRequest": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "repo_id": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "chart_name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "home": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "screenshots": {
          "type": "string"
        },
        "maintainers": {
          "type": "string"
        },
        "sources": {
          "type": "string"
        },
        "readme": {
          "type": "string"
        },
        "category_id": {
          "type": "string"
        },
        "keywords": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyAppResponse": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyAppVersionRequest": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "package_name": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "sequence": {
          "type": "integer",
          "format": "int64"
        },
        "status": {
          "type": "string"
        },
        "package": {
          "type": "string",
          "format": "byte"
        },
        "home": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "screenshots": {
          "type": "string"
        },
        "maintainers": {
          "type": "string"
        },
        "keywords": {
          "type": "string"
        },
        "sources": {
          "type": "string"
        },
        "readme": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixPassAppVersionRequest": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixPassAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixRecoverAppVersionRequest": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixRecoverAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixRejectAppVersionRequest": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "openpitrixRejectAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixReleaseAppVersionRequest": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixReleaseAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixResourceCategory": {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixSubmitAppVersionRequest": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixSubmitAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixSuspendAppVersionRequest": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixSuspendAppVersionResponse": {
      "type": "object",
      "properties": {
        "version_id": {
          "type": "string"
        }
      }
    },
    "openpitrixSyncRepoResponse": {
      "type": "object",
      "properties": {
        "failed": {
          "type": "boolean",
          "format": "boolean"
        },
        "result": {
          "type": "string"
        }
      }
    },
    "openpitrixCategory": {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "update_time": {
          "type": "string",
          "format": "date-time"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateCategoryRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateCategoryResponse": {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDeleteCategoriesRequest": {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteCategoriesResponse": {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDescribeCategoriesResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "category_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixCategory"
          }
        }
      }
    },
    "openpitrixModifyCategoryRequest": {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyCategoryResponse": {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "string"
        }
      }
    },
    "openpitrixAddClusterNodesRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "node_count": {
          "type": "integer",
          "format": "int64"
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixAddClusterNodesResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "job_id": {
          "type": "string"
        }
      }
    },
    "openpitrixAddNodeKeyPairsResponse": {
      "type": "object"
    },
    "openpitrixAttachKeyPairsRequest": {
      "type": "object",
      "properties": {
        "key_pair_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "node_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixAttachKeyPairsResponse": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixCeaseClustersRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixCeaseClustersResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "job_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixCluster": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "app_id": {
          "type": "string"
        },
        "version_id": {
          "type": "string"
        },
        "subnet_id": {
          "type": "string"
        },
        "vpc_id": {
          "type": "string"
        },
        "frontgate_id": {
          "type": "string"
        },
        "cluster_type": {
          "type": "integer",
          "format": "int64"
        },
        "endpoints": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "transition_status": {
          "type": "string"
        },
        "metadata_root_access": {
          "type": "boolean",
          "format": "boolean"
        },
        "owner": {
          "type": "string"
        },
        "global_uuid": {
          "type": "string"
        },
        "upgrade_status": {
          "type": "string"
        },
        "upgrade_time": {
          "type": "string",
          "format": "date-time"
        },
        "runtime_id": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        },
        "additional_info": {
          "type": "string"
        },
        "cluster_node_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixClusterNode"
          }
        },
        "cluster_role_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixClusterRole"
          }
        },
        "cluster_link_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixClusterLink"
          }
        },
        "cluster_common_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixClusterCommon"
          }
        },
        "cluster_loadbalancer_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixClusterLoadbalancer"
          }
        }
      }
    },
    "openpitrixClusterCommon": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "server_id_upper_bound": {
          "type": "integer",
          "format": "int64"
        },
        "advanced_actions": {
          "type": "string"
        },
        "init_service": {
          "type": "string"
        },
        "start_service": {
          "type": "string"
        },
        "stop_service": {
          "type": "string"
        },
        "scale_out_service": {
          "type": "string"
        },
        "scale_in_service": {
          "type": "string"
        },
        "restart_service": {
          "type": "string"
        },
        "destroy_service": {
          "type": "string"
        },
        "upgrade_service": {
          "type": "string"
        },
        "custom_service": {
          "type": "string"
        },
        "backup_service": {
          "type": "string"
        },
        "restore_service": {
          "type": "string"
        },
        "delete_snapshot_service": {
          "type": "string"
        },
        "health_check": {
          "type": "string"
        },
        "monitor": {
          "type": "string"
        },
        "passphraseless": {
          "type": "string"
        },
        "vertical_scaling_policy": {
          "type": "string"
        },
        "agent_installed": {
          "type": "boolean",
          "format": "boolean"
        },
        "custom_metadata_script": {
          "type": "string"
        },
        "image_id": {
          "type": "string"
        },
        "backup_policy": {
          "type": "string"
        },
        "incremental_backup_supported": {
          "type": "boolean",
          "format": "boolean"
        },
        "hypervisor": {
          "type": "string"
        }
      }
    },
    "openpitrixClusterLink": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "external_cluster_id": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        }
      }
    },
    "openpitrixClusterLoadbalancer": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "loadbalancer_listener_id": {
          "type": "string"
        },
        "loadbalancer_port": {
          "type": "integer",
          "format": "int64"
        },
        "loadbalancer_policy_id": {
          "type": "string"
        }
      }
    },
    "openpitrixClusterNode": {
      "type": "object",
      "properties": {
        "node_id": {
          "type": "string"
        },
        "cluster_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "instance_id": {
          "type": "string"
        },
        "volume_id": {
          "type": "string"
        },
        "device": {
          "type": "string"
        },
        "subnet_id": {
          "type": "string"
        },
        "private_ip": {
          "type": "string"
        },
        "eip": {
          "type": "string"
        },
        "server_id": {
          "type": "integer",
          "format": "int64"
        },
        "role": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "transition_status": {
          "type": "string"
        },
        "group_id": {
          "type": "integer",
          "format": "int64"
        },
        "owner": {
          "type": "string"
        },
        "global_server_id": {
          "type": "integer",
          "format": "int64"
        },
        "custom_metadata": {
          "type": "string"
        },
        "pub_key": {
          "type": "string"
        },
        "health_status": {
          "type": "string"
        },
        "is_backup": {
          "type": "boolean",
          "format": "boolean"
        },
        "auto_backup": {
          "type": "boolean",
          "format": "boolean"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        },
        "host_id": {
          "type": "string"
        },
        "host_ip": {
          "type": "string"
        },
        "cluster_role": {
          "$ref": "#/definitions/openpitrixClusterRole"
        },
        "cluster_common": {
          "$ref": "#/definitions/openpitrixClusterCommon"
        },
        "key_pair_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixClusterRole": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "cpu": {
          "type": "integer",
          "format": "int64"
        },
        "gpu": {
          "type": "integer",
          "format": "int64"
        },
        "memory": {
          "type": "integer",
          "format": "int64"
        },
        "instance_size": {
          "type": "integer",
          "format": "int64"
        },
        "storage_size": {
          "type": "integer",
          "format": "int64"
        },
        "mount_point": {
          "type": "string"
        },
        "mount_options": {
          "type": "string"
        },
        "file_system": {
          "type": "string"
        },
        "env": {
          "type": "string"
        },
        "replicas": {
          "type": "integer",
          "format": "int64"
        },
        "ready_replicas": {
          "type": "integer",
          "format": "int64"
        },
        "api_version": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateClusterRequest": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "string"
        },
        "version_id": {
          "type": "string"
        },
        "runtime_id": {
          "type": "string"
        },
        "conf": {
          "type": "string"
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixCreateClusterResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "job_id": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateKeyPairRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "pub_key": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateKeyPairResponse": {
      "type": "object",
      "properties": {
        "key_pair_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDeleteClusterNodesRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "node_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteClusterNodesResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "job_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDeleteClustersRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteClustersResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "job_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteKeyPairsRequest": {
      "type": "object",
      "properties": {
        "key_pair_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteKeyPairsResponse": {
      "type": "object",
      "properties": {
        "key_pair_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteNodeKeyPairsResponse": {
      "type": "object"
    },
    "openpitrixDescribeClusterNodesResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "cluster_node_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixClusterNode"
          }
        }
      }
    },
    "openpitrixDescribeClustersResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "cluster_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixCluster"
          }
        }
      }
    },
    "openpitrixDescribeKeyPairsResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "key_pair_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixKeyPair"
          }
        }
      }
    },
    "openpitrixDescribeSubnetsResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "subnet_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixSubnet"
          }
        }
      }
    },
    "openpitrixDetachKeyPairsRequest": {
      "type": "object",
      "properties": {
        "key_pair_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "node_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDetachKeyPairsResponse": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixGetClusterStatisticsResponse": {
      "type": "object",
      "properties": {
        "last_two_week_created": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "int64"
          }
        },
        "top_ten_runtimes": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "int64"
          }
        },
        "cluster_count": {
          "type": "integer",
          "format": "int64"
        },
        "runtime_count": {
          "type": "integer",
          "format": "int64"
        },
        "top_ten_apps": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "int64"
          }
        }
      }
    },
    "openpitrixKeyPair": {
      "type": "object",
      "properties": {
        "key_pair_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "pub_key": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        },
        "node_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixModifyClusterAttributesRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyClusterAttributesResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyClusterNodeAttributesRequest": {
      "type": "object",
      "properties": {
        "node_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyClusterNodeAttributesResponse": {
      "type": "object",
      "properties": {
        "node_id": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyClusterNodeResponse": {
      "type": "object",
      "properties": {
        "node_id": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyClusterResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        }
      }
    },
    "openpitrixNodeKeyPair": {
      "type": "object",
      "properties": {
        "node_id": {
          "type": "string"
        },
        "key_pair_id": {
          "type": "string"
        }
      }
    },
    "openpitrixRecoverClustersRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixRecoverClustersResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "job_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixResizeClusterRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "role_resource": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixRoleResource"
          }
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixResizeClusterResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "job_id": {
          "type": "string"
        }
      }
    },
    "openpitrixRoleResource": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string"
        },
        "cpu": {
          "type": "integer",
          "format": "int64"
        },
        "gpu": {
          "type": "integer",
          "format": "int64"
        },
        "memory": {
          "type": "integer",
          "format": "int64"
        },
        "instance_size": {
          "type": "integer",
          "format": "int64"
        },
        "storage_size": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "openpitrixRollbackClusterRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixRollbackClusterResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "job_id": {
          "type": "string"
        }
      }
    },
    "openpitrixStartClustersRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixStartClustersResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "job_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixStopClustersRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixStopClustersResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "job_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixSubnet": {
      "type": "object",
      "properties": {
        "subnet_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "zone": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "description": {
          "type": "string"
        },
        "instance_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "vpc_id": {
          "type": "string"
        },
        "subnet_type": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "openpitrixUpdateClusterEnvRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "env": {
          "type": "string"
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixUpdateClusterEnvResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "job_id": {
          "type": "string"
        }
      }
    },
    "openpitrixUpgradeClusterRequest": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "version_id": {
          "type": "string"
        },
        "advanced_param": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixUpgradeClusterResponse": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "job_id": {
          "type": "string"
        }
      }
    },
    "protobufEmpty": {
      "type": "object",
      "description": "service Foo {\n      rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n    }\n\nThe JSON representation for ` + "`" + `Empty` + "`" + ` is empty JSON object ` + "`" + `{}` + "`" + `.",
      "title": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:"
    },
    "openpitrixChangePasswordRequest": {
      "type": "object",
      "properties": {
        "new_password": {
          "type": "string"
        },
        "reset_id": {
          "type": "string"
        }
      }
    },
    "openpitrixChangePasswordResponse": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateClientRequest": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateClientResponse": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string"
        },
        "client_id": {
          "type": "string"
        },
        "client_secret": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateGroupRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateGroupResponse": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string"
        }
      }
    },
    "openpitrixCreatePasswordResetRequest": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string"
        },
        "password": {
          "type": "string"
        }
      }
    },
    "openpitrixCreatePasswordResetResponse": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string"
        },
        "reset_id": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateUserRequest": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "password": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateUserResponse": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDeleteGroupsRequest": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteGroupsResponse": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteUsersRequest": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteUsersResponse": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDescribeGroupsResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "group_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixGroup"
          }
        }
      }
    },
    "openpitrixDescribeUsersResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "user_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixUser"
          }
        }
      }
    },
    "openpitrixGetPasswordResetResponse": {
      "type": "object",
      "properties": {
        "reset_id": {
          "type": "string"
        },
        "user_id": {
          "type": "string"
        }
      }
    },
    "openpitrixGroup": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "update_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixJoinGroupRequest": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixJoinGroupResponse": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixLeaveGroupRequest": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixLeaveGroupResponse": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixModifyGroupRequest": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyGroupResponse": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyUserRequest": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "password": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyUserResponse": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string"
        }
      }
    },
    "openpitrixTokenRequest": {
      "type": "object",
      "properties": {
        "grant_type": {
          "type": "string"
        },
        "client_id": {
          "type": "string"
        },
        "client_secret": {
          "type": "string"
        },
        "scope": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "password": {
          "type": "string"
        },
        "refresh_token": {
          "type": "string"
        }
      }
    },
    "openpitrixTokenResponse": {
      "type": "object",
      "properties": {
        "token_type": {
          "type": "string"
        },
        "expires_in": {
          "type": "integer",
          "format": "int32"
        },
        "access_token": {
          "type": "string"
        },
        "refresh_token": {
          "type": "string"
        },
        "id_token": {
          "type": "string"
        }
      }
    },
    "openpitrixUser": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "update_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixValidateUserPasswordRequest": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "password": {
          "type": "string"
        }
      }
    },
    "openpitrixValidateUserPasswordResponse": {
      "type": "object",
      "properties": {
        "validated": {
          "type": "boolean",
          "format": "boolean"
        }
      }
    },
    "openpitrixCreateJobResponse": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string"
        },
        "cluster_id": {
          "type": "string"
        },
        "app_id": {
          "type": "string"
        },
        "version_id": {
          "type": "string"
        },
        "runtime_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDescribeJobsResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "job_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixJob"
          }
        }
      }
    },
    "openpitrixJob": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string"
        },
        "cluster_id": {
          "type": "string"
        },
        "app_id": {
          "type": "string"
        },
        "version_id": {
          "type": "string"
        },
        "job_action": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "error_code": {
          "type": "integer",
          "format": "int64"
        },
        "directive": {
          "type": "string"
        },
        "executor": {
          "type": "string"
        },
        "task_count": {
          "type": "integer",
          "format": "int64"
        },
        "owner": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "runtime_id": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixCreateMarketRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "visibility": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateMarketResponse": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDeleteMarketsRequest": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteMarketsResponse": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDescribeMarketUsersResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "market_user_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixMarketUser"
          }
        }
      }
    },
    "openpitrixDescribeMarketsResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "market_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixMarket"
          }
        }
      }
    },
    "openpitrixMarket": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "visibility": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixMarketUser": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "string"
        },
        "user_id": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixModifyMarketRequest": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "visibility": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyMarketResponse": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "string"
        }
      }
    },
    "openpitrixUserJoinMarketRequest": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixUserJoinMarketResponse": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixUserLeaveMarketRequest": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixUserLeaveMarketResponse": {
      "type": "object",
      "properties": {
        "market_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "user_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixCreateRepoRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "credential": {
          "type": "string"
        },
        "visibility": {
          "type": "string"
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "labels": {
          "type": "string"
        },
        "selectors": {
          "type": "string"
        },
        "category_id": {
          "type": "string"
        },
        "app_default_status": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateRepoResponse": {
      "type": "object",
      "properties": {
        "repo_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDeleteReposRequest": {
      "type": "object",
      "properties": {
        "repo_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteReposResponse": {
      "type": "object",
      "properties": {
        "repo_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDescribeReposResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "repo_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixRepo"
          }
        }
      }
    },
    "openpitrixModifyRepoRequest": {
      "type": "object",
      "properties": {
        "repo_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "credential": {
          "type": "string"
        },
        "visibility": {
          "type": "string"
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "labels": {
          "type": "string"
        },
        "selectors": {
          "type": "string"
        },
        "category_id": {
          "type": "string"
        },
        "app_default_status": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyRepoResponse": {
      "type": "object",
      "properties": {
        "repo_id": {
          "type": "string"
        }
      }
    },
    "openpitrixRepo": {
      "type": "object",
      "properties": {
        "repo_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "credential": {
          "type": "string"
        },
        "visibility": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "labels": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixRepoLabel"
          }
        },
        "selectors": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixRepoSelector"
          }
        },
        "status": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        },
        "category_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixResourceCategory"
          }
        },
        "app_default_status": {
          "type": "string"
        }
      }
    },
    "openpitrixRepoLabel": {
      "type": "object",
      "properties": {
        "label_key": {
          "type": "string"
        },
        "label_value": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixRepoSelector": {
      "type": "object",
      "properties": {
        "selector_key": {
          "type": "string"
        },
        "selector_value": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixValidateRepoResponse": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean",
          "format": "boolean"
        },
        "errorCode": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "openpitrixDescribeRepoEventsResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "repo_event_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixRepoEvent"
          }
        }
      }
    },
    "openpitrixIndexRepoRequest": {
      "type": "object",
      "properties": {
        "repo_id": {
          "type": "string"
        }
      }
    },
    "openpitrixIndexRepoResponse": {
      "type": "object",
      "properties": {
        "repo_event": {
          "$ref": "#/definitions/openpitrixRepoEvent"
        },
        "repo_id": {
          "type": "string"
        }
      }
    },
    "openpitrixRepoEvent": {
      "type": "object",
      "properties": {
        "repo_event_id": {
          "type": "string"
        },
        "repo_id": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "result": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixCreateRuntimeRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "runtime_url": {
          "type": "string"
        },
        "zone": {
          "type": "string"
        },
        "runtime_credential": {
          "type": "string"
        },
        "labels": {
          "type": "string"
        }
      }
    },
    "openpitrixCreateRuntimeResponse": {
      "type": "object",
      "properties": {
        "runtime_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDeleteRuntimesRequest": {
      "type": "object",
      "properties": {
        "runtime_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDeleteRuntimesResponse": {
      "type": "object",
      "properties": {
        "runtime_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDescribeRuntimeDetailsResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "runtime_detail_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixRuntimeDetail"
          }
        }
      }
    },
    "openpitrixDescribeRuntimeProviderZonesResponse": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "zone": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixDescribeRuntimesResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "runtime_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixRuntime"
          }
        }
      }
    },
    "openpitrixGetRuntimeStatisticsResponse": {
      "type": "object",
      "properties": {
        "last_two_week_created": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "int64"
          }
        },
        "top_ten_providers": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "int64"
          }
        },
        "runtime_count": {
          "type": "integer",
          "format": "int64"
        },
        "provider_count": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "openpitrixModifyRuntimeRequest": {
      "type": "object",
      "properties": {
        "runtime_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "labels": {
          "type": "string"
        },
        "runtime_credential": {
          "type": "string"
        }
      }
    },
    "openpitrixModifyRuntimeResponse": {
      "type": "object",
      "properties": {
        "runtime_id": {
          "type": "string"
        }
      }
    },
    "openpitrixRuntime": {
      "type": "object",
      "properties": {
        "runtime_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "runtime_url": {
          "type": "string"
        },
        "zone": {
          "type": "string"
        },
        "labels": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixRuntimeLabel"
          }
        },
        "owner": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixRuntimeDetail": {
      "type": "object",
      "properties": {
        "runtime": {
          "$ref": "#/definitions/openpitrixRuntime"
        },
        "runtime_credential": {
          "type": "string"
        }
      }
    },
    "openpitrixRuntimeLabel": {
      "type": "object",
      "properties": {
        "label_key": {
          "type": "string"
        },
        "label_value": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "openpitrixCreateTaskResponse": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string"
        },
        "job_id": {
          "type": "string"
        }
      }
    },
    "openpitrixDescribeTasksResponse": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer",
          "format": "int64"
        },
        "task_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixTask"
          }
        }
      }
    },
    "openpitrixRetryTasksRequest": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openpitrixRetryTasksResponse": {
      "type": "object",
      "properties": {
        "task_set": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/openpitrixTask"
          }
        }
      }
    },
    "openpitrixTask": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string"
        },
        "job_id": {
          "type": "string"
        },
        "task_action": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "error_code": {
          "type": "integer",
          "format": "int64"
        },
        "directive": {
          "type": "string"
        },
        "executor": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "node_id": {
          "type": "string"
        },
        "create_time": {
          "type": "string",
          "format": "date-time"
        },
        "status_time": {
          "type": "string",
          "format": "date-time"
        },
        "failure_allowed": {
          "type": "boolean",
          "format": "boolean"
        }
      }
    }
  },
  "securityDefinitions": {
    "BearerAuth": {
      "type": "apiKey",
      "description": "The Authorization header must be set to Bearer followed by a space and a token. For example, 'Bearer vHUabiBEIKi8n1RdvWOjGFulGSM6zunb'.",
      "name": "Authorization",
      "in": "header"
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
`,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL