@@ -7941,6 +7941,8 @@ class SearchOptions(bb.Struct):
79417941 extensions specified. Only supported for active file search.
79427942 :ivar files.SearchOptions.file_categories: Restricts search to only the file
79437943 categories specified. Only supported for active file search.
7944+ :ivar files.SearchOptions.account_id: Restricts results to the given account
7945+ id.
79447946 """
79457947
79467948 __slots__ = [
@@ -7951,6 +7953,7 @@ class SearchOptions(bb.Struct):
79517953 '_filename_only_value' ,
79527954 '_file_extensions_value' ,
79537955 '_file_categories_value' ,
7956+ '_account_id_value' ,
79547957 ]
79557958
79567959 _has_required_fields = False
@@ -7962,14 +7965,16 @@ def __init__(self,
79627965 file_status = None ,
79637966 filename_only = None ,
79647967 file_extensions = None ,
7965- file_categories = None ):
7968+ file_categories = None ,
7969+ account_id = None ):
79667970 self ._path_value = bb .NOT_SET
79677971 self ._max_results_value = bb .NOT_SET
79687972 self ._order_by_value = bb .NOT_SET
79697973 self ._file_status_value = bb .NOT_SET
79707974 self ._filename_only_value = bb .NOT_SET
79717975 self ._file_extensions_value = bb .NOT_SET
79727976 self ._file_categories_value = bb .NOT_SET
7977+ self ._account_id_value = bb .NOT_SET
79737978 if path is not None :
79747979 self .path = path
79757980 if max_results is not None :
@@ -7984,6 +7989,8 @@ def __init__(self,
79847989 self .file_extensions = file_extensions
79857990 if file_categories is not None :
79867991 self .file_categories = file_categories
7992+ if account_id is not None :
7993+ self .account_id = account_id
79877994
79887995 # Instance attribute type: str (validator is set below)
79897996 path = bb .Attribute ("path" , nullable = True )
@@ -8006,6 +8013,9 @@ def __init__(self,
80068013 # Instance attribute type: list of [FileCategory] (validator is set below)
80078014 file_categories = bb .Attribute ("file_categories" , nullable = True )
80088015
8016+ # Instance attribute type: str (validator is set below)
8017+ account_id = bb .Attribute ("account_id" , nullable = True )
8018+
80098019 def _process_custom_annotations (self , annotation_type , field_path , processor ):
80108020 super (SearchOptions , self )._process_custom_annotations (annotation_type , field_path , processor )
80118021
@@ -12587,6 +12597,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1258712597SearchOptions .filename_only .validator = bv .Boolean ()
1258812598SearchOptions .file_extensions .validator = bv .Nullable (bv .List (bv .String ()))
1258912599SearchOptions .file_categories .validator = bv .Nullable (bv .List (FileCategory_validator ))
12600+ SearchOptions .account_id .validator = bv .Nullable (users_common .AccountId_validator )
1259012601SearchOptions ._all_field_names_ = set ([
1259112602 'path' ,
1259212603 'max_results' ,
@@ -12595,6 +12606,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1259512606 'filename_only' ,
1259612607 'file_extensions' ,
1259712608 'file_categories' ,
12609+ 'account_id' ,
1259812610])
1259912611SearchOptions ._all_fields_ = [
1260012612 ('path' , SearchOptions .path .validator ),
@@ -12604,6 +12616,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1260412616 ('filename_only' , SearchOptions .filename_only .validator ),
1260512617 ('file_extensions' , SearchOptions .file_extensions .validator ),
1260612618 ('file_categories' , SearchOptions .file_categories .validator ),
12619+ ('account_id' , SearchOptions .account_id .validator ),
1260712620]
1260812621
1260912622SearchOrderBy ._relevance_validator = bv .Void ()
0 commit comments