Skip to content

Commit 0706f83

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

File tree

3 files changed

+233
-0
lines changed

3 files changed

+233
-0
lines changed

client.gen.go

Lines changed: 178 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: 8 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: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,6 +2960,43 @@
29602960
}
29612961
},
29622962
"/teams/{team_name}/invitations" : {
2963+
"delete" : {
2964+
"description" : "Delete an invitation to the team, preventing the user becoming a team member",
2965+
"operationId" : "DeleteTeamInvitation",
2966+
"parameters" : [ {
2967+
"$ref" : "#/components/parameters/team_name"
2968+
} ],
2969+
"requestBody" : {
2970+
"content" : {
2971+
"application/json" : {
2972+
"schema" : {
2973+
"$ref" : "#/components/schemas/DeleteTeamInvitation_request"
2974+
}
2975+
}
2976+
}
2977+
},
2978+
"responses" : {
2979+
"204" : {
2980+
"description" : "Response"
2981+
},
2982+
"400" : {
2983+
"$ref" : "#/components/responses/BadRequest"
2984+
},
2985+
"401" : {
2986+
"$ref" : "#/components/responses/RequiresAuthentication"
2987+
},
2988+
"403" : {
2989+
"$ref" : "#/components/responses/Forbidden"
2990+
},
2991+
"404" : {
2992+
"$ref" : "#/components/responses/NotFound"
2993+
},
2994+
"500" : {
2995+
"$ref" : "#/components/responses/InternalError"
2996+
}
2997+
},
2998+
"tags" : [ "teams" ]
2999+
},
29633000
"get" : {
29643001
"description" : "List of open invitations to the team",
29653002
"operationId" : "ListTeamInvitations",
@@ -3092,6 +3129,7 @@
30923129
},
30933130
"/teams/{team_name}/invitations/{email}" : {
30943131
"delete" : {
3132+
"deprecated" : true,
30953133
"description" : "Cancel an invitation to the team, preventing the user becoming a team member",
30963134
"operationId" : "CancelTeamInvitation",
30973135
"parameters" : [ {
@@ -8286,6 +8324,15 @@
82868324
},
82878325
"required" : [ "email", "role" ]
82888326
},
8327+
"DeleteTeamInvitation_request" : {
8328+
"properties" : {
8329+
"email" : {
8330+
"format" : "email",
8331+
"type" : "string"
8332+
}
8333+
},
8334+
"required" : [ "email" ]
8335+
},
82898336
"AcceptTeamInvitation_request" : {
82908337
"properties" : {
82918338
"token" : {

0 commit comments

Comments
 (0)