Skip to content

Commit e7930cc

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

File tree

3 files changed

+36
-24
lines changed

3 files changed

+36
-24
lines changed

client.gen.go

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

models.gen.go

Lines changed: 7 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: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@
22372237
"parameters" : [ {
22382238
"$ref" : "#/components/parameters/team_name"
22392239
}, {
2240-
"$ref" : "#/components/parameters/email"
2240+
"$ref" : "#/components/parameters/email_basic"
22412241
} ],
22422242
"responses" : {
22432243
"204" : {
@@ -3149,7 +3149,7 @@
31493149
"parameters" : [ {
31503150
"$ref" : "#/components/parameters/team_name"
31513151
}, {
3152-
"$ref" : "#/components/parameters/email"
3152+
"$ref" : "#/components/parameters/email_basic"
31533153
} ],
31543154
"responses" : {
31553155
"204" : {
@@ -4586,6 +4586,9 @@
45864586
},
45874587
"description" : "Response"
45884588
},
4589+
"204" : {
4590+
"description" : "No logs available for a sync run that has not started."
4591+
},
45894592
"302" : {
45904593
"description" : "Redirect to the logs download URL for a sync run that has completed.",
45914594
"headers" : {
@@ -5503,13 +5506,14 @@
55035506
"style" : "simple",
55045507
"x-go-name" : "AddonOrderID"
55055508
},
5506-
"email" : {
5509+
"email_basic" : {
55075510
"explode" : false,
55085511
"in" : "path",
55095512
"name" : "email",
55105513
"required" : true,
55115514
"schema" : {
5512-
"$ref" : "#/components/schemas/Email"
5515+
"example" : "user@example.com",
5516+
"type" : "string"
55135517
},
55145518
"style" : "simple"
55155519
},
@@ -7130,11 +7134,6 @@
71307134
"required" : [ "addon_name", "addon_team", "addon_type", "cancel_url", "success_url" ],
71317135
"title" : "Create CloudQuery Addon Order"
71327136
},
7133-
"Email" : {
7134-
"example" : "user@cloudquery.io",
7135-
"format" : "email",
7136-
"type" : "string"
7137-
},
71387137
"UserName" : {
71397138
"description" : "The unique name for the user.",
71407139
"example" : "user",
@@ -7159,7 +7158,8 @@
71597158
"x-go-name" : "ID"
71607159
},
71617160
"email" : {
7162-
"$ref" : "#/components/schemas/Email"
7161+
"example" : "user@example.com",
7162+
"type" : "string"
71637163
},
71647164
"name" : {
71657165
"$ref" : "#/components/schemas/UserName"
@@ -7511,6 +7511,11 @@
75117511
"required" : [ "metadata", "values" ],
75127512
"title" : "CloudQuery Spend Summary"
75137513
},
7514+
"Email" : {
7515+
"example" : "user@example.com",
7516+
"format" : "email",
7517+
"type" : "string"
7518+
},
75147519
"Invitation" : {
75157520
"additionalProperties" : false,
75167521
"properties" : {
@@ -7668,7 +7673,9 @@
76687673
"$ref" : "#/components/schemas/APIKeyName"
76697674
},
76707675
"created_by" : {
7671-
"$ref" : "#/components/schemas/Email"
7676+
"description" : "email of the user that created the API key",
7677+
"example" : "user@example.com",
7678+
"type" : "string"
76727679
},
76737680
"id" : {
76747681
"$ref" : "#/components/schemas/APIKeyID"
@@ -8948,7 +8955,7 @@
89488955
"role" : "admin",
89498956
"user" : {
89508957
"created_at" : "2017-07-14T16:53:42Z",
8951-
"email" : "user@clouduery.io",
8958+
"email" : "user@example.com",
89528959
"id" : "12345678-1234-1234-1234-1234567890ab",
89538960
"name" : "user",
89548961
"updated_at" : "2017-07-14T16:53:42Z"

0 commit comments

Comments
 (0)