Skip to content

Commit 5ac719b

Browse files
authored
fix: Generate CloudQuery Go API Client from spec.json (#111)
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
1 parent b45ba19 commit 5ac719b

File tree

2 files changed

+232
-0
lines changed

2 files changed

+232
-0
lines changed

client.gen.go

Lines changed: 163 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: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3760,6 +3760,16 @@
37603760
}
37613761
}
37623762
},
3763+
"202": {
3764+
"description": "Response, email failed to send",
3765+
"content": {
3766+
"application/json": {
3767+
"schema": {
3768+
"$ref": "#/components/schemas/Invitation"
3769+
}
3770+
}
3771+
}
3772+
},
37633773
"400": {
37643774
"$ref": "#/components/responses/BadRequest"
37653775
},
@@ -5103,6 +5113,65 @@
51035113
}
51045114
}
51055115
}
5116+
},
5117+
"/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/logs": {
5118+
"get": {
5119+
"description": "Get logs for a sync run.",
5120+
"operationId": "GetSyncRunLogs",
5121+
"tags": [
5122+
"syncs"
5123+
],
5124+
"parameters": [
5125+
{
5126+
"$ref": "#/components/parameters/team_name"
5127+
},
5128+
{
5129+
"$ref": "#/components/parameters/sync_name"
5130+
},
5131+
{
5132+
"$ref": "#/components/parameters/sync_run_id"
5133+
}
5134+
],
5135+
"responses": {
5136+
"200": {
5137+
"description": "Chunked response logs for a sync run that is in progress.",
5138+
"content": {
5139+
"text/plain": {
5140+
"schema": {
5141+
"type": "string",
5142+
"description": "A stream of logs for a sync run."
5143+
}
5144+
}
5145+
}
5146+
},
5147+
"302": {
5148+
"description": "Redirect to the logs download URL for a sync run that has completed.",
5149+
"headers": {
5150+
"Location": {
5151+
"schema": {
5152+
"type": "string",
5153+
"description": "URL to download logs"
5154+
}
5155+
}
5156+
}
5157+
},
5158+
"400": {
5159+
"$ref": "#/components/responses/BadRequest"
5160+
},
5161+
"401": {
5162+
"$ref": "#/components/responses/RequiresAuthentication"
5163+
},
5164+
"404": {
5165+
"$ref": "#/components/responses/NotFound"
5166+
},
5167+
"422": {
5168+
"$ref": "#/components/responses/UnprocessableEntity"
5169+
},
5170+
"500": {
5171+
"$ref": "#/components/responses/InternalError"
5172+
}
5173+
}
5174+
}
51065175
}
51075176
},
51085177
"components": {

0 commit comments

Comments
 (0)