Skip to content

Commit

Permalink
fix: Generate CloudQuery Go API Client from spec.json (#110)
Browse files Browse the repository at this point in the history
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
  • Loading branch information
cq-bot authored Jan 23, 2024
1 parent 3e8e533 commit bcf1462
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 1 deletion.
192 changes: 192 additions & 0 deletions client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions models.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 68 additions & 1 deletion spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5042,6 +5042,67 @@
}
}
}
},
"/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/progress": {
"post": {
"description": "Create a new sync run progress update.",
"operationId": "CreateSyncRunProgress",
"x-internal": true,
"tags": [
"syncs"
],
"parameters": [
{
"$ref": "#/components/parameters/team_name"
},
{
"$ref": "#/components/parameters/sync_name"
},
{
"$ref": "#/components/parameters/sync_run_id"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"rows"
],
"properties": {
"rows": {
"type": "integer",
"format": "int64",
"description": "Number of rows synced so far"
}
}
}
}
}
},
"responses": {
"204": {
"description": "Progress was reported successfully"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/RequiresAuthentication"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"422": {
"$ref": "#/components/responses/UnprocessableEntity"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
}
}
}
},
"components": {
Expand Down Expand Up @@ -7258,7 +7319,8 @@
"sync_name",
"id",
"status",
"started_at"
"started_at",
"total_rows"
],
"properties": {
"sync_name": {
Expand Down Expand Up @@ -7287,6 +7349,11 @@
"format": "date-time",
"type": "string",
"description": "Cron schedule for the sync"
},
"total_rows": {
"type": "integer",
"format": "int64",
"description": "Total number of rows in the sync"
}
}
},
Expand Down

0 comments on commit bcf1462

Please sign in to comment.