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 #76

Merged
merged 1 commit into from
Nov 21, 2023
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
162 changes: 162 additions & 0 deletions client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions models.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -2339,6 +2339,49 @@
"tags": [
"addons"
]
},
"post": {
"description": "Start the checkout process for an addon order.",
"operationId": "CreateAddonOrderForTeam",
"parameters": [
{
"$ref": "#/components/parameters/team_name"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddonOrderCreate"
}
}
}
},
"responses": {
"302": {
"headers": {
"Location": {
"schema": {
"type": "string"
}
}
},
"description": "Response"
},
"401": {
"$ref": "#/components/responses/RequiresAuthentication"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"tags": [
"addons"
]
}
},
"/teams/{team_name}/memberships": {
Expand Down Expand Up @@ -4833,6 +4876,40 @@
"title": "CloudQuery Addon",
"type": "object"
},
"AddonOrderCreate": {
"additionalProperties": false,
"description": "Create CloudQuery Addon Order",
"properties": {
"addon_team": {
"$ref": "#/components/schemas/TeamName"
},
"addon_type": {
"$ref": "#/components/schemas/AddonType"
},
"addon_name": {
"$ref": "#/components/schemas/AddonName"
},
"redirect_url": {
"type": "string",
"description": "URL to redirect to after order completion",
"example": "https://cloud.cloudquery.io/order-completion"
},
"cancel_url": {
"type": "string",
"description": "URL to redirect to after order cancellation",
"example": "https://cloud.cloudquery.io/order-cancelled"
}
},
"required": [
"addon_team",
"addon_type",
"addon_name",
"redirect_url",
"cancel_url"
],
"title": "Create CloudQuery Addon Order",
"type": "object"
},
"Email": {
"type": "string",
"example": "[email protected]",
Expand Down
Loading