Skip to content

Commit

Permalink
chore: udpate client-rs version (#3461)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Aug 27, 2024
1 parent e1fadbb commit e3fd3b9
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 685 deletions.
232 changes: 8 additions & 224 deletions api/manager/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1083,166 +1083,6 @@ const docTemplate = `{
}
}
},
"/models": {
"get": {
"description": "Get Models",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Model"
],
"summary": "Get Models",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/d7y_io_dragonfly_v2_manager_models.Model"
}
}
},
"400": {
"description": "Bad Request"
},
"404": {
"description": "Not Found"
},
"500": {
"description": "Internal Server Error"
}
}
}
},
"/models/{id}": {
"get": {
"description": "Get Model by id",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Model"
],
"summary": "Get Model",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/d7y_io_dragonfly_v2_manager_models.Model"
}
},
"400": {
"description": "Bad Request"
},
"404": {
"description": "Not Found"
},
"500": {
"description": "Internal Server Error"
}
}
},
"delete": {
"description": "Destroy by id",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Model"
],
"summary": "Destroy Model",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request"
},
"404": {
"description": "Not Found"
},
"500": {
"description": "Internal Server Error"
}
}
},
"patch": {
"description": "Update by json config",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Model"
],
"summary": "Update Model",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path",
"required": true
},
{
"description": "Model",
"name": "Model",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateModelRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/d7y_io_dragonfly_v2_manager_models.Model"
}
},
"400": {
"description": "Bad Request"
},
"404": {
"description": "Not Found"
},
"500": {
"description": "Internal Server Error"
}
}
}
},
"/oauth": {
"get": {
"description": "Get Oauths",
Expand Down Expand Up @@ -3756,47 +3596,6 @@ const docTemplate = `{
}
}
},
"d7y_io_dragonfly_v2_manager_models.Model": {
"type": "object",
"properties": {
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"evaluation": {
"$ref": "#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap"
},
"id": {
"type": "integer"
},
"is_del": {
"type": "integer"
},
"name": {
"type": "string"
},
"scheduler": {
"$ref": "#/definitions/d7y_io_dragonfly_v2_manager_models.Scheduler"
},
"scheduler_id": {
"type": "integer"
},
"state": {
"type": "string"
},
"type": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"d7y_io_dragonfly_v2_manager_models.Oauth": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3977,12 +3776,6 @@ const docTemplate = `{
"location": {
"type": "string"
},
"models": {
"type": "array",
"items": {
"$ref": "#/definitions/d7y_io_dragonfly_v2_manager_models.Model"
}
},
"port": {
"type": "integer"
},
Expand Down Expand Up @@ -4692,7 +4485,7 @@ const docTemplate = `{
"url"
],
"properties": {
"filter": {
"filteredQueryParams": {
"type": "string"
},
"headers": {
Expand Down Expand Up @@ -4870,6 +4663,12 @@ const docTemplate = `{
"type": "string"
}
},
"hostnames": {
"type": "array",
"items": {
"type": "string"
}
},
"idc": {
"type": "string"
},
Expand All @@ -4883,7 +4682,7 @@ const docTemplate = `{
"properties": {
"load_limit": {
"type": "integer",
"maximum": 5000,
"maximum": 50000,
"minimum": 1
}
}
Expand Down Expand Up @@ -5058,21 +4857,6 @@ const docTemplate = `{
}
}
},
"d7y_io_dragonfly_v2_manager_types.UpdateModelRequest": {
"type": "object",
"properties": {
"BIO": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"active",
"inactive"
]
}
}
},
"d7y_io_dragonfly_v2_manager_types.UpdateOauthRequest": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit e3fd3b9

Please sign in to comment.