Skip to content

Commit 20fff2c

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

File tree

3 files changed

+82
-8
lines changed

3 files changed

+82
-8
lines changed

client.gen.go

Lines changed: 8 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: 23 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.json

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@
133133
"official": true,
134134
"short_description": "Sync data from AWS to any destination",
135135
"repository": "https://github.com/cloudquery/cloudquery",
136-
"tier": "free"
136+
"tier": "paid",
137+
"usd_per_row": "0.00123",
138+
"free_rows_per_month": 10000
137139
}
138140
]
139141
},
@@ -288,6 +290,9 @@
288290
"404": {
289291
"$ref": "#/components/responses/NotFound"
290292
},
293+
"422": {
294+
"$ref": "#/components/responses/UnprocessableEntity"
295+
},
291296
"500": {
292297
"$ref": "#/components/responses/InternalError"
293298
}
@@ -1443,7 +1448,9 @@
14431448
"official": true,
14441449
"short_description": "Sync data from AWS to any destination",
14451450
"repository": "https://github.com/cloudquery/cloudquery",
1446-
"tier": "free"
1451+
"tier": "paid",
1452+
"usd_per_row": "0.00123",
1453+
"free_rows_per_month": 10000
14471454
}
14481455
]
14491456
},
@@ -2596,6 +2603,19 @@
25962603
"public": {
25972604
"description": "Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the plugin's team.",
25982605
"type": "boolean"
2606+
},
2607+
"usd_per_row": {
2608+
"type": "string",
2609+
"pattern": "^\\d+(?:\\.\\d{1,10})?$",
2610+
"description": "The price per row in USD. This is used to calculate the price of a sync.",
2611+
"example": "0.0001",
2612+
"x-go-name": "USDPerRow"
2613+
},
2614+
"free_rows_per_month": {
2615+
"type": "integer",
2616+
"format": "int64",
2617+
"description": "The number of rows that can be synced for free each month.",
2618+
"example": 1000
25992619
}
26002620
},
26012621
"required": [
@@ -2608,7 +2628,9 @@
26082628
"display_name",
26092629
"official",
26102630
"short_description",
2611-
"tier"
2631+
"tier",
2632+
"usd_per_row",
2633+
"free_rows_per_month"
26122634
],
26132635
"title": "CloudQuery Plugin",
26142636
"type": "object"
@@ -2683,6 +2705,19 @@
26832705
"type": "string",
26842706
"description": "URL to the plugin's logo. This will be shown in the CloudQuery Hub. This must point to https://images.cloudquery.io/...",
26852707
"example": "https://images.cloudquery.io/logos/aws.png"
2708+
},
2709+
"usd_per_row": {
2710+
"type": "string",
2711+
"pattern": "^\\d+(?:\\.\\d{1,10})?$",
2712+
"description": "The price per row in USD. This is used to calculate the price of a sync.",
2713+
"example": "0.0001",
2714+
"x-go-name": "USDPerRow"
2715+
},
2716+
"free_rows_per_month": {
2717+
"type": "integer",
2718+
"format": "int64",
2719+
"description": "The number of rows that can be synced for free each month.",
2720+
"example": 1000
26862721
}
26872722
}
26882723
},
@@ -2749,6 +2784,19 @@
27492784
"public": {
27502785
"type": "boolean",
27512786
"description": "If plugin is not public, it won't be visible to other teams in the CloudQuery Hub."
2787+
},
2788+
"usd_per_row": {
2789+
"type": "string",
2790+
"pattern": "^\\d+(?:\\.\\d{1,10})?$",
2791+
"description": "The price per row in USD. This is used to calculate the price of a sync.",
2792+
"example": "0.0001",
2793+
"x-go-name": "USDPerRow"
2794+
},
2795+
"free_rows_per_month": {
2796+
"type": "integer",
2797+
"format": "int64",
2798+
"description": "The number of rows that can be synced for free each month.",
2799+
"example": 1000
27522800
}
27532801
}
27542802
},

0 commit comments

Comments
 (0)