@@ -199,7 +199,13 @@ def __init__(self, api_client=None):
199199 "http_method" : "GET" ,
200200 "version" : "v2" ,
201201 },
202- params_map = {},
202+ params_map = {
203+ "include_scopes" : {
204+ "openapi_types" : (bool ,),
205+ "attribute" : "include_scopes" ,
206+ "location" : "query" ,
207+ },
208+ },
203209 headers_map = {
204210 "accept" : ["application/json" ],
205211 },
@@ -536,14 +542,25 @@ def get_role(
536542
537543 def list_permissions (
538544 self ,
545+ * ,
546+ include_scopes : Union [bool , UnsetType ] = unset ,
539547 ) -> PermissionsResponse :
540548 """List permissions.
541549
542550 Returns a list of all permissions, including name, description, and ID.
543551
552+ :param include_scopes: Set to ``true`` to return all permissions, including both permissions
553+ that can be assigned to user roles and permissions that can only be
554+ used as scopes for OAuth clients and scoped credentials. When ``false``
555+ (default), only permissions that can be assigned to user roles are
556+ returned.
557+ :type include_scopes: bool, optional
544558 :rtype: PermissionsResponse
545559 """
546560 kwargs : Dict [str , Any ] = {}
561+ if include_scopes is not unset :
562+ kwargs ["include_scopes" ] = include_scopes
563+
547564 return self ._list_permissions_endpoint .call_with_http_info (** kwargs )
548565
549566 def list_role_permissions (
0 commit comments