Skip to content

Commit c9ba02b

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

File tree

2 files changed

+30
-15
lines changed

2 files changed

+30
-15
lines changed

client.gen.go

Lines changed: 11 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: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"version" : "1.0.0"
1717
},
1818
"servers" : [ {
19-
"url" : "https://api.cloudquery.io"
19+
"url" : "https://api.cloudquery.io",
20+
"x-internal" : false
2021
} ],
2122
"security" : [ {
2223
"bearerAuth" : [ ]
@@ -61,6 +62,9 @@
6162
"responses" : {
6263
"200" : {
6364
"description" : "Response"
65+
},
66+
"500" : {
67+
"$ref" : "#/components/responses/InternalError"
6468
}
6569
},
6670
"security" : [ ],
@@ -6395,19 +6399,6 @@
63956399
}
63966400
},
63976401
"schemas" : {
6398-
"ImageURL" : {
6399-
"properties" : {
6400-
"upload_url" : {
6401-
"example" : "https://cloudquery.io/api/v1/upload/1234567890abcdef1234567890abcdef",
6402-
"type" : "string"
6403-
},
6404-
"download_url" : {
6405-
"example" : "https://cloudquery.io/api/v1/download/1234567890abcdef1234567890abcdef",
6406-
"type" : "string"
6407-
}
6408-
},
6409-
"required" : [ "download_url", "upload_url" ]
6410-
},
64116402
"BasicError" : {
64126403
"additionalProperties" : false,
64136404
"description" : "Basic Error",
@@ -6422,6 +6413,19 @@
64226413
"required" : [ "message", "status" ],
64236414
"title" : "Basic Error"
64246415
},
6416+
"ImageURL" : {
6417+
"properties" : {
6418+
"upload_url" : {
6419+
"example" : "https://cloudquery.io/api/v1/upload/1234567890abcdef1234567890abcdef",
6420+
"type" : "string"
6421+
},
6422+
"download_url" : {
6423+
"example" : "https://cloudquery.io/api/v1/download/1234567890abcdef1234567890abcdef",
6424+
"type" : "string"
6425+
}
6426+
},
6427+
"required" : [ "download_url", "upload_url" ]
6428+
},
64256429
"TeamName" : {
64266430
"description" : "The unique name for the team.",
64276431
"example" : "cloudquery",
@@ -8564,7 +8568,7 @@
85648568
"example" : "Human Readable Name",
85658569
"maxLength" : 255,
85668570
"minLength" : 1,
8567-
"pattern" : "^[a-zA-Z\\p{L}][a-zA-Z\\p{L} \\-']*$",
8571+
"pattern" : "^[a-zA-Z\\p{L}\\p{N}_][a-zA-Z\\p{L}\\p{N}_ \\-']*$",
85688572
"type" : "string"
85698573
},
85708574
"PromoteSyncSourceTestConnection" : {

0 commit comments

Comments
 (0)