Skip to content

Commit cc496c5

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

File tree

3 files changed

+307
-0
lines changed

3 files changed

+307
-0
lines changed

client.gen.go

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

spec.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2848,6 +2848,64 @@
28482848
]
28492849
}
28502850
},
2851+
"/teams/{team_name}/invoices": {
2852+
"get": {
2853+
"description": "List all past invoices for the team.",
2854+
"operationId": "ListInvoicesByTeam",
2855+
"parameters": [
2856+
{
2857+
"$ref": "#/components/parameters/team_name"
2858+
},
2859+
{
2860+
"$ref": "#/components/parameters/page"
2861+
},
2862+
{
2863+
"$ref": "#/components/parameters/per_page"
2864+
}
2865+
],
2866+
"responses": {
2867+
"200": {
2868+
"description": "Response",
2869+
"content": {
2870+
"application/json": {
2871+
"schema": {
2872+
"required": [
2873+
"items",
2874+
"metadata"
2875+
],
2876+
"properties": {
2877+
"items": {
2878+
"items": {
2879+
"$ref": "#/components/schemas/Invoice"
2880+
},
2881+
"type": "array"
2882+
},
2883+
"metadata": {
2884+
"$ref": "#/components/schemas/ListMetadata"
2885+
}
2886+
}
2887+
}
2888+
}
2889+
}
2890+
},
2891+
"401": {
2892+
"$ref": "#/components/responses/RequiresAuthentication"
2893+
},
2894+
"403": {
2895+
"$ref": "#/components/responses/Forbidden"
2896+
},
2897+
"404": {
2898+
"$ref": "#/components/responses/NotFound"
2899+
},
2900+
"500": {
2901+
"$ref": "#/components/responses/InternalError"
2902+
}
2903+
},
2904+
"tags": [
2905+
"teams"
2906+
]
2907+
}
2908+
},
28512909
"/teams/{team_name}/usage": {
28522910
"get": {
28532911
"description": "List plugin usage for the current calendar month.",
@@ -5414,6 +5472,47 @@
54145472
}
54155473
}
54165474
},
5475+
"Invoice": {
5476+
"additionalProperties": false,
5477+
"title": "Invoice",
5478+
"description": "Invoice details",
5479+
"properties": {
5480+
"created_at": {
5481+
"type": "string",
5482+
"format": "date-time",
5483+
"example": "2017-07-14T16:53:42Z"
5484+
},
5485+
"amount_due": {
5486+
"type": "integer",
5487+
"format": "int64",
5488+
"example": 1000,
5489+
"description": "Amount due in cents. This is the amount that will be charged, unless there are pending invoice items. If the invoice’s total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the amount_due may be 0. The charge that gets generated for the invoice will be for the amount specified in amount_due."
5490+
},
5491+
"currency": {
5492+
"type": "string",
5493+
"example": "usd"
5494+
},
5495+
"invoice_pdf": {
5496+
"type": "string",
5497+
"format": "uri",
5498+
"description": "The link to download the PDF for the invoice.",
5499+
"x-go-name": "InvoicePDF"
5500+
},
5501+
"paid": {
5502+
"type": "boolean",
5503+
"example": true,
5504+
"description": "Whether or not payment was successfully collected for this invoice."
5505+
}
5506+
},
5507+
"required": [
5508+
"created_at",
5509+
"amount_due",
5510+
"currency",
5511+
"invoice_pdf",
5512+
"paid"
5513+
],
5514+
"type": "object"
5515+
},
54175516
"UsageCurrent": {
54185517
"title": "CloudQuery Plugin Usage",
54195518
"description": "The usage of a plugin within the current calendar month.",

0 commit comments

Comments
 (0)