Skip to content

Commit a90e87b

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

File tree

3 files changed

+76
-3
lines changed

3 files changed

+76
-3
lines changed

client.gen.go

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

models.gen.go

Lines changed: 36 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: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5610,7 +5610,7 @@
56105610
"content": {
56115611
"application/json": {
56125612
"schema": {
5613-
"$ref": "#/components/schemas/SyncRun"
5613+
"$ref": "#/components/schemas/SyncRunDetails"
56145614
}
56155615
}
56165616
}
@@ -8827,6 +8827,43 @@
88278827
"format": "uuid",
88288828
"example": "12345678-1234-1234-1234-1234567890ab",
88298829
"x-go-name": "SyncRunID"
8830+
},
8831+
"SyncRunDetails": {
8832+
"allOf": [
8833+
{
8834+
"$ref": "#/components/schemas/SyncRun"
8835+
},
8836+
{
8837+
"type": "object",
8838+
"required": [
8839+
"created_at",
8840+
"sync_name",
8841+
"id",
8842+
"status",
8843+
"total_rows",
8844+
"warnings",
8845+
"errors"
8846+
],
8847+
"properties": {
8848+
"cpu_seconds": {
8849+
"type": "number",
8850+
"format": "double",
8851+
"description": "Total CPU seconds utilized during this sync run",
8852+
"x-go-name": "CPUSeconds"
8853+
},
8854+
"memory_byte_seconds": {
8855+
"type": "number",
8856+
"format": "double",
8857+
"description": "Total memory byte seconds utilized during this sync run"
8858+
},
8859+
"network_egress_bytes": {
8860+
"type": "number",
8861+
"format": "double",
8862+
"description": "Total network egress bytes during this sync run"
8863+
}
8864+
}
8865+
}
8866+
]
88308867
}
88318868
},
88328869
"responses": {

0 commit comments

Comments
 (0)