|
188 | 188 | ] |
189 | 189 | } |
190 | 190 | }, |
| 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 | + }, |
191 | 262 | "/api/iam/v1/accounts/{accountId}/users/{userId}/roles": { |
192 | 263 | "get": { |
193 | 264 | "summary": "List roles of the user identified by the given ID.\nRequired permissions:\n- read:roles", |
|
783 | 854 | }, |
784 | 855 | "title": "ListPermissionsResponse is the response from the ListPermissions function" |
785 | 856 | }, |
| 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 | + }, |
786 | 871 | "v1ListRolesResponse": { |
787 | 872 | "type": "object", |
788 | 873 | "properties": { |
|
811 | 896 | }, |
812 | 897 | "title": "ListUserRolesResponse is the response from the ListUserRoles function" |
813 | 898 | }, |
| 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 | + }, |
814 | 913 | "v1LogoutUserResponse": { |
815 | 914 | "type": "object", |
816 | 915 | "description": "Empty", |
|
0 commit comments