Skip to content

Commit eeb9744

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

File tree

3 files changed

+33
-16
lines changed

3 files changed

+33
-16
lines changed

client.gen.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models.gen.go

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3290,7 +3290,7 @@
32903290
}
32913291
}
32923292
},
3293-
"/teams/{team_name}/apikeys/{apikey_name}": {
3293+
"/teams/{team_name}/apikeys/{apikey_id}": {
32943294
"delete": {
32953295
"description": "Delete API Key. This will remove any future access by this API Key.",
32963296
"operationId": "DeleteTeamAPIKey",
@@ -3302,7 +3302,7 @@
33023302
"$ref": "#/components/parameters/team_name"
33033303
},
33043304
{
3305-
"$ref": "#/components/parameters/apikey_name"
3305+
"$ref": "#/components/parameters/apikey_id"
33063306
}
33073307
],
33083308
"responses": {
@@ -4771,6 +4771,13 @@
47714771
"minLength": 1,
47724772
"pattern": "^(?:[a-zA-Z0-9][a-zA-Z0-9- ]*)?[a-zA-Z0-9]$"
47734773
},
4774+
"APIKeyID": {
4775+
"description": "ID of the API key",
4776+
"type": "string",
4777+
"format": "uuid",
4778+
"example": "12345678-1234-1234-1234-1234567890ab",
4779+
"x-go-name": "ID"
4780+
},
47744781
"APIKeyScope": {
47754782
"description": "Scope of permissions for the API key. API keys are used for creating new plugin versions and downloading existing plugins",
47764783
"type": "string",
@@ -4782,6 +4789,7 @@
47824789
"description": "API Key to interact with CloudQuery Cloud under specific team",
47834790
"type": "object",
47844791
"required": [
4792+
"id",
47854793
"name",
47864794
"scope",
47874795
"expires_at",
@@ -4795,6 +4803,9 @@
47954803
"$ref": "#/components/schemas/Email",
47964804
"description": "email of the user that created the API key"
47974805
},
4806+
"id": {
4807+
"$ref": "#/components/schemas/APIKeyID"
4808+
},
47984809
"key": {
47994810
"type": "string",
48004811
"description": "API key. Will be shown only in the response when creating the key.",
@@ -5054,14 +5065,14 @@
50545065
"$ref": "#/components/schemas/Email"
50555066
}
50565067
},
5057-
"apikey_name": {
5058-
"name": "apikey_name",
5068+
"apikey_id": {
5069+
"name": "apikey_id",
50595070
"in": "path",
50605071
"required": true,
50615072
"schema": {
5062-
"$ref": "#/components/schemas/APIKeyName"
5073+
"$ref": "#/components/schemas/APIKeyID"
50635074
},
5064-
"x-go-name": "APIKeyPathName"
5075+
"x-go-name": "APIKeyID"
50655076
}
50665077
}
50675078
}

0 commit comments

Comments
 (0)