Skip to content

Commit bcf1462

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

File tree

3 files changed

+272
-1
lines changed

3 files changed

+272
-1
lines changed

client.gen.go

Lines changed: 192 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: 12 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: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5042,6 +5042,67 @@
50425042
}
50435043
}
50445044
}
5045+
},
5046+
"/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/progress": {
5047+
"post": {
5048+
"description": "Create a new sync run progress update.",
5049+
"operationId": "CreateSyncRunProgress",
5050+
"x-internal": true,
5051+
"tags": [
5052+
"syncs"
5053+
],
5054+
"parameters": [
5055+
{
5056+
"$ref": "#/components/parameters/team_name"
5057+
},
5058+
{
5059+
"$ref": "#/components/parameters/sync_name"
5060+
},
5061+
{
5062+
"$ref": "#/components/parameters/sync_run_id"
5063+
}
5064+
],
5065+
"requestBody": {
5066+
"required": true,
5067+
"content": {
5068+
"application/json": {
5069+
"schema": {
5070+
"type": "object",
5071+
"required": [
5072+
"rows"
5073+
],
5074+
"properties": {
5075+
"rows": {
5076+
"type": "integer",
5077+
"format": "int64",
5078+
"description": "Number of rows synced so far"
5079+
}
5080+
}
5081+
}
5082+
}
5083+
}
5084+
},
5085+
"responses": {
5086+
"204": {
5087+
"description": "Progress was reported successfully"
5088+
},
5089+
"400": {
5090+
"$ref": "#/components/responses/BadRequest"
5091+
},
5092+
"401": {
5093+
"$ref": "#/components/responses/RequiresAuthentication"
5094+
},
5095+
"404": {
5096+
"$ref": "#/components/responses/NotFound"
5097+
},
5098+
"422": {
5099+
"$ref": "#/components/responses/UnprocessableEntity"
5100+
},
5101+
"500": {
5102+
"$ref": "#/components/responses/InternalError"
5103+
}
5104+
}
5105+
}
50455106
}
50465107
},
50475108
"components": {
@@ -7258,7 +7319,8 @@
72587319
"sync_name",
72597320
"id",
72607321
"status",
7261-
"started_at"
7322+
"started_at",
7323+
"total_rows"
72627324
],
72637325
"properties": {
72647326
"sync_name": {
@@ -7287,6 +7349,11 @@
72877349
"format": "date-time",
72887350
"type": "string",
72897351
"description": "Cron schedule for the sync"
7352+
},
7353+
"total_rows": {
7354+
"type": "integer",
7355+
"format": "int64",
7356+
"description": "Total number of rows in the sync"
72907357
}
72917358
}
72927359
},

0 commit comments

Comments
 (0)