Skip to content

Commit 1b3d18c

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

File tree

2 files changed

+69
-20
lines changed

2 files changed

+69
-20
lines changed

models.gen.go

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

spec.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5807,6 +5807,9 @@
58075807
"properties": {
58085808
"status": {
58095809
"$ref": "#/components/schemas/SyncRunStatus"
5810+
},
5811+
"status_reason": {
5812+
"$ref": "#/components/schemas/SyncRunStatusReason"
58105813
}
58115814
}
58125815
}
@@ -6293,7 +6296,8 @@
62936296
"type": "string",
62946297
"enum": [
62956298
"api",
6296-
"database"
6299+
"database",
6300+
"free"
62976301
]
62986302
},
62996303
"PluginReleaseStage": {
@@ -6306,8 +6310,9 @@
63066310
]
63076311
},
63086312
"PluginTier": {
6309-
"description": "Supported tiers for plugins.\n - free: Free tier, with no paid tables.\n - paid: Paid tier. These plugins may have paid tables, but can also have free tables. They require login to access.\n - open-core: This option is deprecated, please use either free or paid.\n",
6313+
"description": "This field is deprecated, refer to `price_category` instead.\nThis field is only kept for backward compatibility and may be removed in a future release.\nSupported tiers for plugins.\n - free: Free tier, with no paid tables.\n - paid: Paid tier. These plugins may have paid tables, but can also have free tables. They require login to access.\n - open-core: This option is deprecated, values will either be free or paid.\n",
63106314
"type": "string",
6315+
"deprecated": true,
63116316
"enum": [
63126317
"free",
63136318
"paid",
@@ -6460,7 +6465,6 @@
64606465
"kind",
64616466
"name",
64626467
"category",
6463-
"tier",
64646468
"display_name",
64656469
"short_description",
64666470
"logo",
@@ -9173,6 +9177,14 @@
91739177
"created"
91749178
]
91759179
},
9180+
"SyncRunStatusReason": {
9181+
"description": "The reason for the status",
9182+
"type": "string",
9183+
"enum": [
9184+
"error",
9185+
"oom_killed"
9186+
]
9187+
},
91769188
"SyncRun": {
91779189
"description": "Managed Sync Run definition",
91789190
"type": "object",
@@ -9201,6 +9213,10 @@
92019213
"$ref": "#/components/schemas/SyncRunStatus",
92029214
"description": "Status of the sync run"
92039215
},
9216+
"status_reason": {
9217+
"$ref": "#/components/schemas/SyncRunStatusReason",
9218+
"description": "Reason for the status of the sync run"
9219+
},
92049220
"created_at": {
92059221
"example": "2017-07-14T16:53:42Z",
92069222
"format": "date-time",

0 commit comments

Comments
 (0)