@@ -145,7 +145,7 @@ def retrieve(
145145 self ,
146146 organization_id : str ,
147147 * ,
148- expand : List [Literal ["permissions" ]] | Omit = omit ,
148+ expand : List [Literal ["permissions" , "total_count" ]] | Omit = omit ,
149149 x_client_request_id : str | Omit = omit ,
150150 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
151151 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -160,8 +160,11 @@ def retrieve(
160160 Args:
161161 organization_id: Organization ID or label identifier
162162
163- expand: Fields to expand in the response. Currently supports "permissions" to include
164- the permissions field with the caller's permissions for the resource.
163+ expand: Fields to expand in the response. Supports "permissions" to include the
164+ permissions field with the caller's permissions for the resource. For list
165+ organization identities only, "total_count" populates pagination.total_count
166+ with the number of identities matching the same filters as the list (excluding
167+ cursor and limit). Other operations ignore expand values they do not use.
165168
166169 extra_headers: Send extra headers
167170
@@ -232,7 +235,7 @@ def list(
232235 * ,
233236 after : str | Omit = omit ,
234237 before : str | Omit = omit ,
235- expand : List [Literal ["permissions" ]] | Omit = omit ,
238+ expand : List [Literal ["permissions" , "total_count" ]] | Omit = omit ,
236239 limit : int | Omit = omit ,
237240 x_client_request_id : str | Omit = omit ,
238241 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -250,8 +253,11 @@ def list(
250253
251254 before: Cursor for backward pagination
252255
253- expand: Fields to expand in the response. Currently supports "permissions" to include
254- the permissions field with the caller's permissions for the resource.
256+ expand: Fields to expand in the response. Supports "permissions" to include the
257+ permissions field with the caller's permissions for the resource. For list
258+ organization identities only, "total_count" populates pagination.total_count
259+ with the number of identities matching the same filters as the list (excluding
260+ cursor and limit). Other operations ignore expand values they do not use.
255261
256262 limit: Maximum number of organizations to return
257263
@@ -327,7 +333,7 @@ def list_identities(
327333 * ,
328334 after : str | Omit = omit ,
329335 before : str | Omit = omit ,
330- expand : List [Literal ["permissions" ]] | Omit = omit ,
336+ expand : List [Literal ["permissions" , "total_count" ]] | Omit = omit ,
331337 limit : int | Omit = omit ,
332338 query_email : str | Omit = omit ,
333339 role : OrganizationRole | Omit = omit ,
@@ -349,8 +355,11 @@ def list_identities(
349355
350356 before: Cursor for backward pagination
351357
352- expand: Fields to expand in the response. Currently supports "permissions" to include
353- the permissions field with the caller's permissions for the resource.
358+ expand: Fields to expand in the response. Supports "permissions" to include the
359+ permissions field with the caller's permissions for the resource. For list
360+ organization identities only, "total_count" populates pagination.total_count
361+ with the number of identities matching the same filters as the list (excluding
362+ cursor and limit). Other operations ignore expand values they do not use.
354363
355364 limit: Maximum number of identities to return
356365
@@ -395,7 +404,7 @@ def list_roles(
395404 self ,
396405 organization_id : str ,
397406 * ,
398- expand : List [Literal ["permissions" ]] | Omit = omit ,
407+ expand : List [Literal ["permissions" , "total_count" ]] | Omit = omit ,
399408 scope : RoleScope | Omit = omit ,
400409 x_client_request_id : str | Omit = omit ,
401410 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -420,8 +429,11 @@ def list_roles(
420429 Args:
421430 organization_id: Organization ID or label identifier
422431
423- expand: Fields to expand in the response. Currently supports "permissions" to include
424- the permissions field with the caller's permissions for the resource.
432+ expand: Fields to expand in the response. Supports "permissions" to include the
433+ permissions field with the caller's permissions for the resource. For list
434+ organization identities only, "total_count" populates pagination.total_count
435+ with the number of identities matching the same filters as the list (excluding
436+ cursor and limit). Other operations ignore expand values they do not use.
425437
426438 scope: Filter roles by scope (organization or zone level)
427439
@@ -529,7 +541,7 @@ async def retrieve(
529541 self ,
530542 organization_id : str ,
531543 * ,
532- expand : List [Literal ["permissions" ]] | Omit = omit ,
544+ expand : List [Literal ["permissions" , "total_count" ]] | Omit = omit ,
533545 x_client_request_id : str | Omit = omit ,
534546 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
535547 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -544,8 +556,11 @@ async def retrieve(
544556 Args:
545557 organization_id: Organization ID or label identifier
546558
547- expand: Fields to expand in the response. Currently supports "permissions" to include
548- the permissions field with the caller's permissions for the resource.
559+ expand: Fields to expand in the response. Supports "permissions" to include the
560+ permissions field with the caller's permissions for the resource. For list
561+ organization identities only, "total_count" populates pagination.total_count
562+ with the number of identities matching the same filters as the list (excluding
563+ cursor and limit). Other operations ignore expand values they do not use.
549564
550565 extra_headers: Send extra headers
551566
@@ -618,7 +633,7 @@ async def list(
618633 * ,
619634 after : str | Omit = omit ,
620635 before : str | Omit = omit ,
621- expand : List [Literal ["permissions" ]] | Omit = omit ,
636+ expand : List [Literal ["permissions" , "total_count" ]] | Omit = omit ,
622637 limit : int | Omit = omit ,
623638 x_client_request_id : str | Omit = omit ,
624639 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -636,8 +651,11 @@ async def list(
636651
637652 before: Cursor for backward pagination
638653
639- expand: Fields to expand in the response. Currently supports "permissions" to include
640- the permissions field with the caller's permissions for the resource.
654+ expand: Fields to expand in the response. Supports "permissions" to include the
655+ permissions field with the caller's permissions for the resource. For list
656+ organization identities only, "total_count" populates pagination.total_count
657+ with the number of identities matching the same filters as the list (excluding
658+ cursor and limit). Other operations ignore expand values they do not use.
641659
642660 limit: Maximum number of organizations to return
643661
@@ -713,7 +731,7 @@ async def list_identities(
713731 * ,
714732 after : str | Omit = omit ,
715733 before : str | Omit = omit ,
716- expand : List [Literal ["permissions" ]] | Omit = omit ,
734+ expand : List [Literal ["permissions" , "total_count" ]] | Omit = omit ,
717735 limit : int | Omit = omit ,
718736 query_email : str | Omit = omit ,
719737 role : OrganizationRole | Omit = omit ,
@@ -735,8 +753,11 @@ async def list_identities(
735753
736754 before: Cursor for backward pagination
737755
738- expand: Fields to expand in the response. Currently supports "permissions" to include
739- the permissions field with the caller's permissions for the resource.
756+ expand: Fields to expand in the response. Supports "permissions" to include the
757+ permissions field with the caller's permissions for the resource. For list
758+ organization identities only, "total_count" populates pagination.total_count
759+ with the number of identities matching the same filters as the list (excluding
760+ cursor and limit). Other operations ignore expand values they do not use.
740761
741762 limit: Maximum number of identities to return
742763
@@ -781,7 +802,7 @@ async def list_roles(
781802 self ,
782803 organization_id : str ,
783804 * ,
784- expand : List [Literal ["permissions" ]] | Omit = omit ,
805+ expand : List [Literal ["permissions" , "total_count" ]] | Omit = omit ,
785806 scope : RoleScope | Omit = omit ,
786807 x_client_request_id : str | Omit = omit ,
787808 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -806,8 +827,11 @@ async def list_roles(
806827 Args:
807828 organization_id: Organization ID or label identifier
808829
809- expand: Fields to expand in the response. Currently supports "permissions" to include
810- the permissions field with the caller's permissions for the resource.
830+ expand: Fields to expand in the response. Supports "permissions" to include the
831+ permissions field with the caller's permissions for the resource. For list
832+ organization identities only, "total_count" populates pagination.total_count
833+ with the number of identities matching the same filters as the list (excluding
834+ cursor and limit). Other operations ignore expand values they do not use.
811835
812836 scope: Filter roles by scope (organization or zone level)
813837
0 commit comments