From 3cf047b1efc0f3305f856c93544f6318ff464f7b Mon Sep 17 00:00:00 2001 From: "dropbox-sdk-updater[bot]" <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 14:23:14 +0000 Subject: [PATCH] Automated Spec Update f1b5fa6f96526401bfee0a90171bd5bd19678062 Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> 0508ca45302aba8fc7b2968813ffebe38d2c21a2 Co-authored-by: Claude Opus 4.6 aa7bd7a402565927065bcd39dd489808eadd69ff d461e039e9ebfb374a726b28e289f87c58315830 Co-authored-by: Claude Opus 4.6 --- dropbox/account.py | 8 +- dropbox/auth.py | 5 +- dropbox/base.py | 151 +- dropbox/base_team.py | 80 +- dropbox/common.py | 3 +- dropbox/file_requests.py | 8 +- dropbox/files.py | 53 +- dropbox/openid.py | 8 +- dropbox/paper.py | 12 +- dropbox/riviera.py | 464 ++----- dropbox/sharing.py | 28 +- dropbox/stone_base.py | 2 +- dropbox/stone_serializers.py | 2 +- dropbox/stone_validators.py | 2 +- dropbox/team.py | 1192 ++++++++++++---- dropbox/team_log.py | 2494 ++++++++++++++++++++++------------ dropbox/team_policies.py | 20 +- spec | 2 +- 18 files changed, 2836 insertions(+), 1698 deletions(-) diff --git a/dropbox/account.py b/dropbox/account.py index f265d7fe..5c512cd2 100644 --- a/dropbox/account.py +++ b/dropbox/account.py @@ -29,13 +29,7 @@ class AccountPhotoGetArg(bb.Struct): _has_required_fields = True - def __init__( - self, - dbx_account_id=None, - size=None, - circle_crop=None, - expect_account_photo=None, - ): + def __init__(self, dbx_account_id=None, size=None, circle_crop=None, expect_account_photo=None): self._dbx_account_id_value = bb.NOT_SET self._size_value = bb.NOT_SET self._circle_crop_value = bb.NOT_SET diff --git a/dropbox/auth.py b/dropbox/auth.py index 0f8d2407..884464da 100644 --- a/dropbox/auth.py +++ b/dropbox/auth.py @@ -879,10 +879,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): UnauthorizedAccountIdUsageError.unauthorized_account_ids.validator = bv.List(bv.String()) UnauthorizedAccountIdUsageError._all_field_names_ = set(["unauthorized_account_ids"]) UnauthorizedAccountIdUsageError._all_fields_ = [ - ( - "unauthorized_account_ids", - UnauthorizedAccountIdUsageError.unauthorized_account_ids.validator, - ) + ("unauthorized_account_ids", UnauthorizedAccountIdUsageError.unauthorized_account_ids.validator) ] RateLimitError.retry_after.default = 1 diff --git a/dropbox/base.py b/dropbox/base.py index 746d95e8..87320083 100644 --- a/dropbox/base.py +++ b/dropbox/base.py @@ -671,13 +671,7 @@ def file_requests_count(self): return r def file_requests_create( - self, - title, - destination, - deadline=None, - open=True, - description=None, - video_project_id=None, + self, title, destination, deadline=None, open=True, description=None, video_project_id=None ): """ Creates a file request for this user. @@ -1037,11 +1031,7 @@ def files_copy( DeprecationWarning, ) arg = files.RelocationArg( - from_path, - to_path, - allow_shared_folder, - autorename, - allow_ownership_transfer, + from_path, to_path, allow_shared_folder, autorename, allow_ownership_transfer ) r = self.request( files.copy, @@ -1083,11 +1073,7 @@ def files_copy_v2( :class:`dropbox.files.RelocationError` """ arg = files.RelocationArg( - from_path, - to_path, - allow_shared_folder, - autorename, - allow_ownership_transfer, + from_path, to_path, allow_shared_folder, autorename, allow_ownership_transfer ) r = self.request( files.copy_v2, @@ -1098,11 +1084,7 @@ def files_copy_v2( return r def files_copy_batch( - self, - entries, - autorename=False, - allow_shared_folder=False, - allow_ownership_transfer=False, + self, entries, autorename=False, allow_shared_folder=False, allow_ownership_transfer=False ): """ Copy multiple files or folders to different locations at once in the @@ -2597,11 +2579,7 @@ def files_move( DeprecationWarning, ) arg = files.RelocationArg( - from_path, - to_path, - allow_shared_folder, - autorename, - allow_ownership_transfer, + from_path, to_path, allow_shared_folder, autorename, allow_ownership_transfer ) r = self.request( files.move, @@ -2644,11 +2622,7 @@ def files_move_v2( :class:`dropbox.files.RelocationError` """ arg = files.RelocationArg( - from_path, - to_path, - allow_shared_folder, - autorename, - allow_ownership_transfer, + from_path, to_path, allow_shared_folder, autorename, allow_ownership_transfer ) r = self.request( files.move_v2, @@ -2659,11 +2633,7 @@ def files_move_v2( return r def files_move_batch( - self, - entries, - autorename=False, - allow_shared_folder=False, - allow_ownership_transfer=False, + self, entries, autorename=False, allow_shared_folder=False, allow_ownership_transfer=False ): """ Move multiple files or folders to different locations at once in the @@ -4506,27 +4476,19 @@ def paper_folders_create(self, name, parent_folder_id=None, is_team_folder=None) def riviera_get_markdown_async(self, file_id_or_url=None, enable_ocr=False, embed_images=False): """ Asynchronous document-to-markdown conversion for supported file formats. + Supported formats: .binder, .docx, .html, .paper, .papert, .pptx, .xlsx, + .gsheet, .ods, .pdf. Unsupported formats return an + `unsupported_format_error`. Size limit: the source file must be at most + 50 MB. Larger files are rejected. Route attributes: scope: files.content.read :param file_id_or_url: Identifier of the document to convert. Callers - must set exactly one of the oneof variants: - file_id: a - Dropbox-issued file id (format: "id:") for a file the - authenticated user has access to. - path: an absolute Dropbox path, - e.g. "/folder/report.docx". - url: either a Dropbox shared link - (www.dropbox.com) or an external HTTPS URL pointing to a supported - document file. - Dropbox shared links are resolved internally using - the caller's authenticated identity and the link's visibility / - download settings. They therefore require an authenticated user - context (anonymous `url` requests against Dropbox links are rejected - with an `ACCESS_ERROR`). Links protected by a password are rejected - with `shared_link_password_protected`; links with downloads disabled - are rejected with `link_download_disabled_error`. - External URLs - are fetched over HTTPS through the backend's egress proxy and must - point at a supported document file extension. The referenced file - must be a document in a supported format; requests against - unsupported formats return `unsupported_format_error`. + must set exactly one of the `FileIdOrUrl` variants. The referenced + file must be a document in a supported format (see the route + description for the list); requests against unsupported formats + return `unsupported_format_error`. :type file_id_or_url: Nullable[:class:`dropbox.riviera.FileIdOrUrl`] :param enable_ocr: Enable OCR for PDF documents. Processing is slower when enabled. @@ -4572,30 +4534,29 @@ def riviera_get_markdown_async_check(self, async_job_id): def riviera_get_metadata_async(self, file_id_or_url=None): """ - Asynchronous file metadata extraction for supported file formats. + Asynchronous file metadata extraction for supported file formats. The + kind of metadata returned depends on the file type: - Image (EXIF) + formats: .3fr, .arw, .avif, .bmp, .cr2, .cr3, .crw, .dcr, .dcs, .dng, + .erf, .gif, .heic, .j2c, .j2k, .jp2, .jpc, .jpeg, .jpf, .jpg, .jpg2, + .jpm, .jpx, .kdc, .mef, .mos, .mrw, .nef, .nrw, .orf, .pef, .png, .ppm, + .r3d, .raf, .rw2, .rwl, .sr2, .tga, .tif, .tiff, .wbmp, .web, .webp, + .x3f. - Audio/video (media) formats: .aac, .aif, .aiff, .flac, .m4a, + .m4r, .mp3, .oga, .ogg, .wav, .wma, .3gp, .3gpp, .3gpp2, .asf, .avi, + .dv, .flv, .m2t, .m2ts, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .mts, .mxf, + .oggtheora, .ogv, .rm, .ts, .vob, .webm, .wmv. - PDF format: .pdf. - MS + Office formats: .docx, .pptx, .xlsx. Unsupported formats return an + `unsupported_format_error`. Route attributes: scope: files.content.read :param file_id_or_url: Identifier of the file to extract metadata from. - Callers must set exactly one of the oneof variants: - file_id: a - Dropbox-issued file id (format: "id:") for a file the - authenticated user has access to. - path: an absolute Dropbox path, - e.g. "/folder/photo.jpg". - url: either a Dropbox shared link - (www.dropbox.com) or an external HTTPS URL pointing to a supported - file. - Dropbox shared links are resolved internally using the - caller's authenticated identity and the link's visibility / download - settings. They therefore require an authenticated user context - (anonymous `url` requests against Dropbox links are rejected with an - `ACCESS_ERROR`). Links protected by a password are rejected with - `shared_link_password_protected`; links with downloads disabled are - rejected with `link_download_disabled_error`. - External URLs are - fetched over HTTPS through the backend's egress proxy and must point - at a supported file extension. The kind of metadata returned is - determined by the file type: image files return EXIF metadata, - audio/video files return media metadata, PDFs return PDF metadata, - and MS Office documents (docx, pptx, xlsx) return Office metadata. - Requests against unsupported formats return + Callers must set exactly one of the `FileIdOrUrl` variants. The kind + of metadata returned is determined by the file type: image files + return EXIF metadata, audio/video files return media metadata, PDFs + return PDF metadata, and MS Office documents (docx, pptx, xlsx) + return Office metadata. See the route description for the supported + formats. Requests against unsupported formats return `unsupported_format_error`. :type file_id_or_url: Nullable[:class:`dropbox.riviera.FileIdOrUrl`] :rtype: :class:`dropbox.async_.LaunchResultBase` @@ -4637,39 +4598,34 @@ def riviera_get_metadata_async_check(self, async_job_id): def riviera_get_transcript_async( self, file_id_or_url=None, - timestamp_level=riviera.TimestampLevel.unknown, + timestamp_level=riviera.TimestampLevel.sentence, included_special_words="", audio_language="", ): """ - Asynchronous transcript generation for audio and video files. + Asynchronous transcript generation for audio and video files. Supported + audio formats: .aac, .aif, .aiff, .flac, .m4a, .m4r, .mp3, .oga, .ogg, + .wav, .wma. Supported video formats: .3gp, .3gpp, .3gpp2, .asf, .avi, + .dv, .flv, .m2t, .m2ts, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .mts, .mxf, + .oggtheora, .ogv, .rm, .ts, .vob, .webm, .wmv. Unsupported formats + return an `unsupported_format_error`. Size limits: the source file must + be at most 10 GB and its audio track at most 1 hour in duration. Files + exceeding these limits are rejected. Route attributes: scope: files.content.read :param file_id_or_url: Identifier of the media asset to transcribe. - Callers must set exactly one of the oneof variants: - file_id: a - Dropbox-issued file id (format: "id:") for a file the - authenticated user has access to. - path: an absolute Dropbox path, - e.g. "/folder/recording.mp4". - url: either a Dropbox shared link - (www.dropbox.com) or an external HTTPS URL pointing to a supported - audio/video file. - Dropbox shared links are resolved internally - using the caller's authenticated identity and the link's visibility - / download settings. They therefore require an authenticated user - context (anonymous `url` requests against Dropbox links are rejected - with an `ACCESS_ERROR`). Links protected by a password are rejected - with `shared_link_password_protected`; links with downloads disabled - are rejected with `link_download_disabled_error`. - External URLs - are fetched over HTTPS through the backend's egress proxy and must - point at a supported audio/video file extension. The referenced - asset must be an audio or video file in a supported format; requests - against files with no audio track return a `no_audio_error`. + Callers must set exactly one of the `FileIdOrUrl` variants. The + referenced asset must be an audio or video file in a supported + format (see the route description for the list); requests against + files with no audio track return a `no_audio_error`. :type file_id_or_url: Nullable[:class:`dropbox.riviera.FileIdOrUrl`] :param timestamp_level: Granularity of the time offsets returned for - each transcript segment. Defaults to `SENTENCE. - SENTENCE: one - segment per spoken sentence (recommended). - WORD: one segment per - word, useful for fine-grained alignment such as captioning or - highlight-as-you-listen experiences. + each transcript segment. Defaults to `SENTENCE` when the field is + omitted. - SENTENCE: one segment per spoken sentence (recommended). + - WORD: one segment per word, useful for fine-grained alignment such + as captioning or highlight-as-you-listen experiences. :type timestamp_level: :class:`dropbox.riviera.TimestampLevel` :param included_special_words: Comma-delimited list of non-lexical filler words to preserve in the transcript output, e.g. `"uh, ah, @@ -4784,12 +4740,7 @@ def sharing_add_file_member( return r def sharing_add_folder_member( - self, - shared_folder_id, - members, - quiet=False, - custom_message=None, - fp_sealed_result=None, + self, shared_folder_id, members, quiet=False, custom_message=None, fp_sealed_result=None ): """ Allows an owner or editor (if the ACL update policy allows) of a shared diff --git a/dropbox/base_team.py b/dropbox/base_team.py index c82013e5..08e01376 100644 --- a/dropbox/base_team.py +++ b/dropbox/base_team.py @@ -244,10 +244,7 @@ def team_devices_list_member_devices( :class:`dropbox.team.ListMemberDevicesError` """ arg = team.ListMemberDevicesArg( - team_member_id, - include_web_sessions, - include_desktop_clients, - include_mobile_clients, + team_member_id, include_web_sessions, include_desktop_clients, include_mobile_clients ) r = self.request( team.devices_list_member_devices, @@ -293,10 +290,7 @@ def team_devices_list_members_devices( :class:`dropbox.team.ListMembersDevicesError` """ arg = team.ListMembersDevicesArg( - cursor, - include_web_sessions, - include_desktop_clients, - include_mobile_clients, + cursor, include_web_sessions, include_desktop_clients, include_mobile_clients ) r = self.request( team.devices_list_members_devices, @@ -346,10 +340,7 @@ def team_devices_list_team_devices( DeprecationWarning, ) arg = team.ListTeamDevicesArg( - cursor, - include_web_sessions, - include_desktop_clients, - include_mobile_clients, + cursor, include_web_sessions, include_desktop_clients, include_mobile_clients ) r = self.request( team.devices_list_team_devices, @@ -794,11 +785,7 @@ def team_groups_update( :class:`dropbox.team.GroupUpdateError` """ arg = team.GroupUpdateArgs( - group, - return_members, - new_group_name, - new_group_external_id, - new_group_management_type, + group, return_members, new_group_name, new_group_external_id, new_group_management_type ) r = self.request( team.groups_update, @@ -1435,6 +1422,57 @@ def team_members_add_job_status_get_v2(self, async_job_id): ) return r + def team_members_bulk_suspend(self, members): + """ + Launch a bulk suspend job. The server enforces a maximum of 500 members. + + Route attributes: + scope: members.write + + :param members: Must contain between 1 and 500 targets. The launch + handler also rejects duplicate client item IDs and duplicate member + selectors. + :type members: List[:class:`dropbox.team.BulkSuspendMemberTarget`] + :rtype: :class:`dropbox.async_.LaunchResultBase` + :raises: :class:`.exceptions.ApiError` + + If this raises, ApiError will contain: + :class:`dropbox.team.BulkSuspendError` + """ + arg = team.BulkSuspendArg(members) + r = self.request( + team.members_bulk_suspend, + "team", + arg, + None, + ) + return r + + def team_members_bulk_suspend_job_status_check(self, async_job_id): + """ + Poll a previously launched bulk suspend job. + + Route attributes: + scope: members.write + + :param async_job_id: Id of the asynchronous job. This is the value of a + response returned from the method that launched the job. + :type async_job_id: str + :rtype: :class:`dropbox.team.BulkSuspendJobStatus` + :raises: :class:`.exceptions.ApiError` + + If this raises, ApiError will contain: + :class:`dropbox.async_.PollError` + """ + arg = async_.PollArg(async_job_id) + r = self.request( + team.members_bulk_suspend_job_status_check, + "team", + arg, + None, + ) + return r + def team_members_delete_former_member_files(self, user): """ Permanently delete the files of a user who has been removed from the @@ -2620,6 +2658,10 @@ def team_team_folder_activate(self, team_folder_id): :param team_folder_id: The ID of the team folder. :type team_folder_id: str :rtype: :class:`dropbox.team.TeamFolderMetadata` + :raises: :class:`.exceptions.ApiError` + + If this raises, ApiError will contain: + :class:`dropbox.team.TeamFolderActivateError` """ arg = team.TeamFolderIdArg(team_folder_id) r = self.request( @@ -2845,6 +2887,10 @@ def team_team_folder_restore(self, team_folder_id): :param team_folder_id: The ID of the team folder. :type team_folder_id: str :rtype: :class:`dropbox.team.TeamFolderMetadata` + :raises: :class:`.exceptions.ApiError` + + If this raises, ApiError will contain: + :class:`dropbox.team.TeamFolderRestoreError` """ arg = team.TeamFolderIdArg(team_folder_id) r = self.request( diff --git a/dropbox/common.py b/dropbox/common.py index 5e06e4ae..8660b6bc 100644 --- a/dropbox/common.py +++ b/dropbox/common.py @@ -344,8 +344,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): DisplayNameLegacy_validator = bv.String() DropboxTimestamp_validator = bv.Timestamp("%Y-%m-%dT%H:%M:%SZ") EmailAddress_validator = bv.String( - max_length=255, - pattern="^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", + max_length=255, pattern="^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$" ) LanguageCode_validator = bv.String(min_length=2) NamePart_validator = bv.String(min_length=1, max_length=50, pattern='[^/:?*<>"|]*') diff --git a/dropbox/file_requests.py b/dropbox/file_requests.py index 6526aefc..b782efe8 100644 --- a/dropbox/file_requests.py +++ b/dropbox/file_requests.py @@ -1015,13 +1015,7 @@ class UpdateFileRequestArgs(bb.Struct): _has_required_fields = True def __init__( - self, - id=None, - title=None, - destination=None, - deadline=None, - open=None, - description=None, + self, id=None, title=None, destination=None, deadline=None, open=None, description=None ): self._id_value = bb.NOT_SET self._title_value = bb.NOT_SET diff --git a/dropbox/files.py b/dropbox/files.py index d0afc92b..6a30a101 100644 --- a/dropbox/files.py +++ b/dropbox/files.py @@ -2598,11 +2598,7 @@ class FileLockMetadata(bb.Struct): _has_required_fields = False def __init__( - self, - is_lockholder=None, - lockholder_name=None, - lockholder_account_id=None, - created=None, + self, is_lockholder=None, lockholder_name=None, lockholder_account_id=None, created=None ): self._is_lockholder_value = bb.NOT_SET self._lockholder_name_value = bb.NOT_SET @@ -4490,12 +4486,7 @@ class ListRevisionsArg(bb.Struct): _has_required_fields = True def __init__( - self, - path=None, - mode=None, - limit=None, - before_rev=None, - include_restorable_info=None, + self, path=None, mode=None, limit=None, before_rev=None, include_restorable_info=None ): self._path_value = bb.NOT_SET self._mode_value = bb.NOT_SET @@ -6581,11 +6572,7 @@ class RelocationBatchArg(RelocationBatchArgBase): _has_required_fields = True def __init__( - self, - entries=None, - autorename=None, - allow_shared_folder=None, - allow_ownership_transfer=None, + self, entries=None, autorename=None, allow_shared_folder=None, allow_ownership_transfer=None ): super(RelocationBatchArg, self).__init__(entries, autorename) self._allow_shared_folder_value = bb.NOT_SET @@ -8856,13 +8843,7 @@ class SearchV2Arg(bb.Struct): _has_required_fields = True - def __init__( - self, - query=None, - options=None, - match_field_options=None, - include_highlights=None, - ): + def __init__(self, query=None, options=None, match_field_options=None, include_highlights=None): self._query_value = bb.NOT_SET self._options_value = bb.NOT_SET self._match_field_options_value = bb.NOT_SET @@ -9440,13 +9421,7 @@ class ThumbnailArg(bb.Struct): _has_required_fields = True def __init__( - self, - path=None, - format=None, - size=None, - mode=None, - quality=None, - exclude_media_info=None, + self, path=None, format=None, size=None, mode=None, quality=None, exclude_media_info=None ): self._path_value = bb.NOT_SET self._format_value = bb.NOT_SET @@ -10204,13 +10179,7 @@ def __init__( content_hash=None, ): super(UploadArg, self).__init__( - path, - mode, - autorename, - client_modified, - mute, - property_groups, - strict_conflict, + path, mode, autorename, client_modified, mute, property_groups, strict_conflict ) self._content_hash_value = bb.NOT_SET if content_hash is not None: @@ -12552,10 +12521,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): set(["include_property_templates"]) ) AlphaGetMetadataArg._all_fields_ = GetMetadataArg._all_fields_ + [ - ( - "include_property_templates", - AlphaGetMetadataArg.include_property_templates.validator, - ) + ("include_property_templates", AlphaGetMetadataArg.include_property_templates.validator) ] GetMetadataError._path_validator = LookupError_validator @@ -13410,10 +13376,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("limit", ListFolderArg.limit.validator), ("shared_link", ListFolderArg.shared_link.validator), ("include_property_groups", ListFolderArg.include_property_groups.validator), - ( - "include_non_downloadable_files", - ListFolderArg.include_non_downloadable_files.validator, - ), + ("include_non_downloadable_files", ListFolderArg.include_non_downloadable_files.validator), ("include_restorable_info", ListFolderArg.include_restorable_info.validator), ] diff --git a/dropbox/openid.py b/dropbox/openid.py index d5f48404..f6009795 100644 --- a/dropbox/openid.py +++ b/dropbox/openid.py @@ -154,13 +154,7 @@ class UserInfoResult(bb.Struct): _has_required_fields = False def __init__( - self, - family_name=None, - given_name=None, - email=None, - email_verified=None, - iss=None, - sub=None, + self, family_name=None, given_name=None, email=None, email_verified=None, iss=None, sub=None ): self._family_name_value = bb.NOT_SET self._given_name_value = bb.NOT_SET diff --git a/dropbox/paper.py b/dropbox/paper.py index bb21545b..509d85fc 100644 --- a/dropbox/paper.py +++ b/dropbox/paper.py @@ -976,12 +976,7 @@ class ListPaperDocsArgs(bb.Struct): _has_required_fields = False def __init__( - self, - filter_by=None, - sort_by=None, - sort_order=None, - limit=None, - stop_at_date=None, + self, filter_by=None, sort_by=None, sort_order=None, limit=None, stop_at_date=None ): self._filter_by_value = bb.NOT_SET self._sort_by_value = bb.NOT_SET @@ -2968,10 +2963,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) FoldersContainingPaperDoc._all_fields_ = [ - ( - "folder_sharing_policy_type", - FoldersContainingPaperDoc.folder_sharing_policy_type.validator, - ), + ("folder_sharing_policy_type", FoldersContainingPaperDoc.folder_sharing_policy_type.validator), ("folders", FoldersContainingPaperDoc.folders.validator), ] diff --git a/dropbox/riviera.py b/dropbox/riviera.py index 6e72859c..0162f0f2 100644 --- a/dropbox/riviera.py +++ b/dropbox/riviera.py @@ -37,12 +37,7 @@ class ApiExifGpsMetadata(bb.Struct): _has_required_fields = False def __init__( - self, - latitude=None, - longitude=None, - altitude=None, - timestamp=None, - datestamp=None, + self, latitude=None, longitude=None, altitude=None, timestamp=None, datestamp=None ): self._latitude_value = bb.NOT_SET self._longitude_value = bb.NOT_SET @@ -697,10 +692,25 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class ContentApiV2Error(bb.Union): """ + Reason a transcript job failed. Returned in the `failed` variant of + `GetTranscriptAsyncCheckResult`. This is a semantic error union: the HTTP + status of the poll request itself is unaffected (a poll that surfaces a + failed job is still a normal successful poll response). Callers should + branch on the variant. + This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. + :ivar ContentApiV2Error.server_error: + An unexpected, typically transient, server-side failure. The string is a + human-readable message; retrying with backoff may succeed. + :vartype ContentApiV2Error.server_error: str + :ivar ContentApiV2Error.user_error: + The request could not be processed as supplied (a problem with the + caller's input). The string is a human-readable message; retrying the + same request will not help. + :vartype ContentApiV2Error.user_error: str :ivar ContentApiV2Error.not_found_error: The referenced file does not exist or is not accessible. :ivar ContentApiV2Error.is_a_folder_error: @@ -838,6 +848,9 @@ def is_other(self): def get_server_error(self): """ + An unexpected, typically transient, server-side failure. The string is a + human-readable message; retrying with backoff may succeed. + Only call this if :meth:`is_server_error` is true. :rtype: str @@ -848,6 +861,10 @@ def get_server_error(self): def get_user_error(self): """ + The request could not be processed as supplied (a problem with the + caller's input). The string is a human-readable message; retrying the + same request will not help. + Only call this if :meth:`is_user_error` is true. :rtype: str @@ -875,108 +892,31 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ContentApiV2Error_validator = bv.Union(ContentApiV2Error) -class ErrorCode(bb.Union): - """ - This class acts as a tagged union. Only one of the ``is_*`` methods will - return true. To get the associated value of a tag (if one exists), use the - corresponding ``get_*`` method. - - :ivar ErrorCode.bad_request: - 400 - :ivar ErrorCode.api_error: - 409 - :ivar ErrorCode.access_error: - 403 - :ivar ErrorCode.ratelimit_error: - 429 - :ivar ErrorCode.unavailable: - 503 - """ - - _catch_all = "other" - # Attribute is overwritten below the class definition - unknown_error = None - # Attribute is overwritten below the class definition - bad_request = None - # Attribute is overwritten below the class definition - api_error = None - # Attribute is overwritten below the class definition - access_error = None - # Attribute is overwritten below the class definition - ratelimit_error = None - # Attribute is overwritten below the class definition - unavailable = None - # Attribute is overwritten below the class definition - other = None - - def is_unknown_error(self): - """ - Check if the union tag is ``unknown_error``. - - :rtype: bool - """ - return self._tag == "unknown_error" - - def is_bad_request(self): - """ - Check if the union tag is ``bad_request``. - - :rtype: bool - """ - return self._tag == "bad_request" - - def is_api_error(self): - """ - Check if the union tag is ``api_error``. - - :rtype: bool - """ - return self._tag == "api_error" - - def is_access_error(self): - """ - Check if the union tag is ``access_error``. - - :rtype: bool - """ - return self._tag == "access_error" - - def is_ratelimit_error(self): - """ - Check if the union tag is ``ratelimit_error``. - - :rtype: bool - """ - return self._tag == "ratelimit_error" - - def is_unavailable(self): - """ - Check if the union tag is ``unavailable``. - - :rtype: bool - """ - return self._tag == "unavailable" - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == "other" - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(ErrorCode, self)._process_custom_annotations(annotation_type, field_path, processor) - - -ErrorCode_validator = bv.Union(ErrorCode) - - class FileIdOrUrl(bb.Union): """ This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. + + :ivar FileIdOrUrl.file_id: + A Dropbox-issued file id (format: "id:") for a file the + authenticated user has access to. + :vartype FileIdOrUrl.file_id: str + :ivar FileIdOrUrl.url: + Either a Dropbox shared link (www.dropbox.com) or an external HTTP or + HTTPS URL pointing to a supported file. - Dropbox shared links are + resolved internally using the caller's authenticated identity and the + link's visibility / download settings. They therefore require an + authenticated user context (anonymous `url` requests against Dropbox + links are rejected with an `access_error`). Links protected by a + password are rejected with `shared_link_password_protected`; links with + downloads disabled are rejected with `link_download_disabled_error`. - + External URLs are fetched through the backend's egress proxy and must + point at a supported file extension. + :vartype FileIdOrUrl.url: str + :ivar FileIdOrUrl.path: + An absolute Dropbox path, e.g. "/folder/example.pdf". + :vartype FileIdOrUrl.path: str """ _catch_all = "other" @@ -1050,6 +990,9 @@ def is_other(self): def get_file_id(self): """ + A Dropbox-issued file id (format: "id:") for a file the + authenticated user has access to. + Only call this if :meth:`is_file_id` is true. :rtype: str @@ -1060,6 +1003,17 @@ def get_file_id(self): def get_url(self): """ + Either a Dropbox shared link (www.dropbox.com) or an external HTTP or + HTTPS URL pointing to a supported file. - Dropbox shared links are + resolved internally using the caller's authenticated identity and the + link's visibility / download settings. They therefore require an + authenticated user context (anonymous `url` requests against Dropbox + links are rejected with an `access_error`). Links protected by a + password are rejected with `shared_link_password_protected`; links with + downloads disabled are rejected with `link_download_disabled_error`. - + External URLs are fetched through the backend's egress proxy and must + point at a supported file extension. + Only call this if :meth:`is_url` is true. :rtype: str @@ -1070,6 +1024,8 @@ def get_url(self): def get_path(self): """ + An absolute Dropbox path, e.g. "/folder/example.pdf". + Only call this if :meth:`is_path` is true. :rtype: str @@ -1093,21 +1049,9 @@ class GetMarkdownArgs(bb.Struct): :ivar GetMarkdownArgs.file_id_or_url: Identifier of the document to convert. Callers must set exactly one of - the oneof variants: - file_id: a Dropbox-issued file id (format: - "id:") for a file the authenticated user has access to. - path: an - absolute Dropbox path, e.g. "/folder/report.docx". - url: either a - Dropbox shared link (www.dropbox.com) or an external HTTPS URL pointing - to a supported document file. - Dropbox shared links are resolved - internally using the caller's authenticated identity and the link's - visibility / download settings. They therefore require an authenticated - user context (anonymous `url` requests against Dropbox links are - rejected with an `ACCESS_ERROR`). Links protected by a password are - rejected with `shared_link_password_protected`; links with downloads - disabled are rejected with `link_download_disabled_error`. - External - URLs are fetched over HTTPS through the backend's egress proxy and must - point at a supported document file extension. The referenced file must - be a document in a supported format; requests against unsupported - formats return `unsupported_format_error`. + the `FileIdOrUrl` variants. The referenced file must be a document in a + supported format (see the route description for the list); requests + against unsupported formats return `unsupported_format_error`. :ivar GetMarkdownArgs.enable_ocr: Enable OCR for PDF documents. Processing is slower when enabled. :ivar GetMarkdownArgs.embed_images: @@ -1184,7 +1128,7 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param GetMarkdownAsyncError val: + :param MarkdownConversionApiV2Error val: :rtype: GetMarkdownAsyncCheckResult """ return cls("failed", val) @@ -1235,7 +1179,7 @@ def get_failed(self): """ Only call this if :meth:`is_failed` is true. - :rtype: GetMarkdownAsyncError + :rtype: MarkdownConversionApiV2Error """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") @@ -1250,37 +1194,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): GetMarkdownAsyncCheckResult_validator = bv.Union(GetMarkdownAsyncCheckResult) -class GetMarkdownAsyncError(bb.Struct): - __slots__ = [ - "_error_code_value", - "_error_details_value", - ] - - _has_required_fields = False - - def __init__(self, error_code=None, error_details=None): - self._error_code_value = bb.NOT_SET - self._error_details_value = bb.NOT_SET - if error_code is not None: - self.error_code = error_code - if error_details is not None: - self.error_details = error_details - - # Instance attribute type: ErrorCode (validator is set below) - error_code = bb.Attribute("error_code", user_defined=True) - - # Instance attribute type: MarkdownConversionApiV2Error (validator is set below) - error_details = bb.Attribute("error_details", nullable=True, user_defined=True) - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(GetMarkdownAsyncError, self)._process_custom_annotations( - annotation_type, field_path, processor - ) - - -GetMarkdownAsyncError_validator = bv.Struct(GetMarkdownAsyncError) - - class GetMarkdownResult(bb.Struct): """ :ivar GetMarkdownResult.markdown: @@ -1318,23 +1231,12 @@ class GetMetadataArgs(bb.Struct): :ivar GetMetadataArgs.file_id_or_url: Identifier of the file to extract metadata from. Callers must set - exactly one of the oneof variants: - file_id: a Dropbox-issued file id - (format: "id:") for a file the authenticated user has access to. - - path: an absolute Dropbox path, e.g. "/folder/photo.jpg". - url: either - a Dropbox shared link (www.dropbox.com) or an external HTTPS URL - pointing to a supported file. - Dropbox shared links are resolved - internally using the caller's authenticated identity and the link's - visibility / download settings. They therefore require an authenticated - user context (anonymous `url` requests against Dropbox links are - rejected with an `ACCESS_ERROR`). Links protected by a password are - rejected with `shared_link_password_protected`; links with downloads - disabled are rejected with `link_download_disabled_error`. - External - URLs are fetched over HTTPS through the backend's egress proxy and must - point at a supported file extension. The kind of metadata returned is - determined by the file type: image files return EXIF metadata, + exactly one of the `FileIdOrUrl` variants. The kind of metadata returned + is determined by the file type: image files return EXIF metadata, audio/video files return media metadata, PDFs return PDF metadata, and - MS Office documents (docx, pptx, xlsx) return Office metadata. Requests - against unsupported formats return `unsupported_format_error`. + MS Office documents (docx, pptx, xlsx) return Office metadata. See the + route description for the supported formats. Requests against + unsupported formats return `unsupported_format_error`. """ __slots__ = [ @@ -1392,7 +1294,7 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param GetMetadataAsyncError val: + :param MetadataExtractionApiV2Error val: :rtype: GetMetadataAsyncCheckResult """ return cls("failed", val) @@ -1443,7 +1345,7 @@ def get_failed(self): """ Only call this if :meth:`is_failed` is true. - :rtype: GetMetadataAsyncError + :rtype: MetadataExtractionApiV2Error """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") @@ -1458,37 +1360,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): GetMetadataAsyncCheckResult_validator = bv.Union(GetMetadataAsyncCheckResult) -class GetMetadataAsyncError(bb.Struct): - __slots__ = [ - "_error_code_value", - "_error_details_value", - ] - - _has_required_fields = False - - def __init__(self, error_code=None, error_details=None): - self._error_code_value = bb.NOT_SET - self._error_details_value = bb.NOT_SET - if error_code is not None: - self.error_code = error_code - if error_details is not None: - self.error_details = error_details - - # Instance attribute type: ErrorCode (validator is set below) - error_code = bb.Attribute("error_code", user_defined=True) - - # Instance attribute type: MetadataExtractionApiV2Error (validator is set below) - error_details = bb.Attribute("error_details", nullable=True, user_defined=True) - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(GetMetadataAsyncError, self)._process_custom_annotations( - annotation_type, field_path, processor - ) - - -GetMetadataAsyncError_validator = bv.Struct(GetMetadataAsyncError) - - class GetMetadataResult(bb.Struct): """ :ivar GetMetadataResult.metadata_type: @@ -1534,26 +1405,16 @@ class GetTranscriptArgs(bb.Struct): :ivar GetTranscriptArgs.file_id_or_url: Identifier of the media asset to transcribe. Callers must set exactly - one of the oneof variants: - file_id: a Dropbox-issued file id (format: - "id:") for a file the authenticated user has access to. - path: an - absolute Dropbox path, e.g. "/folder/recording.mp4". - url: either a - Dropbox shared link (www.dropbox.com) or an external HTTPS URL pointing - to a supported audio/video file. - Dropbox shared links are resolved - internally using the caller's authenticated identity and the link's - visibility / download settings. They therefore require an authenticated - user context (anonymous `url` requests against Dropbox links are - rejected with an `ACCESS_ERROR`). Links protected by a password are - rejected with `shared_link_password_protected`; links with downloads - disabled are rejected with `link_download_disabled_error`. - External - URLs are fetched over HTTPS through the backend's egress proxy and must - point at a supported audio/video file extension. The referenced asset - must be an audio or video file in a supported format; requests against - files with no audio track return a `no_audio_error`. + one of the `FileIdOrUrl` variants. The referenced asset must be an audio + or video file in a supported format (see the route description for the + list); requests against files with no audio track return a + `no_audio_error`. :ivar GetTranscriptArgs.timestamp_level: Granularity of the time offsets returned for each transcript segment. - Defaults to `SENTENCE. - SENTENCE: one segment per spoken sentence - (recommended). - WORD: one segment per word, useful for fine-grained - alignment such as captioning or highlight-as-you-listen experiences. + Defaults to `SENTENCE` when the field is omitted. - SENTENCE: one + segment per spoken sentence (recommended). - WORD: one segment per word, + useful for fine-grained alignment such as captioning or + highlight-as-you-listen experiences. :ivar GetTranscriptArgs.included_special_words: Comma-delimited list of non-lexical filler words to preserve in the transcript output, e.g. `"uh, ah, uhm"`. By default these fillers are @@ -1649,7 +1510,7 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param GetTranscriptAsyncError val: + :param ContentApiV2Error val: :rtype: GetTranscriptAsyncCheckResult """ return cls("failed", val) @@ -1700,7 +1561,7 @@ def get_failed(self): """ Only call this if :meth:`is_failed` is true. - :rtype: GetTranscriptAsyncError + :rtype: ContentApiV2Error """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") @@ -1715,37 +1576,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): GetTranscriptAsyncCheckResult_validator = bv.Union(GetTranscriptAsyncCheckResult) -class GetTranscriptAsyncError(bb.Struct): - __slots__ = [ - "_error_code_value", - "_error_details_value", - ] - - _has_required_fields = False - - def __init__(self, error_code=None, error_details=None): - self._error_code_value = bb.NOT_SET - self._error_details_value = bb.NOT_SET - if error_code is not None: - self.error_code = error_code - if error_details is not None: - self.error_details = error_details - - # Instance attribute type: ErrorCode (validator is set below) - error_code = bb.Attribute("error_code", user_defined=True) - - # Instance attribute type: ContentApiV2Error (validator is set below) - error_details = bb.Attribute("error_details", nullable=True, user_defined=True) - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(GetTranscriptAsyncError, self)._process_custom_annotations( - annotation_type, field_path, processor - ) - - -GetTranscriptAsyncError_validator = bv.Struct(GetTranscriptAsyncError) - - class GetTranscriptResult(bb.Struct): """ :ivar GetTranscriptResult.structured_transcript: @@ -1779,10 +1609,25 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MarkdownConversionApiV2Error(bb.Union): """ + Reason a markdown conversion job failed. Returned in the `failed` variant of + `GetMarkdownAsyncCheckResult`. This is a semantic error union: the HTTP + status of the poll request itself is unaffected (a poll that surfaces a + failed job is still a normal successful poll response). Callers should + branch on the variant. + This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. + :ivar MarkdownConversionApiV2Error.server_error: + An unexpected, typically transient, server-side failure. The string is a + human-readable message; retrying with backoff may succeed. + :vartype MarkdownConversionApiV2Error.server_error: str + :ivar MarkdownConversionApiV2Error.user_error: + The request could not be processed as supplied (a problem with the + caller's input). The string is a human-readable message; retrying the + same request will not help. + :vartype MarkdownConversionApiV2Error.user_error: str :ivar MarkdownConversionApiV2Error.not_found_error: The referenced file does not exist or is not accessible. :ivar MarkdownConversionApiV2Error.is_a_folder_error: @@ -1911,6 +1756,9 @@ def is_other(self): def get_server_error(self): """ + An unexpected, typically transient, server-side failure. The string is a + human-readable message; retrying with backoff may succeed. + Only call this if :meth:`is_server_error` is true. :rtype: str @@ -1921,6 +1769,10 @@ def get_server_error(self): def get_user_error(self): """ + The request could not be processed as supplied (a problem with the + caller's input). The string is a human-readable message; retrying the + same request will not help. + Only call this if :meth:`is_user_error` is true. :rtype: str @@ -1964,10 +1816,25 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MetadataExtractionApiV2Error(bb.Union): """ + Reason a metadata extraction job failed. Returned in the `failed` variant of + `GetMetadataAsyncCheckResult`. This is a semantic error union: the HTTP + status of the poll request itself is unaffected (a poll that surfaces a + failed job is still a normal successful poll response). Callers should + branch on the variant. + This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. + :ivar MetadataExtractionApiV2Error.server_error: + An unexpected, typically transient, server-side failure. The string is a + human-readable message; retrying with backoff may succeed. + :vartype MetadataExtractionApiV2Error.server_error: str + :ivar MetadataExtractionApiV2Error.user_error: + The request could not be processed as supplied (a problem with the + caller's input). The string is a human-readable message; retrying the + same request will not help. + :vartype MetadataExtractionApiV2Error.user_error: str :ivar MetadataExtractionApiV2Error.not_found_error: The referenced file does not exist or is not accessible. :ivar MetadataExtractionApiV2Error.is_a_folder_error: @@ -2096,6 +1963,9 @@ def is_other(self): def get_server_error(self): """ + An unexpected, typically transient, server-side failure. The string is a + human-readable message; retrying with backoff may succeed. + Only call this if :meth:`is_server_error` is true. :rtype: str @@ -2106,6 +1976,10 @@ def get_server_error(self): def get_user_error(self): """ + The request could not be processed as supplied (a problem with the + caller's input). The string is a human-readable message; retrying the + same request will not help. + Only call this if :meth:`is_user_error` is true. :rtype: str @@ -2283,22 +2157,12 @@ class TimestampLevel(bb.Union): _catch_all = "other" # Attribute is overwritten below the class definition - unknown = None - # Attribute is overwritten below the class definition sentence = None # Attribute is overwritten below the class definition word = None # Attribute is overwritten below the class definition other = None - def is_unknown(self): - """ - Check if the union tag is ``unknown``. - - :rtype: bool - """ - return self._tag == "unknown" - def is_sentence(self): """ Check if the union tag is ``sentence``. @@ -2743,31 +2607,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ContentApiV2Error.is_a_folder_error = ContentApiV2Error("is_a_folder_error") ContentApiV2Error.other = ContentApiV2Error("other") -ErrorCode._unknown_error_validator = bv.Void() -ErrorCode._bad_request_validator = bv.Void() -ErrorCode._api_error_validator = bv.Void() -ErrorCode._access_error_validator = bv.Void() -ErrorCode._ratelimit_error_validator = bv.Void() -ErrorCode._unavailable_validator = bv.Void() -ErrorCode._other_validator = bv.Void() -ErrorCode._tagmap = { - "unknown_error": ErrorCode._unknown_error_validator, - "bad_request": ErrorCode._bad_request_validator, - "api_error": ErrorCode._api_error_validator, - "access_error": ErrorCode._access_error_validator, - "ratelimit_error": ErrorCode._ratelimit_error_validator, - "unavailable": ErrorCode._unavailable_validator, - "other": ErrorCode._other_validator, -} - -ErrorCode.unknown_error = ErrorCode("unknown_error") -ErrorCode.bad_request = ErrorCode("bad_request") -ErrorCode.api_error = ErrorCode("api_error") -ErrorCode.access_error = ErrorCode("access_error") -ErrorCode.ratelimit_error = ErrorCode("ratelimit_error") -ErrorCode.unavailable = ErrorCode("unavailable") -ErrorCode.other = ErrorCode("other") - FileIdOrUrl._file_id_validator = bv.String() FileIdOrUrl._url_validator = bv.String() FileIdOrUrl._path_validator = bv.String() @@ -2799,7 +2638,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): GetMarkdownAsyncCheckResult._in_progress_validator = bv.Void() GetMarkdownAsyncCheckResult._complete_validator = GetMarkdownResult_validator -GetMarkdownAsyncCheckResult._failed_validator = GetMarkdownAsyncError_validator +GetMarkdownAsyncCheckResult._failed_validator = MarkdownConversionApiV2Error_validator GetMarkdownAsyncCheckResult._other_validator = bv.Void() GetMarkdownAsyncCheckResult._tagmap = { "in_progress": GetMarkdownAsyncCheckResult._in_progress_validator, @@ -2811,19 +2650,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): GetMarkdownAsyncCheckResult.in_progress = GetMarkdownAsyncCheckResult("in_progress") GetMarkdownAsyncCheckResult.other = GetMarkdownAsyncCheckResult("other") -GetMarkdownAsyncError.error_code.validator = ErrorCode_validator -GetMarkdownAsyncError.error_details.validator = bv.Nullable(MarkdownConversionApiV2Error_validator) -GetMarkdownAsyncError._all_field_names_ = set( - [ - "error_code", - "error_details", - ] -) -GetMarkdownAsyncError._all_fields_ = [ - ("error_code", GetMarkdownAsyncError.error_code.validator), - ("error_details", GetMarkdownAsyncError.error_details.validator), -] - GetMarkdownResult.markdown.validator = bv.String() GetMarkdownResult._all_field_names_ = set(["markdown"]) GetMarkdownResult._all_fields_ = [("markdown", GetMarkdownResult.markdown.validator)] @@ -2834,7 +2660,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): GetMetadataAsyncCheckResult._in_progress_validator = bv.Void() GetMetadataAsyncCheckResult._complete_validator = GetMetadataResult_validator -GetMetadataAsyncCheckResult._failed_validator = GetMetadataAsyncError_validator +GetMetadataAsyncCheckResult._failed_validator = MetadataExtractionApiV2Error_validator GetMetadataAsyncCheckResult._other_validator = bv.Void() GetMetadataAsyncCheckResult._tagmap = { "in_progress": GetMetadataAsyncCheckResult._in_progress_validator, @@ -2846,19 +2672,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): GetMetadataAsyncCheckResult.in_progress = GetMetadataAsyncCheckResult("in_progress") GetMetadataAsyncCheckResult.other = GetMetadataAsyncCheckResult("other") -GetMetadataAsyncError.error_code.validator = ErrorCode_validator -GetMetadataAsyncError.error_details.validator = bv.Nullable(MetadataExtractionApiV2Error_validator) -GetMetadataAsyncError._all_field_names_ = set( - [ - "error_code", - "error_details", - ] -) -GetMetadataAsyncError._all_fields_ = [ - ("error_code", GetMetadataAsyncError.error_code.validator), - ("error_details", GetMetadataAsyncError.error_details.validator), -] - GetMetadataResult.metadata_type.validator = MetadataType_validator GetMetadataResult.metadata.validator = bv.Nullable(MetadataUnion_validator) GetMetadataResult._all_field_names_ = set( @@ -2893,7 +2706,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): GetTranscriptAsyncCheckResult._in_progress_validator = bv.Void() GetTranscriptAsyncCheckResult._complete_validator = GetTranscriptResult_validator -GetTranscriptAsyncCheckResult._failed_validator = GetTranscriptAsyncError_validator +GetTranscriptAsyncCheckResult._failed_validator = ContentApiV2Error_validator GetTranscriptAsyncCheckResult._other_validator = bv.Void() GetTranscriptAsyncCheckResult._tagmap = { "in_progress": GetTranscriptAsyncCheckResult._in_progress_validator, @@ -2905,19 +2718,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): GetTranscriptAsyncCheckResult.in_progress = GetTranscriptAsyncCheckResult("in_progress") GetTranscriptAsyncCheckResult.other = GetTranscriptAsyncCheckResult("other") -GetTranscriptAsyncError.error_code.validator = ErrorCode_validator -GetTranscriptAsyncError.error_details.validator = bv.Nullable(ContentApiV2Error_validator) -GetTranscriptAsyncError._all_field_names_ = set( - [ - "error_code", - "error_details", - ] -) -GetTranscriptAsyncError._all_fields_ = [ - ("error_code", GetTranscriptAsyncError.error_code.validator), - ("error_details", GetTranscriptAsyncError.error_details.validator), -] - GetTranscriptResult.structured_transcript.validator = bv.Nullable(ApiStructuredTranscript_validator) GetTranscriptResult._all_field_names_ = set(["structured_transcript"]) GetTranscriptResult._all_fields_ = [ @@ -3053,18 +2853,15 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): OfficeFileType.office_filetype_excel = OfficeFileType("office_filetype_excel") OfficeFileType.other = OfficeFileType("other") -TimestampLevel._unknown_validator = bv.Void() TimestampLevel._sentence_validator = bv.Void() TimestampLevel._word_validator = bv.Void() TimestampLevel._other_validator = bv.Void() TimestampLevel._tagmap = { - "unknown": TimestampLevel._unknown_validator, "sentence": TimestampLevel._sentence_validator, "word": TimestampLevel._word_validator, "other": TimestampLevel._other_validator, } -TimestampLevel.unknown = TimestampLevel("unknown") TimestampLevel.sentence = TimestampLevel("sentence") TimestampLevel.word = TimestampLevel("word") TimestampLevel.other = TimestampLevel("other") @@ -3142,14 +2939,11 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ApiTranscriptSegment.end_time.default = 0.0 GetMarkdownArgs.enable_ocr.default = False GetMarkdownArgs.embed_images.default = False -GetMarkdownAsyncError.error_code.default = ErrorCode.unknown_error GetMarkdownResult.markdown.default = "" -GetMetadataAsyncError.error_code.default = ErrorCode.unknown_error GetMetadataResult.metadata_type.default = MetadataType.metadata_type_unknown -GetTranscriptArgs.timestamp_level.default = TimestampLevel.unknown +GetTranscriptArgs.timestamp_level.default = TimestampLevel.sentence GetTranscriptArgs.included_special_words.default = "" GetTranscriptArgs.audio_language.default = "" -GetTranscriptAsyncError.error_code.default = ErrorCode.unknown_error MediaDurationError.limit.default = 0 get_markdown_async = bb.Route( "get_markdown_async", diff --git a/dropbox/sharing.py b/dropbox/sharing.py index 6c7825d8..438a7172 100644 --- a/dropbox/sharing.py +++ b/dropbox/sharing.py @@ -4024,12 +4024,7 @@ class GroupMembershipInfo(MembershipInfo): _has_required_fields = True def __init__( - self, - access_type=None, - group=None, - permissions=None, - initials=None, - is_inherited=None, + self, access_type=None, group=None, permissions=None, initials=None, is_inherited=None ): super(GroupMembershipInfo, self).__init__(access_type, permissions, initials, is_inherited) self._group_value = bb.NOT_SET @@ -10916,7 +10911,7 @@ class SharedLinkSettings(bb.Struct): link's access level specified in the `link_access_level` field of `LinkPermissions`. This is used in conjunction with team policies and shared folder policies to determine the final effective audience type in - the `effective_audience` field of `LinkPermissions. + the `effective_audience` field of `LinkPermissions`. :ivar SharedLinkSettings.access: Requested access level you want the audience to gain from this link. Note, modifying access level for an existing link is not supported. @@ -12408,12 +12403,7 @@ class UserMembershipInfo(MembershipInfo): _has_required_fields = True def __init__( - self, - access_type=None, - user=None, - permissions=None, - initials=None, - is_inherited=None, + self, access_type=None, user=None, permissions=None, initials=None, is_inherited=None ): super(UserMembershipInfo, self).__init__(access_type, permissions, initials, is_inherited) self._user_value = bb.NOT_SET @@ -12518,12 +12508,7 @@ class UserInfo(bb.Struct): _has_required_fields = True def __init__( - self, - account_id=None, - email=None, - display_name=None, - same_team=None, - team_member_id=None, + self, account_id=None, email=None, display_name=None, same_team=None, team_member_id=None ): self._account_id_value = bb.NOT_SET self._email_value = bb.NOT_SET @@ -15162,10 +15147,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("is_team_folder", SharedFolderMetadataBase.is_team_folder.validator), ("owner_display_names", SharedFolderMetadataBase.owner_display_names.validator), ("owner_team", SharedFolderMetadataBase.owner_team.validator), - ( - "parent_shared_folder_id", - SharedFolderMetadataBase.parent_shared_folder_id.validator, - ), + ("parent_shared_folder_id", SharedFolderMetadataBase.parent_shared_folder_id.validator), ("path_display", SharedFolderMetadataBase.path_display.validator), ("path_lower", SharedFolderMetadataBase.path_lower.validator), ("parent_folder_name", SharedFolderMetadataBase.parent_folder_name.validator), diff --git a/dropbox/stone_base.py b/dropbox/stone_base.py index 4177f487..b912eebd 100644 --- a/dropbox/stone_base.py +++ b/dropbox/stone_base.py @@ -1 +1 @@ -from stone.backends.python_rsrc.stone_base import * # noqa: F403 +from stone.backends.python_rsrc.stone_base import * diff --git a/dropbox/stone_serializers.py b/dropbox/stone_serializers.py index 2ed497c0..669b985d 100644 --- a/dropbox/stone_serializers.py +++ b/dropbox/stone_serializers.py @@ -1 +1 @@ -from stone.backends.python_rsrc.stone_serializers import * # noqa: F403 +from stone.backends.python_rsrc.stone_serializers import * diff --git a/dropbox/stone_validators.py b/dropbox/stone_validators.py index 01f76e79..2f41d57d 100644 --- a/dropbox/stone_validators.py +++ b/dropbox/stone_validators.py @@ -1 +1 @@ -from stone.backends.python_rsrc.stone_validators import * # noqa: F403 +from stone.backends.python_rsrc.stone_validators import * diff --git a/dropbox/team.py b/dropbox/team.py index 6c82b976..bf6ea130 100644 --- a/dropbox/team.py +++ b/dropbox/team.py @@ -908,6 +908,673 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): BaseTeamFolderError_validator = bv.Union(BaseTeamFolderError) +class BulkSuspendArg(bb.Struct): + """ + Launches one action-specific bulk suspend job. + + :ivar BulkSuspendArg.members: + Must contain between 1 and 500 targets. The launch handler also rejects + duplicate client item IDs and duplicate member selectors. + """ + + __slots__ = [ + "_members_value", + ] + + _has_required_fields = True + + def __init__(self, members=None): + self._members_value = bb.NOT_SET + if members is not None: + self.members = members + + # Instance attribute type: list of [BulkSuspendMemberTarget] (validator is set below) + members = bb.Attribute("members") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BulkSuspendArg, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +BulkSuspendArg_validator = bv.Struct(BulkSuspendArg) + + +class BulkSuspendComplete(bb.Struct): + __slots__ = [ + "_requested_value", + "_suspended_value", + "_failed_value", + "_unknown_value", + "_report_delivery_value", + ] + + _has_required_fields = True + + def __init__( + self, requested=None, suspended=None, failed=None, unknown=None, report_delivery=None + ): + self._requested_value = bb.NOT_SET + self._suspended_value = bb.NOT_SET + self._failed_value = bb.NOT_SET + self._unknown_value = bb.NOT_SET + self._report_delivery_value = bb.NOT_SET + if requested is not None: + self.requested = requested + if suspended is not None: + self.suspended = suspended + if failed is not None: + self.failed = failed + if unknown is not None: + self.unknown = unknown + if report_delivery is not None: + self.report_delivery = report_delivery + + # Instance attribute type: int (validator is set below) + requested = bb.Attribute("requested") + + # Instance attribute type: int (validator is set below) + suspended = bb.Attribute("suspended") + + # Instance attribute type: int (validator is set below) + failed = bb.Attribute("failed") + + # Instance attribute type: int (validator is set below) + unknown = bb.Attribute("unknown") + + # Instance attribute type: BulkSuspendReportDeliveryStatus (validator is set below) + report_delivery = bb.Attribute("report_delivery", user_defined=True) + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BulkSuspendComplete, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +BulkSuspendComplete_validator = bv.Struct(BulkSuspendComplete) + + +class BulkSuspendError(bb.Union): + """ + A typed launch rejection. Authorization failures continue to use the API v2 + authentication/permission error surface. + + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + """ + + _catch_all = "other" + # Attribute is overwritten below the class definition + invalid_request = None + # Attribute is overwritten below the class definition + too_many_members = None + # Attribute is overwritten below the class definition + duplicate_client_item_id = None + # Attribute is overwritten below the class definition + duplicate_team_member_id = None + # Attribute is overwritten below the class definition + acting_admin = None + # Attribute is overwritten below the class definition + last_admin = None + # Attribute is overwritten below the class definition + other = None + + def is_invalid_request(self): + """ + Check if the union tag is ``invalid_request``. + + :rtype: bool + """ + return self._tag == "invalid_request" + + def is_too_many_members(self): + """ + Check if the union tag is ``too_many_members``. + + :rtype: bool + """ + return self._tag == "too_many_members" + + def is_duplicate_client_item_id(self): + """ + Check if the union tag is ``duplicate_client_item_id``. + + :rtype: bool + """ + return self._tag == "duplicate_client_item_id" + + def is_duplicate_team_member_id(self): + """ + Check if the union tag is ``duplicate_team_member_id``. + + :rtype: bool + """ + return self._tag == "duplicate_team_member_id" + + def is_acting_admin(self): + """ + Check if the union tag is ``acting_admin``. + + :rtype: bool + """ + return self._tag == "acting_admin" + + def is_last_admin(self): + """ + Check if the union tag is ``last_admin``. + + :rtype: bool + """ + return self._tag == "last_admin" + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == "other" + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BulkSuspendError, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +BulkSuspendError_validator = bv.Union(BulkSuspendError) + + +class BulkSuspendJobStatus(async_.PollResultBase): + """ + Coarse job state. Live row progress and report contents are intentionally + omitted; callers receive row details in the terminal email report. + + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + """ + + _catch_all = "other" + # Attribute is overwritten below the class definition + other = None + + @classmethod + def complete(cls, val): + """ + Create an instance of this class set to the ``complete`` tag with value + ``val``. + + :param BulkSuspendComplete val: + :rtype: BulkSuspendJobStatus + """ + return cls("complete", val) + + @classmethod + def failed(cls, val): + """ + Create an instance of this class set to the ``failed`` tag with value + ``val``. + + :param BulkSuspendTaskFailure val: + :rtype: BulkSuspendJobStatus + """ + return cls("failed", val) + + def is_complete(self): + """ + Check if the union tag is ``complete``. + + :rtype: bool + """ + return self._tag == "complete" + + def is_failed(self): + """ + Check if the union tag is ``failed``. + + :rtype: bool + """ + return self._tag == "failed" + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == "other" + + def get_complete(self): + """ + Only call this if :meth:`is_complete` is true. + + :rtype: BulkSuspendComplete + """ + if not self.is_complete(): + raise AttributeError("tag 'complete' not set") + return self._value + + def get_failed(self): + """ + Only call this if :meth:`is_failed` is true. + + :rtype: BulkSuspendTaskFailure + """ + if not self.is_failed(): + raise AttributeError("tag 'failed' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BulkSuspendJobStatus, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +BulkSuspendJobStatus_validator = bv.Union(BulkSuspendJobStatus) + + +class BulkSuspendMemberTarget(bb.Struct): + """ + One member selected for suspension. The opaque client item ID correlates the + eventual report row with the caller's input without sending CSV data. + """ + + __slots__ = [ + "_client_item_id_value", + "_suspend_arg_value", + ] + + _has_required_fields = True + + def __init__(self, client_item_id=None, suspend_arg=None): + self._client_item_id_value = bb.NOT_SET + self._suspend_arg_value = bb.NOT_SET + if client_item_id is not None: + self.client_item_id = client_item_id + if suspend_arg is not None: + self.suspend_arg = suspend_arg + + # Instance attribute type: str (validator is set below) + client_item_id = bb.Attribute("client_item_id") + + # Instance attribute type: MembersDeactivateArg (validator is set below) + suspend_arg = bb.Attribute("suspend_arg", user_defined=True) + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BulkSuspendMemberTarget, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +BulkSuspendMemberTarget_validator = bv.Struct(BulkSuspendMemberTarget) + + +class BulkSuspendReportDeliveryStatus(bb.Union): + """ + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + """ + + _catch_all = "other" + # Attribute is overwritten below the class definition + bulk_suspend_report_delivery_status_unspecified = None + # Attribute is overwritten below the class definition + bulk_suspend_report_delivery_status_pending = None + # Attribute is overwritten below the class definition + bulk_suspend_report_delivery_status_delivered = None + # Attribute is overwritten below the class definition + bulk_suspend_report_delivery_status_failed = None + # Attribute is overwritten below the class definition + other = None + + def is_bulk_suspend_report_delivery_status_unspecified(self): + """ + Check if the union tag is ``bulk_suspend_report_delivery_status_unspecified``. + + :rtype: bool + """ + return self._tag == "bulk_suspend_report_delivery_status_unspecified" + + def is_bulk_suspend_report_delivery_status_pending(self): + """ + Check if the union tag is ``bulk_suspend_report_delivery_status_pending``. + + :rtype: bool + """ + return self._tag == "bulk_suspend_report_delivery_status_pending" + + def is_bulk_suspend_report_delivery_status_delivered(self): + """ + Check if the union tag is ``bulk_suspend_report_delivery_status_delivered``. + + :rtype: bool + """ + return self._tag == "bulk_suspend_report_delivery_status_delivered" + + def is_bulk_suspend_report_delivery_status_failed(self): + """ + Check if the union tag is ``bulk_suspend_report_delivery_status_failed``. + + :rtype: bool + """ + return self._tag == "bulk_suspend_report_delivery_status_failed" + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == "other" + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BulkSuspendReportDeliveryStatus, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +BulkSuspendReportDeliveryStatus_validator = bv.Union(BulkSuspendReportDeliveryStatus) + + +class UserSelectorError(bb.Union): + """ + Error that can be returned whenever a struct derived from + :class:`UserSelectorArg` is used. + + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + + :ivar UserSelectorError.user_not_found: + No matching user found. The provided team_member_id, email, or + external_id does not exist on this team. + """ + + _catch_all = None + # Attribute is overwritten below the class definition + user_not_found = None + + def is_user_not_found(self): + """ + Check if the union tag is ``user_not_found``. + + :rtype: bool + """ + return self._tag == "user_not_found" + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserSelectorError, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +UserSelectorError_validator = bv.Union(UserSelectorError) + + +class MembersDeactivateError(UserSelectorError): + """ + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + + :ivar MembersDeactivateError.user_not_in_team: + The user is not a member of the team. + """ + + _catch_all = "other" + # Attribute is overwritten below the class definition + user_not_in_team = None + # Attribute is overwritten below the class definition + other = None + + def is_user_not_in_team(self): + """ + Check if the union tag is ``user_not_in_team``. + + :rtype: bool + """ + return self._tag == "user_not_in_team" + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == "other" + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersDeactivateError, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +MembersDeactivateError_validator = bv.Union(MembersDeactivateError) + + +class MembersSuspendError(MembersDeactivateError): + """ + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + + :ivar MembersSuspendError.suspend_inactive_user: + The user is not active, so it cannot be suspended. + :ivar MembersSuspendError.suspend_last_admin: + The user is the last admin of the team, so it cannot be suspended. + :ivar MembersSuspendError.team_license_limit: + Team is full. The organization has no available licenses. + """ + + # Attribute is overwritten below the class definition + suspend_inactive_user = None + # Attribute is overwritten below the class definition + suspend_last_admin = None + # Attribute is overwritten below the class definition + team_license_limit = None + + def is_suspend_inactive_user(self): + """ + Check if the union tag is ``suspend_inactive_user``. + + :rtype: bool + """ + return self._tag == "suspend_inactive_user" + + def is_suspend_last_admin(self): + """ + Check if the union tag is ``suspend_last_admin``. + + :rtype: bool + """ + return self._tag == "suspend_last_admin" + + def is_team_license_limit(self): + """ + Check if the union tag is ``team_license_limit``. + + :rtype: bool + """ + return self._tag == "team_license_limit" + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersSuspendError, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +MembersSuspendError_validator = bv.Union(MembersSuspendError) + + +class BulkSuspendRowFailure(MembersSuspendError): + """ + Stable machine-readable reasons used by the terminal row report. + + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + """ + + # Attribute is overwritten below the class definition + protected_acting_admin = None + # Attribute is overwritten below the class definition + permission_changed = None + # Attribute is overwritten below the class definition + suspend_failed = None + + def is_protected_acting_admin(self): + """ + Check if the union tag is ``protected_acting_admin``. + + :rtype: bool + """ + return self._tag == "protected_acting_admin" + + def is_permission_changed(self): + """ + Check if the union tag is ``permission_changed``. + + :rtype: bool + """ + return self._tag == "permission_changed" + + def is_suspend_failed(self): + """ + Check if the union tag is ``suspend_failed``. + + :rtype: bool + """ + return self._tag == "suspend_failed" + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BulkSuspendRowFailure, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +BulkSuspendRowFailure_validator = bv.Union(BulkSuspendRowFailure) + + +class BulkSuspendRowOutcome(bb.Union): + """ + The terminal outcome for one requested member. Row outcomes are delivered in + the report rather than embedded in the status response. + + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + """ + + _catch_all = "other" + # Attribute is overwritten below the class definition + suspended = None + # Attribute is overwritten below the class definition + unknown = None + # Attribute is overwritten below the class definition + other = None + + @classmethod + def failed(cls, val): + """ + Create an instance of this class set to the ``failed`` tag with value + ``val``. + + :param BulkSuspendRowFailure val: + :rtype: BulkSuspendRowOutcome + """ + return cls("failed", val) + + def is_suspended(self): + """ + Check if the union tag is ``suspended``. + + :rtype: bool + """ + return self._tag == "suspended" + + def is_failed(self): + """ + Check if the union tag is ``failed``. + + :rtype: bool + """ + return self._tag == "failed" + + def is_unknown(self): + """ + Check if the union tag is ``unknown``. + + :rtype: bool + """ + return self._tag == "unknown" + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == "other" + + def get_failed(self): + """ + Only call this if :meth:`is_failed` is true. + + :rtype: BulkSuspendRowFailure + """ + if not self.is_failed(): + raise AttributeError("tag 'failed' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BulkSuspendRowOutcome, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +BulkSuspendRowOutcome_validator = bv.Union(BulkSuspendRowOutcome) + + +class BulkSuspendTaskFailure(bb.Union): + """ + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + """ + + _catch_all = "other" + # Attribute is overwritten below the class definition + unusable_result = None + # Attribute is overwritten below the class definition + other = None + + def is_unusable_result(self): + """ + Check if the union tag is ``unusable_result``. + + :rtype: bool + """ + return self._tag == "unusable_result" + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == "other" + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BulkSuspendTaskFailure, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +BulkSuspendTaskFailure_validator = bv.Union(BulkSuspendTaskFailure) + + class CustomQuotaError(bb.Union): """ Error returned when getting member custom quota. @@ -1560,14 +2227,7 @@ class DevicesActive(bb.Struct): _has_required_fields = True def __init__( - self, - windows=None, - macos=None, - linux=None, - ios=None, - android=None, - other=None, - total=None, + self, windows=None, macos=None, linux=None, ios=None, android=None, other=None, total=None ): self._windows_value = bb.NOT_SET self._macos_value = bb.NOT_SET @@ -6215,10 +6875,7 @@ class ListMemberDevicesResult(bb.Struct): _has_required_fields = False def __init__( - self, - active_web_sessions=None, - desktop_client_sessions=None, - mobile_client_sessions=None, + self, active_web_sessions=None, desktop_client_sessions=None, mobile_client_sessions=None ): self._active_web_sessions_value = bb.NOT_SET self._desktop_client_sessions_value = bb.NOT_SET @@ -7581,11 +8238,7 @@ class MemberDevices(bb.Struct): _has_required_fields = True def __init__( - self, - team_member_id=None, - web_sessions=None, - desktop_clients=None, - mobile_clients=None, + self, team_member_id=None, web_sessions=None, desktop_clients=None, mobile_clients=None ): self._team_member_id_value = bb.NOT_SET self._web_sessions_value = bb.NOT_SET @@ -7841,41 +8494,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): MemberProfile_validator = bv.Struct(MemberProfile) -class UserSelectorError(bb.Union): - """ - Error that can be returned whenever a struct derived from - :class:`UserSelectorArg` is used. - - This class acts as a tagged union. Only one of the ``is_*`` methods will - return true. To get the associated value of a tag (if one exists), use the - corresponding ``get_*`` method. - - :ivar UserSelectorError.user_not_found: - No matching user found. The provided team_member_id, email, or - external_id does not exist on this team. - """ - - _catch_all = None - # Attribute is overwritten below the class definition - user_not_found = None - - def is_user_not_found(self): - """ - Check if the union tag is ``user_not_found``. - - :rtype: bool - """ - return self._tag == "user_not_found" - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(UserSelectorError, self)._process_custom_annotations( - annotation_type, field_path, processor - ) - - -UserSelectorError_validator = bv.Union(UserSelectorError) - - class MemberSelectorError(UserSelectorError): """ This class acts as a tagged union. Only one of the ``is_*`` methods will @@ -8374,68 +8992,27 @@ class MembersDeactivateArg(MembersDeactivateBaseArg): """ __slots__ = [ - "_wipe_data_value", - ] - - _has_required_fields = True - - def __init__(self, user=None, wipe_data=None): - super(MembersDeactivateArg, self).__init__(user) - self._wipe_data_value = bb.NOT_SET - if wipe_data is not None: - self.wipe_data = wipe_data - - # Instance attribute type: bool (validator is set below) - wipe_data = bb.Attribute("wipe_data") - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(MembersDeactivateArg, self)._process_custom_annotations( - annotation_type, field_path, processor - ) - - -MembersDeactivateArg_validator = bv.Struct(MembersDeactivateArg) - - -class MembersDeactivateError(UserSelectorError): - """ - This class acts as a tagged union. Only one of the ``is_*`` methods will - return true. To get the associated value of a tag (if one exists), use the - corresponding ``get_*`` method. - - :ivar MembersDeactivateError.user_not_in_team: - The user is not a member of the team. - """ - - _catch_all = "other" - # Attribute is overwritten below the class definition - user_not_in_team = None - # Attribute is overwritten below the class definition - other = None - - def is_user_not_in_team(self): - """ - Check if the union tag is ``user_not_in_team``. + "_wipe_data_value", + ] - :rtype: bool - """ - return self._tag == "user_not_in_team" + _has_required_fields = True - def is_other(self): - """ - Check if the union tag is ``other``. + def __init__(self, user=None, wipe_data=None): + super(MembersDeactivateArg, self).__init__(user) + self._wipe_data_value = bb.NOT_SET + if wipe_data is not None: + self.wipe_data = wipe_data - :rtype: bool - """ - return self._tag == "other" + # Instance attribute type: bool (validator is set below) + wipe_data = bb.Attribute("wipe_data") def _process_custom_annotations(self, annotation_type, field_path, processor): - super(MembersDeactivateError, self)._process_custom_annotations( + super(MembersDeactivateArg, self)._process_custom_annotations( annotation_type, field_path, processor ) -MembersDeactivateError_validator = bv.Union(MembersDeactivateError) +MembersDeactivateArg_validator = bv.Struct(MembersDeactivateArg) class MembersPermanentlyDeleteFilesError(MembersDeactivateError): @@ -10428,60 +11005,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): MembersSetProfilePhotoError_validator = bv.Union(MembersSetProfilePhotoError) -class MembersSuspendError(MembersDeactivateError): - """ - This class acts as a tagged union. Only one of the ``is_*`` methods will - return true. To get the associated value of a tag (if one exists), use the - corresponding ``get_*`` method. - - :ivar MembersSuspendError.suspend_inactive_user: - The user is not active, so it cannot be suspended. - :ivar MembersSuspendError.suspend_last_admin: - The user is the last admin of the team, so it cannot be suspended. - :ivar MembersSuspendError.team_license_limit: - Team is full. The organization has no available licenses. - """ - - # Attribute is overwritten below the class definition - suspend_inactive_user = None - # Attribute is overwritten below the class definition - suspend_last_admin = None - # Attribute is overwritten below the class definition - team_license_limit = None - - def is_suspend_inactive_user(self): - """ - Check if the union tag is ``suspend_inactive_user``. - - :rtype: bool - """ - return self._tag == "suspend_inactive_user" - - def is_suspend_last_admin(self): - """ - Check if the union tag is ``suspend_last_admin``. - - :rtype: bool - """ - return self._tag == "suspend_last_admin" - - def is_team_license_limit(self): - """ - Check if the union tag is ``team_license_limit``. - - :rtype: bool - """ - return self._tag == "team_license_limit" - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(MembersSuspendError, self)._process_custom_annotations( - annotation_type, field_path, processor - ) - - -MembersSuspendError_validator = bv.Union(MembersSuspendError) - - class MembersTransferFormerMembersFilesError(MembersTransferFilesError): """ This class acts as a tagged union. Only one of the ``is_*`` methods will @@ -12592,8 +13115,23 @@ class TeamFolderActivateError(BaseTeamFolderError): This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. + + :ivar TeamFolderActivateError.folder_count_limit_exceeded: + The team has reached the maximum number of team folders allowed by its + plan. """ + # Attribute is overwritten below the class definition + folder_count_limit_exceeded = None + + def is_folder_count_limit_exceeded(self): + """ + Check if the union tag is ``folder_count_limit_exceeded``. + + :rtype: bool + """ + return self._tag == "folder_count_limit_exceeded" + def _process_custom_annotations(self, annotation_type, field_path, processor): super(TeamFolderActivateError, self)._process_custom_annotations( annotation_type, field_path, processor @@ -13525,8 +14063,23 @@ class TeamFolderRestoreError(BaseTeamFolderError): This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. + + :ivar TeamFolderRestoreError.folder_count_limit_exceeded: + The team has reached the maximum number of team folders allowed by its + plan. """ + # Attribute is overwritten below the class definition + folder_count_limit_exceeded = None + + def is_folder_count_limit_exceeded(self): + """ + Check if the union tag is ``folder_count_limit_exceeded``. + + :rtype: bool + """ + return self._tag == "folder_count_limit_exceeded" + def _process_custom_annotations(self, annotation_type, field_path, processor): super(TeamFolderRestoreError, self)._process_custom_annotations( annotation_type, field_path, processor @@ -15615,6 +16168,182 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): BaseTeamFolderError.other = BaseTeamFolderError("other") +BulkSuspendArg.members.validator = bv.List(BulkSuspendMemberTarget_validator) +BulkSuspendArg._all_field_names_ = set(["members"]) +BulkSuspendArg._all_fields_ = [("members", BulkSuspendArg.members.validator)] + +BulkSuspendComplete.requested.validator = bv.Int64() +BulkSuspendComplete.suspended.validator = bv.Int64() +BulkSuspendComplete.failed.validator = bv.Int64() +BulkSuspendComplete.unknown.validator = bv.Int64() +BulkSuspendComplete.report_delivery.validator = BulkSuspendReportDeliveryStatus_validator +BulkSuspendComplete._all_field_names_ = set( + [ + "requested", + "suspended", + "failed", + "unknown", + "report_delivery", + ] +) +BulkSuspendComplete._all_fields_ = [ + ("requested", BulkSuspendComplete.requested.validator), + ("suspended", BulkSuspendComplete.suspended.validator), + ("failed", BulkSuspendComplete.failed.validator), + ("unknown", BulkSuspendComplete.unknown.validator), + ("report_delivery", BulkSuspendComplete.report_delivery.validator), +] + +BulkSuspendError._invalid_request_validator = bv.Void() +BulkSuspendError._too_many_members_validator = bv.Void() +BulkSuspendError._duplicate_client_item_id_validator = bv.Void() +BulkSuspendError._duplicate_team_member_id_validator = bv.Void() +BulkSuspendError._acting_admin_validator = bv.Void() +BulkSuspendError._last_admin_validator = bv.Void() +BulkSuspendError._other_validator = bv.Void() +BulkSuspendError._tagmap = { + "invalid_request": BulkSuspendError._invalid_request_validator, + "too_many_members": BulkSuspendError._too_many_members_validator, + "duplicate_client_item_id": BulkSuspendError._duplicate_client_item_id_validator, + "duplicate_team_member_id": BulkSuspendError._duplicate_team_member_id_validator, + "acting_admin": BulkSuspendError._acting_admin_validator, + "last_admin": BulkSuspendError._last_admin_validator, + "other": BulkSuspendError._other_validator, +} + +BulkSuspendError.invalid_request = BulkSuspendError("invalid_request") +BulkSuspendError.too_many_members = BulkSuspendError("too_many_members") +BulkSuspendError.duplicate_client_item_id = BulkSuspendError("duplicate_client_item_id") +BulkSuspendError.duplicate_team_member_id = BulkSuspendError("duplicate_team_member_id") +BulkSuspendError.acting_admin = BulkSuspendError("acting_admin") +BulkSuspendError.last_admin = BulkSuspendError("last_admin") +BulkSuspendError.other = BulkSuspendError("other") + +BulkSuspendJobStatus._complete_validator = BulkSuspendComplete_validator +BulkSuspendJobStatus._failed_validator = BulkSuspendTaskFailure_validator +BulkSuspendJobStatus._other_validator = bv.Void() +BulkSuspendJobStatus._tagmap = { + "complete": BulkSuspendJobStatus._complete_validator, + "failed": BulkSuspendJobStatus._failed_validator, + "other": BulkSuspendJobStatus._other_validator, +} +BulkSuspendJobStatus._tagmap.update(async_.PollResultBase._tagmap) + +BulkSuspendJobStatus.other = BulkSuspendJobStatus("other") + +BulkSuspendMemberTarget.client_item_id.validator = bv.String() +BulkSuspendMemberTarget.suspend_arg.validator = MembersDeactivateArg_validator +BulkSuspendMemberTarget._all_field_names_ = set( + [ + "client_item_id", + "suspend_arg", + ] +) +BulkSuspendMemberTarget._all_fields_ = [ + ("client_item_id", BulkSuspendMemberTarget.client_item_id.validator), + ("suspend_arg", BulkSuspendMemberTarget.suspend_arg.validator), +] + +BulkSuspendReportDeliveryStatus._bulk_suspend_report_delivery_status_unspecified_validator = ( + bv.Void() +) +BulkSuspendReportDeliveryStatus._bulk_suspend_report_delivery_status_pending_validator = bv.Void() +BulkSuspendReportDeliveryStatus._bulk_suspend_report_delivery_status_delivered_validator = bv.Void() +BulkSuspendReportDeliveryStatus._bulk_suspend_report_delivery_status_failed_validator = bv.Void() +BulkSuspendReportDeliveryStatus._other_validator = bv.Void() +BulkSuspendReportDeliveryStatus._tagmap = { + "bulk_suspend_report_delivery_status_unspecified": BulkSuspendReportDeliveryStatus._bulk_suspend_report_delivery_status_unspecified_validator, + "bulk_suspend_report_delivery_status_pending": BulkSuspendReportDeliveryStatus._bulk_suspend_report_delivery_status_pending_validator, + "bulk_suspend_report_delivery_status_delivered": BulkSuspendReportDeliveryStatus._bulk_suspend_report_delivery_status_delivered_validator, + "bulk_suspend_report_delivery_status_failed": BulkSuspendReportDeliveryStatus._bulk_suspend_report_delivery_status_failed_validator, + "other": BulkSuspendReportDeliveryStatus._other_validator, +} + +BulkSuspendReportDeliveryStatus.bulk_suspend_report_delivery_status_unspecified = ( + BulkSuspendReportDeliveryStatus("bulk_suspend_report_delivery_status_unspecified") +) +BulkSuspendReportDeliveryStatus.bulk_suspend_report_delivery_status_pending = ( + BulkSuspendReportDeliveryStatus("bulk_suspend_report_delivery_status_pending") +) +BulkSuspendReportDeliveryStatus.bulk_suspend_report_delivery_status_delivered = ( + BulkSuspendReportDeliveryStatus("bulk_suspend_report_delivery_status_delivered") +) +BulkSuspendReportDeliveryStatus.bulk_suspend_report_delivery_status_failed = ( + BulkSuspendReportDeliveryStatus("bulk_suspend_report_delivery_status_failed") +) +BulkSuspendReportDeliveryStatus.other = BulkSuspendReportDeliveryStatus("other") + +UserSelectorError._user_not_found_validator = bv.Void() +UserSelectorError._tagmap = { + "user_not_found": UserSelectorError._user_not_found_validator, +} + +UserSelectorError.user_not_found = UserSelectorError("user_not_found") + +MembersDeactivateError._user_not_in_team_validator = bv.Void() +MembersDeactivateError._other_validator = bv.Void() +MembersDeactivateError._tagmap = { + "user_not_in_team": MembersDeactivateError._user_not_in_team_validator, + "other": MembersDeactivateError._other_validator, +} +MembersDeactivateError._tagmap.update(UserSelectorError._tagmap) + +MembersDeactivateError.user_not_in_team = MembersDeactivateError("user_not_in_team") +MembersDeactivateError.other = MembersDeactivateError("other") + +MembersSuspendError._suspend_inactive_user_validator = bv.Void() +MembersSuspendError._suspend_last_admin_validator = bv.Void() +MembersSuspendError._team_license_limit_validator = bv.Void() +MembersSuspendError._tagmap = { + "suspend_inactive_user": MembersSuspendError._suspend_inactive_user_validator, + "suspend_last_admin": MembersSuspendError._suspend_last_admin_validator, + "team_license_limit": MembersSuspendError._team_license_limit_validator, +} +MembersSuspendError._tagmap.update(MembersDeactivateError._tagmap) + +MembersSuspendError.suspend_inactive_user = MembersSuspendError("suspend_inactive_user") +MembersSuspendError.suspend_last_admin = MembersSuspendError("suspend_last_admin") +MembersSuspendError.team_license_limit = MembersSuspendError("team_license_limit") + +BulkSuspendRowFailure._protected_acting_admin_validator = bv.Void() +BulkSuspendRowFailure._permission_changed_validator = bv.Void() +BulkSuspendRowFailure._suspend_failed_validator = bv.Void() +BulkSuspendRowFailure._tagmap = { + "protected_acting_admin": BulkSuspendRowFailure._protected_acting_admin_validator, + "permission_changed": BulkSuspendRowFailure._permission_changed_validator, + "suspend_failed": BulkSuspendRowFailure._suspend_failed_validator, +} +BulkSuspendRowFailure._tagmap.update(MembersSuspendError._tagmap) + +BulkSuspendRowFailure.protected_acting_admin = BulkSuspendRowFailure("protected_acting_admin") +BulkSuspendRowFailure.permission_changed = BulkSuspendRowFailure("permission_changed") +BulkSuspendRowFailure.suspend_failed = BulkSuspendRowFailure("suspend_failed") + +BulkSuspendRowOutcome._suspended_validator = bv.Void() +BulkSuspendRowOutcome._failed_validator = BulkSuspendRowFailure_validator +BulkSuspendRowOutcome._unknown_validator = bv.Void() +BulkSuspendRowOutcome._other_validator = bv.Void() +BulkSuspendRowOutcome._tagmap = { + "suspended": BulkSuspendRowOutcome._suspended_validator, + "failed": BulkSuspendRowOutcome._failed_validator, + "unknown": BulkSuspendRowOutcome._unknown_validator, + "other": BulkSuspendRowOutcome._other_validator, +} + +BulkSuspendRowOutcome.suspended = BulkSuspendRowOutcome("suspended") +BulkSuspendRowOutcome.unknown = BulkSuspendRowOutcome("unknown") +BulkSuspendRowOutcome.other = BulkSuspendRowOutcome("other") + +BulkSuspendTaskFailure._unusable_result_validator = bv.Void() +BulkSuspendTaskFailure._other_validator = bv.Void() +BulkSuspendTaskFailure._tagmap = { + "unusable_result": BulkSuspendTaskFailure._unusable_result_validator, + "other": BulkSuspendTaskFailure._other_validator, +} + +BulkSuspendTaskFailure.unusable_result = BulkSuspendTaskFailure("unusable_result") +BulkSuspendTaskFailure.other = BulkSuspendTaskFailure("other") + CustomQuotaError._too_many_users_validator = bv.Void() CustomQuotaError._other_validator = bv.Void() CustomQuotaError._tagmap = { @@ -15706,10 +16435,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("client_type", DesktopClientSession.client_type.validator), ("client_version", DesktopClientSession.client_version.validator), ("platform", DesktopClientSession.platform.validator), - ( - "is_delete_on_unlink_supported", - DesktopClientSession.is_delete_on_unlink_supported.validator, - ), + ("is_delete_on_unlink_supported", DesktopClientSession.is_delete_on_unlink_supported.validator), ] DesktopPlatform._windows_validator = bv.Void() @@ -15948,23 +16674,11 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("active_users_28_day", GetActivityReport.active_users_28_day.validator), ("active_users_7_day", GetActivityReport.active_users_7_day.validator), ("active_users_1_day", GetActivityReport.active_users_1_day.validator), - ( - "active_shared_folders_28_day", - GetActivityReport.active_shared_folders_28_day.validator, - ), - ( - "active_shared_folders_7_day", - GetActivityReport.active_shared_folders_7_day.validator, - ), - ( - "active_shared_folders_1_day", - GetActivityReport.active_shared_folders_1_day.validator, - ), + ("active_shared_folders_28_day", GetActivityReport.active_shared_folders_28_day.validator), + ("active_shared_folders_7_day", GetActivityReport.active_shared_folders_7_day.validator), + ("active_shared_folders_1_day", GetActivityReport.active_shared_folders_1_day.validator), ("shared_links_created", GetActivityReport.shared_links_created.validator), - ( - "shared_links_viewed_by_team", - GetActivityReport.shared_links_viewed_by_team.validator, - ), + ("shared_links_viewed_by_team", GetActivityReport.shared_links_viewed_by_team.validator), ( "shared_links_viewed_by_outside_user", GetActivityReport.shared_links_viewed_by_outside_user.validator, @@ -15973,10 +16687,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "shared_links_viewed_by_not_logged_in", GetActivityReport.shared_links_viewed_by_not_logged_in.validator, ), - ( - "shared_links_viewed_total", - GetActivityReport.shared_links_viewed_total.validator, - ), + ("shared_links_viewed_total", GetActivityReport.shared_links_viewed_total.validator), ] GetDevicesReport.active_1_day.validator = DevicesActive_validator @@ -16520,17 +17231,11 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) LegalHoldHeldRevisionMetadata._all_fields_ = [ ("new_filename", LegalHoldHeldRevisionMetadata.new_filename.validator), - ( - "original_revision_id", - LegalHoldHeldRevisionMetadata.original_revision_id.validator, - ), + ("original_revision_id", LegalHoldHeldRevisionMetadata.original_revision_id.validator), ("original_file_path", LegalHoldHeldRevisionMetadata.original_file_path.validator), ("server_modified", LegalHoldHeldRevisionMetadata.server_modified.validator), ("author_member_id", LegalHoldHeldRevisionMetadata.author_member_id.validator), - ( - "author_member_status", - LegalHoldHeldRevisionMetadata.author_member_status.validator, - ), + ("author_member_status", LegalHoldHeldRevisionMetadata.author_member_status.validator), ("author_email", LegalHoldHeldRevisionMetadata.author_email.validator), ("file_type", LegalHoldHeldRevisionMetadata.file_type.validator), ("size", LegalHoldHeldRevisionMetadata.size.validator), @@ -16925,14 +17630,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) ListMemberDevicesResult._all_fields_ = [ ("active_web_sessions", ListMemberDevicesResult.active_web_sessions.validator), - ( - "desktop_client_sessions", - ListMemberDevicesResult.desktop_client_sessions.validator, - ), - ( - "mobile_client_sessions", - ListMemberDevicesResult.mobile_client_sessions.validator, - ), + ("desktop_client_sessions", ListMemberDevicesResult.desktop_client_sessions.validator), + ("mobile_client_sessions", ListMemberDevicesResult.mobile_client_sessions.validator), ] ListMembersAppsArg.cursor.validator = bv.Nullable(bv.String()) @@ -16980,10 +17679,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ListMembersDevicesArg._all_fields_ = [ ("cursor", ListMembersDevicesArg.cursor.validator), ("include_web_sessions", ListMembersDevicesArg.include_web_sessions.validator), - ( - "include_desktop_clients", - ListMembersDevicesArg.include_desktop_clients.validator, - ), + ("include_desktop_clients", ListMembersDevicesArg.include_desktop_clients.validator), ("include_mobile_clients", ListMembersDevicesArg.include_mobile_clients.validator), ] @@ -17264,13 +17960,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("profile_photo_url", MemberProfile.profile_photo_url.validator), ] -UserSelectorError._user_not_found_validator = bv.Void() -UserSelectorError._tagmap = { - "user_not_found": UserSelectorError._user_not_found_validator, -} - -UserSelectorError.user_not_found = UserSelectorError("user_not_found") - MemberSelectorError._user_not_in_team_validator = bv.Void() MemberSelectorError._tagmap = { "user_not_in_team": MemberSelectorError._user_not_in_team_validator, @@ -17358,17 +18047,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("wipe_data", MembersDeactivateArg.wipe_data.validator) ] -MembersDeactivateError._user_not_in_team_validator = bv.Void() -MembersDeactivateError._other_validator = bv.Void() -MembersDeactivateError._tagmap = { - "user_not_in_team": MembersDeactivateError._user_not_in_team_validator, - "other": MembersDeactivateError._other_validator, -} -MembersDeactivateError._tagmap.update(UserSelectorError._tagmap) - -MembersDeactivateError.user_not_in_team = MembersDeactivateError("user_not_in_team") -MembersDeactivateError.other = MembersDeactivateError("other") - MembersPermanentlyDeleteFilesError._transfer_in_progress_validator = bv.Void() MembersPermanentlyDeleteFilesError._already_transferred_validator = bv.Void() MembersPermanentlyDeleteFilesError._already_transferred_or_deleted_validator = bv.Void() @@ -17844,10 +18522,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("new_given_name", MembersSetProfileArg.new_given_name.validator), ("new_surname", MembersSetProfileArg.new_surname.validator), ("new_persistent_id", MembersSetProfileArg.new_persistent_id.validator), - ( - "new_is_directory_restricted", - MembersSetProfileArg.new_is_directory_restricted.validator, - ), + ("new_is_directory_restricted", MembersSetProfileArg.new_is_directory_restricted.validator), ] MembersSetProfileError._external_id_and_new_external_id_unsafe_validator = bv.Void() @@ -17921,20 +18596,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) MembersSetProfilePhotoError.other = MembersSetProfilePhotoError("other") -MembersSuspendError._suspend_inactive_user_validator = bv.Void() -MembersSuspendError._suspend_last_admin_validator = bv.Void() -MembersSuspendError._team_license_limit_validator = bv.Void() -MembersSuspendError._tagmap = { - "suspend_inactive_user": MembersSuspendError._suspend_inactive_user_validator, - "suspend_last_admin": MembersSuspendError._suspend_last_admin_validator, - "team_license_limit": MembersSuspendError._team_license_limit_validator, -} -MembersSuspendError._tagmap.update(MembersDeactivateError._tagmap) - -MembersSuspendError.suspend_inactive_user = MembersSuspendError("suspend_inactive_user") -MembersSuspendError.suspend_last_admin = MembersSuspendError("suspend_last_admin") -MembersSuspendError.team_license_limit = MembersSuspendError("team_license_limit") - MembersTransferFormerMembersFilesError._user_data_is_being_transferred_validator = bv.Void() MembersTransferFormerMembersFilesError._user_not_removed_validator = bv.Void() MembersTransferFormerMembersFilesError._user_data_cannot_be_transferred_validator = bv.Void() @@ -18151,10 +18812,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) RevokeDeviceSessionBatchResult._all_field_names_ = set(["revoke_devices_status"]) RevokeDeviceSessionBatchResult._all_fields_ = [ - ( - "revoke_devices_status", - RevokeDeviceSessionBatchResult.revoke_devices_status.validator, - ) + ("revoke_devices_status", RevokeDeviceSessionBatchResult.revoke_devices_status.validator) ] RevokeDeviceSessionError._device_session_not_found_validator = bv.Void() @@ -18219,10 +18877,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) RevokeLinkedAppBatchResult._all_field_names_ = set(["revoke_linked_app_status"]) RevokeLinkedAppBatchResult._all_fields_ = [ - ( - "revoke_linked_app_status", - RevokeLinkedAppBatchResult.revoke_linked_app_status.validator, - ) + ("revoke_linked_app_status", RevokeLinkedAppBatchResult.revoke_linked_app_status.validator) ] RevokeLinkedAppError._app_not_found_validator = bv.Void() @@ -18419,9 +19074,16 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): TeamFolderAccessError.no_access = TeamFolderAccessError("no_access") TeamFolderAccessError.other = TeamFolderAccessError("other") -TeamFolderActivateError._tagmap = {} +TeamFolderActivateError._folder_count_limit_exceeded_validator = bv.Void() +TeamFolderActivateError._tagmap = { + "folder_count_limit_exceeded": TeamFolderActivateError._folder_count_limit_exceeded_validator, +} TeamFolderActivateError._tagmap.update(BaseTeamFolderError._tagmap) +TeamFolderActivateError.folder_count_limit_exceeded = TeamFolderActivateError( + "folder_count_limit_exceeded" +) + TeamFolderIdArg.team_folder_id.validator = common.SharedFolderId_validator TeamFolderIdArg._all_field_names_ = set(["team_folder_id"]) TeamFolderIdArg._all_fields_ = [("team_folder_id", TeamFolderIdArg.team_folder_id.validator)] @@ -18609,9 +19271,16 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): TeamFolderRenameError.folder_name_already_used = TeamFolderRenameError("folder_name_already_used") TeamFolderRenameError.folder_name_reserved = TeamFolderRenameError("folder_name_reserved") -TeamFolderRestoreError._tagmap = {} +TeamFolderRestoreError._folder_count_limit_exceeded_validator = bv.Void() +TeamFolderRestoreError._tagmap = { + "folder_count_limit_exceeded": TeamFolderRestoreError._folder_count_limit_exceeded_validator, +} TeamFolderRestoreError._tagmap.update(BaseTeamFolderError._tagmap) +TeamFolderRestoreError.folder_count_limit_exceeded = TeamFolderRestoreError( + "folder_count_limit_exceeded" +) + TeamFolderStatus._active_validator = bv.Void() TeamFolderStatus._archived_validator = bv.Void() TeamFolderStatus._archive_in_progress_validator = bv.Void() @@ -18655,10 +19324,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) TeamFolderUpdateSyncSettingsArg._all_fields_ = TeamFolderIdArg._all_fields_ + [ ("sync_setting", TeamFolderUpdateSyncSettingsArg.sync_setting.validator), - ( - "content_sync_settings", - TeamFolderUpdateSyncSettingsArg.content_sync_settings.validator, - ), + ("content_sync_settings", TeamFolderUpdateSyncSettingsArg.content_sync_settings.validator), ] TeamFolderUpdateSyncSettingsError._sync_settings_error_validator = files.SyncSettingsError_validator @@ -19425,6 +20091,24 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): async_.PollError_validator, {"auth": "team", "host": "api", "style": "rpc"}, ) +members_bulk_suspend = bb.Route( + "members/bulk_suspend", + 1, + False, + BulkSuspendArg_validator, + async_.LaunchResultBase_validator, + BulkSuspendError_validator, + {"auth": "team", "host": "api", "style": "rpc"}, +) +members_bulk_suspend_job_status_check = bb.Route( + "members/bulk_suspend/job_status/check", + 1, + False, + async_.PollArg_validator, + BulkSuspendJobStatus_validator, + async_.PollError_validator, + {"auth": "team", "host": "api", "style": "rpc"}, +) members_delete_former_member_files = bb.Route( "members/delete_former_member_files", 1, @@ -19928,6 +20612,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "members/add:2": members_add_v2, "members/add/job_status/get": members_add_job_status_get, "members/add/job_status/get:2": members_add_job_status_get_v2, + "members/bulk_suspend": members_bulk_suspend, + "members/bulk_suspend/job_status/check": members_bulk_suspend_job_status_check, "members/delete_former_member_files": members_delete_former_member_files, "members/delete_profile_photo": members_delete_profile_photo, "members/delete_profile_photo:2": members_delete_profile_photo_v2, diff --git a/dropbox/team_log.py b/dropbox/team_log.py index 3c3ccdfd..4d252723 100644 --- a/dropbox/team_log.py +++ b/dropbox/team_log.py @@ -2003,11 +2003,7 @@ class AdminAlertingTriggeredAlertDetails(bb.Struct): _has_required_fields = True def __init__( - self, - alert_name=None, - alert_severity=None, - alert_category=None, - alert_instance_id=None, + self, alert_name=None, alert_severity=None, alert_category=None, alert_instance_id=None ): self._alert_name_value = bb.NOT_SET self._alert_severity_value = bb.NOT_SET @@ -3995,11 +3991,7 @@ class BinderRenamePageDetails(bb.Struct): _has_required_fields = True def __init__( - self, - event_uuid=None, - doc_title=None, - binder_item_name=None, - previous_binder_item_name=None, + self, event_uuid=None, doc_title=None, binder_item_name=None, previous_binder_item_name=None ): self._event_uuid_value = bb.NOT_SET self._doc_title_value = bb.NOT_SET @@ -4083,11 +4075,7 @@ class BinderRenameSectionDetails(bb.Struct): _has_required_fields = True def __init__( - self, - event_uuid=None, - doc_title=None, - binder_item_name=None, - previous_binder_item_name=None, + self, event_uuid=None, doc_title=None, binder_item_name=None, previous_binder_item_name=None ): self._event_uuid_value = bb.NOT_SET self._doc_title_value = bb.NOT_SET @@ -6711,11 +6699,7 @@ class DashClonedStackDetails(bb.Struct): _has_required_fields = True def __init__( - self, - stack_name=None, - actor_email=None, - new_cloned_stack_name=None, - stack_type=None, + self, stack_name=None, actor_email=None, new_cloned_stack_name=None, stack_type=None ): self._stack_name_value = bb.NOT_SET self._actor_email_value = bb.NOT_SET @@ -11411,12 +11395,7 @@ class EmailIngestReceiveFileDetails(bb.Struct): _has_required_fields = True def __init__( - self, - inbox_name=None, - attachment_names=None, - subject=None, - from_name=None, - from_email=None, + self, inbox_name=None, attachment_names=None, subject=None, from_name=None, from_email=None ): self._inbox_name_value = bb.NOT_SET self._attachment_names_value = bb.NOT_SET @@ -15338,6 +15317,17 @@ def member_delete_profile_photo_details(cls, val): """ return cls("member_delete_profile_photo_details", val) + @classmethod + def member_folder_contents_accessed_details(cls, val): + """ + Create an instance of this class set to the + ``member_folder_contents_accessed_details`` tag with value ``val``. + + :param MemberFolderContentsAccessedDetails val: + :rtype: EventDetails + """ + return cls("member_folder_contents_accessed_details", val) + @classmethod def member_permanently_delete_account_contents_details(cls, val): """ @@ -16079,6 +16069,83 @@ def password_reset_all_details(cls, val): """ return cls("password_reset_all_details", val) + @classmethod + def protect_action_add_collaborator_details(cls, val): + """ + Create an instance of this class set to the + ``protect_action_add_collaborator_details`` tag with value ``val``. + + :param ProtectActionAddCollaboratorDetails val: + :rtype: EventDetails + """ + return cls("protect_action_add_collaborator_details", val) + + @classmethod + def protect_action_add_link_details(cls, val): + """ + Create an instance of this class set to the + ``protect_action_add_link_details`` tag with value ``val``. + + :param ProtectActionAddLinkDetails val: + :rtype: EventDetails + """ + return cls("protect_action_add_link_details", val) + + @classmethod + def protect_action_delete_details(cls, val): + """ + Create an instance of this class set to the + ``protect_action_delete_details`` tag with value ``val``. + + :param ProtectActionDeleteDetails val: + :rtype: EventDetails + """ + return cls("protect_action_delete_details", val) + + @classmethod + def protect_action_export_details(cls, val): + """ + Create an instance of this class set to the + ``protect_action_export_details`` tag with value ``val``. + + :param ProtectActionExportDetails val: + :rtype: EventDetails + """ + return cls("protect_action_export_details", val) + + @classmethod + def protect_action_remove_collaborator_details(cls, val): + """ + Create an instance of this class set to the + ``protect_action_remove_collaborator_details`` tag with value ``val``. + + :param ProtectActionRemoveCollaboratorDetails val: + :rtype: EventDetails + """ + return cls("protect_action_remove_collaborator_details", val) + + @classmethod + def protect_action_remove_link_details(cls, val): + """ + Create an instance of this class set to the + ``protect_action_remove_link_details`` tag with value ``val``. + + :param ProtectActionRemoveLinkDetails val: + :rtype: EventDetails + """ + return cls("protect_action_remove_link_details", val) + + @classmethod + def protect_action_stop_sharing_details(cls, val): + """ + Create an instance of this class set to the + ``protect_action_stop_sharing_details`` tag with value ``val``. + + :param ProtectActionStopSharingDetails val: + :rtype: EventDetails + """ + return cls("protect_action_stop_sharing_details", val) + @classmethod def protect_internal_domains_changed_details(cls, val): """ @@ -21589,6 +21656,14 @@ def is_member_delete_profile_photo_details(self): """ return self._tag == "member_delete_profile_photo_details" + def is_member_folder_contents_accessed_details(self): + """ + Check if the union tag is ``member_folder_contents_accessed_details``. + + :rtype: bool + """ + return self._tag == "member_folder_contents_accessed_details" + def is_member_permanently_delete_account_contents_details(self): """ Check if the union tag is ``member_permanently_delete_account_contents_details``. @@ -22125,6 +22200,62 @@ def is_password_reset_all_details(self): """ return self._tag == "password_reset_all_details" + def is_protect_action_add_collaborator_details(self): + """ + Check if the union tag is ``protect_action_add_collaborator_details``. + + :rtype: bool + """ + return self._tag == "protect_action_add_collaborator_details" + + def is_protect_action_add_link_details(self): + """ + Check if the union tag is ``protect_action_add_link_details``. + + :rtype: bool + """ + return self._tag == "protect_action_add_link_details" + + def is_protect_action_delete_details(self): + """ + Check if the union tag is ``protect_action_delete_details``. + + :rtype: bool + """ + return self._tag == "protect_action_delete_details" + + def is_protect_action_export_details(self): + """ + Check if the union tag is ``protect_action_export_details``. + + :rtype: bool + """ + return self._tag == "protect_action_export_details" + + def is_protect_action_remove_collaborator_details(self): + """ + Check if the union tag is ``protect_action_remove_collaborator_details``. + + :rtype: bool + """ + return self._tag == "protect_action_remove_collaborator_details" + + def is_protect_action_remove_link_details(self): + """ + Check if the union tag is ``protect_action_remove_link_details``. + + :rtype: bool + """ + return self._tag == "protect_action_remove_link_details" + + def is_protect_action_stop_sharing_details(self): + """ + Check if the union tag is ``protect_action_stop_sharing_details``. + + :rtype: bool + """ + return self._tag == "protect_action_stop_sharing_details" + def is_protect_internal_domains_changed_details(self): """ Check if the union tag is ``protect_internal_domains_changed_details``. @@ -26981,6 +27112,16 @@ def get_member_delete_profile_photo_details(self): raise AttributeError("tag 'member_delete_profile_photo_details' not set") return self._value + def get_member_folder_contents_accessed_details(self): + """ + Only call this if :meth:`is_member_folder_contents_accessed_details` is true. + + :rtype: MemberFolderContentsAccessedDetails + """ + if not self.is_member_folder_contents_accessed_details(): + raise AttributeError("tag 'member_folder_contents_accessed_details' not set") + return self._value + def get_member_permanently_delete_account_contents_details(self): """ Only call this if :meth:`is_member_permanently_delete_account_contents_details` is true. @@ -27651,6 +27792,76 @@ def get_password_reset_all_details(self): raise AttributeError("tag 'password_reset_all_details' not set") return self._value + def get_protect_action_add_collaborator_details(self): + """ + Only call this if :meth:`is_protect_action_add_collaborator_details` is true. + + :rtype: ProtectActionAddCollaboratorDetails + """ + if not self.is_protect_action_add_collaborator_details(): + raise AttributeError("tag 'protect_action_add_collaborator_details' not set") + return self._value + + def get_protect_action_add_link_details(self): + """ + Only call this if :meth:`is_protect_action_add_link_details` is true. + + :rtype: ProtectActionAddLinkDetails + """ + if not self.is_protect_action_add_link_details(): + raise AttributeError("tag 'protect_action_add_link_details' not set") + return self._value + + def get_protect_action_delete_details(self): + """ + Only call this if :meth:`is_protect_action_delete_details` is true. + + :rtype: ProtectActionDeleteDetails + """ + if not self.is_protect_action_delete_details(): + raise AttributeError("tag 'protect_action_delete_details' not set") + return self._value + + def get_protect_action_export_details(self): + """ + Only call this if :meth:`is_protect_action_export_details` is true. + + :rtype: ProtectActionExportDetails + """ + if not self.is_protect_action_export_details(): + raise AttributeError("tag 'protect_action_export_details' not set") + return self._value + + def get_protect_action_remove_collaborator_details(self): + """ + Only call this if :meth:`is_protect_action_remove_collaborator_details` is true. + + :rtype: ProtectActionRemoveCollaboratorDetails + """ + if not self.is_protect_action_remove_collaborator_details(): + raise AttributeError("tag 'protect_action_remove_collaborator_details' not set") + return self._value + + def get_protect_action_remove_link_details(self): + """ + Only call this if :meth:`is_protect_action_remove_link_details` is true. + + :rtype: ProtectActionRemoveLinkDetails + """ + if not self.is_protect_action_remove_link_details(): + raise AttributeError("tag 'protect_action_remove_link_details' not set") + return self._value + + def get_protect_action_stop_sharing_details(self): + """ + Only call this if :meth:`is_protect_action_stop_sharing_details` is true. + + :rtype: ProtectActionStopSharingDetails + """ + if not self.is_protect_action_stop_sharing_details(): + raise AttributeError("tag 'protect_action_stop_sharing_details' not set") + return self._value + def get_protect_internal_domains_changed_details(self): """ Only call this if :meth:`is_protect_internal_domains_changed_details` is true. @@ -31603,7 +31814,7 @@ class EventType(bb.Union): (file_operations) Unpinned item from folder overview :vartype EventType.folder_overview_item_unpinned: FolderOverviewItemUnpinnedType :ivar EventType.media_hub_file_downloaded: - (file_operations) Downloaded files in Media Hub + (file_operations) Downloaded files in Replay :vartype EventType.media_hub_file_downloaded: MediaHubFileDownloadedType :ivar EventType.object_label_added: (file_operations) Added a label @@ -31794,6 +32005,9 @@ class EventType(bb.Union): :ivar EventType.member_delete_profile_photo: (members) Deleted team member profile photo :vartype EventType.member_delete_profile_photo: MemberDeleteProfilePhotoType + :ivar EventType.member_folder_contents_accessed: + (members) Admin browsed a team member's folder contents + :vartype EventType.member_folder_contents_accessed: MemberFolderContentsAccessedType :ivar EventType.member_permanently_delete_account_contents: (members) Permanently deleted contents of deleted team member account :vartype EventType.member_permanently_delete_account_contents: MemberPermanentlyDeleteAccountContentsType @@ -32004,6 +32218,27 @@ class EventType(bb.Union): :ivar EventType.password_reset_all: (passwords) Reset all team member passwords :vartype EventType.password_reset_all: PasswordResetAllType + :ivar EventType.protect_action_add_collaborator: + (protect) Added collaborators via Dropbox Protect + :vartype EventType.protect_action_add_collaborator: ProtectActionAddCollaboratorType + :ivar EventType.protect_action_add_link: + (protect) Added a link via Dropbox Protect + :vartype EventType.protect_action_add_link: ProtectActionAddLinkType + :ivar EventType.protect_action_delete: + (protect) Deleted content via Dropbox Protect + :vartype EventType.protect_action_delete: ProtectActionDeleteType + :ivar EventType.protect_action_export: + (protect) Exported content via Dropbox Protect + :vartype EventType.protect_action_export: ProtectActionExportType + :ivar EventType.protect_action_remove_collaborator: + (protect) Removed collaborators via Dropbox Protect + :vartype EventType.protect_action_remove_collaborator: ProtectActionRemoveCollaboratorType + :ivar EventType.protect_action_remove_link: + (protect) Removed a link via Dropbox Protect + :vartype EventType.protect_action_remove_link: ProtectActionRemoveLinkType + :ivar EventType.protect_action_stop_sharing: + (protect) Stopped sharing content via Dropbox Protect + :vartype EventType.protect_action_stop_sharing: ProtectActionStopSharingType :ivar EventType.protect_internal_domains_changed: (protect) Modified Protect internal domains list :vartype EventType.protect_internal_domains_changed: ProtectInternalDomainsChangedType @@ -32116,25 +32351,25 @@ class EventType(bb.Union): (sharing) Viewed transfer :vartype EventType.file_transfers_transfer_view: FileTransfersTransferViewType :ivar EventType.media_hub_project_team_add: - (sharing) Added member to Media Hub project + (sharing) Added member to Replay project :vartype EventType.media_hub_project_team_add: MediaHubProjectTeamAddType :ivar EventType.media_hub_project_team_delete: - (sharing) Removed member from Media Hub project + (sharing) Removed member from Replay project :vartype EventType.media_hub_project_team_delete: MediaHubProjectTeamDeleteType :ivar EventType.media_hub_project_team_role_changed: - (sharing) Changed member role in Media Hub project + (sharing) Changed member role in Replay project :vartype EventType.media_hub_project_team_role_changed: MediaHubProjectTeamRoleChangedType :ivar EventType.media_hub_shared_link_audience_changed: - (sharing) Changed Media Hub shared link audience + (sharing) Changed Replay shared link audience :vartype EventType.media_hub_shared_link_audience_changed: MediaHubSharedLinkAudienceChangedType :ivar EventType.media_hub_shared_link_created: - (sharing) Created Media Hub shared link + (sharing) Created Replay shared link :vartype EventType.media_hub_shared_link_created: MediaHubSharedLinkCreatedType :ivar EventType.media_hub_shared_link_download_setting_changed: - (sharing) Changed Media Hub shared link download setting + (sharing) Changed Replay shared link download setting :vartype EventType.media_hub_shared_link_download_setting_changed: MediaHubSharedLinkDownloadSettingChangedType :ivar EventType.media_hub_shared_link_revoked: - (sharing) Revoked Media Hub shared link + (sharing) Revoked Replay shared link :vartype EventType.media_hub_shared_link_revoked: MediaHubSharedLinkRevokedType :ivar EventType.note_acl_invite_only: (sharing) Changed Paper doc to invite-only (deprecated, no longer @@ -32732,14 +32967,13 @@ class EventType(bb.Union): (team_policies) Changed invite accept email policy for team :vartype EventType.invite_acceptance_email_policy_changed: InviteAcceptanceEmailPolicyChangedType :ivar EventType.media_hub_adding_people_policy_changed: - (team_policies) Changed the policy for adding people to Media Hub - content + (team_policies) Changed the policy for adding people to Replay content :vartype EventType.media_hub_adding_people_policy_changed: MediaHubAddingPeoplePolicyChangedType :ivar EventType.media_hub_download_policy_changed: - (team_policies) Changed the policy for downloading Media Hub content + (team_policies) Changed the policy for downloading Replay content :vartype EventType.media_hub_download_policy_changed: MediaHubDownloadPolicyChangedType :ivar EventType.media_hub_link_sharing_policy_changed: - (team_policies) Changed the policy for sharing Media Hub content + (team_policies) Changed the policy for sharing Replay content :vartype EventType.media_hub_link_sharing_policy_changed: MediaHubLinkSharingPolicyChangedType :ivar EventType.member_requests_change_policy: (team_policies) Changed whether users can find team when not invited @@ -35410,6 +35644,17 @@ def member_delete_profile_photo(cls, val): """ return cls("member_delete_profile_photo", val) + @classmethod + def member_folder_contents_accessed(cls, val): + """ + Create an instance of this class set to the + ``member_folder_contents_accessed`` tag with value ``val``. + + :param MemberFolderContentsAccessedType val: + :rtype: EventType + """ + return cls("member_folder_contents_accessed", val) + @classmethod def member_permanently_delete_account_contents(cls, val): """ @@ -36147,6 +36392,83 @@ def password_reset_all(cls, val): """ return cls("password_reset_all", val) + @classmethod + def protect_action_add_collaborator(cls, val): + """ + Create an instance of this class set to the + ``protect_action_add_collaborator`` tag with value ``val``. + + :param ProtectActionAddCollaboratorType val: + :rtype: EventType + """ + return cls("protect_action_add_collaborator", val) + + @classmethod + def protect_action_add_link(cls, val): + """ + Create an instance of this class set to the ``protect_action_add_link`` + tag with value ``val``. + + :param ProtectActionAddLinkType val: + :rtype: EventType + """ + return cls("protect_action_add_link", val) + + @classmethod + def protect_action_delete(cls, val): + """ + Create an instance of this class set to the ``protect_action_delete`` + tag with value ``val``. + + :param ProtectActionDeleteType val: + :rtype: EventType + """ + return cls("protect_action_delete", val) + + @classmethod + def protect_action_export(cls, val): + """ + Create an instance of this class set to the ``protect_action_export`` + tag with value ``val``. + + :param ProtectActionExportType val: + :rtype: EventType + """ + return cls("protect_action_export", val) + + @classmethod + def protect_action_remove_collaborator(cls, val): + """ + Create an instance of this class set to the + ``protect_action_remove_collaborator`` tag with value ``val``. + + :param ProtectActionRemoveCollaboratorType val: + :rtype: EventType + """ + return cls("protect_action_remove_collaborator", val) + + @classmethod + def protect_action_remove_link(cls, val): + """ + Create an instance of this class set to the + ``protect_action_remove_link`` tag with value ``val``. + + :param ProtectActionRemoveLinkType val: + :rtype: EventType + """ + return cls("protect_action_remove_link", val) + + @classmethod + def protect_action_stop_sharing(cls, val): + """ + Create an instance of this class set to the + ``protect_action_stop_sharing`` tag with value ``val``. + + :param ProtectActionStopSharingType val: + :rtype: EventType + """ + return cls("protect_action_stop_sharing", val) + @classmethod def protect_internal_domains_changed(cls, val): """ @@ -41603,6 +41925,14 @@ def is_member_delete_profile_photo(self): """ return self._tag == "member_delete_profile_photo" + def is_member_folder_contents_accessed(self): + """ + Check if the union tag is ``member_folder_contents_accessed``. + + :rtype: bool + """ + return self._tag == "member_folder_contents_accessed" + def is_member_permanently_delete_account_contents(self): """ Check if the union tag is ``member_permanently_delete_account_contents``. @@ -42139,6 +42469,62 @@ def is_password_reset_all(self): """ return self._tag == "password_reset_all" + def is_protect_action_add_collaborator(self): + """ + Check if the union tag is ``protect_action_add_collaborator``. + + :rtype: bool + """ + return self._tag == "protect_action_add_collaborator" + + def is_protect_action_add_link(self): + """ + Check if the union tag is ``protect_action_add_link``. + + :rtype: bool + """ + return self._tag == "protect_action_add_link" + + def is_protect_action_delete(self): + """ + Check if the union tag is ``protect_action_delete``. + + :rtype: bool + """ + return self._tag == "protect_action_delete" + + def is_protect_action_export(self): + """ + Check if the union tag is ``protect_action_export``. + + :rtype: bool + """ + return self._tag == "protect_action_export" + + def is_protect_action_remove_collaborator(self): + """ + Check if the union tag is ``protect_action_remove_collaborator``. + + :rtype: bool + """ + return self._tag == "protect_action_remove_collaborator" + + def is_protect_action_remove_link(self): + """ + Check if the union tag is ``protect_action_remove_link``. + + :rtype: bool + """ + return self._tag == "protect_action_remove_link" + + def is_protect_action_stop_sharing(self): + """ + Check if the union tag is ``protect_action_stop_sharing``. + + :rtype: bool + """ + return self._tag == "protect_action_stop_sharing" + def is_protect_internal_domains_changed(self): """ Check if the union tag is ``protect_internal_domains_changed``. @@ -46642,7 +47028,7 @@ def get_folder_overview_item_unpinned(self): def get_media_hub_file_downloaded(self): """ - (file_operations) Downloaded files in Media Hub + (file_operations) Downloaded files in Replay Only call this if :meth:`is_media_hub_file_downloaded` is true. @@ -47399,6 +47785,18 @@ def get_member_delete_profile_photo(self): raise AttributeError("tag 'member_delete_profile_photo' not set") return self._value + def get_member_folder_contents_accessed(self): + """ + (members) Admin browsed a team member's folder contents + + Only call this if :meth:`is_member_folder_contents_accessed` is true. + + :rtype: MemberFolderContentsAccessedType + """ + if not self.is_member_folder_contents_accessed(): + raise AttributeError("tag 'member_folder_contents_accessed' not set") + return self._value + def get_member_permanently_delete_account_contents(self): """ (members) Permanently deleted contents of deleted team member account @@ -48212,6 +48610,90 @@ def get_password_reset_all(self): raise AttributeError("tag 'password_reset_all' not set") return self._value + def get_protect_action_add_collaborator(self): + """ + (protect) Added collaborators via Dropbox Protect + + Only call this if :meth:`is_protect_action_add_collaborator` is true. + + :rtype: ProtectActionAddCollaboratorType + """ + if not self.is_protect_action_add_collaborator(): + raise AttributeError("tag 'protect_action_add_collaborator' not set") + return self._value + + def get_protect_action_add_link(self): + """ + (protect) Added a link via Dropbox Protect + + Only call this if :meth:`is_protect_action_add_link` is true. + + :rtype: ProtectActionAddLinkType + """ + if not self.is_protect_action_add_link(): + raise AttributeError("tag 'protect_action_add_link' not set") + return self._value + + def get_protect_action_delete(self): + """ + (protect) Deleted content via Dropbox Protect + + Only call this if :meth:`is_protect_action_delete` is true. + + :rtype: ProtectActionDeleteType + """ + if not self.is_protect_action_delete(): + raise AttributeError("tag 'protect_action_delete' not set") + return self._value + + def get_protect_action_export(self): + """ + (protect) Exported content via Dropbox Protect + + Only call this if :meth:`is_protect_action_export` is true. + + :rtype: ProtectActionExportType + """ + if not self.is_protect_action_export(): + raise AttributeError("tag 'protect_action_export' not set") + return self._value + + def get_protect_action_remove_collaborator(self): + """ + (protect) Removed collaborators via Dropbox Protect + + Only call this if :meth:`is_protect_action_remove_collaborator` is true. + + :rtype: ProtectActionRemoveCollaboratorType + """ + if not self.is_protect_action_remove_collaborator(): + raise AttributeError("tag 'protect_action_remove_collaborator' not set") + return self._value + + def get_protect_action_remove_link(self): + """ + (protect) Removed a link via Dropbox Protect + + Only call this if :meth:`is_protect_action_remove_link` is true. + + :rtype: ProtectActionRemoveLinkType + """ + if not self.is_protect_action_remove_link(): + raise AttributeError("tag 'protect_action_remove_link' not set") + return self._value + + def get_protect_action_stop_sharing(self): + """ + (protect) Stopped sharing content via Dropbox Protect + + Only call this if :meth:`is_protect_action_stop_sharing` is true. + + :rtype: ProtectActionStopSharingType + """ + if not self.is_protect_action_stop_sharing(): + raise AttributeError("tag 'protect_action_stop_sharing' not set") + return self._value + def get_protect_internal_domains_changed(self): """ (protect) Modified Protect internal domains list @@ -48658,7 +49140,7 @@ def get_file_transfers_transfer_view(self): def get_media_hub_project_team_add(self): """ - (sharing) Added member to Media Hub project + (sharing) Added member to Replay project Only call this if :meth:`is_media_hub_project_team_add` is true. @@ -48670,7 +49152,7 @@ def get_media_hub_project_team_add(self): def get_media_hub_project_team_delete(self): """ - (sharing) Removed member from Media Hub project + (sharing) Removed member from Replay project Only call this if :meth:`is_media_hub_project_team_delete` is true. @@ -48682,7 +49164,7 @@ def get_media_hub_project_team_delete(self): def get_media_hub_project_team_role_changed(self): """ - (sharing) Changed member role in Media Hub project + (sharing) Changed member role in Replay project Only call this if :meth:`is_media_hub_project_team_role_changed` is true. @@ -48694,7 +49176,7 @@ def get_media_hub_project_team_role_changed(self): def get_media_hub_shared_link_audience_changed(self): """ - (sharing) Changed Media Hub shared link audience + (sharing) Changed Replay shared link audience Only call this if :meth:`is_media_hub_shared_link_audience_changed` is true. @@ -48706,7 +49188,7 @@ def get_media_hub_shared_link_audience_changed(self): def get_media_hub_shared_link_created(self): """ - (sharing) Created Media Hub shared link + (sharing) Created Replay shared link Only call this if :meth:`is_media_hub_shared_link_created` is true. @@ -48718,7 +49200,7 @@ def get_media_hub_shared_link_created(self): def get_media_hub_shared_link_download_setting_changed(self): """ - (sharing) Changed Media Hub shared link download setting + (sharing) Changed Replay shared link download setting Only call this if :meth:`is_media_hub_shared_link_download_setting_changed` is true. @@ -48730,7 +49212,7 @@ def get_media_hub_shared_link_download_setting_changed(self): def get_media_hub_shared_link_revoked(self): """ - (sharing) Revoked Media Hub shared link + (sharing) Revoked Replay shared link Only call this if :meth:`is_media_hub_shared_link_revoked` is true. @@ -51013,8 +51495,7 @@ def get_invite_acceptance_email_policy_changed(self): def get_media_hub_adding_people_policy_changed(self): """ - (team_policies) Changed the policy for adding people to Media Hub - content + (team_policies) Changed the policy for adding people to Replay content Only call this if :meth:`is_media_hub_adding_people_policy_changed` is true. @@ -51026,7 +51507,7 @@ def get_media_hub_adding_people_policy_changed(self): def get_media_hub_download_policy_changed(self): """ - (team_policies) Changed the policy for downloading Media Hub content + (team_policies) Changed the policy for downloading Replay content Only call this if :meth:`is_media_hub_download_policy_changed` is true. @@ -51038,7 +51519,7 @@ def get_media_hub_download_policy_changed(self): def get_media_hub_link_sharing_policy_changed(self): """ - (team_policies) Changed the policy for sharing Media Hub content + (team_policies) Changed the policy for sharing Replay content Only call this if :meth:`is_media_hub_link_sharing_policy_changed` is true. @@ -52709,7 +53190,7 @@ class EventTypeArg(bb.Union): :ivar EventTypeArg.folder_overview_item_unpinned: (file_operations) Unpinned item from folder overview :ivar EventTypeArg.media_hub_file_downloaded: - (file_operations) Downloaded files in Media Hub + (file_operations) Downloaded files in Replay :ivar EventTypeArg.object_label_added: (file_operations) Added a label :ivar EventTypeArg.object_label_removed: @@ -52837,6 +53318,8 @@ class EventTypeArg(bb.Union): (members) Cleared manually added contacts :ivar EventTypeArg.member_delete_profile_photo: (members) Deleted team member profile photo + :ivar EventTypeArg.member_folder_contents_accessed: + (members) Admin browsed a team member's folder contents :ivar EventTypeArg.member_permanently_delete_account_contents: (members) Permanently deleted contents of deleted team member account :ivar EventTypeArg.member_remove_external_id: @@ -52980,6 +53463,20 @@ class EventTypeArg(bb.Union): (passwords) Reset password :ivar EventTypeArg.password_reset_all: (passwords) Reset all team member passwords + :ivar EventTypeArg.protect_action_add_collaborator: + (protect) Added collaborators via Dropbox Protect + :ivar EventTypeArg.protect_action_add_link: + (protect) Added a link via Dropbox Protect + :ivar EventTypeArg.protect_action_delete: + (protect) Deleted content via Dropbox Protect + :ivar EventTypeArg.protect_action_export: + (protect) Exported content via Dropbox Protect + :ivar EventTypeArg.protect_action_remove_collaborator: + (protect) Removed collaborators via Dropbox Protect + :ivar EventTypeArg.protect_action_remove_link: + (protect) Removed a link via Dropbox Protect + :ivar EventTypeArg.protect_action_stop_sharing: + (protect) Stopped sharing content via Dropbox Protect :ivar EventTypeArg.protect_internal_domains_changed: (protect) Modified Protect internal domains list :ivar EventTypeArg.classification_create_report: @@ -53055,19 +53552,19 @@ class EventTypeArg(bb.Union): :ivar EventTypeArg.file_transfers_transfer_view: (sharing) Viewed transfer :ivar EventTypeArg.media_hub_project_team_add: - (sharing) Added member to Media Hub project + (sharing) Added member to Replay project :ivar EventTypeArg.media_hub_project_team_delete: - (sharing) Removed member from Media Hub project + (sharing) Removed member from Replay project :ivar EventTypeArg.media_hub_project_team_role_changed: - (sharing) Changed member role in Media Hub project + (sharing) Changed member role in Replay project :ivar EventTypeArg.media_hub_shared_link_audience_changed: - (sharing) Changed Media Hub shared link audience + (sharing) Changed Replay shared link audience :ivar EventTypeArg.media_hub_shared_link_created: - (sharing) Created Media Hub shared link + (sharing) Created Replay shared link :ivar EventTypeArg.media_hub_shared_link_download_setting_changed: - (sharing) Changed Media Hub shared link download setting + (sharing) Changed Replay shared link download setting :ivar EventTypeArg.media_hub_shared_link_revoked: - (sharing) Revoked Media Hub shared link + (sharing) Revoked Replay shared link :ivar EventTypeArg.note_acl_invite_only: (sharing) Changed Paper doc to invite-only (deprecated, no longer logged) @@ -53478,12 +53975,11 @@ class EventTypeArg(bb.Union): :ivar EventTypeArg.invite_acceptance_email_policy_changed: (team_policies) Changed invite accept email policy for team :ivar EventTypeArg.media_hub_adding_people_policy_changed: - (team_policies) Changed the policy for adding people to Media Hub - content + (team_policies) Changed the policy for adding people to Replay content :ivar EventTypeArg.media_hub_download_policy_changed: - (team_policies) Changed the policy for downloading Media Hub content + (team_policies) Changed the policy for downloading Replay content :ivar EventTypeArg.media_hub_link_sharing_policy_changed: - (team_policies) Changed the policy for sharing Media Hub content + (team_policies) Changed the policy for sharing Replay content :ivar EventTypeArg.member_requests_change_policy: (team_policies) Changed whether users can find team when not invited :ivar EventTypeArg.member_send_invite_policy_changed: @@ -54156,6 +54652,8 @@ class EventTypeArg(bb.Union): # Attribute is overwritten below the class definition member_delete_profile_photo = None # Attribute is overwritten below the class definition + member_folder_contents_accessed = None + # Attribute is overwritten below the class definition member_permanently_delete_account_contents = None # Attribute is overwritten below the class definition member_remove_external_id = None @@ -54290,6 +54788,20 @@ class EventTypeArg(bb.Union): # Attribute is overwritten below the class definition password_reset_all = None # Attribute is overwritten below the class definition + protect_action_add_collaborator = None + # Attribute is overwritten below the class definition + protect_action_add_link = None + # Attribute is overwritten below the class definition + protect_action_delete = None + # Attribute is overwritten below the class definition + protect_action_export = None + # Attribute is overwritten below the class definition + protect_action_remove_collaborator = None + # Attribute is overwritten below the class definition + protect_action_remove_link = None + # Attribute is overwritten below the class definition + protect_action_stop_sharing = None + # Attribute is overwritten below the class definition protect_internal_domains_changed = None # Attribute is overwritten below the class definition classification_create_report = None @@ -56648,6 +57160,14 @@ def is_member_delete_profile_photo(self): """ return self._tag == "member_delete_profile_photo" + def is_member_folder_contents_accessed(self): + """ + Check if the union tag is ``member_folder_contents_accessed``. + + :rtype: bool + """ + return self._tag == "member_folder_contents_accessed" + def is_member_permanently_delete_account_contents(self): """ Check if the union tag is ``member_permanently_delete_account_contents``. @@ -57184,6 +57704,62 @@ def is_password_reset_all(self): """ return self._tag == "password_reset_all" + def is_protect_action_add_collaborator(self): + """ + Check if the union tag is ``protect_action_add_collaborator``. + + :rtype: bool + """ + return self._tag == "protect_action_add_collaborator" + + def is_protect_action_add_link(self): + """ + Check if the union tag is ``protect_action_add_link``. + + :rtype: bool + """ + return self._tag == "protect_action_add_link" + + def is_protect_action_delete(self): + """ + Check if the union tag is ``protect_action_delete``. + + :rtype: bool + """ + return self._tag == "protect_action_delete" + + def is_protect_action_export(self): + """ + Check if the union tag is ``protect_action_export``. + + :rtype: bool + """ + return self._tag == "protect_action_export" + + def is_protect_action_remove_collaborator(self): + """ + Check if the union tag is ``protect_action_remove_collaborator``. + + :rtype: bool + """ + return self._tag == "protect_action_remove_collaborator" + + def is_protect_action_remove_link(self): + """ + Check if the union tag is ``protect_action_remove_link``. + + :rtype: bool + """ + return self._tag == "protect_action_remove_link" + + def is_protect_action_stop_sharing(self): + """ + Check if the union tag is ``protect_action_stop_sharing``. + + :rtype: bool + """ + return self._tag == "protect_action_stop_sharing" + def is_protect_internal_domains_changed(self): """ Check if the union tag is ``protect_internal_domains_changed``. @@ -60253,10 +60829,7 @@ class ExternalDriveBackupEligibilityStatusCheckedDetails(bb.Struct): _has_required_fields = True def __init__( - self, - desktop_device_session_info=None, - status=None, - number_of_external_drive_backup=None, + self, desktop_device_session_info=None, status=None, number_of_external_drive_backup=None ): self._desktop_device_session_info_value = bb.NOT_SET self._status_value = bb.NOT_SET @@ -64235,14 +64808,7 @@ class FolderLogInfo(FileOrFolderLogInfo): _has_required_fields = True - def __init__( - self, - path=None, - display_name=None, - file_id=None, - file_size=None, - file_count=None, - ): + def __init__(self, path=None, display_name=None, file_id=None, file_size=None, file_count=None): super(FolderLogInfo, self).__init__(path, display_name, file_id, file_size) self._file_count_value = bb.NOT_SET if file_count is not None: @@ -64968,12 +65534,7 @@ class GovernancePolicyAddFolderFailedDetails(bb.Struct): _has_required_fields = True def __init__( - self, - governance_policy_id=None, - name=None, - folder=None, - policy_type=None, - reason=None, + self, governance_policy_id=None, name=None, folder=None, policy_type=None, reason=None ): self._governance_policy_id_value = bb.NOT_SET self._name_value = bb.NOT_SET @@ -65145,11 +65706,7 @@ class GovernancePolicyContentDisposedDetails(bb.Struct): _has_required_fields = True def __init__( - self, - governance_policy_id=None, - name=None, - disposition_type=None, - policy_type=None, + self, governance_policy_id=None, name=None, disposition_type=None, policy_type=None ): self._governance_policy_id_value = bb.NOT_SET self._name_value = bb.NOT_SET @@ -65236,12 +65793,7 @@ class GovernancePolicyCreateDetails(bb.Struct): _has_required_fields = True def __init__( - self, - governance_policy_id=None, - name=None, - duration=None, - policy_type=None, - folders=None, + self, governance_policy_id=None, name=None, duration=None, policy_type=None, folders=None ): self._governance_policy_id_value = bb.NOT_SET self._name_value = bb.NOT_SET @@ -65777,12 +66329,7 @@ class GovernancePolicyRemoveFoldersDetails(bb.Struct): _has_required_fields = True def __init__( - self, - governance_policy_id=None, - name=None, - policy_type=None, - folders=None, - reason=None, + self, governance_policy_id=None, name=None, policy_type=None, folders=None, reason=None ): self._governance_policy_id_value = bb.NOT_SET self._name_value = bb.NOT_SET @@ -65948,12 +66495,7 @@ class GovernancePolicyZipPartDownloadedDetails(bb.Struct): _has_required_fields = True def __init__( - self, - governance_policy_id=None, - name=None, - export_name=None, - policy_type=None, - part=None, + self, governance_policy_id=None, name=None, export_name=None, policy_type=None, part=None ): self._governance_policy_id_value = bb.NOT_SET self._name_value = bb.NOT_SET @@ -69538,7 +70080,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubAddingPeoplePolicyChangedDetails(bb.Struct): """ - Changed the policy for adding people to Media Hub content. + Changed the policy for adding people to Replay content. :ivar MediaHubAddingPeoplePolicyChangedDetails.new_value: To. @@ -69654,7 +70196,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubDownloadPolicyChangedDetails(bb.Struct): """ - Changed the policy for downloading Media Hub content. + Changed the policy for downloading Replay content. :ivar MediaHubDownloadPolicyChangedDetails.new_value: To. @@ -69718,7 +70260,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubFileDownloadedDetails(bb.Struct): """ - Downloaded files in Media Hub. + Downloaded files in Replay. """ __slots__ = [] @@ -69823,7 +70365,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubLinkSharingPolicyChangedDetails(bb.Struct): """ - Changed the policy for sharing Media Hub content. + Changed the policy for sharing Replay content. :ivar MediaHubLinkSharingPolicyChangedDetails.new_value: To. @@ -69887,6 +70429,46 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): MediaHubLinkSharingPolicyChangedType_validator = bv.Struct(MediaHubLinkSharingPolicyChangedType) +class MediaHubProjectLogInfo(bb.Struct): + """ + Replay project + + :ivar MediaHubProjectLogInfo.project_name: + Replay project name. + :ivar MediaHubProjectLogInfo.project_id: + Replay project ID. + """ + + __slots__ = [ + "_project_name_value", + "_project_id_value", + ] + + _has_required_fields = True + + def __init__(self, project_name=None, project_id=None): + self._project_name_value = bb.NOT_SET + self._project_id_value = bb.NOT_SET + if project_name is not None: + self.project_name = project_name + if project_id is not None: + self.project_id = project_id + + # Instance attribute type: str (validator is set below) + project_name = bb.Attribute("project_name") + + # Instance attribute type: str (validator is set below) + project_id = bb.Attribute("project_id", nullable=True) + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MediaHubProjectLogInfo, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +MediaHubProjectLogInfo_validator = bv.Struct(MediaHubProjectLogInfo) + + class MediaHubProjectRole(bb.Union): """ Media Hub project role @@ -69949,15 +70531,25 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubProjectTeamAddDetails(bb.Struct): """ - Added member to Media Hub project. + Added member to Replay project. + + :ivar MediaHubProjectTeamAddDetails.project: + Replay project. """ - __slots__ = [] + __slots__ = [ + "_project_value", + ] _has_required_fields = False - def __init__(self): - pass + def __init__(self, project=None): + self._project_value = bb.NOT_SET + if project is not None: + self.project = project + + # Instance attribute type: MediaHubProjectLogInfo (validator is set below) + project = bb.Attribute("project", nullable=True, user_defined=True) def _process_custom_annotations(self, annotation_type, field_path, processor): super(MediaHubProjectTeamAddDetails, self)._process_custom_annotations( @@ -69994,15 +70586,25 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubProjectTeamDeleteDetails(bb.Struct): """ - Removed member from Media Hub project. + Removed member from Replay project. + + :ivar MediaHubProjectTeamDeleteDetails.project: + Replay project. """ - __slots__ = [] + __slots__ = [ + "_project_value", + ] _has_required_fields = False - def __init__(self): - pass + def __init__(self, project=None): + self._project_value = bb.NOT_SET + if project is not None: + self.project = project + + # Instance attribute type: MediaHubProjectLogInfo (validator is set below) + project = bb.Attribute("project", nullable=True, user_defined=True) def _process_custom_annotations(self, annotation_type, field_path, processor): super(MediaHubProjectTeamDeleteDetails, self)._process_custom_annotations( @@ -70039,28 +70641,34 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubProjectTeamRoleChangedDetails(bb.Struct): """ - Changed member role in Media Hub project. + Changed member role in Replay project. :ivar MediaHubProjectTeamRoleChangedDetails.previous_role: Previous Media Hub project role. :ivar MediaHubProjectTeamRoleChangedDetails.new_role: New Media Hub project role. + :ivar MediaHubProjectTeamRoleChangedDetails.project: + Replay project. """ __slots__ = [ "_previous_role_value", "_new_role_value", + "_project_value", ] _has_required_fields = True - def __init__(self, previous_role=None, new_role=None): + def __init__(self, previous_role=None, new_role=None, project=None): self._previous_role_value = bb.NOT_SET self._new_role_value = bb.NOT_SET + self._project_value = bb.NOT_SET if previous_role is not None: self.previous_role = previous_role if new_role is not None: self.new_role = new_role + if project is not None: + self.project = project # Instance attribute type: MediaHubProjectRole (validator is set below) previous_role = bb.Attribute("previous_role", user_defined=True) @@ -70068,6 +70676,9 @@ def __init__(self, previous_role=None, new_role=None): # Instance attribute type: MediaHubProjectRole (validator is set below) new_role = bb.Attribute("new_role", user_defined=True) + # Instance attribute type: MediaHubProjectLogInfo (validator is set below) + project = bb.Attribute("project", nullable=True, user_defined=True) + def _process_custom_annotations(self, annotation_type, field_path, processor): super(MediaHubProjectTeamRoleChangedDetails, self)._process_custom_annotations( annotation_type, field_path, processor @@ -70163,7 +70774,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubSharedLinkAudienceChangedDetails(bb.Struct): """ - Changed Media Hub shared link audience. + Changed Replay shared link audience. :ivar MediaHubSharedLinkAudienceChangedDetails.target_type: Media Hub shared link target type. @@ -70171,26 +70782,32 @@ class MediaHubSharedLinkAudienceChangedDetails(bb.Struct): Previous Media Hub shared link audience. :ivar MediaHubSharedLinkAudienceChangedDetails.new_value: New Media Hub shared link audience. + :ivar MediaHubSharedLinkAudienceChangedDetails.project: + Replay project. """ __slots__ = [ "_target_type_value", "_previous_value_value", "_new_value_value", + "_project_value", ] _has_required_fields = True - def __init__(self, target_type=None, previous_value=None, new_value=None): + def __init__(self, target_type=None, previous_value=None, new_value=None, project=None): self._target_type_value = bb.NOT_SET self._previous_value_value = bb.NOT_SET self._new_value_value = bb.NOT_SET + self._project_value = bb.NOT_SET if target_type is not None: self.target_type = target_type if previous_value is not None: self.previous_value = previous_value if new_value is not None: self.new_value = new_value + if project is not None: + self.project = project # Instance attribute type: MediaHubSharedLinkTargetType (validator is set below) target_type = bb.Attribute("target_type", user_defined=True) @@ -70201,6 +70818,9 @@ def __init__(self, target_type=None, previous_value=None, new_value=None): # Instance attribute type: MediaHubSharedLinkAudience (validator is set below) new_value = bb.Attribute("new_value", user_defined=True) + # Instance attribute type: MediaHubProjectLogInfo (validator is set below) + project = bb.Attribute("project", nullable=True, user_defined=True) + def _process_custom_annotations(self, annotation_type, field_path, processor): super(MediaHubSharedLinkAudienceChangedDetails, self)._process_custom_annotations( annotation_type, field_path, processor @@ -70238,28 +70858,34 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubSharedLinkCreatedDetails(bb.Struct): """ - Created Media Hub shared link. + Created Replay shared link. :ivar MediaHubSharedLinkCreatedDetails.target_type: Media Hub shared link target type. :ivar MediaHubSharedLinkCreatedDetails.audience: Media Hub shared link audience. + :ivar MediaHubSharedLinkCreatedDetails.project: + Replay project. """ __slots__ = [ "_target_type_value", "_audience_value", + "_project_value", ] _has_required_fields = True - def __init__(self, target_type=None, audience=None): + def __init__(self, target_type=None, audience=None, project=None): self._target_type_value = bb.NOT_SET self._audience_value = bb.NOT_SET + self._project_value = bb.NOT_SET if target_type is not None: self.target_type = target_type if audience is not None: self.audience = audience + if project is not None: + self.project = project # Instance attribute type: MediaHubSharedLinkTargetType (validator is set below) target_type = bb.Attribute("target_type", user_defined=True) @@ -70267,6 +70893,9 @@ def __init__(self, target_type=None, audience=None): # Instance attribute type: MediaHubSharedLinkAudience (validator is set below) audience = bb.Attribute("audience", user_defined=True) + # Instance attribute type: MediaHubProjectLogInfo (validator is set below) + project = bb.Attribute("project", nullable=True, user_defined=True) + def _process_custom_annotations(self, annotation_type, field_path, processor): super(MediaHubSharedLinkCreatedDetails, self)._process_custom_annotations( annotation_type, field_path, processor @@ -70352,7 +70981,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubSharedLinkDownloadSettingChangedDetails(bb.Struct): """ - Changed Media Hub shared link download setting. + Changed Replay shared link download setting. :ivar MediaHubSharedLinkDownloadSettingChangedDetails.target_type: Media Hub shared link target type. @@ -70360,26 +70989,32 @@ class MediaHubSharedLinkDownloadSettingChangedDetails(bb.Struct): Previous Media Hub shared link download setting. :ivar MediaHubSharedLinkDownloadSettingChangedDetails.new_value: New Media Hub shared link download setting. + :ivar MediaHubSharedLinkDownloadSettingChangedDetails.project: + Replay project. """ __slots__ = [ "_target_type_value", "_previous_value_value", "_new_value_value", + "_project_value", ] _has_required_fields = True - def __init__(self, target_type=None, previous_value=None, new_value=None): + def __init__(self, target_type=None, previous_value=None, new_value=None, project=None): self._target_type_value = bb.NOT_SET self._previous_value_value = bb.NOT_SET self._new_value_value = bb.NOT_SET + self._project_value = bb.NOT_SET if target_type is not None: self.target_type = target_type if previous_value is not None: self.previous_value = previous_value if new_value is not None: self.new_value = new_value + if project is not None: + self.project = project # Instance attribute type: MediaHubSharedLinkTargetType (validator is set below) target_type = bb.Attribute("target_type", user_defined=True) @@ -70390,6 +71025,9 @@ def __init__(self, target_type=None, previous_value=None, new_value=None): # Instance attribute type: MediaHubSharedLinkDownloadSetting (validator is set below) new_value = bb.Attribute("new_value", user_defined=True) + # Instance attribute type: MediaHubProjectLogInfo (validator is set below) + project = bb.Attribute("project", nullable=True, user_defined=True) + def _process_custom_annotations(self, annotation_type, field_path, processor): super(MediaHubSharedLinkDownloadSettingChangedDetails, self)._process_custom_annotations( annotation_type, field_path, processor @@ -70429,26 +71067,35 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): class MediaHubSharedLinkRevokedDetails(bb.Struct): """ - Revoked Media Hub shared link. + Revoked Replay shared link. :ivar MediaHubSharedLinkRevokedDetails.target_type: Media Hub shared link target type. + :ivar MediaHubSharedLinkRevokedDetails.project: + Replay project. """ __slots__ = [ "_target_type_value", + "_project_value", ] _has_required_fields = True - def __init__(self, target_type=None): + def __init__(self, target_type=None, project=None): self._target_type_value = bb.NOT_SET + self._project_value = bb.NOT_SET if target_type is not None: self.target_type = target_type + if project is not None: + self.project = project # Instance attribute type: MediaHubSharedLinkTargetType (validator is set below) target_type = bb.Attribute("target_type", user_defined=True) + # Instance attribute type: MediaHubProjectLogInfo (validator is set below) + project = bb.Attribute("project", nullable=True, user_defined=True) + def _process_custom_annotations(self, annotation_type, field_path, processor): super(MediaHubSharedLinkRevokedDetails, self)._process_custom_annotations( annotation_type, field_path, processor @@ -71164,12 +71811,7 @@ class MemberChangeStatusDetails(bb.Struct): _has_required_fields = True def __init__( - self, - new_value=None, - previous_value=None, - action=None, - new_team=None, - previous_team=None, + self, new_value=None, previous_value=None, action=None, new_team=None, previous_team=None ): self._previous_value_value = bb.NOT_SET self._new_value_value = bb.NOT_SET @@ -71325,6 +71967,51 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): MemberDeleteProfilePhotoType_validator = bv.Struct(MemberDeleteProfilePhotoType) +class MemberFolderContentsAccessedDetails(bb.Struct): + """ + Admin browsed a team member's folder contents. + """ + + __slots__ = [] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberFolderContentsAccessedDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +MemberFolderContentsAccessedDetails_validator = bv.Struct(MemberFolderContentsAccessedDetails) + + +class MemberFolderContentsAccessedType(bb.Struct): + __slots__ = [ + "_description_value", + ] + + _has_required_fields = True + + def __init__(self, description=None): + self._description_value = bb.NOT_SET + if description is not None: + self.description = description + + # Instance attribute type: str (validator is set below) + description = bb.Attribute("description") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberFolderContentsAccessedType, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +MemberFolderContentsAccessedType_validator = bv.Struct(MemberFolderContentsAccessedType) + + class MemberPermanentlyDeleteAccountContentsDetails(bb.Struct): """ Permanently deleted contents of deleted team member account. @@ -75757,10 +76444,7 @@ class PaperDocChangeSubscriptionDetails(bb.Struct): _has_required_fields = True def __init__( - self, - event_uuid=None, - new_subscription_level=None, - previous_subscription_level=None, + self, event_uuid=None, new_subscription_level=None, previous_subscription_level=None ): self._event_uuid_value = bb.NOT_SET self._new_subscription_level_value = bb.NOT_SET @@ -77197,10 +77881,7 @@ class PaperFolderChangeSubscriptionDetails(bb.Struct): _has_required_fields = True def __init__( - self, - event_uuid=None, - new_subscription_level=None, - previous_subscription_level=None, + self, event_uuid=None, new_subscription_level=None, previous_subscription_level=None ): self._event_uuid_value = bb.NOT_SET self._new_subscription_level_value = bb.NOT_SET @@ -78950,15 +79631,110 @@ def __init__(self, user_name=None, product_name=None): product_name = bb.Attribute("product_name", user_defined=True) def _process_custom_annotations(self, annotation_type, field_path, processor): - super(ProductAssignedToMemberDetails, self)._process_custom_annotations( + super(ProductAssignedToMemberDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProductAssignedToMemberDetails_validator = bv.Struct(ProductAssignedToMemberDetails) + + +class ProductAssignedToMemberType(bb.Struct): + __slots__ = [ + "_description_value", + ] + + _has_required_fields = True + + def __init__(self, description=None): + self._description_value = bb.NOT_SET + if description is not None: + self.description = description + + # Instance attribute type: str (validator is set below) + description = bb.Attribute("description") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProductAssignedToMemberType, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProductAssignedToMemberType_validator = bv.Struct(ProductAssignedToMemberType) + + +class ProductLogInfo(bb.Struct): + """ + Product logged information + + :ivar ProductLogInfo.product_name: + Product name. + """ + + __slots__ = [ + "_product_name_value", + ] + + _has_required_fields = True + + def __init__(self, product_name=None): + self._product_name_value = bb.NOT_SET + if product_name is not None: + self.product_name = product_name + + # Instance attribute type: str (validator is set below) + product_name = bb.Attribute("product_name") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProductLogInfo, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProductLogInfo_validator = bv.Struct(ProductLogInfo) + + +class ProductRemovedFromMemberDetails(bb.Struct): + """ + Product removed from team member. + + :ivar ProductRemovedFromMemberDetails.user_name: + User's name. + :ivar ProductRemovedFromMemberDetails.product_name: + Product name. + """ + + __slots__ = [ + "_user_name_value", + "_product_name_value", + ] + + _has_required_fields = True + + def __init__(self, user_name=None, product_name=None): + self._user_name_value = bb.NOT_SET + self._product_name_value = bb.NOT_SET + if user_name is not None: + self.user_name = user_name + if product_name is not None: + self.product_name = product_name + + # Instance attribute type: UserNameLogInfo (validator is set below) + user_name = bb.Attribute("user_name", user_defined=True) + + # Instance attribute type: ProductLogInfo (validator is set below) + product_name = bb.Attribute("product_name", user_defined=True) + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProductRemovedFromMemberDetails, self)._process_custom_annotations( annotation_type, field_path, processor ) -ProductAssignedToMemberDetails_validator = bv.Struct(ProductAssignedToMemberDetails) +ProductRemovedFromMemberDetails_validator = bv.Struct(ProductRemovedFromMemberDetails) -class ProductAssignedToMemberType(bb.Struct): +class ProductRemovedFromMemberType(bb.Struct): __slots__ = [ "_description_value", ] @@ -78974,86 +79750,156 @@ def __init__(self, description=None): description = bb.Attribute("description") def _process_custom_annotations(self, annotation_type, field_path, processor): - super(ProductAssignedToMemberType, self)._process_custom_annotations( + super(ProductRemovedFromMemberType, self)._process_custom_annotations( annotation_type, field_path, processor ) -ProductAssignedToMemberType_validator = bv.Struct(ProductAssignedToMemberType) +ProductRemovedFromMemberType_validator = bv.Struct(ProductRemovedFromMemberType) -class ProductLogInfo(bb.Struct): +class ProtectActionAddCollaboratorDetails(bb.Struct): """ - Product logged information + Added collaborators via Dropbox Protect. - :ivar ProductLogInfo.product_name: - Product name. + :ivar ProtectActionAddCollaboratorDetails.action_id: + Action ID. """ __slots__ = [ - "_product_name_value", + "_action_id_value", ] _has_required_fields = True - def __init__(self, product_name=None): - self._product_name_value = bb.NOT_SET - if product_name is not None: - self.product_name = product_name + def __init__(self, action_id=None): + self._action_id_value = bb.NOT_SET + if action_id is not None: + self.action_id = action_id # Instance attribute type: str (validator is set below) - product_name = bb.Attribute("product_name") + action_id = bb.Attribute("action_id") def _process_custom_annotations(self, annotation_type, field_path, processor): - super(ProductLogInfo, self)._process_custom_annotations( + super(ProtectActionAddCollaboratorDetails, self)._process_custom_annotations( annotation_type, field_path, processor ) -ProductLogInfo_validator = bv.Struct(ProductLogInfo) +ProtectActionAddCollaboratorDetails_validator = bv.Struct(ProtectActionAddCollaboratorDetails) -class ProductRemovedFromMemberDetails(bb.Struct): +class ProtectActionAddCollaboratorType(bb.Struct): + __slots__ = [ + "_description_value", + ] + + _has_required_fields = True + + def __init__(self, description=None): + self._description_value = bb.NOT_SET + if description is not None: + self.description = description + + # Instance attribute type: str (validator is set below) + description = bb.Attribute("description") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionAddCollaboratorType, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionAddCollaboratorType_validator = bv.Struct(ProtectActionAddCollaboratorType) + + +class ProtectActionAddLinkDetails(bb.Struct): """ - Product removed from team member. + Added a link via Dropbox Protect. - :ivar ProductRemovedFromMemberDetails.user_name: - User's name. - :ivar ProductRemovedFromMemberDetails.product_name: - Product name. + :ivar ProtectActionAddLinkDetails.action_id: + Action ID. """ __slots__ = [ - "_user_name_value", - "_product_name_value", + "_action_id_value", ] _has_required_fields = True - def __init__(self, user_name=None, product_name=None): - self._user_name_value = bb.NOT_SET - self._product_name_value = bb.NOT_SET - if user_name is not None: - self.user_name = user_name - if product_name is not None: - self.product_name = product_name + def __init__(self, action_id=None): + self._action_id_value = bb.NOT_SET + if action_id is not None: + self.action_id = action_id - # Instance attribute type: UserNameLogInfo (validator is set below) - user_name = bb.Attribute("user_name", user_defined=True) + # Instance attribute type: str (validator is set below) + action_id = bb.Attribute("action_id") - # Instance attribute type: ProductLogInfo (validator is set below) - product_name = bb.Attribute("product_name", user_defined=True) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionAddLinkDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionAddLinkDetails_validator = bv.Struct(ProtectActionAddLinkDetails) + + +class ProtectActionAddLinkType(bb.Struct): + __slots__ = [ + "_description_value", + ] + + _has_required_fields = True + + def __init__(self, description=None): + self._description_value = bb.NOT_SET + if description is not None: + self.description = description + + # Instance attribute type: str (validator is set below) + description = bb.Attribute("description") def _process_custom_annotations(self, annotation_type, field_path, processor): - super(ProductRemovedFromMemberDetails, self)._process_custom_annotations( + super(ProtectActionAddLinkType, self)._process_custom_annotations( annotation_type, field_path, processor ) -ProductRemovedFromMemberDetails_validator = bv.Struct(ProductRemovedFromMemberDetails) +ProtectActionAddLinkType_validator = bv.Struct(ProtectActionAddLinkType) -class ProductRemovedFromMemberType(bb.Struct): +class ProtectActionDeleteDetails(bb.Struct): + """ + Deleted content via Dropbox Protect. + + :ivar ProtectActionDeleteDetails.action_id: + Action ID. + """ + + __slots__ = [ + "_action_id_value", + ] + + _has_required_fields = True + + def __init__(self, action_id=None): + self._action_id_value = bb.NOT_SET + if action_id is not None: + self.action_id = action_id + + # Instance attribute type: str (validator is set below) + action_id = bb.Attribute("action_id") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionDeleteDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionDeleteDetails_validator = bv.Struct(ProtectActionDeleteDetails) + + +class ProtectActionDeleteType(bb.Struct): __slots__ = [ "_description_value", ] @@ -79069,12 +79915,232 @@ def __init__(self, description=None): description = bb.Attribute("description") def _process_custom_annotations(self, annotation_type, field_path, processor): - super(ProductRemovedFromMemberType, self)._process_custom_annotations( + super(ProtectActionDeleteType, self)._process_custom_annotations( annotation_type, field_path, processor ) -ProductRemovedFromMemberType_validator = bv.Struct(ProductRemovedFromMemberType) +ProtectActionDeleteType_validator = bv.Struct(ProtectActionDeleteType) + + +class ProtectActionExportDetails(bb.Struct): + """ + Exported content via Dropbox Protect. + + :ivar ProtectActionExportDetails.action_id: + Action ID. + """ + + __slots__ = [ + "_action_id_value", + ] + + _has_required_fields = True + + def __init__(self, action_id=None): + self._action_id_value = bb.NOT_SET + if action_id is not None: + self.action_id = action_id + + # Instance attribute type: str (validator is set below) + action_id = bb.Attribute("action_id") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionExportDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionExportDetails_validator = bv.Struct(ProtectActionExportDetails) + + +class ProtectActionExportType(bb.Struct): + __slots__ = [ + "_description_value", + ] + + _has_required_fields = True + + def __init__(self, description=None): + self._description_value = bb.NOT_SET + if description is not None: + self.description = description + + # Instance attribute type: str (validator is set below) + description = bb.Attribute("description") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionExportType, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionExportType_validator = bv.Struct(ProtectActionExportType) + + +class ProtectActionRemoveCollaboratorDetails(bb.Struct): + """ + Removed collaborators via Dropbox Protect. + + :ivar ProtectActionRemoveCollaboratorDetails.action_id: + Action ID. + """ + + __slots__ = [ + "_action_id_value", + ] + + _has_required_fields = True + + def __init__(self, action_id=None): + self._action_id_value = bb.NOT_SET + if action_id is not None: + self.action_id = action_id + + # Instance attribute type: str (validator is set below) + action_id = bb.Attribute("action_id") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionRemoveCollaboratorDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionRemoveCollaboratorDetails_validator = bv.Struct(ProtectActionRemoveCollaboratorDetails) + + +class ProtectActionRemoveCollaboratorType(bb.Struct): + __slots__ = [ + "_description_value", + ] + + _has_required_fields = True + + def __init__(self, description=None): + self._description_value = bb.NOT_SET + if description is not None: + self.description = description + + # Instance attribute type: str (validator is set below) + description = bb.Attribute("description") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionRemoveCollaboratorType, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionRemoveCollaboratorType_validator = bv.Struct(ProtectActionRemoveCollaboratorType) + + +class ProtectActionRemoveLinkDetails(bb.Struct): + """ + Removed a link via Dropbox Protect. + + :ivar ProtectActionRemoveLinkDetails.action_id: + Action ID. + """ + + __slots__ = [ + "_action_id_value", + ] + + _has_required_fields = True + + def __init__(self, action_id=None): + self._action_id_value = bb.NOT_SET + if action_id is not None: + self.action_id = action_id + + # Instance attribute type: str (validator is set below) + action_id = bb.Attribute("action_id") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionRemoveLinkDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionRemoveLinkDetails_validator = bv.Struct(ProtectActionRemoveLinkDetails) + + +class ProtectActionRemoveLinkType(bb.Struct): + __slots__ = [ + "_description_value", + ] + + _has_required_fields = True + + def __init__(self, description=None): + self._description_value = bb.NOT_SET + if description is not None: + self.description = description + + # Instance attribute type: str (validator is set below) + description = bb.Attribute("description") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionRemoveLinkType, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionRemoveLinkType_validator = bv.Struct(ProtectActionRemoveLinkType) + + +class ProtectActionStopSharingDetails(bb.Struct): + """ + Stopped sharing content via Dropbox Protect. + + :ivar ProtectActionStopSharingDetails.action_id: + Action ID. + """ + + __slots__ = [ + "_action_id_value", + ] + + _has_required_fields = True + + def __init__(self, action_id=None): + self._action_id_value = bb.NOT_SET + if action_id is not None: + self.action_id = action_id + + # Instance attribute type: str (validator is set below) + action_id = bb.Attribute("action_id") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionStopSharingDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionStopSharingDetails_validator = bv.Struct(ProtectActionStopSharingDetails) + + +class ProtectActionStopSharingType(bb.Struct): + __slots__ = [ + "_description_value", + ] + + _has_required_fields = True + + def __init__(self, description=None): + self._description_value = bb.NOT_SET + if description is not None: + self.description = description + + # Instance attribute type: str (validator is set below) + description = bb.Attribute("description") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectActionStopSharingType, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectActionStopSharingType_validator = bv.Struct(ProtectActionStopSharingType) class ProtectInternalDomainsChangedDetails(bb.Struct): @@ -82050,12 +83116,7 @@ class SfAllowNonMembersToViewSharedLinksDetails(bb.Struct): _has_required_fields = True - def __init__( - self, - target_asset_index=None, - original_folder_name=None, - shared_folder_type=None, - ): + def __init__(self, target_asset_index=None, original_folder_name=None, shared_folder_type=None): self._target_asset_index_value = bb.NOT_SET self._original_folder_name_value = bb.NOT_SET self._shared_folder_type_value = bb.NOT_SET @@ -82306,12 +83367,7 @@ class SfFbInviteDetails(bb.Struct): _has_required_fields = True - def __init__( - self, - target_asset_index=None, - original_folder_name=None, - sharing_permission=None, - ): + def __init__(self, target_asset_index=None, original_folder_name=None, sharing_permission=None): self._target_asset_index_value = bb.NOT_SET self._original_folder_name_value = bb.NOT_SET self._sharing_permission_value = bb.NOT_SET @@ -82655,12 +83711,7 @@ class SfTeamInviteDetails(bb.Struct): _has_required_fields = True - def __init__( - self, - target_asset_index=None, - original_folder_name=None, - sharing_permission=None, - ): + def __init__(self, target_asset_index=None, original_folder_name=None, sharing_permission=None): self._target_asset_index_value = bb.NOT_SET self._original_folder_name_value = bb.NOT_SET self._sharing_permission_value = bb.NOT_SET @@ -83760,10 +84811,7 @@ class SharedContentDownloadDetails(bb.Struct): _has_required_fields = True def __init__( - self, - shared_content_link=None, - shared_content_access_level=None, - shared_content_owner=None, + self, shared_content_link=None, shared_content_access_level=None, shared_content_owner=None ): self._shared_content_link_value = bb.NOT_SET self._shared_content_owner_value = bb.NOT_SET @@ -84317,10 +85365,7 @@ class SharedContentViewDetails(bb.Struct): _has_required_fields = True def __init__( - self, - shared_content_link=None, - shared_content_access_level=None, - shared_content_owner=None, + self, shared_content_link=None, shared_content_access_level=None, shared_content_owner=None ): self._shared_content_link_value = bb.NOT_SET self._shared_content_owner_value = bb.NOT_SET @@ -86403,10 +87448,7 @@ class SharedLinkSettingsRemoveExpirationDetails(bb.Struct): _has_required_fields = True def __init__( - self, - shared_content_access_level=None, - shared_content_link=None, - previous_value=None, + self, shared_content_access_level=None, shared_content_link=None, previous_value=None ): self._shared_content_access_level_value = bb.NOT_SET self._shared_content_link_value = bb.NOT_SET @@ -97937,10 +98979,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) AccountCaptureChangeAvailabilityDetails._all_fields_ = [ ("new_value", AccountCaptureChangeAvailabilityDetails.new_value.validator), - ( - "previous_value", - AccountCaptureChangeAvailabilityDetails.previous_value.validator, - ), + ("previous_value", AccountCaptureChangeAvailabilityDetails.previous_value.validator), ] AccountCaptureChangeAvailabilityType.description.validator = bv.String() @@ -97994,10 +99033,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) AccountCaptureNotificationEmailsSentDetails._all_fields_ = [ ("domain_name", AccountCaptureNotificationEmailsSentDetails.domain_name.validator), - ( - "notification_type", - AccountCaptureNotificationEmailsSentDetails.notification_type.validator, - ), + ("notification_type", AccountCaptureNotificationEmailsSentDetails.notification_type.validator), ] AccountCaptureNotificationEmailsSentType.description.validator = bv.String() @@ -98254,19 +99290,13 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): AdminAlertingAlertConfiguration._all_fields_ = [ ("alert_state", AdminAlertingAlertConfiguration.alert_state.validator), ("sensitivity_level", AdminAlertingAlertConfiguration.sensitivity_level.validator), - ( - "recipients_settings", - AdminAlertingAlertConfiguration.recipients_settings.validator, - ), + ("recipients_settings", AdminAlertingAlertConfiguration.recipients_settings.validator), ("text", AdminAlertingAlertConfiguration.text.validator), ( "excluded_file_extensions", AdminAlertingAlertConfiguration.excluded_file_extensions.validator, ), - ( - "malware_exclusion_state", - AdminAlertingAlertConfiguration.malware_exclusion_state.validator, - ), + ("malware_exclusion_state", AdminAlertingAlertConfiguration.malware_exclusion_state.validator), ] AdminAlertingAlertSensitivity._high_validator = bv.Void() @@ -98316,10 +99346,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("alert_name", AdminAlertingAlertStateChangedDetails.alert_name.validator), ("alert_severity", AdminAlertingAlertStateChangedDetails.alert_severity.validator), ("alert_category", AdminAlertingAlertStateChangedDetails.alert_category.validator), - ( - "alert_instance_id", - AdminAlertingAlertStateChangedDetails.alert_instance_id.validator, - ), + ("alert_instance_id", AdminAlertingAlertStateChangedDetails.alert_instance_id.validator), ("previous_value", AdminAlertingAlertStateChangedDetails.previous_value.validator), ("new_value", AdminAlertingAlertStateChangedDetails.new_value.validator), ] @@ -98363,10 +99390,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "previous_alert_config", AdminAlertingChangedAlertConfigDetails.previous_alert_config.validator, ), - ( - "new_alert_config", - AdminAlertingChangedAlertConfigDetails.new_alert_config.validator, - ), + ("new_alert_config", AdminAlertingChangedAlertConfigDetails.new_alert_config.validator), ] AdminAlertingChangedAlertConfigType.description.validator = bv.String() @@ -98391,10 +99415,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("alert_name", AdminAlertingTriggeredAlertDetails.alert_name.validator), ("alert_severity", AdminAlertingTriggeredAlertDetails.alert_severity.validator), ("alert_category", AdminAlertingTriggeredAlertDetails.alert_category.validator), - ( - "alert_instance_id", - AdminAlertingTriggeredAlertDetails.alert_instance_id.validator, - ), + ("alert_instance_id", AdminAlertingTriggeredAlertDetails.alert_instance_id.validator), ] AdminAlertingTriggeredAlertType.description.validator = bv.String() @@ -98548,23 +99569,14 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) AiThirdPartySharingDropboxBasePolicyChangedDetails._all_fields_ = [ - ( - "new_value", - AiThirdPartySharingDropboxBasePolicyChangedDetails.new_value.validator, - ), - ( - "previous_value", - AiThirdPartySharingDropboxBasePolicyChangedDetails.previous_value.validator, - ), + ("new_value", AiThirdPartySharingDropboxBasePolicyChangedDetails.new_value.validator), + ("previous_value", AiThirdPartySharingDropboxBasePolicyChangedDetails.previous_value.validator), ] AiThirdPartySharingDropboxBasePolicyChangedType.description.validator = bv.String() AiThirdPartySharingDropboxBasePolicyChangedType._all_field_names_ = set(["description"]) AiThirdPartySharingDropboxBasePolicyChangedType._all_fields_ = [ - ( - "description", - AiThirdPartySharingDropboxBasePolicyChangedType.description.validator, - ) + ("description", AiThirdPartySharingDropboxBasePolicyChangedType.description.validator) ] AlertRecipientsSettingType._custom_list_validator = bv.Void() @@ -98897,10 +99909,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("event_uuid", BinderRenamePageDetails.event_uuid.validator), ("doc_title", BinderRenamePageDetails.doc_title.validator), ("binder_item_name", BinderRenamePageDetails.binder_item_name.validator), - ( - "previous_binder_item_name", - BinderRenamePageDetails.previous_binder_item_name.validator, - ), + ("previous_binder_item_name", BinderRenamePageDetails.previous_binder_item_name.validator), ] BinderRenamePageType.description.validator = bv.String() @@ -98923,10 +99932,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("event_uuid", BinderRenameSectionDetails.event_uuid.validator), ("doc_title", BinderRenameSectionDetails.doc_title.validator), ("binder_item_name", BinderRenameSectionDetails.binder_item_name.validator), - ( - "previous_binder_item_name", - BinderRenameSectionDetails.previous_binder_item_name.validator, - ), + ("previous_binder_item_name", BinderRenameSectionDetails.previous_binder_item_name.validator), ] BinderRenameSectionType.description.validator = bv.String() @@ -99157,14 +100163,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) ChangedEnterpriseConnectedTeamStatusDetails._all_fields_ = [ ("action", ChangedEnterpriseConnectedTeamStatusDetails.action.validator), - ( - "additional_info", - ChangedEnterpriseConnectedTeamStatusDetails.additional_info.validator, - ), - ( - "previous_value", - ChangedEnterpriseConnectedTeamStatusDetails.previous_value.validator, - ), + ("additional_info", ChangedEnterpriseConnectedTeamStatusDetails.additional_info.validator), + ("previous_value", ChangedEnterpriseConnectedTeamStatusDetails.previous_value.validator), ("new_value", ChangedEnterpriseConnectedTeamStatusDetails.new_value.validator), ] @@ -99189,10 +100189,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ClassificationChangePolicyDetails._all_fields_ = [ ("previous_value", ClassificationChangePolicyDetails.previous_value.validator), ("new_value", ClassificationChangePolicyDetails.new_value.validator), - ( - "classification_type", - ClassificationChangePolicyDetails.classification_type.validator, - ), + ("classification_type", ClassificationChangePolicyDetails.classification_type.validator), ] ClassificationChangePolicyType.description.validator = bv.String() @@ -99315,10 +100312,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) ContentAdministrationPolicyChangedDetails._all_fields_ = [ ("new_value", ContentAdministrationPolicyChangedDetails.new_value.validator), - ( - "previous_value", - ContentAdministrationPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", ContentAdministrationPolicyChangedDetails.previous_value.validator), ] ContentAdministrationPolicyChangedType.description.validator = bv.String() @@ -99353,10 +100347,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "new_threshold_bytes", ContentDeletionProtectionChangePolicyDetails.new_threshold_bytes.validator, ), - ( - "previous_value", - ContentDeletionProtectionChangePolicyDetails.previous_value.validator, - ), + ("previous_value", ContentDeletionProtectionChangePolicyDetails.previous_value.validator), ( "previous_threshold_bytes", ContentDeletionProtectionChangePolicyDetails.previous_threshold_bytes.validator, @@ -99535,10 +100526,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) DashAdminAddedOrgWideConnectorDetails._all_fields_ = [ ("connector_name", DashAdminAddedOrgWideConnectorDetails.connector_name.validator), - ( - "connector_status", - DashAdminAddedOrgWideConnectorDetails.connector_status.validator, - ), + ("connector_status", DashAdminAddedOrgWideConnectorDetails.connector_status.validator), ] DashAdminAddedOrgWideConnectorType.description.validator = bv.String() @@ -99598,14 +100586,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) DashAdminRemovedOrgWideConnectorDetails._all_fields_ = [ - ( - "connector_name", - DashAdminRemovedOrgWideConnectorDetails.connector_name.validator, - ), - ( - "connector_status", - DashAdminRemovedOrgWideConnectorDetails.connector_status.validator, - ), + ("connector_name", DashAdminRemovedOrgWideConnectorDetails.connector_name.validator), + ("connector_status", DashAdminRemovedOrgWideConnectorDetails.connector_status.validator), ] DashAdminRemovedOrgWideConnectorType.description.validator = bv.String() @@ -99819,10 +100801,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) DashExternalSharingPolicyChangedDetails._all_fields_ = [ ("new_value", DashExternalSharingPolicyChangedDetails.new_value.validator), - ( - "previous_value", - DashExternalSharingPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", DashExternalSharingPolicyChangedDetails.previous_value.validator), ] DashExternalSharingPolicyChangedType.description.validator = bv.String() @@ -99849,16 +100828,10 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) DashExternalUserOpenedStackDetails._all_fields_ = [ ("stack_name", DashExternalUserOpenedStackDetails.stack_name.validator), - ( - "stack_sharing_scope", - DashExternalUserOpenedStackDetails.stack_sharing_scope.validator, - ), + ("stack_sharing_scope", DashExternalUserOpenedStackDetails.stack_sharing_scope.validator), ("is_invited", DashExternalUserOpenedStackDetails.is_invited.validator), ("is_verified", DashExternalUserOpenedStackDetails.is_verified.validator), - ( - "stack_owner_team_id", - DashExternalUserOpenedStackDetails.stack_owner_team_id.validator, - ), + ("stack_owner_team_id", DashExternalUserOpenedStackDetails.stack_owner_team_id.validator), ("stack_type", DashExternalUserOpenedStackDetails.stack_type.validator), ] @@ -100169,10 +101142,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) DataPlacementRestrictionChangePolicyDetails._all_fields_ = [ - ( - "previous_value", - DataPlacementRestrictionChangePolicyDetails.previous_value.validator, - ), + ("previous_value", DataPlacementRestrictionChangePolicyDetails.previous_value.validator), ("new_value", DataPlacementRestrictionChangePolicyDetails.new_value.validator), ] @@ -100289,18 +101259,9 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("desktop_device_session",), DesktopDeviceSessionLogInfo_validator, ), - LegacyDeviceSessionLogInfo: ( - ("legacy_device_session",), - LegacyDeviceSessionLogInfo_validator, - ), - MobileDeviceSessionLogInfo: ( - ("mobile_device_session",), - MobileDeviceSessionLogInfo_validator, - ), - WebDeviceSessionLogInfo: ( - ("web_device_session",), - WebDeviceSessionLogInfo_validator, - ), + LegacyDeviceSessionLogInfo: (("legacy_device_session",), LegacyDeviceSessionLogInfo_validator), + MobileDeviceSessionLogInfo: (("mobile_device_session",), MobileDeviceSessionLogInfo_validator), + WebDeviceSessionLogInfo: (("web_device_session",), WebDeviceSessionLogInfo_validator), } DeviceSessionLogInfo._is_catch_all_ = True @@ -100386,10 +101347,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) DeviceApprovalsChangeDesktopPolicyDetails._all_fields_ = [ ("new_value", DeviceApprovalsChangeDesktopPolicyDetails.new_value.validator), - ( - "previous_value", - DeviceApprovalsChangeDesktopPolicyDetails.previous_value.validator, - ), + ("previous_value", DeviceApprovalsChangeDesktopPolicyDetails.previous_value.validator), ] DeviceApprovalsChangeDesktopPolicyType.description.validator = bv.String() @@ -100412,10 +101370,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) DeviceApprovalsChangeMobilePolicyDetails._all_fields_ = [ ("new_value", DeviceApprovalsChangeMobilePolicyDetails.new_value.validator), - ( - "previous_value", - DeviceApprovalsChangeMobilePolicyDetails.previous_value.validator, - ), + ("previous_value", DeviceApprovalsChangeMobilePolicyDetails.previous_value.validator), ] DeviceApprovalsChangeMobilePolicyType.description.validator = bv.String() @@ -100438,10 +101393,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) DeviceApprovalsChangeOverageActionDetails._all_fields_ = [ ("new_value", DeviceApprovalsChangeOverageActionDetails.new_value.validator), - ( - "previous_value", - DeviceApprovalsChangeOverageActionDetails.previous_value.validator, - ), + ("previous_value", DeviceApprovalsChangeOverageActionDetails.previous_value.validator), ] DeviceApprovalsChangeOverageActionType.description.validator = bv.String() @@ -100464,10 +101416,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) DeviceApprovalsChangeUnlinkActionDetails._all_fields_ = [ ("new_value", DeviceApprovalsChangeUnlinkActionDetails.new_value.validator), - ( - "previous_value", - DeviceApprovalsChangeUnlinkActionDetails.previous_value.validator, - ), + ("previous_value", DeviceApprovalsChangeUnlinkActionDetails.previous_value.validator), ] DeviceApprovalsChangeUnlinkActionType.description.validator = bv.String() @@ -100809,10 +101758,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) DomainVerificationAddDomainFailDetails._all_fields_ = [ ("domain_name", DomainVerificationAddDomainFailDetails.domain_name.validator), - ( - "verification_method", - DomainVerificationAddDomainFailDetails.verification_method.validator, - ), + ("verification_method", DomainVerificationAddDomainFailDetails.verification_method.validator), ] DomainVerificationAddDomainFailType.description.validator = bv.String() @@ -100889,10 +101835,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) DropboxPasswordsNewDeviceEnrolledDetails._all_fields_ = [ - ( - "is_first_device", - DropboxPasswordsNewDeviceEnrolledDetails.is_first_device.validator, - ), + ("is_first_device", DropboxPasswordsNewDeviceEnrolledDetails.is_first_device.validator), ("platform", DropboxPasswordsNewDeviceEnrolledDetails.platform.validator), ] @@ -101251,10 +102194,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) EnterpriseSettingsLockingDetails._all_fields_ = [ ("team_name", EnterpriseSettingsLockingDetails.team_name.validator), - ( - "settings_page_name", - EnterpriseSettingsLockingDetails.settings_page_name.validator, - ), + ("settings_page_name", EnterpriseSettingsLockingDetails.settings_page_name.validator), ( "previous_settings_page_locking_state", EnterpriseSettingsLockingDetails.previous_settings_page_locking_state.validator, @@ -101767,6 +102707,9 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventDetails._member_delete_profile_photo_details_validator = ( MemberDeleteProfilePhotoDetails_validator ) +EventDetails._member_folder_contents_accessed_details_validator = ( + MemberFolderContentsAccessedDetails_validator +) EventDetails._member_permanently_delete_account_contents_details_validator = ( MemberPermanentlyDeleteAccountContentsDetails_validator ) @@ -101884,6 +102827,21 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventDetails._password_change_details_validator = PasswordChangeDetails_validator EventDetails._password_reset_details_validator = PasswordResetDetails_validator EventDetails._password_reset_all_details_validator = PasswordResetAllDetails_validator +EventDetails._protect_action_add_collaborator_details_validator = ( + ProtectActionAddCollaboratorDetails_validator +) +EventDetails._protect_action_add_link_details_validator = ProtectActionAddLinkDetails_validator +EventDetails._protect_action_delete_details_validator = ProtectActionDeleteDetails_validator +EventDetails._protect_action_export_details_validator = ProtectActionExportDetails_validator +EventDetails._protect_action_remove_collaborator_details_validator = ( + ProtectActionRemoveCollaboratorDetails_validator +) +EventDetails._protect_action_remove_link_details_validator = ( + ProtectActionRemoveLinkDetails_validator +) +EventDetails._protect_action_stop_sharing_details_validator = ( + ProtectActionStopSharingDetails_validator +) EventDetails._protect_internal_domains_changed_details_validator = ( ProtectInternalDomainsChangedDetails_validator ) @@ -102884,6 +103842,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "member_change_status_details": EventDetails._member_change_status_details_validator, "member_delete_manual_contacts_details": EventDetails._member_delete_manual_contacts_details_validator, "member_delete_profile_photo_details": EventDetails._member_delete_profile_photo_details_validator, + "member_folder_contents_accessed_details": EventDetails._member_folder_contents_accessed_details_validator, "member_permanently_delete_account_contents_details": EventDetails._member_permanently_delete_account_contents_details_validator, "member_remove_external_id_details": EventDetails._member_remove_external_id_details_validator, "member_set_profile_photo_details": EventDetails._member_set_profile_photo_details_validator, @@ -102951,6 +103910,13 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "password_change_details": EventDetails._password_change_details_validator, "password_reset_details": EventDetails._password_reset_details_validator, "password_reset_all_details": EventDetails._password_reset_all_details_validator, + "protect_action_add_collaborator_details": EventDetails._protect_action_add_collaborator_details_validator, + "protect_action_add_link_details": EventDetails._protect_action_add_link_details_validator, + "protect_action_delete_details": EventDetails._protect_action_delete_details_validator, + "protect_action_export_details": EventDetails._protect_action_export_details_validator, + "protect_action_remove_collaborator_details": EventDetails._protect_action_remove_collaborator_details_validator, + "protect_action_remove_link_details": EventDetails._protect_action_remove_link_details_validator, + "protect_action_stop_sharing_details": EventDetails._protect_action_stop_sharing_details_validator, "protect_internal_domains_changed_details": EventDetails._protect_internal_domains_changed_details_validator, "classification_create_report_details": EventDetails._classification_create_report_details_validator, "classification_create_report_fail_details": EventDetails._classification_create_report_fail_details_validator, @@ -103594,6 +104560,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventType._member_change_status_validator = MemberChangeStatusType_validator EventType._member_delete_manual_contacts_validator = MemberDeleteManualContactsType_validator EventType._member_delete_profile_photo_validator = MemberDeleteProfilePhotoType_validator +EventType._member_folder_contents_accessed_validator = MemberFolderContentsAccessedType_validator EventType._member_permanently_delete_account_contents_validator = ( MemberPermanentlyDeleteAccountContentsType_validator ) @@ -103671,6 +104638,15 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventType._password_change_validator = PasswordChangeType_validator EventType._password_reset_validator = PasswordResetType_validator EventType._password_reset_all_validator = PasswordResetAllType_validator +EventType._protect_action_add_collaborator_validator = ProtectActionAddCollaboratorType_validator +EventType._protect_action_add_link_validator = ProtectActionAddLinkType_validator +EventType._protect_action_delete_validator = ProtectActionDeleteType_validator +EventType._protect_action_export_validator = ProtectActionExportType_validator +EventType._protect_action_remove_collaborator_validator = ( + ProtectActionRemoveCollaboratorType_validator +) +EventType._protect_action_remove_link_validator = ProtectActionRemoveLinkType_validator +EventType._protect_action_stop_sharing_validator = ProtectActionStopSharingType_validator EventType._protect_internal_domains_changed_validator = ProtectInternalDomainsChangedType_validator EventType._classification_create_report_validator = ClassificationCreateReportType_validator EventType._classification_create_report_fail_validator = ( @@ -104432,6 +105408,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "member_change_status": EventType._member_change_status_validator, "member_delete_manual_contacts": EventType._member_delete_manual_contacts_validator, "member_delete_profile_photo": EventType._member_delete_profile_photo_validator, + "member_folder_contents_accessed": EventType._member_folder_contents_accessed_validator, "member_permanently_delete_account_contents": EventType._member_permanently_delete_account_contents_validator, "member_remove_external_id": EventType._member_remove_external_id_validator, "member_set_profile_photo": EventType._member_set_profile_photo_validator, @@ -104499,6 +105476,13 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "password_change": EventType._password_change_validator, "password_reset": EventType._password_reset_validator, "password_reset_all": EventType._password_reset_all_validator, + "protect_action_add_collaborator": EventType._protect_action_add_collaborator_validator, + "protect_action_add_link": EventType._protect_action_add_link_validator, + "protect_action_delete": EventType._protect_action_delete_validator, + "protect_action_export": EventType._protect_action_export_validator, + "protect_action_remove_collaborator": EventType._protect_action_remove_collaborator_validator, + "protect_action_remove_link": EventType._protect_action_remove_link_validator, + "protect_action_stop_sharing": EventType._protect_action_stop_sharing_validator, "protect_internal_domains_changed": EventType._protect_internal_domains_changed_validator, "classification_create_report": EventType._classification_create_report_validator, "classification_create_report_fail": EventType._classification_create_report_fail_validator, @@ -105055,6 +106039,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventTypeArg._member_change_status_validator = bv.Void() EventTypeArg._member_delete_manual_contacts_validator = bv.Void() EventTypeArg._member_delete_profile_photo_validator = bv.Void() +EventTypeArg._member_folder_contents_accessed_validator = bv.Void() EventTypeArg._member_permanently_delete_account_contents_validator = bv.Void() EventTypeArg._member_remove_external_id_validator = bv.Void() EventTypeArg._member_set_profile_photo_validator = bv.Void() @@ -105122,6 +106107,13 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventTypeArg._password_change_validator = bv.Void() EventTypeArg._password_reset_validator = bv.Void() EventTypeArg._password_reset_all_validator = bv.Void() +EventTypeArg._protect_action_add_collaborator_validator = bv.Void() +EventTypeArg._protect_action_add_link_validator = bv.Void() +EventTypeArg._protect_action_delete_validator = bv.Void() +EventTypeArg._protect_action_export_validator = bv.Void() +EventTypeArg._protect_action_remove_collaborator_validator = bv.Void() +EventTypeArg._protect_action_remove_link_validator = bv.Void() +EventTypeArg._protect_action_stop_sharing_validator = bv.Void() EventTypeArg._protect_internal_domains_changed_validator = bv.Void() EventTypeArg._classification_create_report_validator = bv.Void() EventTypeArg._classification_create_report_fail_validator = bv.Void() @@ -105675,6 +106667,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "member_change_status": EventTypeArg._member_change_status_validator, "member_delete_manual_contacts": EventTypeArg._member_delete_manual_contacts_validator, "member_delete_profile_photo": EventTypeArg._member_delete_profile_photo_validator, + "member_folder_contents_accessed": EventTypeArg._member_folder_contents_accessed_validator, "member_permanently_delete_account_contents": EventTypeArg._member_permanently_delete_account_contents_validator, "member_remove_external_id": EventTypeArg._member_remove_external_id_validator, "member_set_profile_photo": EventTypeArg._member_set_profile_photo_validator, @@ -105742,6 +106735,13 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "password_change": EventTypeArg._password_change_validator, "password_reset": EventTypeArg._password_reset_validator, "password_reset_all": EventTypeArg._password_reset_all_validator, + "protect_action_add_collaborator": EventTypeArg._protect_action_add_collaborator_validator, + "protect_action_add_link": EventTypeArg._protect_action_add_link_validator, + "protect_action_delete": EventTypeArg._protect_action_delete_validator, + "protect_action_export": EventTypeArg._protect_action_export_validator, + "protect_action_remove_collaborator": EventTypeArg._protect_action_remove_collaborator_validator, + "protect_action_remove_link": EventTypeArg._protect_action_remove_link_validator, + "protect_action_stop_sharing": EventTypeArg._protect_action_stop_sharing_validator, "protect_internal_domains_changed": EventTypeArg._protect_internal_domains_changed_validator, "classification_create_report": EventTypeArg._classification_create_report_validator, "classification_create_report_fail": EventTypeArg._classification_create_report_fail_validator, @@ -106364,6 +107364,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventTypeArg.member_change_status = EventTypeArg("member_change_status") EventTypeArg.member_delete_manual_contacts = EventTypeArg("member_delete_manual_contacts") EventTypeArg.member_delete_profile_photo = EventTypeArg("member_delete_profile_photo") +EventTypeArg.member_folder_contents_accessed = EventTypeArg("member_folder_contents_accessed") EventTypeArg.member_permanently_delete_account_contents = EventTypeArg( "member_permanently_delete_account_contents" ) @@ -106441,6 +107442,13 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventTypeArg.password_change = EventTypeArg("password_change") EventTypeArg.password_reset = EventTypeArg("password_reset") EventTypeArg.password_reset_all = EventTypeArg("password_reset_all") +EventTypeArg.protect_action_add_collaborator = EventTypeArg("protect_action_add_collaborator") +EventTypeArg.protect_action_add_link = EventTypeArg("protect_action_add_link") +EventTypeArg.protect_action_delete = EventTypeArg("protect_action_delete") +EventTypeArg.protect_action_export = EventTypeArg("protect_action_export") +EventTypeArg.protect_action_remove_collaborator = EventTypeArg("protect_action_remove_collaborator") +EventTypeArg.protect_action_remove_link = EventTypeArg("protect_action_remove_link") +EventTypeArg.protect_action_stop_sharing = EventTypeArg("protect_action_stop_sharing") EventTypeArg.protect_internal_domains_changed = EventTypeArg("protect_internal_domains_changed") EventTypeArg.classification_create_report = EventTypeArg("classification_create_report") EventTypeArg.classification_create_report_fail = EventTypeArg("classification_create_report_fail") @@ -107006,10 +108014,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) ExtendedVersionHistoryChangePolicyDetails._all_fields_ = [ ("new_value", ExtendedVersionHistoryChangePolicyDetails.new_value.validator), - ( - "previous_value", - ExtendedVersionHistoryChangePolicyDetails.previous_value.validator, - ), + ("previous_value", ExtendedVersionHistoryChangePolicyDetails.previous_value.validator), ] ExtendedVersionHistoryChangePolicyType.description.validator = bv.String() @@ -107090,10 +108095,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ExternalDriveBackupEligibilityStatusCheckedType.description.validator = bv.String() ExternalDriveBackupEligibilityStatusCheckedType._all_field_names_ = set(["description"]) ExternalDriveBackupEligibilityStatusCheckedType._all_fields_ = [ - ( - "description", - ExternalDriveBackupEligibilityStatusCheckedType.description.validator, - ) + ("description", ExternalDriveBackupEligibilityStatusCheckedType.description.validator) ] ExternalDriveBackupPolicy._default_validator = bv.Void() @@ -107124,10 +108126,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) ExternalDriveBackupPolicyChangedDetails._all_fields_ = [ ("new_value", ExternalDriveBackupPolicyChangedDetails.new_value.validator), - ( - "previous_value", - ExternalDriveBackupPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", ExternalDriveBackupPolicyChangedDetails.previous_value.validator), ] ExternalDriveBackupPolicyChangedType.description.validator = bv.String() @@ -107180,10 +108179,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "desktop_device_session_info", ExternalDriveBackupStatusChangedDetails.desktop_device_session_info.validator, ), - ( - "previous_value", - ExternalDriveBackupStatusChangedDetails.previous_value.validator, - ), + ("previous_value", ExternalDriveBackupStatusChangedDetails.previous_value.validator), ("new_value", ExternalDriveBackupStatusChangedDetails.new_value.validator), ] @@ -107253,10 +108249,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) FailureDetailsLogInfo._all_fields_ = [ ("user_friendly_message", FailureDetailsLogInfo.user_friendly_message.validator), - ( - "technical_error_message", - FailureDetailsLogInfo.technical_error_message.validator, - ), + ("technical_error_message", FailureDetailsLogInfo.technical_error_message.validator), ] FedAdminRole._enterprise_admin_validator = bv.Void() @@ -107598,10 +108591,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) FileProviderMigrationPolicyChangedDetails._all_fields_ = [ ("new_value", FileProviderMigrationPolicyChangedDetails.new_value.validator), - ( - "previous_value", - FileProviderMigrationPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", FileProviderMigrationPolicyChangedDetails.previous_value.validator), ] FileProviderMigrationPolicyChangedType.description.validator = bv.String() @@ -107776,14 +108766,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) FileRequestReceiveFileDetails._all_fields_ = [ ("file_request_id", FileRequestReceiveFileDetails.file_request_id.validator), - ( - "file_request_details", - FileRequestReceiveFileDetails.file_request_details.validator, - ), - ( - "submitted_file_names", - FileRequestReceiveFileDetails.submitted_file_names.validator, - ), + ("file_request_details", FileRequestReceiveFileDetails.file_request_details.validator), + ("submitted_file_names", FileRequestReceiveFileDetails.submitted_file_names.validator), ("submitter_name", FileRequestReceiveFileDetails.submitter_name.validator), ("submitter_email", FileRequestReceiveFileDetails.submitter_email.validator), ] @@ -107884,10 +108868,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) FileSaveCopyReferenceDetails._all_field_names_ = set(["relocate_action_details"]) FileSaveCopyReferenceDetails._all_fields_ = [ - ( - "relocate_action_details", - FileSaveCopyReferenceDetails.relocate_action_details.validator, - ) + ("relocate_action_details", FileSaveCopyReferenceDetails.relocate_action_details.validator) ] FileSaveCopyReferenceType.description.validator = bv.String() @@ -107955,10 +108936,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): FileTransfersTransferDownloadDetails.file_transfer_id.validator = bv.String() FileTransfersTransferDownloadDetails._all_field_names_ = set(["file_transfer_id"]) FileTransfersTransferDownloadDetails._all_fields_ = [ - ( - "file_transfer_id", - FileTransfersTransferDownloadDetails.file_transfer_id.validator, - ) + ("file_transfer_id", FileTransfersTransferDownloadDetails.file_transfer_id.validator) ] FileTransfersTransferDownloadType.description.validator = bv.String() @@ -108086,10 +109064,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) FolderLinkRestrictionPolicyChangedDetails._all_fields_ = [ ("new_value", FolderLinkRestrictionPolicyChangedDetails.new_value.validator), - ( - "previous_value", - FolderLinkRestrictionPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", FolderLinkRestrictionPolicyChangedDetails.previous_value.validator), ] FolderLinkRestrictionPolicyChangedType.description.validator = bv.String() @@ -108305,10 +109280,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyAddFolderFailedDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyAddFolderFailedDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyAddFolderFailedDetails.governance_policy_id.validator), ("name", GovernancePolicyAddFolderFailedDetails.name.validator), ("policy_type", GovernancePolicyAddFolderFailedDetails.policy_type.validator), ("folder", GovernancePolicyAddFolderFailedDetails.folder.validator), @@ -108334,10 +109306,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyAddFoldersDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyAddFoldersDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyAddFoldersDetails.governance_policy_id.validator), ("name", GovernancePolicyAddFoldersDetails.name.validator), ("policy_type", GovernancePolicyAddFoldersDetails.policy_type.validator), ("folders", GovernancePolicyAddFoldersDetails.folders.validator), @@ -108362,16 +109331,10 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyContentDisposedDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyContentDisposedDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyContentDisposedDetails.governance_policy_id.validator), ("name", GovernancePolicyContentDisposedDetails.name.validator), ("policy_type", GovernancePolicyContentDisposedDetails.policy_type.validator), - ( - "disposition_type", - GovernancePolicyContentDisposedDetails.disposition_type.validator, - ), + ("disposition_type", GovernancePolicyContentDisposedDetails.disposition_type.validator), ] GovernancePolicyContentDisposedType.description.validator = bv.String() @@ -108395,10 +109358,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyCreateDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyCreateDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyCreateDetails.governance_policy_id.validator), ("name", GovernancePolicyCreateDetails.name.validator), ("policy_type", GovernancePolicyCreateDetails.policy_type.validator), ("duration", GovernancePolicyCreateDetails.duration.validator), @@ -108422,10 +109382,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyDeleteDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyDeleteDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyDeleteDetails.governance_policy_id.validator), ("name", GovernancePolicyDeleteDetails.name.validator), ("policy_type", GovernancePolicyDeleteDetails.policy_type.validator), ] @@ -108453,10 +109410,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyEditDetailsDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyEditDetailsDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyEditDetailsDetails.governance_policy_id.validator), ("name", GovernancePolicyEditDetailsDetails.name.validator), ("policy_type", GovernancePolicyEditDetailsDetails.policy_type.validator), ("attribute", GovernancePolicyEditDetailsDetails.attribute.validator), @@ -108485,10 +109439,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyEditDurationDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyEditDurationDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyEditDurationDetails.governance_policy_id.validator), ("name", GovernancePolicyEditDurationDetails.name.validator), ("policy_type", GovernancePolicyEditDurationDetails.policy_type.validator), ("previous_value", GovernancePolicyEditDurationDetails.previous_value.validator), @@ -108514,10 +109465,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyExportCreatedDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyExportCreatedDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyExportCreatedDetails.governance_policy_id.validator), ("name", GovernancePolicyExportCreatedDetails.name.validator), ("policy_type", GovernancePolicyExportCreatedDetails.policy_type.validator), ("export_name", GovernancePolicyExportCreatedDetails.export_name.validator), @@ -108542,10 +109490,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyExportRemovedDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyExportRemovedDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyExportRemovedDetails.governance_policy_id.validator), ("name", GovernancePolicyExportRemovedDetails.name.validator), ("policy_type", GovernancePolicyExportRemovedDetails.policy_type.validator), ("export_name", GovernancePolicyExportRemovedDetails.export_name.validator), @@ -108572,10 +109517,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyRemoveFoldersDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyRemoveFoldersDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyRemoveFoldersDetails.governance_policy_id.validator), ("name", GovernancePolicyRemoveFoldersDetails.name.validator), ("policy_type", GovernancePolicyRemoveFoldersDetails.policy_type.validator), ("folders", GovernancePolicyRemoveFoldersDetails.folders.validator), @@ -108599,10 +109541,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GovernancePolicyReportCreatedDetails._all_fields_ = [ - ( - "governance_policy_id", - GovernancePolicyReportCreatedDetails.governance_policy_id.validator, - ), + ("governance_policy_id", GovernancePolicyReportCreatedDetails.governance_policy_id.validator), ("name", GovernancePolicyReportCreatedDetails.name.validator), ("policy_type", GovernancePolicyReportCreatedDetails.policy_type.validator), ] @@ -108767,23 +109706,14 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) GroupExternalSharingSettingOverrideChangedDetails._all_fields_ = [ - ( - "new_value", - GroupExternalSharingSettingOverrideChangedDetails.new_value.validator, - ), - ( - "previous_value", - GroupExternalSharingSettingOverrideChangedDetails.previous_value.validator, - ), + ("new_value", GroupExternalSharingSettingOverrideChangedDetails.new_value.validator), + ("previous_value", GroupExternalSharingSettingOverrideChangedDetails.previous_value.validator), ] GroupExternalSharingSettingOverrideChangedType.description.validator = bv.String() GroupExternalSharingSettingOverrideChangedType._all_field_names_ = set(["description"]) GroupExternalSharingSettingOverrideChangedType._all_fields_ = [ - ( - "description", - GroupExternalSharingSettingOverrideChangedType.description.validator, - ) + ("description", GroupExternalSharingSettingOverrideChangedType.description.validator) ] GroupJoinPolicy._open_validator = bv.Void() @@ -108939,10 +109869,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) GuestAdminSignedInViaTrustedTeamsDetails._all_fields_ = [ ("team_name", GuestAdminSignedInViaTrustedTeamsDetails.team_name.validator), - ( - "trusted_team_name", - GuestAdminSignedInViaTrustedTeamsDetails.trusted_team_name.validator, - ), + ("trusted_team_name", GuestAdminSignedInViaTrustedTeamsDetails.trusted_team_name.validator), ] GuestAdminSignedInViaTrustedTeamsType.description.validator = bv.String() @@ -108961,10 +109888,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) GuestAdminSignedOutViaTrustedTeamsDetails._all_fields_ = [ ("team_name", GuestAdminSignedOutViaTrustedTeamsDetails.team_name.validator), - ( - "trusted_team_name", - GuestAdminSignedOutViaTrustedTeamsDetails.trusted_team_name.validator, - ), + ("trusted_team_name", GuestAdminSignedOutViaTrustedTeamsDetails.trusted_team_name.validator), ] GuestAdminSignedOutViaTrustedTeamsType.description.validator = bv.String() @@ -109072,10 +109996,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) InviteAcceptanceEmailPolicyChangedDetails._all_fields_ = [ ("new_value", InviteAcceptanceEmailPolicyChangedDetails.new_value.validator), - ( - "previous_value", - InviteAcceptanceEmailPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", InviteAcceptanceEmailPolicyChangedDetails.previous_value.validator), ] InviteAcceptanceEmailPolicyChangedType.description.validator = bv.String() @@ -109130,10 +110051,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("linked_devices", JoinTeamDetails.linked_devices.validator), ("linked_shared_folders", JoinTeamDetails.linked_shared_folders.validator), ("was_linked_apps_truncated", JoinTeamDetails.was_linked_apps_truncated.validator), - ( - "was_linked_devices_truncated", - JoinTeamDetails.was_linked_devices_truncated.validator, - ), + ("was_linked_devices_truncated", JoinTeamDetails.was_linked_devices_truncated.validator), ( "was_linked_shared_folders_truncated", JoinTeamDetails.was_linked_shared_folders_truncated.validator, @@ -109593,10 +110511,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) MalwareExclusionState._all_fields_ = [ - ( - "excluded_file_hashes_count", - MalwareExclusionState.excluded_file_hashes_count.validator, - ), + ("excluded_file_hashes_count", MalwareExclusionState.excluded_file_hashes_count.validator), ( "file_path_from_last_exclusion", MalwareExclusionState.file_path_from_last_exclusion.validator, @@ -109632,10 +110547,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) MediaHubAddingPeoplePolicyChangedDetails._all_fields_ = [ ("new_value", MediaHubAddingPeoplePolicyChangedDetails.new_value.validator), - ( - "previous_value", - MediaHubAddingPeoplePolicyChangedDetails.previous_value.validator, - ), + ("previous_value", MediaHubAddingPeoplePolicyChangedDetails.previous_value.validator), ] MediaHubAddingPeoplePolicyChangedType.description.validator = bv.String() @@ -109713,10 +110625,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) MediaHubLinkSharingPolicyChangedDetails._all_fields_ = [ ("new_value", MediaHubLinkSharingPolicyChangedDetails.new_value.validator), - ( - "previous_value", - MediaHubLinkSharingPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", MediaHubLinkSharingPolicyChangedDetails.previous_value.validator), ] MediaHubLinkSharingPolicyChangedType.description.validator = bv.String() @@ -109725,6 +110634,19 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("description", MediaHubLinkSharingPolicyChangedType.description.validator) ] +MediaHubProjectLogInfo.project_name.validator = bv.String() +MediaHubProjectLogInfo.project_id.validator = bv.Nullable(bv.String()) +MediaHubProjectLogInfo._all_field_names_ = set( + [ + "project_name", + "project_id", + ] +) +MediaHubProjectLogInfo._all_fields_ = [ + ("project_name", MediaHubProjectLogInfo.project_name.validator), + ("project_id", MediaHubProjectLogInfo.project_id.validator), +] + MediaHubProjectRole._editor_validator = bv.Void() MediaHubProjectRole._owner_validator = bv.Void() MediaHubProjectRole._reviewer_validator = bv.Void() @@ -109741,8 +110663,11 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): MediaHubProjectRole.reviewer = MediaHubProjectRole("reviewer") MediaHubProjectRole.other = MediaHubProjectRole("other") -MediaHubProjectTeamAddDetails._all_field_names_ = set([]) -MediaHubProjectTeamAddDetails._all_fields_ = [] +MediaHubProjectTeamAddDetails.project.validator = bv.Nullable(MediaHubProjectLogInfo_validator) +MediaHubProjectTeamAddDetails._all_field_names_ = set(["project"]) +MediaHubProjectTeamAddDetails._all_fields_ = [ + ("project", MediaHubProjectTeamAddDetails.project.validator) +] MediaHubProjectTeamAddType.description.validator = bv.String() MediaHubProjectTeamAddType._all_field_names_ = set(["description"]) @@ -109750,8 +110675,11 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("description", MediaHubProjectTeamAddType.description.validator) ] -MediaHubProjectTeamDeleteDetails._all_field_names_ = set([]) -MediaHubProjectTeamDeleteDetails._all_fields_ = [] +MediaHubProjectTeamDeleteDetails.project.validator = bv.Nullable(MediaHubProjectLogInfo_validator) +MediaHubProjectTeamDeleteDetails._all_field_names_ = set(["project"]) +MediaHubProjectTeamDeleteDetails._all_fields_ = [ + ("project", MediaHubProjectTeamDeleteDetails.project.validator) +] MediaHubProjectTeamDeleteType.description.validator = bv.String() MediaHubProjectTeamDeleteType._all_field_names_ = set(["description"]) @@ -109761,15 +110689,20 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): MediaHubProjectTeamRoleChangedDetails.previous_role.validator = MediaHubProjectRole_validator MediaHubProjectTeamRoleChangedDetails.new_role.validator = MediaHubProjectRole_validator +MediaHubProjectTeamRoleChangedDetails.project.validator = bv.Nullable( + MediaHubProjectLogInfo_validator +) MediaHubProjectTeamRoleChangedDetails._all_field_names_ = set( [ "previous_role", "new_role", + "project", ] ) MediaHubProjectTeamRoleChangedDetails._all_fields_ = [ ("previous_role", MediaHubProjectTeamRoleChangedDetails.previous_role.validator), ("new_role", MediaHubProjectTeamRoleChangedDetails.new_role.validator), + ("project", MediaHubProjectTeamRoleChangedDetails.project.validator), ] MediaHubProjectTeamRoleChangedType.description.validator = bv.String() @@ -109801,20 +110734,22 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): MediaHubSharedLinkAudience_validator ) MediaHubSharedLinkAudienceChangedDetails.new_value.validator = MediaHubSharedLinkAudience_validator +MediaHubSharedLinkAudienceChangedDetails.project.validator = bv.Nullable( + MediaHubProjectLogInfo_validator +) MediaHubSharedLinkAudienceChangedDetails._all_field_names_ = set( [ "target_type", "previous_value", "new_value", + "project", ] ) MediaHubSharedLinkAudienceChangedDetails._all_fields_ = [ ("target_type", MediaHubSharedLinkAudienceChangedDetails.target_type.validator), - ( - "previous_value", - MediaHubSharedLinkAudienceChangedDetails.previous_value.validator, - ), + ("previous_value", MediaHubSharedLinkAudienceChangedDetails.previous_value.validator), ("new_value", MediaHubSharedLinkAudienceChangedDetails.new_value.validator), + ("project", MediaHubSharedLinkAudienceChangedDetails.project.validator), ] MediaHubSharedLinkAudienceChangedType.description.validator = bv.String() @@ -109825,15 +110760,18 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): MediaHubSharedLinkCreatedDetails.target_type.validator = MediaHubSharedLinkTargetType_validator MediaHubSharedLinkCreatedDetails.audience.validator = MediaHubSharedLinkAudience_validator +MediaHubSharedLinkCreatedDetails.project.validator = bv.Nullable(MediaHubProjectLogInfo_validator) MediaHubSharedLinkCreatedDetails._all_field_names_ = set( [ "target_type", "audience", + "project", ] ) MediaHubSharedLinkCreatedDetails._all_fields_ = [ ("target_type", MediaHubSharedLinkCreatedDetails.target_type.validator), ("audience", MediaHubSharedLinkCreatedDetails.audience.validator), + ("project", MediaHubSharedLinkCreatedDetails.project.validator), ] MediaHubSharedLinkCreatedType.description.validator = bv.String() @@ -109864,23 +110802,22 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): MediaHubSharedLinkDownloadSettingChangedDetails.new_value.validator = ( MediaHubSharedLinkDownloadSetting_validator ) +MediaHubSharedLinkDownloadSettingChangedDetails.project.validator = bv.Nullable( + MediaHubProjectLogInfo_validator +) MediaHubSharedLinkDownloadSettingChangedDetails._all_field_names_ = set( [ "target_type", "previous_value", "new_value", + "project", ] ) MediaHubSharedLinkDownloadSettingChangedDetails._all_fields_ = [ - ( - "target_type", - MediaHubSharedLinkDownloadSettingChangedDetails.target_type.validator, - ), - ( - "previous_value", - MediaHubSharedLinkDownloadSettingChangedDetails.previous_value.validator, - ), + ("target_type", MediaHubSharedLinkDownloadSettingChangedDetails.target_type.validator), + ("previous_value", MediaHubSharedLinkDownloadSettingChangedDetails.previous_value.validator), ("new_value", MediaHubSharedLinkDownloadSettingChangedDetails.new_value.validator), + ("project", MediaHubSharedLinkDownloadSettingChangedDetails.project.validator), ] MediaHubSharedLinkDownloadSettingChangedType.description.validator = bv.String() @@ -109890,9 +110827,16 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] MediaHubSharedLinkRevokedDetails.target_type.validator = MediaHubSharedLinkTargetType_validator -MediaHubSharedLinkRevokedDetails._all_field_names_ = set(["target_type"]) +MediaHubSharedLinkRevokedDetails.project.validator = bv.Nullable(MediaHubProjectLogInfo_validator) +MediaHubSharedLinkRevokedDetails._all_field_names_ = set( + [ + "target_type", + "project", + ] +) MediaHubSharedLinkRevokedDetails._all_fields_ = [ - ("target_type", MediaHubSharedLinkRevokedDetails.target_type.validator) + ("target_type", MediaHubSharedLinkRevokedDetails.target_type.validator), + ("project", MediaHubSharedLinkRevokedDetails.project.validator), ] MediaHubSharedLinkRevokedType.description.validator = bv.String() @@ -109922,10 +110866,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) MemberAccessDetailsCreateReportFailedDetails._all_field_names_ = set(["failure_reason"]) MemberAccessDetailsCreateReportFailedDetails._all_fields_ = [ - ( - "failure_reason", - MemberAccessDetailsCreateReportFailedDetails.failure_reason.validator, - ) + ("failure_reason", MemberAccessDetailsCreateReportFailedDetails.failure_reason.validator) ] MemberAccessDetailsCreateReportFailedType.description.validator = bv.String() @@ -110116,6 +111057,15 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("description", MemberDeleteProfilePhotoType.description.validator) ] +MemberFolderContentsAccessedDetails._all_field_names_ = set([]) +MemberFolderContentsAccessedDetails._all_fields_ = [] + +MemberFolderContentsAccessedType.description.validator = bv.String() +MemberFolderContentsAccessedType._all_field_names_ = set(["description"]) +MemberFolderContentsAccessedType._all_fields_ = [ + ("description", MemberFolderContentsAccessedType.description.validator) +] + MemberPermanentlyDeleteAccountContentsDetails._all_field_names_ = set([]) MemberPermanentlyDeleteAccountContentsDetails._all_fields_ = [] @@ -110269,10 +111219,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) MemberSpaceLimitsChangeCapsTypePolicyDetails._all_fields_ = [ - ( - "previous_value", - MemberSpaceLimitsChangeCapsTypePolicyDetails.previous_value.validator, - ), + ("previous_value", MemberSpaceLimitsChangeCapsTypePolicyDetails.previous_value.validator), ("new_value", MemberSpaceLimitsChangeCapsTypePolicyDetails.new_value.validator), ] @@ -110291,10 +111238,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) MemberSpaceLimitsChangeCustomQuotaDetails._all_fields_ = [ - ( - "previous_value", - MemberSpaceLimitsChangeCustomQuotaDetails.previous_value.validator, - ), + ("previous_value", MemberSpaceLimitsChangeCustomQuotaDetails.previous_value.validator), ("new_value", MemberSpaceLimitsChangeCustomQuotaDetails.new_value.validator), ] @@ -110500,10 +111444,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) MicrosoftOfficeAddinChangePolicyDetails._all_fields_ = [ ("new_value", MicrosoftOfficeAddinChangePolicyDetails.new_value.validator), - ( - "previous_value", - MicrosoftOfficeAddinChangePolicyDetails.previous_value.validator, - ), + ("previous_value", MicrosoftOfficeAddinChangePolicyDetails.previous_value.validator), ] MicrosoftOfficeAddinChangePolicyType.description.validator = bv.String() @@ -111118,14 +112059,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) PaperContentRemoveFromFolderDetails._all_fields_ = [ ("event_uuid", PaperContentRemoveFromFolderDetails.event_uuid.validator), - ( - "target_asset_index", - PaperContentRemoveFromFolderDetails.target_asset_index.validator, - ), - ( - "parent_asset_index", - PaperContentRemoveFromFolderDetails.parent_asset_index.validator, - ), + ("target_asset_index", PaperContentRemoveFromFolderDetails.target_asset_index.validator), + ("parent_asset_index", PaperContentRemoveFromFolderDetails.parent_asset_index.validator), ] PaperContentRemoveFromFolderType.description.validator = bv.String() @@ -111284,14 +112219,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) PaperDocChangeSharingPolicyDetails._all_fields_ = [ ("event_uuid", PaperDocChangeSharingPolicyDetails.event_uuid.validator), - ( - "public_sharing_policy", - PaperDocChangeSharingPolicyDetails.public_sharing_policy.validator, - ), - ( - "team_sharing_policy", - PaperDocChangeSharingPolicyDetails.team_sharing_policy.validator, - ), + ("public_sharing_policy", PaperDocChangeSharingPolicyDetails.public_sharing_policy.validator), + ("team_sharing_policy", PaperDocChangeSharingPolicyDetails.team_sharing_policy.validator), ] PaperDocChangeSharingPolicyType.description.validator = bv.String() @@ -111312,10 +112241,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) PaperDocChangeSubscriptionDetails._all_fields_ = [ ("event_uuid", PaperDocChangeSubscriptionDetails.event_uuid.validator), - ( - "new_subscription_level", - PaperDocChangeSubscriptionDetails.new_subscription_level.validator, - ), + ("new_subscription_level", PaperDocChangeSubscriptionDetails.new_subscription_level.validator), ( "previous_subscription_level", PaperDocChangeSubscriptionDetails.previous_subscription_level.validator, @@ -111906,10 +112832,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) PasswordStrengthRequirementsChangePolicyDetails._all_fields_ = [ - ( - "previous_value", - PasswordStrengthRequirementsChangePolicyDetails.previous_value.validator, - ), + ("previous_value", PasswordStrengthRequirementsChangePolicyDetails.previous_value.validator), ("new_value", PasswordStrengthRequirementsChangePolicyDetails.new_value.validator), ] @@ -112135,6 +113058,90 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("description", ProductRemovedFromMemberType.description.validator) ] +ProtectActionAddCollaboratorDetails.action_id.validator = bv.String() +ProtectActionAddCollaboratorDetails._all_field_names_ = set(["action_id"]) +ProtectActionAddCollaboratorDetails._all_fields_ = [ + ("action_id", ProtectActionAddCollaboratorDetails.action_id.validator) +] + +ProtectActionAddCollaboratorType.description.validator = bv.String() +ProtectActionAddCollaboratorType._all_field_names_ = set(["description"]) +ProtectActionAddCollaboratorType._all_fields_ = [ + ("description", ProtectActionAddCollaboratorType.description.validator) +] + +ProtectActionAddLinkDetails.action_id.validator = bv.String() +ProtectActionAddLinkDetails._all_field_names_ = set(["action_id"]) +ProtectActionAddLinkDetails._all_fields_ = [ + ("action_id", ProtectActionAddLinkDetails.action_id.validator) +] + +ProtectActionAddLinkType.description.validator = bv.String() +ProtectActionAddLinkType._all_field_names_ = set(["description"]) +ProtectActionAddLinkType._all_fields_ = [ + ("description", ProtectActionAddLinkType.description.validator) +] + +ProtectActionDeleteDetails.action_id.validator = bv.String() +ProtectActionDeleteDetails._all_field_names_ = set(["action_id"]) +ProtectActionDeleteDetails._all_fields_ = [ + ("action_id", ProtectActionDeleteDetails.action_id.validator) +] + +ProtectActionDeleteType.description.validator = bv.String() +ProtectActionDeleteType._all_field_names_ = set(["description"]) +ProtectActionDeleteType._all_fields_ = [ + ("description", ProtectActionDeleteType.description.validator) +] + +ProtectActionExportDetails.action_id.validator = bv.String() +ProtectActionExportDetails._all_field_names_ = set(["action_id"]) +ProtectActionExportDetails._all_fields_ = [ + ("action_id", ProtectActionExportDetails.action_id.validator) +] + +ProtectActionExportType.description.validator = bv.String() +ProtectActionExportType._all_field_names_ = set(["description"]) +ProtectActionExportType._all_fields_ = [ + ("description", ProtectActionExportType.description.validator) +] + +ProtectActionRemoveCollaboratorDetails.action_id.validator = bv.String() +ProtectActionRemoveCollaboratorDetails._all_field_names_ = set(["action_id"]) +ProtectActionRemoveCollaboratorDetails._all_fields_ = [ + ("action_id", ProtectActionRemoveCollaboratorDetails.action_id.validator) +] + +ProtectActionRemoveCollaboratorType.description.validator = bv.String() +ProtectActionRemoveCollaboratorType._all_field_names_ = set(["description"]) +ProtectActionRemoveCollaboratorType._all_fields_ = [ + ("description", ProtectActionRemoveCollaboratorType.description.validator) +] + +ProtectActionRemoveLinkDetails.action_id.validator = bv.String() +ProtectActionRemoveLinkDetails._all_field_names_ = set(["action_id"]) +ProtectActionRemoveLinkDetails._all_fields_ = [ + ("action_id", ProtectActionRemoveLinkDetails.action_id.validator) +] + +ProtectActionRemoveLinkType.description.validator = bv.String() +ProtectActionRemoveLinkType._all_field_names_ = set(["description"]) +ProtectActionRemoveLinkType._all_fields_ = [ + ("description", ProtectActionRemoveLinkType.description.validator) +] + +ProtectActionStopSharingDetails.action_id.validator = bv.String() +ProtectActionStopSharingDetails._all_field_names_ = set(["action_id"]) +ProtectActionStopSharingDetails._all_fields_ = [ + ("action_id", ProtectActionStopSharingDetails.action_id.validator) +] + +ProtectActionStopSharingType.description.validator = bv.String() +ProtectActionStopSharingType._all_field_names_ = set(["description"]) +ProtectActionStopSharingType._all_fields_ = [ + ("description", ProtectActionStopSharingType.description.validator) +] + ProtectInternalDomainsChangedDetails.domains_added.validator = bv.Nullable(bv.List(bv.String())) ProtectInternalDomainsChangedDetails.domains_removed.validator = bv.Nullable(bv.List(bv.String())) ProtectInternalDomainsChangedDetails._all_field_names_ = set( @@ -112187,10 +113194,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) RansomwareAlertCreateReportFailedDetails._all_field_names_ = set(["failure_reason"]) RansomwareAlertCreateReportFailedDetails._all_fields_ = [ - ( - "failure_reason", - RansomwareAlertCreateReportFailedDetails.failure_reason.validator, - ) + ("failure_reason", RansomwareAlertCreateReportFailedDetails.failure_reason.validator) ] RansomwareAlertCreateReportFailedType.description.validator = bv.String() @@ -112258,10 +113262,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) RecipientsConfiguration._all_fields_ = [ - ( - "recipient_setting_type", - RecipientsConfiguration.recipient_setting_type.validator, - ), + ("recipient_setting_type", RecipientsConfiguration.recipient_setting_type.validator), ("emails", RecipientsConfiguration.emails.validator), ("groups", RecipientsConfiguration.groups.validator), ] @@ -112531,10 +113532,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): RewindFolderDetails.rewind_folder_target_ts_ms.validator = common.DropboxTimestamp_validator RewindFolderDetails._all_field_names_ = set(["rewind_folder_target_ts_ms"]) RewindFolderDetails._all_fields_ = [ - ( - "rewind_folder_target_ts_ms", - RewindFolderDetails.rewind_folder_target_ts_ms.validator, - ) + ("rewind_folder_target_ts_ms", RewindFolderDetails.rewind_folder_target_ts_ms.validator) ] RewindFolderType.description.validator = bv.String() @@ -112732,10 +113730,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): SendAndTrackLinkDeletedDetails.shared_content_link.validator = bv.String() SendAndTrackLinkDeletedDetails._all_field_names_ = set(["shared_content_link"]) SendAndTrackLinkDeletedDetails._all_fields_ = [ - ( - "shared_content_link", - SendAndTrackLinkDeletedDetails.shared_content_link.validator, - ) + ("shared_content_link", SendAndTrackLinkDeletedDetails.shared_content_link.validator) ] SendAndTrackLinkDeletedType.description.validator = bv.String() @@ -112857,10 +113852,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SendExternalSharingPolicyChangedDetails._all_fields_ = [ ("new_value", SendExternalSharingPolicyChangedDetails.new_value.validator), - ( - "previous_value", - SendExternalSharingPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", SendExternalSharingPolicyChangedDetails.previous_value.validator), ] SendExternalSharingPolicyChangedType.description.validator = bv.String() @@ -112935,18 +113927,12 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) SfAllowNonMembersToViewSharedLinksDetails._all_fields_ = [ - ( - "target_asset_index", - SfAllowNonMembersToViewSharedLinksDetails.target_asset_index.validator, - ), + ("target_asset_index", SfAllowNonMembersToViewSharedLinksDetails.target_asset_index.validator), ( "original_folder_name", SfAllowNonMembersToViewSharedLinksDetails.original_folder_name.validator, ), - ( - "shared_folder_type", - SfAllowNonMembersToViewSharedLinksDetails.shared_folder_type.validator, - ), + ("shared_folder_type", SfAllowNonMembersToViewSharedLinksDetails.shared_folder_type.validator), ] SfAllowNonMembersToViewSharedLinksType.description.validator = bv.String() @@ -112969,14 +113955,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SfExternalInviteWarnDetails._all_fields_ = [ ("target_asset_index", SfExternalInviteWarnDetails.target_asset_index.validator), - ( - "original_folder_name", - SfExternalInviteWarnDetails.original_folder_name.validator, - ), - ( - "new_sharing_permission", - SfExternalInviteWarnDetails.new_sharing_permission.validator, - ), + ("original_folder_name", SfExternalInviteWarnDetails.original_folder_name.validator), + ("new_sharing_permission", SfExternalInviteWarnDetails.new_sharing_permission.validator), ( "previous_sharing_permission", SfExternalInviteWarnDetails.previous_sharing_permission.validator, @@ -113003,18 +113983,12 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SfFbInviteChangeRoleDetails._all_fields_ = [ ("target_asset_index", SfFbInviteChangeRoleDetails.target_asset_index.validator), - ( - "original_folder_name", - SfFbInviteChangeRoleDetails.original_folder_name.validator, - ), + ("original_folder_name", SfFbInviteChangeRoleDetails.original_folder_name.validator), ( "previous_sharing_permission", SfFbInviteChangeRoleDetails.previous_sharing_permission.validator, ), - ( - "new_sharing_permission", - SfFbInviteChangeRoleDetails.new_sharing_permission.validator, - ), + ("new_sharing_permission", SfFbInviteChangeRoleDetails.new_sharing_permission.validator), ] SfFbInviteChangeRoleType.description.validator = bv.String() @@ -113101,14 +114075,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SfTeamInviteChangeRoleDetails._all_fields_ = [ ("target_asset_index", SfTeamInviteChangeRoleDetails.target_asset_index.validator), - ( - "original_folder_name", - SfTeamInviteChangeRoleDetails.original_folder_name.validator, - ), - ( - "new_sharing_permission", - SfTeamInviteChangeRoleDetails.new_sharing_permission.validator, - ), + ("original_folder_name", SfTeamInviteChangeRoleDetails.original_folder_name.validator), + ("new_sharing_permission", SfTeamInviteChangeRoleDetails.new_sharing_permission.validator), ( "previous_sharing_permission", SfTeamInviteChangeRoleDetails.previous_sharing_permission.validator, @@ -113168,10 +114136,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SfTeamJoinFromOobLinkDetails._all_fields_ = [ ("target_asset_index", SfTeamJoinFromOobLinkDetails.target_asset_index.validator), - ( - "original_folder_name", - SfTeamJoinFromOobLinkDetails.original_folder_name.validator, - ), + ("original_folder_name", SfTeamJoinFromOobLinkDetails.original_folder_name.validator), ("token_key", SfTeamJoinFromOobLinkDetails.token_key.validator), ("sharing_permission", SfTeamJoinFromOobLinkDetails.sharing_permission.validator), ] @@ -113277,10 +114242,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SharedContentChangeDownloadsPolicyDetails._all_fields_ = [ ("new_value", SharedContentChangeDownloadsPolicyDetails.new_value.validator), - ( - "previous_value", - SharedContentChangeDownloadsPolicyDetails.previous_value.validator, - ), + ("previous_value", SharedContentChangeDownloadsPolicyDetails.previous_value.validator), ] SharedContentChangeDownloadsPolicyType.description.validator = bv.String() @@ -113306,10 +114268,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "previous_access_level", SharedContentChangeInviteeRoleDetails.previous_access_level.validator, ), - ( - "new_access_level", - SharedContentChangeInviteeRoleDetails.new_access_level.validator, - ), + ("new_access_level", SharedContentChangeInviteeRoleDetails.new_access_level.validator), ("invitee", SharedContentChangeInviteeRoleDetails.invitee.validator), ] @@ -113383,14 +114342,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) SharedContentChangeMemberRoleDetails._all_fields_ = [ - ( - "previous_access_level", - SharedContentChangeMemberRoleDetails.previous_access_level.validator, - ), - ( - "new_access_level", - SharedContentChangeMemberRoleDetails.new_access_level.validator, - ), + ("previous_access_level", SharedContentChangeMemberRoleDetails.previous_access_level.validator), + ("new_access_level", SharedContentChangeMemberRoleDetails.new_access_level.validator), ] SharedContentChangeMemberRoleType.description.validator = bv.String() @@ -113411,10 +114364,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SharedContentChangeViewerInfoPolicyDetails._all_fields_ = [ ("new_value", SharedContentChangeViewerInfoPolicyDetails.new_value.validator), - ( - "previous_value", - SharedContentChangeViewerInfoPolicyDetails.previous_value.validator, - ), + ("previous_value", SharedContentChangeViewerInfoPolicyDetails.previous_value.validator), ] SharedContentChangeViewerInfoPolicyType.description.validator = bv.String() @@ -113426,10 +114376,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): SharedContentClaimInvitationDetails.shared_content_link.validator = bv.Nullable(bv.String()) SharedContentClaimInvitationDetails._all_field_names_ = set(["shared_content_link"]) SharedContentClaimInvitationDetails._all_fields_ = [ - ( - "shared_content_link", - SharedContentClaimInvitationDetails.shared_content_link.validator, - ) + ("shared_content_link", SharedContentClaimInvitationDetails.shared_content_link.validator) ] SharedContentClaimInvitationType.description.validator = bv.String() @@ -113453,10 +114400,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): SharedContentCopyDetails._all_fields_ = [ ("shared_content_link", SharedContentCopyDetails.shared_content_link.validator), ("shared_content_owner", SharedContentCopyDetails.shared_content_owner.validator), - ( - "shared_content_access_level", - SharedContentCopyDetails.shared_content_access_level.validator, - ), + ("shared_content_access_level", SharedContentCopyDetails.shared_content_access_level.validator), ("destination_path", SharedContentCopyDetails.destination_path.validator), ] @@ -113476,10 +114420,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SharedContentDownloadDetails._all_fields_ = [ ("shared_content_link", SharedContentDownloadDetails.shared_content_link.validator), - ( - "shared_content_owner", - SharedContentDownloadDetails.shared_content_owner.validator, - ), + ("shared_content_owner", SharedContentDownloadDetails.shared_content_owner.validator), ( "shared_content_access_level", SharedContentDownloadDetails.shared_content_access_level.validator, @@ -113556,10 +114497,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): SharedContentRequestAccessDetails.shared_content_link.validator = bv.Nullable(bv.String()) SharedContentRequestAccessDetails._all_field_names_ = set(["shared_content_link"]) SharedContentRequestAccessDetails._all_fields_ = [ - ( - "shared_content_link", - SharedContentRequestAccessDetails.shared_content_link.validator, - ) + ("shared_content_link", SharedContentRequestAccessDetails.shared_content_link.validator) ] SharedContentRequestAccessType.description.validator = bv.String() @@ -113631,10 +114569,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): SharedContentViewDetails._all_fields_ = [ ("shared_content_link", SharedContentViewDetails.shared_content_link.validator), ("shared_content_owner", SharedContentViewDetails.shared_content_owner.validator), - ( - "shared_content_access_level", - SharedContentViewDetails.shared_content_access_level.validator, - ), + ("shared_content_access_level", SharedContentViewDetails.shared_content_access_level.validator), ] SharedContentViewType.description.validator = bv.String() @@ -113675,23 +114610,14 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) SharedFolderChangeMembersInheritancePolicyDetails._all_fields_ = [ - ( - "new_value", - SharedFolderChangeMembersInheritancePolicyDetails.new_value.validator, - ), - ( - "previous_value", - SharedFolderChangeMembersInheritancePolicyDetails.previous_value.validator, - ), + ("new_value", SharedFolderChangeMembersInheritancePolicyDetails.new_value.validator), + ("previous_value", SharedFolderChangeMembersInheritancePolicyDetails.previous_value.validator), ] SharedFolderChangeMembersInheritancePolicyType.description.validator = bv.String() SharedFolderChangeMembersInheritancePolicyType._all_field_names_ = set(["description"]) SharedFolderChangeMembersInheritancePolicyType._all_fields_ = [ - ( - "description", - SharedFolderChangeMembersInheritancePolicyType.description.validator, - ) + ("description", SharedFolderChangeMembersInheritancePolicyType.description.validator) ] SharedFolderChangeMembersManagementPolicyDetails.new_value.validator = ( @@ -113708,10 +114634,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SharedFolderChangeMembersManagementPolicyDetails._all_fields_ = [ ("new_value", SharedFolderChangeMembersManagementPolicyDetails.new_value.validator), - ( - "previous_value", - SharedFolderChangeMembersManagementPolicyDetails.previous_value.validator, - ), + ("previous_value", SharedFolderChangeMembersManagementPolicyDetails.previous_value.validator), ] SharedFolderChangeMembersManagementPolicyType.description.validator = bv.String() @@ -113820,10 +114743,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) SharedFolderTransferOwnershipDetails._all_fields_ = [ - ( - "previous_owner_email", - SharedFolderTransferOwnershipDetails.previous_owner_email.validator, - ), + ("previous_owner_email", SharedFolderTransferOwnershipDetails.previous_owner_email.validator), ("new_owner_email", SharedFolderTransferOwnershipDetails.new_owner_email.validator), ] @@ -113891,10 +114811,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SharedLinkAddExpiryDetails._all_fields_ = [ ("new_value", SharedLinkAddExpiryDetails.new_value.validator), - ( - "is_consolidation_action", - SharedLinkAddExpiryDetails.is_consolidation_action.validator, - ), + ("is_consolidation_action", SharedLinkAddExpiryDetails.is_consolidation_action.validator), ] SharedLinkAddExpiryType.description.validator = bv.String() @@ -113918,10 +114835,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): SharedLinkChangeExpiryDetails._all_fields_ = [ ("new_value", SharedLinkChangeExpiryDetails.new_value.validator), ("previous_value", SharedLinkChangeExpiryDetails.previous_value.validator), - ( - "is_consolidation_action", - SharedLinkChangeExpiryDetails.is_consolidation_action.validator, - ), + ("is_consolidation_action", SharedLinkChangeExpiryDetails.is_consolidation_action.validator), ] SharedLinkChangeExpiryType.description.validator = bv.String() @@ -113972,10 +114886,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SharedLinkCreateDetails._all_field_names_ = set(["shared_link_access_level"]) SharedLinkCreateDetails._all_fields_ = [ - ( - "shared_link_access_level", - SharedLinkCreateDetails.shared_link_access_level.validator, - ) + ("shared_link_access_level", SharedLinkCreateDetails.shared_link_access_level.validator) ] SharedLinkCreateType.description.validator = bv.String() @@ -114012,10 +114923,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SharedLinkDefaultPermissionsPolicyChangedDetails._all_fields_ = [ ("new_value", SharedLinkDefaultPermissionsPolicyChangedDetails.new_value.validator), - ( - "previous_value", - SharedLinkDefaultPermissionsPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", SharedLinkDefaultPermissionsPolicyChangedDetails.previous_value.validator), ] SharedLinkDefaultPermissionsPolicyChangedType.description.validator = bv.String() @@ -114088,10 +114996,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "shared_content_access_level", SharedLinkSettingsAddExpirationDetails.shared_content_access_level.validator, ), - ( - "shared_content_link", - SharedLinkSettingsAddExpirationDetails.shared_content_link.validator, - ), + ("shared_content_link", SharedLinkSettingsAddExpirationDetails.shared_content_link.validator), ("new_value", SharedLinkSettingsAddExpirationDetails.new_value.validator), ] @@ -114116,10 +115021,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "shared_content_access_level", SharedLinkSettingsAddPasswordDetails.shared_content_access_level.validator, ), - ( - "shared_content_link", - SharedLinkSettingsAddPasswordDetails.shared_content_link.validator, - ), + ("shared_content_link", SharedLinkSettingsAddPasswordDetails.shared_content_link.validator), ] SharedLinkSettingsAddPasswordType.description.validator = bv.String() @@ -114207,15 +115109,9 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "shared_content_access_level", SharedLinkSettingsChangeAudienceDetails.shared_content_access_level.validator, ), - ( - "shared_content_link", - SharedLinkSettingsChangeAudienceDetails.shared_content_link.validator, - ), + ("shared_content_link", SharedLinkSettingsChangeAudienceDetails.shared_content_link.validator), ("new_value", SharedLinkSettingsChangeAudienceDetails.new_value.validator), - ( - "previous_value", - SharedLinkSettingsChangeAudienceDetails.previous_value.validator, - ), + ("previous_value", SharedLinkSettingsChangeAudienceDetails.previous_value.validator), ] SharedLinkSettingsChangeAudienceType.description.validator = bv.String() @@ -114252,10 +115148,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): SharedLinkSettingsChangeExpirationDetails.shared_content_link.validator, ), ("new_value", SharedLinkSettingsChangeExpirationDetails.new_value.validator), - ( - "previous_value", - SharedLinkSettingsChangeExpirationDetails.previous_value.validator, - ), + ("previous_value", SharedLinkSettingsChangeExpirationDetails.previous_value.validator), ] SharedLinkSettingsChangeExpirationType.description.validator = bv.String() @@ -114279,10 +115172,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "shared_content_access_level", SharedLinkSettingsChangePasswordDetails.shared_content_access_level.validator, ), - ( - "shared_content_link", - SharedLinkSettingsChangePasswordDetails.shared_content_link.validator, - ), + ("shared_content_link", SharedLinkSettingsChangePasswordDetails.shared_content_link.validator), ] SharedLinkSettingsChangePasswordType.description.validator = bv.String() @@ -114314,10 +115204,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "shared_content_link", SharedLinkSettingsRemoveExpirationDetails.shared_content_link.validator, ), - ( - "previous_value", - SharedLinkSettingsRemoveExpirationDetails.previous_value.validator, - ), + ("previous_value", SharedLinkSettingsRemoveExpirationDetails.previous_value.validator), ] SharedLinkSettingsRemoveExpirationType.description.validator = bv.String() @@ -114341,10 +115228,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "shared_content_access_level", SharedLinkSettingsRemovePasswordDetails.shared_content_access_level.validator, ), - ( - "shared_content_link", - SharedLinkSettingsRemovePasswordDetails.shared_content_link.validator, - ), + ("shared_content_link", SharedLinkSettingsRemovePasswordDetails.shared_content_link.validator), ] SharedLinkSettingsRemovePasswordType.description.validator = bv.String() @@ -114442,10 +115326,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) SharingChangeLinkAllowChangeExpirationPolicyDetails._all_fields_ = [ - ( - "new_value", - SharingChangeLinkAllowChangeExpirationPolicyDetails.new_value.validator, - ), + ("new_value", SharingChangeLinkAllowChangeExpirationPolicyDetails.new_value.validator), ( "previous_value", SharingChangeLinkAllowChangeExpirationPolicyDetails.previous_value.validator, @@ -114455,10 +115336,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): SharingChangeLinkAllowChangeExpirationPolicyType.description.validator = bv.String() SharingChangeLinkAllowChangeExpirationPolicyType._all_field_names_ = set(["description"]) SharingChangeLinkAllowChangeExpirationPolicyType._all_fields_ = [ - ( - "description", - SharingChangeLinkAllowChangeExpirationPolicyType.description.validator, - ) + ("description", SharingChangeLinkAllowChangeExpirationPolicyType.description.validator) ] SharingChangeLinkDefaultExpirationPolicyDetails.new_value.validator = ( @@ -114475,10 +115353,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SharingChangeLinkDefaultExpirationPolicyDetails._all_fields_ = [ ("new_value", SharingChangeLinkDefaultExpirationPolicyDetails.new_value.validator), - ( - "previous_value", - SharingChangeLinkDefaultExpirationPolicyDetails.previous_value.validator, - ), + ("previous_value", SharingChangeLinkDefaultExpirationPolicyDetails.previous_value.validator), ] SharingChangeLinkDefaultExpirationPolicyType.description.validator = bv.String() @@ -114501,10 +115376,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SharingChangeLinkEnforcePasswordPolicyDetails._all_fields_ = [ ("new_value", SharingChangeLinkEnforcePasswordPolicyDetails.new_value.validator), - ( - "previous_value", - SharingChangeLinkEnforcePasswordPolicyDetails.previous_value.validator, - ), + ("previous_value", SharingChangeLinkEnforcePasswordPolicyDetails.previous_value.validator), ] SharingChangeLinkEnforcePasswordPolicyType.description.validator = bv.String() @@ -114716,10 +115588,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) ShowcaseChangeExternalSharingPolicyDetails._all_fields_ = [ ("new_value", ShowcaseChangeExternalSharingPolicyDetails.new_value.validator), - ( - "previous_value", - ShowcaseChangeExternalSharingPolicyDetails.previous_value.validator, - ), + ("previous_value", ShowcaseChangeExternalSharingPolicyDetails.previous_value.validator), ] ShowcaseChangeExternalSharingPolicyType.description.validator = bv.String() @@ -115074,10 +115943,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SignExternalSharingPolicyChangedDetails._all_fields_ = [ ("new_value", SignExternalSharingPolicyChangedDetails.new_value.validator), - ( - "previous_value", - SignExternalSharingPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", SignExternalSharingPolicyChangedDetails.previous_value.validator), ] SignExternalSharingPolicyChangedType.description.validator = bv.String() @@ -115251,10 +116117,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) SignTemplateCreationPermissionChangedDetails._all_fields_ = [ ("new_value", SignTemplateCreationPermissionChangedDetails.new_value.validator), - ( - "previous_value", - SignTemplateCreationPermissionChangedDetails.previous_value.validator, - ), + ("previous_value", SignTemplateCreationPermissionChangedDetails.previous_value.validator), ] SignTemplateCreationPermissionChangedType.description.validator = bv.String() @@ -115466,10 +116329,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) SsoChangeCertDetails._all_fields_ = [ - ( - "previous_certificate_details", - SsoChangeCertDetails.previous_certificate_details.validator, - ), + ("previous_certificate_details", SsoChangeCertDetails.previous_certificate_details.validator), ("new_certificate_details", SsoChangeCertDetails.new_certificate_details.validator), ] @@ -115614,10 +116474,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) StackCrossTeamAccessPolicyChangedDetails._all_fields_ = [ ("new_value", StackCrossTeamAccessPolicyChangedDetails.new_value.validator), - ( - "previous_value", - StackCrossTeamAccessPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", StackCrossTeamAccessPolicyChangedDetails.previous_value.validator), ] StackCrossTeamAccessPolicyChangedType.description.validator = bv.String() @@ -115713,10 +116570,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): TeamEncryptionKeyActivateKeyDetails.key_management_type.validator = bv.String() TeamEncryptionKeyActivateKeyDetails._all_field_names_ = set(["key_management_type"]) TeamEncryptionKeyActivateKeyDetails._all_fields_ = [ - ( - "key_management_type", - TeamEncryptionKeyActivateKeyDetails.key_management_type.validator, - ) + ("key_management_type", TeamEncryptionKeyActivateKeyDetails.key_management_type.validator) ] TeamEncryptionKeyActivateKeyType.description.validator = bv.String() @@ -115980,14 +116834,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamFolderSpaceLimitsChangeCapsTypeDetails._all_fields_ = [ - ( - "previous_caps_type", - TeamFolderSpaceLimitsChangeCapsTypeDetails.previous_caps_type.validator, - ), - ( - "new_caps_type", - TeamFolderSpaceLimitsChangeCapsTypeDetails.new_caps_type.validator, - ), + ("previous_caps_type", TeamFolderSpaceLimitsChangeCapsTypeDetails.previous_caps_type.validator), + ("new_caps_type", TeamFolderSpaceLimitsChangeCapsTypeDetails.new_caps_type.validator), ] TeamFolderSpaceLimitsChangeCapsTypeType.description.validator = bv.String() @@ -116009,10 +116857,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "previous_limit_bytes", TeamFolderSpaceLimitsChangeLimitDetails.previous_limit_bytes.validator, ), - ( - "new_limit_bytes", - TeamFolderSpaceLimitsChangeLimitDetails.new_limit_bytes.validator, - ), + ("new_limit_bytes", TeamFolderSpaceLimitsChangeLimitDetails.new_limit_bytes.validator), ] TeamFolderSpaceLimitsChangeLimitType.description.validator = bv.String() @@ -116038,19 +116883,13 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "previous_target", TeamFolderSpaceLimitsChangeNotificationTargetDetails.previous_target.validator, ), - ( - "new_target", - TeamFolderSpaceLimitsChangeNotificationTargetDetails.new_target.validator, - ), + ("new_target", TeamFolderSpaceLimitsChangeNotificationTargetDetails.new_target.validator), ] TeamFolderSpaceLimitsChangeNotificationTargetType.description.validator = bv.String() TeamFolderSpaceLimitsChangeNotificationTargetType._all_field_names_ = set(["description"]) TeamFolderSpaceLimitsChangeNotificationTargetType._all_fields_ = [ - ( - "description", - TeamFolderSpaceLimitsChangeNotificationTargetType.description.validator, - ) + ("description", TeamFolderSpaceLimitsChangeNotificationTargetType.description.validator) ] TeamFoldersCreateReportDetails._all_field_names_ = set([]) @@ -116086,10 +116925,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) TeamInviteDetails._all_fields_ = [ ("invite_method", TeamInviteDetails.invite_method.validator), - ( - "additional_license_purchase", - TeamInviteDetails.additional_license_purchase.validator, - ), + ("additional_license_purchase", TeamInviteDetails.additional_license_purchase.validator), ] TeamLinkedAppLogInfo._field_names_ = set([]) @@ -116153,10 +116989,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) TeamMemberStorageRequestPolicyChangedDetails._all_fields_ = [ ("new_value", TeamMemberStorageRequestPolicyChangedDetails.new_value.validator), - ( - "previous_value", - TeamMemberStorageRequestPolicyChangedDetails.previous_value.validator, - ), + ("previous_value", TeamMemberStorageRequestPolicyChangedDetails.previous_value.validator), ] TeamMemberStorageRequestPolicyChangedType.description.validator = bv.String() @@ -116194,10 +117027,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) TeamMergeRequestAcceptedDetails._all_field_names_ = set(["request_accepted_details"]) TeamMergeRequestAcceptedDetails._all_fields_ = [ - ( - "request_accepted_details", - TeamMergeRequestAcceptedDetails.request_accepted_details.validator, - ) + ("request_accepted_details", TeamMergeRequestAcceptedDetails.request_accepted_details.validator) ] TeamMergeRequestAcceptedExtraDetails._primary_team_validator = ( @@ -116224,20 +117054,14 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamMergeRequestAcceptedShownToPrimaryTeamDetails._all_fields_ = [ - ( - "secondary_team", - TeamMergeRequestAcceptedShownToPrimaryTeamDetails.secondary_team.validator, - ), + ("secondary_team", TeamMergeRequestAcceptedShownToPrimaryTeamDetails.secondary_team.validator), ("sent_by", TeamMergeRequestAcceptedShownToPrimaryTeamDetails.sent_by.validator), ] TeamMergeRequestAcceptedShownToPrimaryTeamType.description.validator = bv.String() TeamMergeRequestAcceptedShownToPrimaryTeamType._all_field_names_ = set(["description"]) TeamMergeRequestAcceptedShownToPrimaryTeamType._all_fields_ = [ - ( - "description", - TeamMergeRequestAcceptedShownToPrimaryTeamType.description.validator, - ) + ("description", TeamMergeRequestAcceptedShownToPrimaryTeamType.description.validator) ] TeamMergeRequestAcceptedShownToSecondaryTeamDetails.primary_team.validator = bv.String() @@ -116249,20 +117073,14 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamMergeRequestAcceptedShownToSecondaryTeamDetails._all_fields_ = [ - ( - "primary_team", - TeamMergeRequestAcceptedShownToSecondaryTeamDetails.primary_team.validator, - ), + ("primary_team", TeamMergeRequestAcceptedShownToSecondaryTeamDetails.primary_team.validator), ("sent_by", TeamMergeRequestAcceptedShownToSecondaryTeamDetails.sent_by.validator), ] TeamMergeRequestAcceptedShownToSecondaryTeamType.description.validator = bv.String() TeamMergeRequestAcceptedShownToSecondaryTeamType._all_field_names_ = set(["description"]) TeamMergeRequestAcceptedShownToSecondaryTeamType._all_fields_ = [ - ( - "description", - TeamMergeRequestAcceptedShownToSecondaryTeamType.description.validator, - ) + ("description", TeamMergeRequestAcceptedShownToSecondaryTeamType.description.validator) ] TeamMergeRequestAcceptedType.description.validator = bv.String() @@ -116288,10 +117106,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) TeamMergeRequestCanceledDetails._all_field_names_ = set(["request_canceled_details"]) TeamMergeRequestCanceledDetails._all_fields_ = [ - ( - "request_canceled_details", - TeamMergeRequestCanceledDetails.request_canceled_details.validator, - ) + ("request_canceled_details", TeamMergeRequestCanceledDetails.request_canceled_details.validator) ] TeamMergeRequestCanceledExtraDetails._primary_team_validator = ( @@ -116318,20 +117133,14 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamMergeRequestCanceledShownToPrimaryTeamDetails._all_fields_ = [ - ( - "secondary_team", - TeamMergeRequestCanceledShownToPrimaryTeamDetails.secondary_team.validator, - ), + ("secondary_team", TeamMergeRequestCanceledShownToPrimaryTeamDetails.secondary_team.validator), ("sent_by", TeamMergeRequestCanceledShownToPrimaryTeamDetails.sent_by.validator), ] TeamMergeRequestCanceledShownToPrimaryTeamType.description.validator = bv.String() TeamMergeRequestCanceledShownToPrimaryTeamType._all_field_names_ = set(["description"]) TeamMergeRequestCanceledShownToPrimaryTeamType._all_fields_ = [ - ( - "description", - TeamMergeRequestCanceledShownToPrimaryTeamType.description.validator, - ) + ("description", TeamMergeRequestCanceledShownToPrimaryTeamType.description.validator) ] TeamMergeRequestCanceledShownToSecondaryTeamDetails.sent_to.validator = bv.String() @@ -116350,10 +117159,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): TeamMergeRequestCanceledShownToSecondaryTeamType.description.validator = bv.String() TeamMergeRequestCanceledShownToSecondaryTeamType._all_field_names_ = set(["description"]) TeamMergeRequestCanceledShownToSecondaryTeamType._all_fields_ = [ - ( - "description", - TeamMergeRequestCanceledShownToSecondaryTeamType.description.validator, - ) + ("description", TeamMergeRequestCanceledShownToSecondaryTeamType.description.validator) ] TeamMergeRequestCanceledType.description.validator = bv.String() @@ -116367,10 +117173,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) TeamMergeRequestExpiredDetails._all_field_names_ = set(["request_expired_details"]) TeamMergeRequestExpiredDetails._all_fields_ = [ - ( - "request_expired_details", - TeamMergeRequestExpiredDetails.request_expired_details.validator, - ) + ("request_expired_details", TeamMergeRequestExpiredDetails.request_expired_details.validator) ] TeamMergeRequestExpiredExtraDetails._primary_team_validator = ( @@ -116397,10 +117200,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamMergeRequestExpiredShownToPrimaryTeamDetails._all_fields_ = [ - ( - "secondary_team", - TeamMergeRequestExpiredShownToPrimaryTeamDetails.secondary_team.validator, - ), + ("secondary_team", TeamMergeRequestExpiredShownToPrimaryTeamDetails.secondary_team.validator), ("sent_by", TeamMergeRequestExpiredShownToPrimaryTeamDetails.sent_by.validator), ] @@ -116419,10 +117219,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): TeamMergeRequestExpiredShownToSecondaryTeamType.description.validator = bv.String() TeamMergeRequestExpiredShownToSecondaryTeamType._all_field_names_ = set(["description"]) TeamMergeRequestExpiredShownToSecondaryTeamType._all_fields_ = [ - ( - "description", - TeamMergeRequestExpiredShownToSecondaryTeamType.description.validator, - ) + ("description", TeamMergeRequestExpiredShownToSecondaryTeamType.description.validator) ] TeamMergeRequestExpiredType.description.validator = bv.String() @@ -116440,20 +117237,14 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamMergeRequestRejectedShownToPrimaryTeamDetails._all_fields_ = [ - ( - "secondary_team", - TeamMergeRequestRejectedShownToPrimaryTeamDetails.secondary_team.validator, - ), + ("secondary_team", TeamMergeRequestRejectedShownToPrimaryTeamDetails.secondary_team.validator), ("sent_by", TeamMergeRequestRejectedShownToPrimaryTeamDetails.sent_by.validator), ] TeamMergeRequestRejectedShownToPrimaryTeamType.description.validator = bv.String() TeamMergeRequestRejectedShownToPrimaryTeamType._all_field_names_ = set(["description"]) TeamMergeRequestRejectedShownToPrimaryTeamType._all_fields_ = [ - ( - "description", - TeamMergeRequestRejectedShownToPrimaryTeamType.description.validator, - ) + ("description", TeamMergeRequestRejectedShownToPrimaryTeamType.description.validator) ] TeamMergeRequestRejectedShownToSecondaryTeamDetails.sent_by.validator = bv.String() @@ -116465,10 +117256,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): TeamMergeRequestRejectedShownToSecondaryTeamType.description.validator = bv.String() TeamMergeRequestRejectedShownToSecondaryTeamType._all_field_names_ = set(["description"]) TeamMergeRequestRejectedShownToSecondaryTeamType._all_fields_ = [ - ( - "description", - TeamMergeRequestRejectedShownToSecondaryTeamType.description.validator, - ) + ("description", TeamMergeRequestRejectedShownToSecondaryTeamType.description.validator) ] TeamMergeRequestReminderDetails.request_reminder_details.validator = ( @@ -116476,10 +117264,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) TeamMergeRequestReminderDetails._all_field_names_ = set(["request_reminder_details"]) TeamMergeRequestReminderDetails._all_fields_ = [ - ( - "request_reminder_details", - TeamMergeRequestReminderDetails.request_reminder_details.validator, - ) + ("request_reminder_details", TeamMergeRequestReminderDetails.request_reminder_details.validator) ] TeamMergeRequestReminderExtraDetails._primary_team_validator = ( @@ -116506,20 +117291,14 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamMergeRequestReminderShownToPrimaryTeamDetails._all_fields_ = [ - ( - "secondary_team", - TeamMergeRequestReminderShownToPrimaryTeamDetails.secondary_team.validator, - ), + ("secondary_team", TeamMergeRequestReminderShownToPrimaryTeamDetails.secondary_team.validator), ("sent_to", TeamMergeRequestReminderShownToPrimaryTeamDetails.sent_to.validator), ] TeamMergeRequestReminderShownToPrimaryTeamType.description.validator = bv.String() TeamMergeRequestReminderShownToPrimaryTeamType._all_field_names_ = set(["description"]) TeamMergeRequestReminderShownToPrimaryTeamType._all_fields_ = [ - ( - "description", - TeamMergeRequestReminderShownToPrimaryTeamType.description.validator, - ) + ("description", TeamMergeRequestReminderShownToPrimaryTeamType.description.validator) ] TeamMergeRequestReminderShownToSecondaryTeamDetails.sent_to.validator = bv.String() @@ -116531,10 +117310,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): TeamMergeRequestReminderShownToSecondaryTeamType.description.validator = bv.String() TeamMergeRequestReminderShownToSecondaryTeamType._all_field_names_ = set(["description"]) TeamMergeRequestReminderShownToSecondaryTeamType._all_fields_ = [ - ( - "description", - TeamMergeRequestReminderShownToSecondaryTeamType.description.validator, - ) + ("description", TeamMergeRequestReminderShownToSecondaryTeamType.description.validator) ] TeamMergeRequestReminderType.description.validator = bv.String() @@ -116564,10 +117340,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamMergeRequestSentShownToPrimaryTeamDetails._all_fields_ = [ - ( - "secondary_team", - TeamMergeRequestSentShownToPrimaryTeamDetails.secondary_team.validator, - ), + ("secondary_team", TeamMergeRequestSentShownToPrimaryTeamDetails.secondary_team.validator), ("sent_to", TeamMergeRequestSentShownToPrimaryTeamDetails.sent_to.validator), ] @@ -116647,10 +117420,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) TeamProfileChangeDefaultLanguageDetails._all_fields_ = [ ("new_value", TeamProfileChangeDefaultLanguageDetails.new_value.validator), - ( - "previous_value", - TeamProfileChangeDefaultLanguageDetails.previous_value.validator, - ), + ("previous_value", TeamProfileChangeDefaultLanguageDetails.previous_value.validator), ] TeamProfileChangeDefaultLanguageType.description.validator = bv.String() @@ -116746,10 +117516,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamSelectiveSyncSettingsChangedDetails._all_fields_ = [ - ( - "previous_value", - TeamSelectiveSyncSettingsChangedDetails.previous_value.validator, - ), + ("previous_value", TeamSelectiveSyncSettingsChangedDetails.previous_value.validator), ("new_value", TeamSelectiveSyncSettingsChangedDetails.new_value.validator), ] @@ -117259,10 +118026,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) WebSessionsChangeActiveSessionLimitDetails._all_fields_ = [ - ( - "previous_value", - WebSessionsChangeActiveSessionLimitDetails.previous_value.validator, - ), + ("previous_value", WebSessionsChangeActiveSessionLimitDetails.previous_value.validator), ("new_value", WebSessionsChangeActiveSessionLimitDetails.new_value.validator), ] @@ -117286,10 +118050,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) WebSessionsChangeFixedLengthPolicyDetails._all_fields_ = [ ("new_value", WebSessionsChangeFixedLengthPolicyDetails.new_value.validator), - ( - "previous_value", - WebSessionsChangeFixedLengthPolicyDetails.previous_value.validator, - ), + ("previous_value", WebSessionsChangeFixedLengthPolicyDetails.previous_value.validator), ] WebSessionsChangeFixedLengthPolicyType.description.validator = bv.String() @@ -117312,10 +118073,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) WebSessionsChangeIdleLengthPolicyDetails._all_fields_ = [ ("new_value", WebSessionsChangeIdleLengthPolicyDetails.new_value.validator), - ( - "previous_value", - WebSessionsChangeIdleLengthPolicyDetails.previous_value.validator, - ), + ("previous_value", WebSessionsChangeIdleLengthPolicyDetails.previous_value.validator), ] WebSessionsChangeIdleLengthPolicyType.description.validator = bv.String() diff --git a/dropbox/team_policies.py b/dropbox/team_policies.py index acef2217..70d76e90 100644 --- a/dropbox/team_policies.py +++ b/dropbox/team_policies.py @@ -2626,27 +2626,15 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ] ) TeamSharingPolicies._all_fields_ = [ - ( - "shared_folder_member_policy", - TeamSharingPolicies.shared_folder_member_policy.validator, - ), - ( - "shared_folder_join_policy", - TeamSharingPolicies.shared_folder_join_policy.validator, - ), - ( - "shared_link_create_policy", - TeamSharingPolicies.shared_link_create_policy.validator, - ), + ("shared_folder_member_policy", TeamSharingPolicies.shared_folder_member_policy.validator), + ("shared_folder_join_policy", TeamSharingPolicies.shared_folder_join_policy.validator), + ("shared_link_create_policy", TeamSharingPolicies.shared_link_create_policy.validator), ("group_creation_policy", TeamSharingPolicies.group_creation_policy.validator), ( "shared_folder_link_restriction_policy", TeamSharingPolicies.shared_folder_link_restriction_policy.validator, ), - ( - "enforce_link_password_policy", - TeamSharingPolicies.enforce_link_password_policy.validator, - ), + ("enforce_link_password_policy", TeamSharingPolicies.enforce_link_password_policy.validator), ( "default_link_expiration_days_policy", TeamSharingPolicies.default_link_expiration_days_policy.validator, diff --git a/spec b/spec index 735a3316..f1b5fa6f 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 735a331613b476c6ed0670c8746075315eb6905e +Subproject commit f1b5fa6f96526401bfee0a90171bd5bd19678062