Skip to content

Commit bf745a9

Browse files
authored
fix: Generate CloudQuery Go API Client from spec.json (#6)
Co-authored-by: cq-bot <cq-bot@users.noreply.github.com>
1 parent f1066b1 commit bf745a9

File tree

3 files changed

+250
-0
lines changed

3 files changed

+250
-0
lines changed

client.gen.go

Lines changed: 186 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models.gen.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,61 @@
11151115
"tags": [
11161116
"teams"
11171117
]
1118+
},
1119+
"patch": {
1120+
"description": "Update team attributes",
1121+
"operationId": "UpdateTeam",
1122+
"parameters": [
1123+
{
1124+
"$ref": "#/components/parameters/team_name"
1125+
}
1126+
],
1127+
"requestBody": {
1128+
"content": {
1129+
"application/json": {
1130+
"schema": {
1131+
"type": "object",
1132+
"additionalProperties": false,
1133+
"properties": {
1134+
"display_name": {
1135+
"type": "string",
1136+
"description": "The team's display name"
1137+
}
1138+
}
1139+
}
1140+
}
1141+
}
1142+
},
1143+
"responses": {
1144+
"200": {
1145+
"description": "Response",
1146+
"content": {
1147+
"application/json": {
1148+
"schema": {
1149+
"$ref": "#/components/schemas/Team"
1150+
}
1151+
}
1152+
}
1153+
},
1154+
"401": {
1155+
"$ref": "#/components/responses/RequiresAuthentication"
1156+
},
1157+
"403": {
1158+
"$ref": "#/components/responses/Forbidden"
1159+
},
1160+
"404": {
1161+
"$ref": "#/components/responses/NotFound"
1162+
},
1163+
"422": {
1164+
"$ref": "#/components/responses/UnprocessableEntity"
1165+
},
1166+
"500": {
1167+
"$ref": "#/components/responses/InternalError"
1168+
}
1169+
},
1170+
"tags": [
1171+
"teams"
1172+
]
11181173
}
11191174
},
11201175
"/teams/{team_name}/plugins": {

0 commit comments

Comments
 (0)