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

Merged
merged 1 commit into from
Oct 24, 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
16 changes: 8 additions & 8 deletions client.gen.go

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

10 changes: 8 additions & 2 deletions models.gen.go

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

23 changes: 17 additions & 6 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3290,7 +3290,7 @@
}
}
},
"/teams/{team_name}/apikeys/{apikey_name}": {
"/teams/{team_name}/apikeys/{apikey_id}": {
"delete": {
"description": "Delete API Key. This will remove any future access by this API Key.",
"operationId": "DeleteTeamAPIKey",
Expand All @@ -3302,7 +3302,7 @@
"$ref": "#/components/parameters/team_name"
},
{
"$ref": "#/components/parameters/apikey_name"
"$ref": "#/components/parameters/apikey_id"
}
],
"responses": {
Expand Down Expand Up @@ -4771,6 +4771,13 @@
"minLength": 1,
"pattern": "^(?:[a-zA-Z0-9][a-zA-Z0-9- ]*)?[a-zA-Z0-9]$"
},
"APIKeyID": {
"description": "ID of the API key",
"type": "string",
"format": "uuid",
"example": "12345678-1234-1234-1234-1234567890ab",
"x-go-name": "ID"
},
"APIKeyScope": {
"description": "Scope of permissions for the API key. API keys are used for creating new plugin versions and downloading existing plugins",
"type": "string",
Expand All @@ -4782,6 +4789,7 @@
"description": "API Key to interact with CloudQuery Cloud under specific team",
"type": "object",
"required": [
"id",
"name",
"scope",
"expires_at",
Expand All @@ -4795,6 +4803,9 @@
"$ref": "#/components/schemas/Email",
"description": "email of the user that created the API key"
},
"id": {
"$ref": "#/components/schemas/APIKeyID"
},
"key": {
"type": "string",
"description": "API key. Will be shown only in the response when creating the key.",
Expand Down Expand Up @@ -5054,14 +5065,14 @@
"$ref": "#/components/schemas/Email"
}
},
"apikey_name": {
"name": "apikey_name",
"apikey_id": {
"name": "apikey_id",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/APIKeyName"
"$ref": "#/components/schemas/APIKeyID"
},
"x-go-name": "APIKeyPathName"
"x-go-name": "APIKeyID"
}
}
}
Expand Down
Loading