Skip to content

Commit 74639ed

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

File tree

2 files changed

+37
-13
lines changed

2 files changed

+37
-13
lines changed

models.gen.go

Lines changed: 11 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: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4062,10 +4062,7 @@
40624062
}
40634063
}
40644064
},
4065-
"description" : "Tenant found"
4066-
},
4067-
"204" : {
4068-
"description" : "No tenant found, or multiple tenants"
4065+
"description" : "List of tenants"
40694066
},
40704067
"400" : {
40714068
"$ref" : "#/components/responses/BadRequest"
@@ -9147,6 +9144,23 @@
91479144
"required" : [ "token" ]
91489145
} ]
91499146
},
9147+
"TenantUser" : {
9148+
"additionalProperties" : false,
9149+
"description" : "Tenant information of a platform user",
9150+
"properties" : {
9151+
"tenant_url" : {
9152+
"description" : "URL of the tenant",
9153+
"format" : "url",
9154+
"type" : "string",
9155+
"x-go-name" : "TenantURL"
9156+
},
9157+
"provider" : {
9158+
"description" : "Login provider of the tenant",
9159+
"type" : "string"
9160+
}
9161+
},
9162+
"required" : [ "tenant_url" ]
9163+
},
91509164
"UserID" : {
91519165
"description" : "ID of the User",
91529166
"example" : "12345678-1234-1234-1234-1234567890ab",
@@ -11233,14 +11247,15 @@
1123311247
},
1123411248
"DeterminePlatformTenantByEmail_200_response" : {
1123511249
"properties" : {
11236-
"tenant_url" : {
11237-
"description" : "URL of the tenant",
11238-
"format" : "url",
11239-
"type" : "string",
11240-
"x-go-name" : "TenantURL"
11250+
"items" : {
11251+
"description" : "List of tenants",
11252+
"items" : {
11253+
"$ref" : "#/components/schemas/TenantUser"
11254+
},
11255+
"type" : "array",
11256+
"x-go-type-skip-optional-pointer" : true
1124111257
}
11242-
},
11243-
"required" : [ "tenant_url" ]
11258+
}
1124411259
},
1124511260
"ListTeamAPIKeys_200_response" : {
1124611261
"properties" : {

0 commit comments

Comments
 (0)