@@ -7941,6 +7941,8 @@ class SearchOptions(bb.Struct):
7941
7941
extensions specified. Only supported for active file search.
7942
7942
:ivar files.SearchOptions.file_categories: Restricts search to only the file
7943
7943
categories specified. Only supported for active file search.
7944
+ :ivar files.SearchOptions.account_id: Restricts results to the given account
7945
+ id.
7944
7946
"""
7945
7947
7946
7948
__slots__ = [
@@ -7951,6 +7953,7 @@ class SearchOptions(bb.Struct):
7951
7953
'_filename_only_value' ,
7952
7954
'_file_extensions_value' ,
7953
7955
'_file_categories_value' ,
7956
+ '_account_id_value' ,
7954
7957
]
7955
7958
7956
7959
_has_required_fields = False
@@ -7962,14 +7965,16 @@ def __init__(self,
7962
7965
file_status = None ,
7963
7966
filename_only = None ,
7964
7967
file_extensions = None ,
7965
- file_categories = None ):
7968
+ file_categories = None ,
7969
+ account_id = None ):
7966
7970
self ._path_value = bb .NOT_SET
7967
7971
self ._max_results_value = bb .NOT_SET
7968
7972
self ._order_by_value = bb .NOT_SET
7969
7973
self ._file_status_value = bb .NOT_SET
7970
7974
self ._filename_only_value = bb .NOT_SET
7971
7975
self ._file_extensions_value = bb .NOT_SET
7972
7976
self ._file_categories_value = bb .NOT_SET
7977
+ self ._account_id_value = bb .NOT_SET
7973
7978
if path is not None :
7974
7979
self .path = path
7975
7980
if max_results is not None :
@@ -7984,6 +7989,8 @@ def __init__(self,
7984
7989
self .file_extensions = file_extensions
7985
7990
if file_categories is not None :
7986
7991
self .file_categories = file_categories
7992
+ if account_id is not None :
7993
+ self .account_id = account_id
7987
7994
7988
7995
# Instance attribute type: str (validator is set below)
7989
7996
path = bb .Attribute ("path" , nullable = True )
@@ -8006,6 +8013,9 @@ def __init__(self,
8006
8013
# Instance attribute type: list of [FileCategory] (validator is set below)
8007
8014
file_categories = bb .Attribute ("file_categories" , nullable = True )
8008
8015
8016
+ # Instance attribute type: str (validator is set below)
8017
+ account_id = bb .Attribute ("account_id" , nullable = True )
8018
+
8009
8019
def _process_custom_annotations (self , annotation_type , field_path , processor ):
8010
8020
super (SearchOptions , self )._process_custom_annotations (annotation_type , field_path , processor )
8011
8021
@@ -12587,6 +12597,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
12587
12597
SearchOptions .filename_only .validator = bv .Boolean ()
12588
12598
SearchOptions .file_extensions .validator = bv .Nullable (bv .List (bv .String ()))
12589
12599
SearchOptions .file_categories .validator = bv .Nullable (bv .List (FileCategory_validator ))
12600
+ SearchOptions .account_id .validator = bv .Nullable (users_common .AccountId_validator )
12590
12601
SearchOptions ._all_field_names_ = set ([
12591
12602
'path' ,
12592
12603
'max_results' ,
@@ -12595,6 +12606,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
12595
12606
'filename_only' ,
12596
12607
'file_extensions' ,
12597
12608
'file_categories' ,
12609
+ 'account_id' ,
12598
12610
])
12599
12611
SearchOptions ._all_fields_ = [
12600
12612
('path' , SearchOptions .path .validator ),
@@ -12604,6 +12616,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
12604
12616
('filename_only' , SearchOptions .filename_only .validator ),
12605
12617
('file_extensions' , SearchOptions .file_extensions .validator ),
12606
12618
('file_categories' , SearchOptions .file_categories .validator ),
12619
+ ('account_id' , SearchOptions .account_id .validator ),
12607
12620
]
12608
12621
12609
12622
SearchOrderBy ._relevance_validator = bv .Void ()
0 commit comments