Skip to content

Commit d97a5b7

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

File tree

3 files changed

+260
-0
lines changed

3 files changed

+260
-0
lines changed

client.gen.go

Lines changed: 162 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: 21 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: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,6 +2339,49 @@
23392339
"tags": [
23402340
"addons"
23412341
]
2342+
},
2343+
"post": {
2344+
"description": "Start the checkout process for an addon order.",
2345+
"operationId": "CreateAddonOrderForTeam",
2346+
"parameters": [
2347+
{
2348+
"$ref": "#/components/parameters/team_name"
2349+
}
2350+
],
2351+
"requestBody": {
2352+
"required": true,
2353+
"content": {
2354+
"application/json": {
2355+
"schema": {
2356+
"$ref": "#/components/schemas/AddonOrderCreate"
2357+
}
2358+
}
2359+
}
2360+
},
2361+
"responses": {
2362+
"302": {
2363+
"headers": {
2364+
"Location": {
2365+
"schema": {
2366+
"type": "string"
2367+
}
2368+
}
2369+
},
2370+
"description": "Response"
2371+
},
2372+
"401": {
2373+
"$ref": "#/components/responses/RequiresAuthentication"
2374+
},
2375+
"404": {
2376+
"$ref": "#/components/responses/NotFound"
2377+
},
2378+
"500": {
2379+
"$ref": "#/components/responses/InternalError"
2380+
}
2381+
},
2382+
"tags": [
2383+
"addons"
2384+
]
23422385
}
23432386
},
23442387
"/teams/{team_name}/memberships": {
@@ -4833,6 +4876,40 @@
48334876
"title": "CloudQuery Addon",
48344877
"type": "object"
48354878
},
4879+
"AddonOrderCreate": {
4880+
"additionalProperties": false,
4881+
"description": "Create CloudQuery Addon Order",
4882+
"properties": {
4883+
"addon_team": {
4884+
"$ref": "#/components/schemas/TeamName"
4885+
},
4886+
"addon_type": {
4887+
"$ref": "#/components/schemas/AddonType"
4888+
},
4889+
"addon_name": {
4890+
"$ref": "#/components/schemas/AddonName"
4891+
},
4892+
"redirect_url": {
4893+
"type": "string",
4894+
"description": "URL to redirect to after order completion",
4895+
"example": "https://cloud.cloudquery.io/order-completion"
4896+
},
4897+
"cancel_url": {
4898+
"type": "string",
4899+
"description": "URL to redirect to after order cancellation",
4900+
"example": "https://cloud.cloudquery.io/order-cancelled"
4901+
}
4902+
},
4903+
"required": [
4904+
"addon_team",
4905+
"addon_type",
4906+
"addon_name",
4907+
"redirect_url",
4908+
"cancel_url"
4909+
],
4910+
"title": "Create CloudQuery Addon Order",
4911+
"type": "object"
4912+
},
48364913
"Email": {
48374914
"type": "string",
48384915
"example": "user@cloudquery.io",

0 commit comments

Comments
 (0)