Skip to content

Commit

Permalink
feat: custom preheat tag parameters (#1324)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
gaius-qi committed Jun 28, 2023
1 parent 605865d commit 3bd1f03
Show file tree
Hide file tree
Showing 7 changed files with 276 additions and 114 deletions.
136 changes: 98 additions & 38 deletions api/manager/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3542,9 +3542,15 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"download_rate_limit": {
"type": "integer"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
Expand All @@ -3563,6 +3569,9 @@ const docTemplate = `{
"state": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"url": {
"type": "string"
},
Expand All @@ -3574,52 +3583,22 @@ const docTemplate = `{
}
}
},
"model.Assertion": {
"model.Config": {
"type": "object",
"properties": {
"key": {
"bio": {
"type": "string"
},
"policy": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"policyMap": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
"created_at": {
"type": "string"
},
"rm": {},
"tokens": {
"type": "array",
"items": {
"type": "string"
}
"id": {
"type": "integer"
},
"value": {
"type": "string"
}
}
},
"model.AssertionMap": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/model.Assertion"
}
},
"model.Config": {
"type": "object",
"properties": {
"bio": {
"name": {
"type": "string"
},
"name": {
"updated_at": {
"type": "string"
},
"user_id": {
Expand All @@ -3643,6 +3622,12 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"result": {
"$ref": "#/definitions/model.JSONMap"
},
Expand All @@ -3667,6 +3652,9 @@ const docTemplate = `{
"type": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"user_id": {
"type": "integer"
}
Expand All @@ -3684,20 +3672,35 @@ const docTemplate = `{
"client_secret": {
"type": "string"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"redirect_url": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
"model.Scheduler": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"host_name": {
"type": "string"
},
"id": {
"type": "integer"
},
"idc": {
"type": "string"
},
Expand All @@ -3718,6 +3721,9 @@ const docTemplate = `{
},
"state": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -3736,6 +3742,12 @@ const docTemplate = `{
"config": {
"$ref": "#/definitions/model.JSONMap"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"is_default": {
"type": "boolean"
},
Expand All @@ -3759,6 +3771,9 @@ const docTemplate = `{
"items": {
"$ref": "#/definitions/model.SeedPeerCluster"
}
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -3768,6 +3783,12 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
Expand All @@ -3776,6 +3797,9 @@ const docTemplate = `{
"items": {
"$ref": "#/definitions/model.SecurityRule"
}
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -3785,9 +3809,15 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"domain": {
"type": "string"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
Expand All @@ -3799,18 +3829,27 @@ const docTemplate = `{
"items": {
"$ref": "#/definitions/model.SecurityGroup"
}
},
"updated_at": {
"type": "string"
}
}
},
"model.SeedPeer": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"download_port": {
"type": "integer"
},
"host_name": {
"type": "string"
},
"id": {
"type": "integer"
},
"idc": {
"type": "string"
},
Expand All @@ -3837,6 +3876,9 @@ const docTemplate = `{
},
"type": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -3852,6 +3894,12 @@ const docTemplate = `{
"config": {
"$ref": "#/definitions/model.JSONMap"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"is_default": {
"type": "boolean"
},
Expand All @@ -3875,6 +3923,9 @@ const docTemplate = `{
},
"security_group_id": {
"type": "integer"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -3887,9 +3938,15 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"email": {
"type": "string"
},
"id": {
"type": "integer"
},
"location": {
"type": "string"
},
Expand All @@ -3901,6 +3958,9 @@ const docTemplate = `{
},
"state": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
Expand Down

0 comments on commit 3bd1f03

Please sign in to comment.