Skip to content

Commit 828c746

Browse files
authored
[CP-258] Added iam.ListUsers and iam.ListRoleUsers (#178)
1 parent b0b33e9 commit 828c746

11 files changed

Lines changed: 1063 additions & 284 deletions

File tree

gen/go/qdrant/cloud/iam/v1/iam.pb.go

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

gen/go/qdrant/cloud/iam/v1/iam_grpc.pb.go

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

gen/openapiv2/qdrant/cloud/iam/v1/iam.swagger.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,77 @@
188188
]
189189
}
190190
},
191+
"/api/iam/v1/accounts/{accountId}/roles/{roleId}/users": {
192+
"get": {
193+
"summary": "List users for the role identified by the given ID.\nRequired permissions:\n- read:roles",
194+
"operationId": "IAMService_ListRoleUsers",
195+
"responses": {
196+
"200": {
197+
"description": "A successful response.",
198+
"schema": {
199+
"$ref": "#/definitions/v1ListRoleUsersResponse"
200+
}
201+
},
202+
"default": {
203+
"description": "An unexpected error response.",
204+
"schema": {
205+
"$ref": "#/definitions/googlerpcStatus"
206+
}
207+
}
208+
},
209+
"parameters": [
210+
{
211+
"name": "accountId",
212+
"description": "The identifier of the account (in GUID format).\nThis is a required field.",
213+
"in": "path",
214+
"required": true,
215+
"type": "string"
216+
},
217+
{
218+
"name": "roleId",
219+
"description": "The identifier of the role (in GUID format).\nThis is a required field.",
220+
"in": "path",
221+
"required": true,
222+
"type": "string"
223+
}
224+
],
225+
"tags": [
226+
"IAMService"
227+
]
228+
}
229+
},
230+
"/api/iam/v1/accounts/{accountId}/users": {
231+
"get": {
232+
"summary": "List users in the account identified by the given ID.\nRequired permissions:\n- read:users",
233+
"operationId": "IAMService_ListUsers",
234+
"responses": {
235+
"200": {
236+
"description": "A successful response.",
237+
"schema": {
238+
"$ref": "#/definitions/v1ListUsersResponse"
239+
}
240+
},
241+
"default": {
242+
"description": "An unexpected error response.",
243+
"schema": {
244+
"$ref": "#/definitions/googlerpcStatus"
245+
}
246+
}
247+
},
248+
"parameters": [
249+
{
250+
"name": "accountId",
251+
"description": "The identifier of the account (in GUID format).\nThis is a required field.",
252+
"in": "path",
253+
"required": true,
254+
"type": "string"
255+
}
256+
],
257+
"tags": [
258+
"IAMService"
259+
]
260+
}
261+
},
191262
"/api/iam/v1/accounts/{accountId}/users/{userId}/roles": {
192263
"get": {
193264
"summary": "List roles of the user identified by the given ID.\nRequired permissions:\n- read:roles",
@@ -783,6 +854,20 @@
783854
},
784855
"title": "ListPermissionsResponse is the response from the ListPermissions function"
785856
},
857+
"v1ListRoleUsersResponse": {
858+
"type": "object",
859+
"properties": {
860+
"users": {
861+
"type": "array",
862+
"items": {
863+
"type": "object",
864+
"$ref": "#/definitions/v1User"
865+
},
866+
"description": "The users assigned to the role.\nIf the role has no users, this list will be empty."
867+
}
868+
},
869+
"title": "ListRoleUsersResponse is the response from the ListRoleUsers function"
870+
},
786871
"v1ListRolesResponse": {
787872
"type": "object",
788873
"properties": {
@@ -811,6 +896,20 @@
811896
},
812897
"title": "ListUserRolesResponse is the response from the ListUserRoles function"
813898
},
899+
"v1ListUsersResponse": {
900+
"type": "object",
901+
"properties": {
902+
"items": {
903+
"type": "array",
904+
"items": {
905+
"type": "object",
906+
"$ref": "#/definitions/v1User"
907+
},
908+
"description": "The actual users in this list."
909+
}
910+
},
911+
"title": "ListUsersResponse is the response from the ListUsers function"
912+
},
814913
"v1LogoutUserResponse": {
815914
"type": "object",
816915
"description": "Empty",

0 commit comments

Comments
 (0)