Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Generate CloudQuery Go API Client from spec.json #110

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading