Skip to content

Commit

Permalink
fix: Generate CloudQuery Go API Client from spec.json (#73)
Browse files Browse the repository at this point in the history
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
  • Loading branch information
cq-bot authored Nov 15, 2023
1 parent 69d6afe commit db26b9c
Show file tree
Hide file tree
Showing 3 changed files with 300 additions and 0 deletions.
185 changes: 185 additions & 0 deletions client.gen.go

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

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

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

90 changes: 90 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -2283,6 +2283,64 @@
]
}
},
"/teams/{team_name}/addon-orders": {
"get": {
"description": "List all addon orders for the team.",
"operationId": "ListAddonOrdersByTeam",
"parameters": [
{
"$ref": "#/components/parameters/team_name"
},
{
"$ref": "#/components/parameters/page"
},
{
"$ref": "#/components/parameters/per_page"
}
],
"responses": {
"200": {
"description": "Response",
"content": {
"application/json": {
"schema": {
"required": [
"items",
"metadata"
],
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/AddonOrder"
},
"type": "array"
},
"metadata": {
"$ref": "#/components/schemas/ListMetadata"
}
}
}
}
}
},
"401": {
"$ref": "#/components/responses/RequiresAuthentication"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"tags": [
"addons"
]
}
},
"/teams/{team_name}/memberships": {
"get": {
"description": "Get memberships to the team.",
Expand Down Expand Up @@ -4743,6 +4801,38 @@
"title": "Team",
"type": "object"
},
"AddonOrder": {
"additionalProperties": false,
"description": "CloudQuery Addon Order",
"properties": {
"team_name": {
"$ref": "#/components/schemas/TeamName"
},
"addon_team": {
"$ref": "#/components/schemas/TeamName"
},
"addon_type": {
"$ref": "#/components/schemas/AddonType"
},
"addon_name": {
"$ref": "#/components/schemas/AddonName"
},
"purchase_date": {
"type": "string",
"format": "date-time",
"example": "2017-07-14T16:53:42Z"
}
},
"required": [
"team_name",
"addon_team",
"addon_type",
"addon_name",
"purchase_date"
],
"title": "CloudQuery Addon",
"type": "object"
},
"Email": {
"type": "string",
"example": "[email protected]",
Expand Down

0 comments on commit db26b9c

Please sign in to comment.