Skip to content

Commit 0c327a7

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

File tree

3 files changed

+221
-0
lines changed

3 files changed

+221
-0
lines changed

client.gen.go

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

models.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: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4038,6 +4038,53 @@
40384038
"x-internal" : true
40394039
}
40404040
},
4041+
"/user/tenant" : {
4042+
"get" : {
4043+
"description" : "Determine platform tenant by email",
4044+
"operationId" : "DeterminePlatformTenantByEmail",
4045+
"parameters" : [ {
4046+
"explode" : true,
4047+
"in" : "query",
4048+
"name" : "email",
4049+
"required" : true,
4050+
"schema" : {
4051+
"description" : "Email address of the user",
4052+
"type" : "string"
4053+
},
4054+
"style" : "form"
4055+
} ],
4056+
"responses" : {
4057+
"200" : {
4058+
"content" : {
4059+
"application/json" : {
4060+
"schema" : {
4061+
"$ref" : "#/components/schemas/DeterminePlatformTenantByEmail_200_response"
4062+
}
4063+
}
4064+
},
4065+
"description" : "Tenant found"
4066+
},
4067+
"204" : {
4068+
"description" : "No tenant found, or multiple tenants"
4069+
},
4070+
"400" : {
4071+
"$ref" : "#/components/responses/BadRequest"
4072+
},
4073+
"404" : {
4074+
"$ref" : "#/components/responses/NotFound"
4075+
},
4076+
"429" : {
4077+
"$ref" : "#/components/responses/TooManyRequests"
4078+
},
4079+
"500" : {
4080+
"$ref" : "#/components/responses/InternalError"
4081+
}
4082+
},
4083+
"security" : [ ],
4084+
"tags" : [ "platform", "users" ],
4085+
"x-internal" : true
4086+
}
4087+
},
40414088
"/users/{user_id}" : {
40424089
"delete" : {
40434090
"description" : "Delete user",
@@ -11184,6 +11231,17 @@
1118411231
},
1118511232
"required" : [ "first_name", "last_name" ]
1118611233
},
11234+
"DeterminePlatformTenantByEmail_200_response" : {
11235+
"properties" : {
11236+
"tenant_url" : {
11237+
"description" : "URL of the tenant",
11238+
"format" : "url",
11239+
"type" : "string",
11240+
"x-go-name" : "TenantURL"
11241+
}
11242+
},
11243+
"required" : [ "tenant_url" ]
11244+
},
1118711245
"ListTeamAPIKeys_200_response" : {
1118811246
"properties" : {
1118911247
"items" : {

0 commit comments

Comments
 (0)